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
init ▾
pseudocode.c fn init · .text+0x44ae8 · 339 ins · 59 blocks · 335 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // init · 339 instructions · 1 caller · 14 gotos
2 // panic locations in this function: /home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/string.rs:2830, programs/once/src/events.rs:3, /home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027
3 u64 init ( u64 r1, u64
Evidence why revrsly believes it ×
◇ The program's own handler for init: the function Anchor's wrapper calls once the accounts are loaded.
● .text+0x44ae8 · 339 instructions · 59 blocks
● 1 caller
◇ takes 5 arguments (from register use)
r2,
u64
r3,
u64
r4,
u64
r5) {
55 r0 = custom_error_name (&local_60, & InvalidValue ); // error 6004
59 local_40 = 0x7dfc8 ; // .data.rel.ro+0xc8
61 local_38 = 0xe0000020 ;
62 r0 = custom_error_fmt (& InvalidValue , &local_48, r3, r4, r5); // error 6004
64 r5 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/string.rs:2830:14" ); ■ string · 92 B
65 r0 = fn_6f930( "a Display implementation returned an error unexpectedly" , 0x37 , &local_100, 0x7dff8 , r5); // .data.rel.ro+0xf8 ■ string · 55 B
73 local_f8 = "programs/once/src/lib.rs" ; ■ string · 24 B
74 local_68 = 0x1774 ; // error 6004 InvalidValue: "Amounts and gate length must be positive"
76 local_e8_u32 = 0x26 ; // error raised at programs/once/src/lib.rs:38
79 r0 = fn_5fb40(&local_110, &local_100);
83 *( u64 *)(r8 + 8 ) = r7;
87 r6 = *( u64 *)(r2 + 8 );
88 r8 = *( u64 *)(r6 + 0x18 );
89 r1 = *( u64 *)(*( u64 *)(*( u64 *)(r6 + 0x20 ) + 0x58 ));
90 local_c8 = *( u64 *)(r1 + 0x18 );
91 local_d0 = *( u64 *)(r1 + 0x10 );
92 local_d8 = *( u64 *)(r1 + 8 );
93 local_e0 = *( u64 *)(r1);
94 r7 = *( u8 *)(r2 + 0x20 );
95 local_f8 = *( u64 *)(r9 + 8 );
96 local_f0 = *( u64 *)(r9 + 0x10 );
97 local_e8_u64 = *( u64 *)(r9 + 0x18 );
98 local_100 = *( u64 *)(r9);
101 r0 = memcpy (r8 + 8 , &local_100, 0x40 );
102 *( u64 *)(r8 + 0x50 ) = local_138;
103 *( u64 *)(r8 + 0x48 ) = local_130;
104 *( u8 *)(r8 + 0x68 ) = r7;
105 *( u64 *)(r8 + 0x58 ) = 0 ;
106 *( u64 *)(r8 + 0x60 ) = 0 ;
107 *( u8 *)(r8 + 0x8a ) = 0 ;
108 *( u8 *)(r8 + 0x69 ) = 0 ;
109 r1 = *( u64 *)(r6 + 0x30 );
110 r4 = *( u64 *)(r1 + 8 );
111 r2 = *( u64 *)(r4) + 1 ;
119 r5 = *( u64 *)(r1 + 0x10 );
120 r2 = *( u64 *)(r5) + 1 ;
127 abort (); // abort the program ■ syscall
131 local_180 = *( u8 *)(r1 + 0x2a );
132 local_178 = *( u8 *)(r1 + 0x29 );
133 local_170 = *( u8 *)(r1 + 0x28 );
134 local_168 = *( u64 *)(r1 + 0x20 );
135 local_160 = *( u64 *)(r1 + 0x18 );
136 r1 = *( u64 *)(*( u64 *)(*( u64 *)(r6 + 0x20 ) + 0x58 ));
137 local_c8 = *( u64 *)(r1 + 0x18 );
138 local_d0 = *( u64 *)(r1 + 0x10 );
139 local_d8 = *( u64 *)(r1 + 8 );
140 local_e0 = *( u64 *)(r1);
142 r1 = *( u64 *)( 0x300000000 );
156 if (r6 <= 0x300000007 ) {
157 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:3:1" )); ■ string · 31 B
163 *( u64 *)(r6) = - 0x2e36ad8c9d8c2a30 ; // discriminator of event `Initialized`
164 *( u64 *)(r6 + 8 ) = *( u64 *)(r9);
165 *( u64 *)(r6 + 0x10 ) = *( u64 *)(r9 + 8 );
166 *( u64 *)(r6 + 0x18 ) = *( u64 *)(r9 + 0x10 );
167 *( u64 *)(r6 + 0x20 ) = *( u64 *)(r9 + 0x18 );
168 *( u64 *)(r6 + 0x28 ) = *( u64 *)(r1);
169 *( u64 *)(r6 + 0x30 ) = *( u64 *)(r1 + 8 );
170 *( u64 *)(r6 + 0x38 ) = *( u64 *)(r1 + 0x10 );
171 *( u64 *)(r6 + 0x40 ) = *( u64 *)(r1 + 0x18 );
172 *( u64 *)(r6 + 0x50 ) = r0;
173 *( u64 *)(r6 + 0x48 ) = r5;
191 if (r7 <= 0x300000007 ) {
192 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
193 r0 = fn_67b18(r1, 0x60 , r3);
196 *( u64 *)( 0x300000000 ) = r7;
197 *( u64 *)(r7) = 0x1d9acb512ea545e4 ; // Anchor emit_cpi! event tag
200 *( u8 *)(r7 + r1 + 8 ) = *( u8 *)(r6 + r1);
208 r2 = *( u64 *)( 0x300000000 );
219 if (r1 < 0x300000008 ) {
220 r0 = fn_67b38( 1 , 0x22 );
223 *( u64 *)( 0x300000000 ) = r1;
226 r3 = *( u64 *)(r6 + 8 );
227 r4 = *( u64 *)(r6 + 0x10 );
228 *( u64 *)(r1 + 0x18 ) = *( u64 *)(r6 + 0x18 );
229 *( u64 *)(r1 + 0x10 ) = r4;
230 *( u64 *)(r1 + 8 ) = r3;
232 *( u16 *)(r1 + 0x20 ) = 1 ;
237 r0 = fn_64088(r8, 0x7a3d5 , r7, 0x60 , &local_48); // .rodata+0xfd5
238 local_1e = local_180;
239 local_1f = local_178;
240 local_20 = local_170;
241 local_28 = local_168;
242 local_30 = local_160;
243 local_38 = local_158;
244 local_40 = local_140;
246 local_1000 = 0x7e370 ; // .data.rel.ro+0x470
248 r0 = invoke_signed (&local_118, r8, &local_48, 1 , fp);
251 r0 = fn_5fbd0(&local_128, r2, local_114);
261 r1 = *( u64 *)(r2) + - 1 ;
264 r0 = fn_63ad8(&local_40);
267 r2 = *( u64 *)(r1) + - 1 ;
270 r0 = fn_63b28(&local_38);
273 *( u64 *)(r8 + 8 ) = r7;
277 if (r1 < 0x300000008 ) {
278 r0 = fn_67b38( 1 , 0x22 );
280 goto L_45318; ● kept as goto
286 goto L_45300; ● kept as goto
288 goto L_45520; ● kept as goto
291 goto L_45500; ● kept as goto
293 goto L_452e8; ● kept as goto
296 if (r7 <= 0x300000007 ) {
297 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
298 r0 = fn_67b18(r1, 0x60 , r3);
300 goto L_45220; ● kept as goto
303 goto L_45200; ● kept as goto
305 goto L_451d0; ● kept as goto
307 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
308 r0 = fn_67b18(r1, 0x60 , r3);
312 if (r6 <= 0x300000007 ) {
313 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:3:1" )); ■ string · 31 B
315 goto L_44e28; ● kept as goto
321 goto L_44e08; ● kept as goto
323 goto L_45118; ● kept as goto
328 goto L_450f8; ● kept as goto
330 goto L_44df0; ● kept as goto
332 abort (); // abort the program ■ syscall
334 goto L_44f30; ● kept as goto