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…
pseudocode.cfn set_open_try_accounts · .text+0xb798 · 227 ins · 52 blocks · 355 lines · structured where the control flow allows↓ .c download pseudocode.c 1// set_open_try_accounts · 227 instructions · 2 callers · 8 gotos
2// panic locations in this function: src\syscalls.rs:279, D:\a\platform-tools\platform-tools\c\out\rust\library\alloc\src\slice.rs:449
3u64 set_open_try_accounts(u64 r1, u64 r2,
u64
r3,
u64
r4,
u64
r5) {
24 r0 = fn_2a90(&local_58, r2, r3);
29 r2 = *(u64 *)(0x300000000);
40 if (r1 <= 0x300000007) {
41 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
42 r0 = fn_1c780(1, 5, r3);
44 *(u64 *)(0x300000000) = r1;
45 *(u8 *)(r1 + 4) = 0x6e;
46 *(u32 *)(r1) = 0x696d6461;
48 *(u64 *)(r8 + 0x10) = r1;
49 *(u64 *)(r8 + 0x18) = 5;
53 *(u64 *)(r2 + 8) = r9;
56 *(u64 *)(r2 + 0x10) = r8;
60 if (r1 <= 0x300000007) {
61 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
62 r0 = fn_1c780(1, 5, r3);
64 *(u64 *)(0x300000000) = r1;
65 *(u8 *)(r1 + 4) = 0x6e;
66 *(u32 *)(r1) = 0x696d6461;
68 *(u64 *)(r8 + 0x10) = r1;
69 *(u64 *)(r8 + 0x18) = 5;
73 *(u64 *)(r2 + 8) = r9;
76 *(u64 *)(r2 + 0x10) = r8;
84 if (r1 <= 0x300000007) {
85 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
86 r0 = fn_1c780(1, 5, r3);
88 *(u64 *)(0x300000000) = r1;
89 *(u8 *)(r1 + 4) = 0x6e;
90 *(u32 *)(r1) = 0x696d6461;
92 *(u64 *)(r8 + 0x10) = r1;
93 *(u64 *)(r8 + 0x18) = 5;
97 *(u64 *)(r2 + 8) = r9;
100 *(u64 *)(r2 + 0x10) = r8;
106 if (r1 > 0x300000007) {
107 *(u64 *)(0x300000000) = r1;
108 *(u8 *)(r1 + 4) = 0x6e;
109 *(u32 *)(r1) = 0x696d6461;
111 *(u64 *)(r8 + 0x10) = r1;
112 *(u64 *)(r8 + 0x18) = 5;
113 *(u64 *)(r8 + 8) = 5;
116 *(u64 *)(r2 + 8) = r9;
119 *(u64 *)(r2 + 0x10) = r8;
122 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
123 r0 = fn_1c780(1, 5, r3);
127 goto L_b950;● kept as goto
129 goto L_b890;● kept as goto
131 r9 = *(u64 *)(r6 - 0xff8);
132 r1 = *(u64 *)(r7 + 8);
134 *(u64 *)(r7 + 8) = r1 + -1;
137 *(u64 *)(r7) = r1 + 0x30;
140 r0 = sol_try_find_program_address(0x27f58, 1, local_68, &pda, &pda_bump); // &"registry"; find a PDA and its bump■ syscall
142 pda = 0x27aa8; // &"Unable to find a viable program address bump seed"
147 r0 = fn_1d7c0(&pda, &Location("src\\syscalls.rs:279:32"));■ string · 22 B
153 *(u8 *)(r9) = pda_bump;
155 if (*(u64 *)(r1) == r0) {
156 if (*(u64 *)(r1 + 8) == r3) {
157 if (*(u64 *)(r1 + 0x10) == r4) {
158 if (*(u64 *)(r1 + 0x18) == r5) {
159 if (*(u8 *)(r6 + 0x29) == 0) {
160 r0 = fn_177a0(0x7d0); // Anchor error 2000 ConstraintMut?
161 r0 = fn_638(r0, r1, "registry", 8);■ string · 8 B
164 *(u64 *)(r2 + 8) = r0;
168 *(u64 *)(r2 + 8) = r8;
173 *(u64 *)(r2 + 0x10) = r8;
183 r0 = fn_177a0(0x7d6); // Anchor error 2006 ConstraintSeeds?
187 r2 = *(u64 *)(0x300000000);
204 goto L_bb98;● kept as goto
210 goto L_bce0;● kept as goto
212 goto L_bb80;● kept as goto
218 if (r0 <= 0x300000007) {
219 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
220 r0 = fn_1c780(1, 8, r3);
222 *(u64 *)(0x300000000) = r0;
223 *(u64 *)(r0) = 0x7972747369676572; // text "registry"
225 *(u64 *)(r8 + 0x10) = r0;
226 *(u64 *)(r8 + 0x18) = 8;
227 *(u64 *)(r8 + 8) = 8;
230 local_30 = *(u64 *)(r0 + 0x18);
231 local_38 = *(u64 *)(r0 + 0x10);
232 local_40 = *(u64 *)(r0 + 8);
238 r0 = fn_15a00(r7, r8, &pda);
241 *(u64 *)(r2 + 8) = r0;
244 *(u64 *)(r2 + 0x10) = r8;
247 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
252 r2 = *(u64 *)(0x300000000);
263 if (r1 <= 0x300000007) {
264 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
265 r0 = fn_1c780(1, 8, r3);
267 *(u64 *)(0x300000000) = r1;
268 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
270 *(u64 *)(r6 + 0x10) = r1;
271 *(u64 *)(r6 + 0x18) = 8;
272 *(u64 *)(r6 + 8) = 8;
275 *(u64 *)(r2 + 8) = r7;
279 *(u64 *)(r2 + 0x10) = r8;
283 if (r1 <= 0x300000007) {
284 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
285 r0 = fn_1c780(1, 8, r3);
287 *(u64 *)(0x300000000) = r1;
288 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
290 *(u64 *)(r6 + 0x10) = r1;
291 *(u64 *)(r6 + 0x18) = 8;
292 *(u64 *)(r6 + 8) = 8;
295 *(u64 *)(r2 + 8) = r7;
299 *(u64 *)(r2 + 0x10) = r8;
307 if (r1 <= 0x300000007) {
308 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
309 r0 = fn_1c780(1, 8, r3);
311 *(u64 *)(0x300000000) = r1;
312 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
314 *(u64 *)(r6 + 0x10) = r1;
315 *(u64 *)(r6 + 0x18) = 8;
316 *(u64 *)(r6 + 8) = 8;
319 *(u64 *)(r2 + 8) = r7;
323 *(u64 *)(r2 + 0x10) = r8;
329 if (r1 > 0x300000007) {
330 *(u64 *)(0x300000000) = r1;
331 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
333 *(u64 *)(r6 + 0x10) = r1;
334 *(u64 *)(r6 + 0x18) = 8;
335 *(u64 *)(r6 + 8) = 8;
338 *(u64 *)(r2 + 8) = r7;
342 *(u64 *)(r2 + 0x10) = r8;
345 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
346 r0 = fn_1c780(1, 8, r3);
350 goto L_bea0;● kept as goto
352 goto L_bdc0;● kept as goto
354 goto L_b9f0;● kept as goto