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
+ 293 more · type to filter
fn_40148 ▾
pseudocode.c fn fn_40148 · .text+0x40148 · 269 ins · 33 blocks · 260 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // fn_40148 · 269 instructions · 2 callers · 9 gotos
2 // panic locations in this function: programs/once/src/state.rs:3
3 u64 fn_40148( u64 r1, u64 r2) {
4 u64 local_110;
Evidence why revrsly believes it ×
Function ● Derived
fn_40148
· The binary doesn't name this function. fn_40148 is its offset in .text.
● .text+0x40148 · 269 instructions · 33 blocks
● 2 callers
◇ takes 2 arguments (from register use)
54 r2 = *( u64 *)(r3 + 8 );
56 r0 = fn_740e0( 8 , r2, & Location ( "programs/once/src/state.rs:3:1" )); ■ string · 30 B
61 r4 = *( u64 *)(r7 + 0xe );
62 local_38_u8 = *( u8 *)(r7 + 0x16 );
64 if ((r1 & - 0x20 ) != 0x20 ) {
66 r1 = *( u64 *)(r7 + 0x2e );
67 local_38_u8 = *( u8 *)(r7 + 0x36 );
73 r5 = *( u8 *)(r7 + 0x48 );
91 if ((r2 + - 0x19 ) > 7 ) {
95 local_110 = r7 + 0x37 ;
97 local_f0 = *( u64 *)(r3);
98 local_100 = *( u64 *)(r3 + 8 );
99 local_f8 = *( u64 *)(r3 + 0x10 );
100 r8 = *( u64 *)(r3 + 0x19 );
101 local_108 = *( u8 *)(r3 + 0x18 );
102 local_54 = *( u16 *)(r0 + 4 );
103 local_58_u32 = *( u32 *)(r0);
104 local_21 = *( u8 *)(r2 + 0x10 );
105 local_29 = *( u64 *)(r2 + 8 );
106 local_31 = *( u64 *)(r2);
107 local_1c = *( u16 *)(r7 + 4 );
108 local_20_u32 = *( u32 *)(r7);
110 *( u8 *)(r6 + 0x3f ) = *( u8 *)(r3 + 0x10 );
111 *( u64 *)(r6 + 0x37 ) = *( u64 *)(r3 + 8 );
112 *( u64 *)(r6 + 0x2f ) = *( u64 *)(r3);
113 *( u16 *)(r6 + 0x66 ) = local_8c;
114 *( u32 *)(r6 + 0x62 ) = local_90;
115 *( u64 *)(r6 + 0x71 ) = local_a8;
116 *( u64 *)(r6 + 0x79 ) = local_a0;
117 *( u8 *)(r6 + 0x81 ) = local_98;
118 *( u16 *)(r6 + 0x87 ) = local_5c;
119 *( u32 *)(r6 + 0x83 ) = local_60;
120 *( u64 *)(r6 + 0x92 ) = local_88;
121 *( u64 *)(r6 + 0x9a ) = local_80;
122 *( u8 *)(r6 + 0xa2 ) = local_78;
127 local_40 = local_58_u64;
128 *( u64 *)(r6 + 0x1e ) = local_22;
129 *( u64 *)(r6 + 0x18 ) = local_28;
130 *( u64 *)(r6 + 0x10 ) = local_30;
131 *( u64 *)(r6 + 8 ) = local_38_u64;
132 *( u64 *)(r6) = local_40;
133 *( u8 *)(r6 + 0x91 ) = local_c8;
134 *( u64 *)(r6 + 0x89 ) = local_e0;
135 *( u8 *)(r6 + 0x82 ) = r9;
136 *( u8 *)(r6 + 0x70 ) = local_d0;
137 *( u64 *)(r6 + 0x68 ) = local_d8;
138 *( u8 *)(r6 + 0x61 ) = r5;
139 *( u8 *)(r6 + 0x60 ) = local_108;
140 *( u64 *)(r6 + 0x58 ) = r8;
141 *( u64 *)(r6 + 0x50 ) = local_f8;
142 *( u64 *)(r6 + 0x48 ) = local_100;
143 *( u64 *)(r6 + 0x40 ) = local_f0;
144 *( u64 *)(r6 + 0x27 ) = local_e8;
145 *( u8 *)(r6 + 0x26 ) = r1;
148 r0 = fn_66bf0( 0x7dfb0 ); // &"failed to fill whole buffer"
152 r0 = anchor_error_new (&local_b8, 0xbbb ); // Anchor error 3003 AccountDidNotDeserialize?
156 if ((r1 + - 2 ) >= 2 ) {
158 r2 = *( u64 *)(*( u64 *)(r7 + 7 ));
160 r1 = *( u64 *)(r7 - 1 );
161 r0 = (*( fn *)r2)(r1, r2, r3, r4, r5);
165 *( u64 *)(r6 + 8 ) = r9;
167 *( u8 *)(r6 + 0x82 ) = 2 ;
174 goto L_405d0; ● kept as goto
178 local_40 = 0x7e128 ; // &"Invalid Option representation: "
179 local_30 = &local_10;
181 local_10 = &local_59;
186 r0 = fn_67bd0(r7, &local_40);
187 r0 = fn_57070( 0x15 , r7);
188 goto L_405e8; ● kept as goto
192 local_e0 = *( u64 *)(r8 + 7 );
195 local_38_u8 = *( u8 *)(r8 + 0xf );
196 local_60 = *( u32 *)(r3);
197 local_5c = *( u16 *)(r3 + 4 );
200 local_f8 = *( u8 *)(r8 + 0x20 );
201 r3 = *( u64 *)(r8 + 0x18 );
202 local_100 = *( u64 *)(r8 + 0x10 );
203 local_70_u8 = local_e0;
204 local_88 = local_100;
211 local_c8 = r3 >> 0x38 ;
212 local_e0 = local_70_u64;
214 goto L_40590; ● kept as goto
216 goto L_405d0; ● kept as goto
221 goto L_405d0; ● kept as goto
225 r3 = *( u64 *)(r7 + 0x4f );
227 local_38_u8 = *( u8 *)(r7 + 0x57 );
228 local_90 = *( u32 *)(r8);
229 local_8c = *( u16 *)(r8 + 4 );
233 local_d0 = *( u8 *)(r7 + 0x68 );
234 r9 = *( u64 *)(r7 + 0x60 );
236 r0 = *( u64 *)(r7 + 0x58 );
246 local_d0 = r1 >> 0x38 ;
248 local_d8 = local_70_u64;
249 goto L_40348; ● kept as goto
251 goto L_405d0; ● kept as goto
253 goto L_404c0; ● kept as goto
259 goto L_405d0; ● kept as goto