nauto_hook
Reconstructed94.1% of control flow structuredAnchor ◇EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6decompiled 13 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v0
- Size
- ■187,512 bytes
- Instructions
- ●17,312
- Functions
- ●243
- SHA-256
- ●a0744a33…055a7f24
- Upgrade authority
- ■EVcs…edDs
- Last deploy slot
- ■455,854,751
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
1// transfer_hook · 186 instructions · 1 caller · 1 goto
2fn transfer_hook(mut r1: u64, mut r2: u64, mut r3: u64, mut r4: u64
,
mut
r5:
u64
) ->
u64
{
3 let mut local_f0: u32 = 0;
4 let mut local_ed: u32 = 0;
5 let mut local_e9: u64 = 0;
6 let mut local_e1: u64 = 0;
7 let mut local_d9: u64 = 0;
8 let mut local_d1: u8 = 0;
9 let mut local_d0: u32 = 0;
10 let mut local_cd: u32 = 0;
11 let mut local_c9: u64 = 0;
12 let mut local_c1: u64 = 0;
13 let mut local_b9: u64 = 0;
14 let mut local_b1: u8 = 0;
15 let mut local_a0_u8: u8 = 0;
16 let mut local_a0_u64: u64 = 0;
17 let mut local_9f: u32 = 0;
18 let mut local_9c: u32 = 0;
19 let mut local_98: u64 = 0;
20 let mut local_90: u64 = 0;
21 let mut local_88_u64: u64 = 0;
22 let mut local_88_u32: u32 = 0;
23 let mut local_80_u8: u8 = 0;
24 let mut local_80_u64: u64 = 0;
25 let mut local_78: u64 = 0;
26 let mut local_70: u64 = 0;
27 let mut local_68: u64 = 0;
28 let mut local_50: u8 = 0;
29 let mut local_8: u32 = 0;
30 r6 = *((r1 + 8) as *const u64);
31 r0 = fn_34e0(&local_a0_u64, *((r6) as *const u64), 1, r4, r5);
35 local_d9 = local_88_u64;
36 local_d1 = local_80_u8;
39 r0 = fn_34e0(&local_a0_u64, *((r6 + 0x10) as *const u64), 0, r4, r5);
43 local_b9 = local_88_u64;
44 local_b1 = local_80_u8;
47 r1 = *((r6 + 0x28) as *const u64);
48 r2 = *((r1 + 0x18) as *const u64);
49 r7 = -0x76f7a25f09ec2a3a; // compares a key with EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
50 if *((r2) as *const u64) == r7 {
51 // …part 2 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
52 if *((r2 + 8) as *const u64) == 0x56bf9e68bfdf42f3 {
53 // …part 3 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
54 if *((r2 + 0x10) as *const u64) == 0x5cce0ce4b7cdc5a2 {
55 // …part 4 of EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6
56 if *((r2 + 0x18) as *const u64) != 0x5100a3ec42d3b862 {
58 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
59 r0 = fn_1130(&local_68, 3);
60 local_98 = 0x24878; // .rodata+0x548
65 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
66 r0 = fn_158b0(&local_a0_u64);
68 r1 = *((*((r6 + 0x28) as *const u64) + 0x18) as *const u64);
69 r3 = *((r1) as *const u64);
70 r4 = *((r1 + 8) as *const u64);
71 r5 = *((r1 + 0x10) as *const u64);
72 r1 = *((r1 + 0x18) as *const u64);
74 local_78 = 0x56bf9e68bfdf42f3;
75 local_70 = 0x5cce0ce4b7cdc5a2;
76 local_68 = 0x5100a3ec42d3b862;
81 r0 = fn_15a00(r0, r2, &local_a0_u64);
83 r7 = *((r1 + 0x10) as *const u64);
84 r1 = *((r7 + 0x10) as *const u64);
85 if r1 >= 0x7fffffffffffffff {
86 r0 = fn_15938(0xb, 0);
88 *((r7 + 0x10) as *mut u64) = r1 + 1;
89 r2 = *((r7 + 0x20) as *const u64);
91 r1 = *((r7 + 0x18) as *const u64);
93 if *((r1) as *const u64) != 0x4745524f5455414e {
94 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
95 r0 = fn_1130(&local_68, 3);
96 local_98 = 0x24878; // .rodata+0x548
101 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
102 r0 = fn_158b0(&local_a0_u64);
103 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
105 if *((r1 + 0x28) as *const u8) != 1 {
106 r6 = *((r1 + 0x2c) as *const u32);
107 r0 = fn_2fd0(r1, r2, r6, &local_f0);
109 r0 = fn_e068(&local_80_u64, 0x2484c); // .rodata+0x51c
110 r0 = fn_1130(&local_68, 5);
111 local_98 = 0x24878; // .rodata+0x548
116 local_8 = 0x1775; // custom Anchor error 6005 (#5)?
117 r0 = fn_158b0(&local_a0_u64);
118 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
121 r0 = fn_2fd0(*((r7 + 0x18) as *const u64), *((r7 + 0x20) as *const u64), r6, &local_d0);
123 r0 = fn_e068(&local_80_u64, 0x2484c); // .rodata+0x51c
124 r0 = fn_1130(&local_68, 5);
125 local_98 = 0x24878; // .rodata+0x548
130 local_8 = 0x1775; // custom Anchor error 6005 (#5)?
131 r0 = fn_158b0(&local_a0_u64);
132 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
135 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
141 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
147 r0 = fn_e068(&local_80_u64, 0x2485c); // .rodata+0x52c
148 r0 = fn_1130(&local_68, 3);
149 local_98 = 0x24878; // .rodata+0x548
154 local_8 = 0x1773; // custom Anchor error 6003 (#3)?
155 r0 = fn_158b0(&local_a0_u64);
156 *((r7 + 0x10) as *mut u64) = *((r7 + 0x10) as *const u64) + -1;
164 /* continues at L_9130; not expressible as structured Rust */● an edge Rust can't hold