once ❝ published name Reconstructed 91.5% of control flow structured Anchor ◇ GRzKU9i3Cs7A5Euf9gGZjbRnpypw7DzaU3hWRfUgpYTa copy decompiled 22 Oct 2026
Identity · published metadata ▾
Loader ■ v3 · upgradeable
sBPF ■ v0
Size ■ 556,728 bytes
Instructions ● 58,814
Functions ● 412
SHA-256 ● 23200e76…1d4a7b42
Upgrade authority ■ 8gop…M677
Last deploy slot ■ 459,519,774 ❝ Published by the authors · their claims, not revrsly output Verified build github.com/call-once/once-program @ 1ee2ebf · ✓ hash matches this bytecode IDL · none publishedsecurity.txt · embedded ■ read from the bytes view Loading the reconstruction…
Functions
Other functions 354
+ 294 more · type to filter
cancel ▾
pseudocode.c fn cancel · .text+0x4cfa0 · 436 ins · 81 blocks · 463 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // cancel · 436 instructions · 1 caller · 13 gotos
2 // panic locations in this function: programs/once/src/events.rs:52, /home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027
3 u64 cancel ( u64 r1, u64 r2) {
Evidence why revrsly believes it ×
◇ The program's own handler for cancel: the function Anchor's wrapper calls once the accounts are loaded.
● .text+0x4cfa0 · 436 instructions · 81 blocks
● 1 caller
◇ takes 2 arguments (from register use)
4
u64 local_1000;
69 r3 = *( u64 *)(r2 + 8 );
70 r7 = *( u64 *)(r3 + 8 );
71 r5 = *( u64 *)(r3 + 0x10 );
72 r2 = *( u64 *)(r5 + 0x68 );
74 r3 = *( u64 *)(*( u64 *)(r3 + 0x20 ));
75 local_e8 = *( u64 *)(r3 + 0x18 );
76 local_f0 = *( u64 *)(r3 + 0x10 );
77 local_f8 = *( u64 *)(r3 + 8 );
78 local_100 = *( u64 *)(r3);
79 r3 = *( u64 *)(r5 + 0x20 );
80 r8 = *( u64 *)(r3 + 8 );
81 r5 = *( u64 *)(r8) + 1 ;
89 r5 = *( u64 *)(r3 + 0x10 );
90 r0 = *( u64 *)(r5) + 1 ;
99 r0 = *( u64 *)(r3 + 0x18 );
100 r6 = *( u64 *)(r3 + 0x20 );
101 r9 = *( u8 *)(r3 + 0x28 );
102 r7 = *( u8 *)(r3 + 0x29 );
103 local_b6 = *( u8 *)(r3 + 0x2a );
112 r3 = *( u64 *)(*( u64 *)(r8 + 0x18 ) + 0x58 );
113 r1 = *( u64 *)(r3 + 8 );
114 r5 = *( u64 *)(r1) + 1 ;
122 r5 = *( u64 *)(r3 + 0x10 );
123 r0 = *( u64 *)(r5) + 1 ;
130 r0 = *( u64 *)(r3 + 0x18 );
131 r6 = *( u64 *)(r3 + 0x20 );
132 r7 = *( u8 *)(r3 + 0x28 );
133 r9 = *( u8 *)(r3 + 0x29 );
134 local_86 = *( u8 *)(r3 + 0x2a );
142 r3 = *( u64 *)(*( u64 *)(r8 + 0x28 ) + 0x20 );
143 r1 = *( u64 *)(r3 + 8 );
144 r5 = *( u64 *)(r1) + 1 ;
152 r5 = *( u64 *)(r3 + 0x10 );
153 r0 = *( u64 *)(r5) + 1 ;
160 r0 = *( u64 *)(r3 + 0x18 );
161 r6 = *( u64 *)(r3 + 0x20 );
162 r7 = *( u8 *)(r3 + 0x28 );
163 r9 = *( u8 *)(r3 + 0x29 );
164 local_6 = *( u8 *)(r3 + 0x2a );
173 r1 = *( u64 *)(r3 + 8 );
174 r5 = *( u64 *)(r1) + 1 ;
182 r5 = *( u64 *)(r3 + 0x10 );
183 r0 = *( u64 *)(r5) + 1 ;
190 r0 = *( u64 *)(r3 + 0x18 );
191 r6 = *( u64 *)(r3 + 0x20 );
192 r7 = *( u8 *)(r3 + 0x28 );
193 r9 = *( u8 *)(r3 + 0x29 );
194 local_56 = *( u8 *)(r3 + 0x2a );
202 local_fe0 = *( u8 *)(*( u64 *)(r8 + 0x18 ) + 0x30 );
205 local_ff0 = &local_80_u64;
206 local_ff8 = &local_30;
207 local_1000 = &local_b0;
208 r0 = fn_d4b0(&local_110, local_148, &local_100, &local_e0, fp);
214 *( u64 *)(r1 + 8 ) = r7;
217 *( u8 *)(*( u64 *)(r8 + 8 ) + 0xb1 ) = 4 ;
218 r0 = clock_get (&local_80_u64);
219 if (local_80_u32 == 1 ) {
220 r0 = fn_5fbd0(&local_138, local_7c, local_78_u32);
225 *( u64 *)(r1 + 8 ) = r7;
228 *( u64 *)(*( u64 *)(r8 + 8 ) + 0xa8 ) = local_78_u64;
229 r1 = *( u64 *)(r8 + 0x30 );
230 r4 = *( u64 *)(r1 + 8 );
231 r2 = *( u64 *)(r4) + 1 ;
239 r0 = *( u64 *)(r1 + 0x10 );
240 r2 = *( u64 *)(r0) + 1 ;
247 abort (); // abort the program ■ syscall
252 local_188 = *( u8 *)(r1 + 0x2a );
253 local_180 = *( u8 *)(r1 + 0x29 );
254 local_178 = *( u8 *)(r1 + 0x28 );
255 local_170 = *( u64 *)(r1 + 0x20 );
256 local_168 = *( u64 *)(r1 + 0x18 );
257 r1 = *( u64 *)(r8 + 8 );
258 r2 = *( u64 *)(*( u64 *)(r1));
259 local_68 = *( u64 *)(r2 + 0x18 );
260 local_70 = *( u64 *)(r2 + 0x10 );
261 local_78_u64 = *( u64 *)(r2 + 8 );
262 local_80_u64 = *( u64 *)(r2);
263 r9 = *( u64 *)(r1 + 0x68 );
264 local_58_u64 = *( u64 *)(r1 + 0x10 );
265 local_50 = *( u64 *)(r1 + 0x18 );
266 local_48 = *( u64 *)(r1 + 0x20 );
267 local_60 = *( u64 *)(r1 + 8 );
268 r6 = *( u64 *)(r1 + 0xa8 );
270 r1 = *( u64 *)( 0x300000000 );
281 if (r8 <= 0x300000007 ) {
282 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:52:1" )); ■ string · 32 B
286 *( u64 *)( 0x300000000 ) = r8;
287 *( u64 *)(r8) = 0x2eeae98f412a1788 ; // discriminator of event `Cancelled`
288 *( u64 *)(r8 + 8 ) = local_80_u64;
289 *( u64 *)(r8 + 0x10 ) = local_78_u64;
290 *( u64 *)(r8 + 0x18 ) = local_70;
291 *( u64 *)(r8 + 0x20 ) = local_68;
292 *( u64 *)(r8 + 0x28 ) = r9;
293 *( u64 *)(r8 + 0x30 ) = *( u64 *)(r1);
294 *( u64 *)(r8 + 0x38 ) = *( u64 *)(r1 + 8 );
295 *( u64 *)(r8 + 0x40 ) = *( u64 *)(r1 + 0x10 );
296 *( u64 *)(r8 + 0x48 ) = *( u64 *)(r1 + 0x18 );
297 *( u64 *)(r8 + 0x58 ) = r6;
298 *( u64 *)(r8 + 0x50 ) = r7;
317 if (r7 <= 0x300000007 ) {
318 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
319 r0 = fn_67b18(r1, 0x68 , r3);
322 *( u64 *)( 0x300000000 ) = r7;
323 *( u64 *)(r7) = 0x1d9acb512ea545e4 ; // Anchor emit_cpi! event tag
326 *( u8 *)(r7 + r1 + 8 ) = *( u8 *)(r8 + r1);
334 r2 = *( u64 *)( 0x300000000 );
346 if (r1 < 0x300000008 ) {
347 r0 = fn_67b38( 1 , 0x22 );
350 *( u64 *)( 0x300000000 ) = r1;
353 r3 = *( u64 *)(r9 + 8 );
354 r4 = *( u64 *)(r9 + 0x10 );
355 *( u64 *)(r1 + 0x18 ) = *( u64 *)(r9 + 0x18 );
356 *( u64 *)(r1 + 0x10 ) = r4;
357 *( u64 *)(r1 + 8 ) = r3;
359 *( u16 *)(r1 + 0x20 ) = 1 ;
364 r0 = fn_64088(r8, 0x7a3d5 , r7, 0x68 , &local_30); // .rodata+0xfd5
368 local_10 = local_170;
369 local_18 = local_168;
370 local_20 = local_160;
373 local_1000 = 0x7e370 ; // .data.rel.ro+0x470
375 r0 = invoke_signed (&local_118, r8, &local_30, 1 , fp);
378 r0 = fn_5fbd0(&local_128, r2, local_114);
385 r1 = *( u64 *)(r6) + - 1 ;
388 r0 = fn_63ad8(&local_28);
391 r2 = *( u64 *)(r1) + - 1 ;
394 r0 = fn_63b28(&local_20);
398 *( u64 *)(r1 + 8 ) = r7;
402 if (r1 < 0x300000008 ) {
403 r0 = fn_67b38( 1 , 0x22 );
405 goto L_4db10; ● kept as goto
411 goto L_4daf8; ● kept as goto
413 goto L_4dd00; ● kept as goto
416 goto L_4dce0; ● kept as goto
418 goto L_4dae0; ● kept as goto
421 if (r7 <= 0x300000007 ) {
422 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
423 r0 = fn_67b18(r1, 0x68 , r3);
425 goto L_4da10; ● kept as goto
428 goto L_4d9f0; ● kept as goto
430 goto L_4d9c0; ● kept as goto
432 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
433 r0 = fn_67b18(r1, 0x68 , r3);
436 if (r8 <= 0x300000007 ) {
437 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:52:1" )); ■ string · 32 B
439 goto L_4d7c0; ● kept as goto
445 goto L_4d7a8; ● kept as goto
447 goto L_4d900; ● kept as goto
450 goto L_4d8e0; ● kept as goto
452 goto L_4d790; ● kept as goto
462 abort (); // abort the program ■ syscall