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
set_params ▾
pseudocode.c fn set_params · .text+0x46368 · 326 ins · 60 blocks · 325 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // set_params · 326 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:15, /home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027
3 u64 set_params ( u64 r1,
Evidence why revrsly believes it ×
Function ◇ Inferred
set_params
◇ The program's own handler for set_params: the function Anchor's wrapper calls once the accounts are loaded.
● .text+0x46368 · 326 instructions · 60 blocks
● 1 caller
◇ takes 4 arguments (from register use)
u64
r2,
u64
r3,
u64
r4) {
53 r0 = custom_error_name (&local_60, & InvalidValue ); // error 6004
57 local_40 = 0x7dfc8 ; // .data.rel.ro+0xc8
59 local_38 = 0xe0000020 ;
60 r0 = custom_error_fmt (& InvalidValue , &local_48, r3, r4, r5); // error 6004
62 r5 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/alloc/src/string.rs:2830:14" ); ■ string · 92 B
63 r0 = fn_6f930( "a Display implementation returned an error unexpectedly" , 0x37 , &local_100, 0x7dff8 , r5); // .data.rel.ro+0xf8 ■ string · 55 B
71 local_f8 = "programs/once/src/lib.rs" ; ■ string · 24 B
72 local_68 = 0x1774 ; // error 6004 InvalidValue: "Amounts and gate length must be positive"
74 local_e8 = 0x4c ; // error raised at programs/once/src/lib.rs:76
77 r0 = fn_5fb40(&local_110, &local_100);
81 *( u64 *)(r1 + 8 ) = r6;
85 r1 = *( u64 *)(r2 + 8 );
86 *( u64 *)(*( u64 *)(r1 + 8 ) + 0x48 ) = r7;
87 *( u64 *)(*( u64 *)(r1 + 8 ) + 0x50 ) = r8;
88 r1 = *( u64 *)(r1 + 0x10 );
89 r9 = *( u64 *)(r1 + 8 );
90 r2 = *( u64 *)(r9) + 1 ;
95 local_140 = *( u64 *)(r1);
98 r4 = *( u64 *)(r1 + 0x10 );
99 r2 = *( u64 *)(r4) + 1 ;
106 abort (); // abort the program ■ syscall
109 local_170 = *( u8 *)(r1 + 0x2a );
110 local_168 = *( u8 *)(r1 + 0x29 );
111 local_160 = *( u8 *)(r1 + 0x28 );
112 local_158 = *( u64 *)(r1 + 0x20 );
113 local_150 = *( u64 *)(r1 + 0x18 );
115 r1 = *( u64 *)( 0x300000000 );
127 if (r9 <= 0x300000007 ) {
128 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:15:1" )); ■ string · 32 B
133 *( u64 *)(r9 + 0x10 ) = r8;
134 *( u64 *)(r9 + 8 ) = r7;
135 *( u64 *)(r9) = - 0xa9db38703de90c7 ; // discriminator of event `ParamsSet`
153 if (r7 <= 0x300000007 ) {
154 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
155 r0 = fn_67b18(r1, 0x20 , r3);
160 *( u64 *)(r7) = 0x1d9acb512ea545e4 ; // Anchor emit_cpi! event tag
161 *( u8 *)(r7 + 8 ) = *( u8 *)(r9);
162 *( u8 *)(r7 + 9 ) = *( u8 *)(r9 + 1 );
163 *( u8 *)(r7 + 0xa ) = *( u8 *)(r9 + 2 );
164 *( u8 *)(r7 + 0xb ) = *( u8 *)(r9 + 3 );
165 *( u8 *)(r7 + 0xc ) = *( u8 *)(r9 + 4 );
166 *( u8 *)(r7 + 0xd ) = *( u8 *)(r9 + 5 );
167 *( u8 *)(r7 + 0xe ) = *( u8 *)(r9 + 6 );
168 *( u8 *)(r7 + 0xf ) = *( u8 *)(r9 + 7 );
169 *( u8 *)(r7 + 0x10 ) = *( u8 *)(r9 + 8 );
170 *( u8 *)(r7 + 0x11 ) = *( u8 *)(r9 + 9 );
171 *( u8 *)(r7 + 0x12 ) = *( u8 *)(r9 + 0xa );
172 *( u8 *)(r7 + 0x13 ) = *( u8 *)(r9 + 0xb );
173 *( u8 *)(r7 + 0x14 ) = *( u8 *)(r9 + 0xc );
174 *( u8 *)(r7 + 0x15 ) = *( u8 *)(r9 + 0xd );
175 *( u8 *)(r7 + 0x16 ) = *( u8 *)(r9 + 0xe );
176 *( u8 *)(r7 + 0x17 ) = *( u8 *)(r9 + 0xf );
177 *( u8 *)(r7 + 0x18 ) = *( u8 *)(r9 + 0x10 );
178 *( u8 *)(r7 + 0x19 ) = *( u8 *)(r9 + 0x11 );
179 *( u8 *)(r7 + 0x1a ) = *( u8 *)(r9 + 0x12 );
180 *( u8 *)(r7 + 0x1b ) = *( u8 *)(r9 + 0x13 );
181 *( u8 *)(r7 + 0x1c ) = *( u8 *)(r9 + 0x14 );
182 *( u8 *)(r7 + 0x1d ) = *( u8 *)(r9 + 0x15 );
183 *( u8 *)(r7 + 0x1e ) = *( u8 *)(r9 + 0x16 );
184 *( u8 *)(r7 + 0x1f ) = *( u8 *)(r9 + 0x17 );
198 if (r1 < 0x300000008 ) {
199 r0 = fn_67b38( 1 , 0x22 );
202 *( u64 *)( 0x300000000 ) = r1;
205 r3 = *( u64 *)(r9 + 8 );
206 r4 = *( u64 *)(r9 + 0x10 );
207 *( u64 *)(r1 + 0x18 ) = *( u64 *)(r9 + 0x18 );
208 *( u64 *)(r1 + 0x10 ) = r4;
209 *( u64 *)(r1 + 8 ) = r3;
211 *( u16 *)(r1 + 0x20 ) = 1 ;
216 r0 = fn_64088(r8, 0x7a3d5 , r7, 0x20 , &local_48); // .rodata+0xfd5
217 local_1e = local_170;
218 local_1f = local_168;
219 local_20 = local_160;
220 local_28 = local_158;
221 local_30 = local_150;
222 local_38 = local_138;
225 local_1000 = 0x7e370 ; // .data.rel.ro+0x470
227 r0 = invoke_signed (&local_118, r8, &local_48, 1 , fp);
232 r0 = fn_5fbd0(&local_128, r2, local_114);
234 r2 = *( u64 *)(r1) + - 1 ;
242 r2 = *( u64 *)(r1) + - 1 ;
248 r1 = *( u64 *)(r6) + - 1 ;
255 r1 = *( u64 *)(r2) + - 1 ;
263 *( u64 *)(r1 + 8 ) = r6;
268 if (r1 < 0x300000008 ) {
269 r0 = fn_67b38( 1 , 0x22 );
271 goto L_46ac0; ● kept as goto
277 goto L_46aa8; ● kept as goto
279 goto L_46d48; ● kept as goto
283 goto L_46d28; ● kept as goto
285 goto L_46a90; ● kept as goto
288 if (r7 <= 0x300000007 ) {
289 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
290 r0 = fn_67b18(r1, 0x20 , r3);
292 goto L_46898; ● kept as goto
295 goto L_46878; ● kept as goto
297 goto L_46848; ● kept as goto
299 r3 = & Location ( "/home/runner/work/platform-tools/platform-tools/out/rust/library/core/src/iter/traits/iterator.rs:2027:9" ); ■ string · 104 B
300 r0 = fn_67b18(r1, 0x20 , r3);
303 if (r9 <= 0x300000007 ) {
304 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:15:1" )); ■ string · 32 B
306 goto L_46538; ● kept as goto
312 goto L_46520; ● kept as goto
314 goto L_46798; ● kept as goto
318 goto L_46778; ● kept as goto
320 goto L_46508; ● kept as goto
322 abort (); // abort the program ■ syscall
324 goto L_465b0; ● kept as goto