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
token_ix_close_account ▾
pseudocode.c fn token_ix_close_account · .text+0x55ab0 · 193 ins · 40 blocks · 185 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // token_ix_close_account · 193 instructions · 1 caller · 4 gotos
2 // panic locations in this function: src/instruction.rs:1593, src/instruction.rs:1596, src/instruction.rs:1601
3 u64 token_ix_close_account ( u64 r1, u64 r2, u64
Evidence why revrsly believes it ×
Function ◇ Inferred
token_ix_close_account
◇ Builds an SPL Token instruction: the variant it hands to TokenInstruction::pack.
● .text+0x55ab0 · 193 instructions · 40 blocks
● 1 caller
◇ takes 5 arguments (from register use)
r3,
u64
r4,
u64
r5) {
29 // compares a key with TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb (Token-2022 program)
30 if (*( u64 *)(r2) == - 0x21708a111e0922fa ) {
31 // …part 2 of TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
32 if (*( u64 *)(r2 + 8 ) == - 0x2532931b43a2bde8 ) {
33 // …part 3 of TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
34 if (*( u64 *)(r2 + 0x10 ) == 0x270db9834dfc1ab6 ) {
36 // …part 4 of TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
37 if (*( u64 *)(r2 + 0x18 ) != - 0x3745e27d7064202 ) {
41 r6 = *( u64 *)(r5 - 0xff0 );
42 r8 = *( u64 *)(r5 - 0xff8 );
43 r0 = *( u64 *)(r5 - 0x1000 );
45 // compares a key with TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA (SPL Token program)
46 if (*( u64 *)(r2) == - 0x6c5e9a281e0922fa ) {
47 // …part 2 of TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
48 if (*( u64 *)(r2 + 8 ) == - 0x53861431b91e3427 ) {
49 // …part 3 of TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
50 if (*( u64 *)(r2 + 0x10 ) == - 0x6ec8a4a0127a4be4 ) {
52 // …part 4 of TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
53 if (*( u64 *)(r2 + 0x18 ) != - 0x56ff00817a0a73c6 ) {
58 *( u64 *)(r9) = - 0x8000000000000000 ;
67 r0 = token_instruction_pack (&local_80, 0x7a648 ); // .rodata+0x1248; packs TokenInstruction::CloseAccount (9)
74 r0 = fn_75f88(& Location ( "src/instruction.rs:1593:43" )); ■ string · 26 B
78 r0 = fn_78fd8(&local_90, r7, 0 , 0x22 , 0 );
90 r0 = fn_67b18(local_98, r9, & Location ( "src/instruction.rs:1593:24" )); ■ string · 26 B
99 *( u64 *)(r0 + 0x18 ) = *( u64 *)(r2 + 0x18 );
100 *( u64 *)(r0 + 0x10 ) = *( u64 *)(r2 + 0x10 );
101 *( u64 *)(r0 + 8 ) = *( u64 *)(r2 + 8 );
102 *( u64 *)(r0) = *( u64 *)(r2);
103 *( u16 *)(r0 + 0x20 ) = 0x100 ;
105 *( u64 *)(r0 + 0x22 ) = *( u64 *)(r2);
106 *( u64 *)(r0 + 0x2a ) = *( u64 *)(r2 + 8 );
107 *( u64 *)(r0 + 0x32 ) = *( u64 *)(r2 + 0x10 );
108 *( u64 *)(r0 + 0x3a ) = *( u64 *)(r2 + 0x18 );
109 *( u16 *)(r0 + 0x42 ) = 0x100 ;
112 r0 = fn_5adf8(&local_68, & Location ( "src/instruction.rs:1596:14" )); ■ string · 26 B
116 *( u64 *)(r0 + 0x5c ) = *( u64 *)(r2 + 0x18 );
117 *( u64 *)(r0 + 0x54 ) = *( u64 *)(r2 + 0x10 );
118 *( u64 *)(r0 + 0x4c ) = *( u64 *)(r2 + 8 );
119 *( u64 *)(r0 + 0x44 ) = *( u64 *)(r2);
120 *( u8 *)(r0 + 0x64 ) = r9;
121 *( u8 *)(r0 + 0x65 ) = 0 ;
129 local_38 = *( u64 *)(r1 + 0x18 );
130 local_40 = *( u64 *)(r1 + 0x10 );
131 local_48 = *( u64 *)(r1 + 8 );
132 local_50 = *( u64 *)(r1);
133 if (r7 != local_68) {
137 *( u64 *)(r1 + 0x7e ) = local_38;
138 *( u64 *)(r1 + 0x76 ) = local_40;
139 *( u64 *)(r1 + 0x6e ) = local_48;
140 *( u64 *)(r1 + 0x66 ) = local_50;
141 *( u16 *)(r1 + 0x86 ) = 1 ;
151 r0 = fn_5adf8(&local_68, & Location ( "src/instruction.rs:1601:18" )); ■ string · 26 B
152 goto L_55f28; ● kept as goto
159 r1 = *( u64 *)(r4 + 0x18 );
160 r2 = *( u64 *)(r4 + 0x10 );
161 r3 = *( u64 *)(r4 + 8 );
170 r0 = memcpy (local_c0, &local_50, 0x50 );
174 r0 = fn_67b18(local_98, r9, & Location ( "src/instruction.rs:1593:24" )); ■ string · 26 B
178 goto L_55bf0; ● kept as goto
180 goto L_55c28; ● kept as goto
184 goto L_55b40; ● kept as goto