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…
once · revrsly
Functions
Other functions 354
+ 293 more · type to filter
fn_40dd0 ▾
pseudocode.c fn fn_40dd0 · .text+0x40dd0 · 321 ins · 36 blocks · 306 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // fn_40dd0 · 321 instructions · 2 callers · 7 gotos
2 // panic locations in this function: programs/once/src/state.rs:25
3 u64 fn_40dd0( u64 r1, u64 r2) {
4 u64 local_1b0;
Evidence why revrsly believes it ×
Function ● Derived
fn_40dd0
· The binary doesn't name this function. fn_40dd0 is its offset in .text.
● .text+0x40dd0 · 321 instructions · 36 blocks
● 2 callers
◇ takes 2 arguments (from register use)
83 r2 = *( u64 *)(r3 + 8 );
85 r0 = fn_740e0( 8 , r2, & Location ( "programs/once/src/state.rs:25:1" )); ■ string · 31 B
93 if ((r2 + - 0x10 ) > 0x1f ) {
95 r7 = *( u64 *)(r9 + 0x16 );
96 local_28_u8 = *( u8 *)(r9 + 0x1e );
97 local_90 = *( u32 *)(r9 + 0x10 );
98 local_8c = *( u16 *)(r9 + 0x14 );
101 local_a8 = *( u64 *)(r9 + 0x1f );
102 local_a0 = *( u64 *)(r9 + 0x27 );
103 local_98 = *( u8 *)(r9 + 0x2f );
104 if ((r2 + - 0x30 ) > 0x1f ) {
105 r5 = *( u64 *)(r9 + 0x36 );
106 local_28_u8 = *( u8 *)(r9 + 0x3e );
107 local_70 = *( u32 *)(r9 + 0x30 );
108 local_6c = *( u16 *)(r9 + 0x34 );
111 local_88 = *( u64 *)(r9 + 0x3f );
112 local_80 = *( u64 *)(r9 + 0x47 );
113 local_78 = *( u8 *)(r9 + 0x4f );
114 if ((r2 + - 0x50 ) > 0x1f ) {
116 r0 = *( u64 *)(r9 + 0x56 );
117 local_28_u8 = *( u8 *)(r9 + 0x5e );
118 local_50 = *( u32 *)(r9 + 0x50 );
119 local_4c = *( u16 *)(r9 + 0x54 );
121 local_160 = local_2f_u64;
122 local_68 = *( u64 *)(r9 + 0x5f );
123 local_60 = *( u64 *)(r9 + 0x67 );
124 local_58 = *( u8 *)(r9 + 0x6f );
137 local_180 = *( u64 *)(r9 + 0x70 );
138 local_188 = *( u64 *)(r9 + 0x78 );
139 local_190 = *( u64 *)(r9 + 0x80 );
140 local_198 = *( u64 *)(r9 + 0x88 );
141 local_1a0 = *( u64 *)(r9 + 0x90 );
142 local_1a8 = *( u64 *)(r9 + 0x98 );
143 local_138 = r2 + - 0xa0 ;
144 local_140 = r9 + 0xa0 ;
145 r0 = fn_417f8(&local_30_u64, &local_140);
146 if (local_30_u8 != 1 ) {
148 r0 = fn_a0d0(&local_30_u64, &local_140);
149 if (local_30_u8 != 1 ) {
155 local_38 = local_10_u16;
159 if ((r0 & - 8 ) != 8 ) {
160 local_1b0 = local_28_u64;
163 r4 = *( u64 *)(r9 + 8 );
164 local_140 = r9 + 0x10 ;
168 r0 = fn_66bf0( 0x7dfb0 ); // &"failed to fill whole buffer"
172 r0 = anchor_error_new (&local_150, 0xbbb ); // Anchor error 3003 AccountDidNotDeserialize?
176 if ((r1 + - 2 ) >= 2 ) {
178 r2 = *( u64 *)(*( u64 *)(r7 + 7 ));
180 r1 = *( u64 *)(r7 - 1 );
181 r0 = (*( fn *)r2)(r1, r2, r3, r4, r5);
185 *( u64 *)(r6 + 8 ) = r9;
187 *( u8 *)(r6 + 0xaa ) = 2 ;
189 r5 = *( u8 *)(r9 + 0x10 );
190 local_138 = r0 + - 0x11 ;
191 local_140 = r9 + 0x11 ;
192 local_b8_u32 = local_90;
204 local_110 = local_68;
205 local_108 = local_60;
206 local_100 = local_58;
209 local_130 = local_48;
210 local_128 = local_40;
211 local_120 = local_38;
216 local_30_u64 = local_b8_u64;
220 local_10_u32 = local_d8;
222 *( u8 *)(r6 + 0x3f ) = local_e0;
223 *( u64 *)(r6 + 0x37 ) = local_e8;
224 *( u64 *)(r6 + 0x2f ) = local_f0;
225 *( u16 *)(r6 + 0x44 ) = local_f4;
226 *( u32 *)(r6 + 0x40 ) = local_f8;
227 *( u64 *)(r6 + 0x4f ) = local_110;
228 *( u64 *)(r6 + 0x57 ) = local_108;
229 *( u8 *)(r6 + 0x5f ) = local_100;
230 *( u32 *)(r6 + 0xab ) = local_118;
231 *( u16 *)(r6 + 0xaf ) = local_114;
232 *( u64 *)(r6 + 0xb9 ) = local_130;
233 *( u64 *)(r6 + 0xc1 ) = local_128;
234 *( u16 *)(r6 + 0xc9 ) = local_120;
235 *( u64 *)(r6) = local_30_u64;
236 *( u64 *)(r6 + 8 ) = local_28_u64;
237 *( u64 *)(r6 + 0x10 ) = local_20;
238 *( u64 *)(r6 + 0x18 ) = local_18;
239 *( u64 *)(r6 + 0x1e ) = local_12;
240 *( u64 *)(r6 + 0x27 ) = local_158;
241 *( u64 *)(r6 + 0x47 ) = local_160;
242 *( u64 *)(r6 + 0x60 ) = local_168;
243 *( u64 *)(r6 + 0x68 ) = local_180;
244 *( u64 *)(r6 + 0x70 ) = local_188;
245 *( u64 *)(r6 + 0x78 ) = local_190;
246 *( u64 *)(r6 + 0x80 ) = local_198;
247 *( u64 *)(r6 + 0x88 ) = local_1a0;
249 *( u64 *)(r6 + 0x90 ) = r0;
250 *( u64 *)(r6 + 0x98 ) = r3;
251 *( u64 *)(r6 + 0xa0 ) = r4;
252 *( u64 *)(r6 + 0xb1 ) = local_1b0;
253 *( u8 *)(r6 + 0xaa ) = r1;
254 *( u8 *)(r6 + 0xa9 ) = r2;
255 *( u8 *)(r6 + 0xa8 ) = r5;
256 *( u8 *)(r6 + 0x26 ) = local_170;
257 *( u8 *)(r6 + 0x46 ) = local_178;
260 goto L_41090; ● kept as goto
266 r0 = fn_66bf0( 0x7dfb0 ); // &"failed to fill whole buffer"
271 goto L_41090; ● kept as goto
275 goto L_41308; ● kept as goto
280 goto L_41090; ● kept as goto
284 goto L_41248; ● kept as goto
288 r0 = fn_66bf0( 0x7dfb0 ); // &"failed to fill whole buffer"
293 goto L_41090; ● kept as goto
305 goto L_41050; ● kept as goto