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 transfer_hook_try_accounts · .text+0xd048 · 468 ins · 101 blocks · 728 lines · structured where the control flow allows↓ .c download pseudocode.c 1// transfer_hook_try_accounts · 468 instructions · 1 caller · 19 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 transfer_hook_try_accounts(u64 r1, u64
r2,
u64
r3,
u64
r4,
u64
r5) {
29 r8 = *(u64 *)(r5 - 0xff8);
30 r1 = *(u64 *)(r3 + 8);
33 *(u64 *)(r3) = r7 + 0x30;
35 *(u64 *)(r3 + 8) = r2;
39 *(u64 *)(r3) = r8 + 0x30;
41 *(u64 *)(r3 + 8) = r2;
45 *(u64 *)(r3) = r9 + 0x30;
47 *(u64 *)(r3 + 8) = r2;
50 *(u64 *)(r3) = r4 + 0x30;
52 *(u64 *)(r3 + 8) = r2;
57 *(u64 *)(r3) = r2 + 0x30;
59 *(u64 *)(r3 + 8) = r2;
61 *(u64 *)(r3 + 8) = r1 + -6;
64 *(u64 *)(r3) = r1 + 0x30;
67 local_50 = *(u64 *)(r1 + 0x18);
68 local_58 = *(u64 *)(r1 + 0x10);
69 local_60 = *(u64 *)(r1 + 8);
70 pda_bump_2 = *(u64 *)(r1);
71 local_78 = &pda_bump_2;
72 local_88 = 0x24965; // .rodata+0x635
76 r0 = sol_try_find_program_address(&local_88, 2, local_90, &pda, &pda_bump); // find a PDA and its bump■ syscall
82 *(u8 *)(local_a0) = pda_bump;
83 r1 = *(u64 *)(local_a8);
84 if (*(u64 *)(r1) == r6) {
85 if (*(u64 *)(r1 + 8) == r3) {
86 if (*(u64 *)(r1 + 0x10) == r4) {
87 if (*(u64 *)(r1 + 0x18) != r5) {
92 r0 = fn_177a0(0x7d6); // Anchor error 2006 ConstraintSeeds?
93 r0 = fn_638(r0, r1, "extra_account_meta_list", 0x17);■ string · 23 B
95 r1 = *(u64 *)(local_a8);
96 local_30 = *(u64 *)(r1 + 0x18);
97 local_38 = *(u64 *)(r1 + 0x10);
98 local_40 = *(u64 *)(r1 + 8);
104 r0 = fn_15a00(r0, r2, &pda);
106 *(u64 *)(r2 + 0x10) = r1;
107 *(u64 *)(r2 + 8) = r0;
112 r0 = sol_try_find_program_address(0x27f58, 1, local_90, &pda, &pda_bump_2); // &"registry"; find a PDA and its bump■ syscall
114 pda = 0x27aa8; // &"Unable to find a viable program address bump seed"
119 r0 = fn_1d7c0(&pda, &Location("src\\syscalls.rs:279:32"));■ string · 22 B
125 *(u8 *)(local_a0 + 1) = pda_bump_2;
128 if (*(u64 *)(r1) == r6) {
129 if (*(u64 *)(r1 + 8) == r4) {
130 if (*(u64 *)(r1 + 0x10) == r5) {
131 if (*(u64 *)(r1 + 0x18) != r0) {
137 r0 = fn_177a0(0x7d6); // Anchor error 2006 ConstraintSeeds?
138 r0 = fn_638(r0, r1, "registry", 8);■ string · 8 B
141 local_30 = *(u64 *)(r1 + 0x18);
142 local_38 = *(u64 *)(r1 + 0x10);
143 local_40 = *(u64 *)(r1 + 8);
149 r0 = fn_15a00(r0, r2, &pda);
151 *(u64 *)(r2 + 0x10) = r1;
152 *(u64 *)(r2 + 8) = r0;
157 *(u64 *)(r1 + 0x28) = r3;
158 *(u64 *)(r1 + 0x20) = local_a8;
159 *(u64 *)(r1 + 0x18) = local_b0;
160 *(u64 *)(r1 + 0x10) = r9;
161 *(u64 *)(r1 + 8) = r8;
168 goto L_dee8;● kept as goto
172 goto L_dd88;● kept as goto
174 pda = 0x27aa8; // &"Unable to find a viable program address bump seed"
179 r0 = fn_1d7c0(&pda, &Location("src\\syscalls.rs:279:32"));■ string · 22 B
182 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
186 goto L_daf0;● kept as goto
188 r0 = fn_638(r0, r2, "registry", 8);■ string · 8 B
191 goto L_daf0;● kept as goto
194 *(u64 *)(r2 + 0x10) = r1;
195 *(u64 *)(r2 + 8) = r0;
200 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
205 r2 = *(u64 *)(0x300000000);
217 if (r1 <= 0x300000007) {
218 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
219 r0 = fn_1c780(1, 0x17, r3);
221 *(u64 *)(0x300000000) = r1;
222 *(u64 *)(r1 + 0xf) = 0x7473696c5f617465; // text "eta_list"
223 *(u64 *)(r1 + 8) = 0x656d5f746e756f63; // text "count_me"
224 *(u64 *)(r1) = 0x63615f6172747865; // text "extra_ac"
225 r2 = *(u64 *)(local_a8);
227 *(u64 *)(r2 + 0x10) = r1;
228 *(u64 *)(r2 + 0x18) = 0x17;
229 *(u64 *)(r2 + 8) = 0x17;
231 *(u64 *)(r5 + 0x10) = r2;
232 *(u64 *)(r5 + 8) = r6;
237 if (r1 <= 0x300000007) {
238 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
239 r0 = fn_1c780(1, 0x17, r3);
241 *(u64 *)(0x300000000) = r1;
242 *(u64 *)(r1 + 0xf) = 0x7473696c5f617465; // text "eta_list"
243 *(u64 *)(r1 + 8) = 0x656d5f746e756f63; // text "count_me"
244 *(u64 *)(r1) = 0x63615f6172747865; // text "extra_ac"
245 r2 = *(u64 *)(local_a8);
247 *(u64 *)(r2 + 0x10) = r1;
248 *(u64 *)(r2 + 0x18) = 0x17;
249 *(u64 *)(r2 + 8) = 0x17;
251 *(u64 *)(r5 + 0x10) = r2;
252 *(u64 *)(r5 + 8) = r6;
261 if (r1 <= 0x300000007) {
262 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
263 r0 = fn_1c780(1, 0x17, r3);
265 *(u64 *)(0x300000000) = r1;
266 *(u64 *)(r1 + 0xf) = 0x7473696c5f617465; // text "eta_list"
267 *(u64 *)(r1 + 8) = 0x656d5f746e756f63; // text "count_me"
268 *(u64 *)(r1) = 0x63615f6172747865; // text "extra_ac"
269 r2 = *(u64 *)(local_a8);
271 *(u64 *)(r2 + 0x10) = r1;
272 *(u64 *)(r2 + 0x18) = 0x17;
273 *(u64 *)(r2 + 8) = 0x17;
275 *(u64 *)(r5 + 0x10) = r2;
276 *(u64 *)(r5 + 8) = r6;
283 if (r1 > 0x300000007) {
284 *(u64 *)(0x300000000) = r1;
285 *(u64 *)(r1 + 0xf) = 0x7473696c5f617465; // text "eta_list"
286 *(u64 *)(r1 + 8) = 0x656d5f746e756f63; // text "count_me"
287 *(u64 *)(r1) = 0x63615f6172747865; // text "extra_ac"
288 r2 = *(u64 *)(local_a8);
290 *(u64 *)(r2 + 0x10) = r1;
291 *(u64 *)(r2 + 0x18) = 0x17;
292 *(u64 *)(r2 + 8) = 0x17;
294 *(u64 *)(r5 + 0x10) = r2;
295 *(u64 *)(r5 + 8) = r6;
299 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
300 r0 = fn_1c780(1, 0x17, r3);
305 goto L_de70;● kept as goto
307 goto L_d818;● kept as goto
309 goto L_d2d8;● kept as goto
312 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
317 r2 = *(u64 *)(0x300000000);
330 if (r1 <= 0x300000007) {
331 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
332 r0 = fn_1c780(1, 5, r3);
334 *(u64 *)(0x300000000) = r1;
335 *(u8 *)(r1 + 4) = 0x72;
336 *(u32 *)(r1) = 0x656e776f;
338 *(u64 *)(r4 + 0x10) = r1;
339 *(u64 *)(r4 + 0x18) = 5;
340 *(u64 *)(r4 + 8) = 5;
342 *(u64 *)(r5 + 0x10) = r4;
343 *(u64 *)(r5 + 8) = r6;
348 if (r1 <= 0x300000007) {
349 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
350 r0 = fn_1c780(1, 5, r3);
352 *(u64 *)(0x300000000) = r1;
353 *(u8 *)(r1 + 4) = 0x72;
354 *(u32 *)(r1) = 0x656e776f;
356 *(u64 *)(r4 + 0x10) = r1;
357 *(u64 *)(r4 + 0x18) = 5;
358 *(u64 *)(r4 + 8) = 5;
360 *(u64 *)(r5 + 0x10) = r4;
361 *(u64 *)(r5 + 8) = r6;
371 if (r1 <= 0x300000007) {
372 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
373 r0 = fn_1c780(1, 5, r3);
375 *(u64 *)(0x300000000) = r1;
376 *(u8 *)(r1 + 4) = 0x72;
377 *(u32 *)(r1) = 0x656e776f;
379 *(u64 *)(r4 + 0x10) = r1;
380 *(u64 *)(r4 + 0x18) = 5;
381 *(u64 *)(r4 + 8) = 5;
383 *(u64 *)(r5 + 0x10) = r4;
384 *(u64 *)(r5 + 8) = r6;
391 if (r1 > 0x300000007) {
392 *(u64 *)(0x300000000) = r1;
393 *(u8 *)(r1 + 4) = 0x72;
394 *(u32 *)(r1) = 0x656e776f;
396 *(u64 *)(r4 + 0x10) = r1;
397 *(u64 *)(r4 + 0x18) = 5;
398 *(u64 *)(r4 + 8) = 5;
400 *(u64 *)(r5 + 0x10) = r4;
401 *(u64 *)(r5 + 8) = r6;
405 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
406 r0 = fn_1c780(1, 5, r3);
411 goto L_da38;● kept as goto
413 goto L_d690;● kept as goto
416 goto L_d2b0;● kept as goto
419 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
424 r2 = *(u64 *)(0x300000000);
435 if (r1 <= 0x300000007) {
436 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
437 r0 = fn_1c780(1, 0x11, r3);
439 *(u64 *)(0x300000000) = r1;
440 *(u64 *)(r1 + 8) = 0x656b6f745f6e6f69; // text "ion_toke"
441 *(u64 *)(r1) = 0x74616e6974736564; // text "destinat"
442 *(u8 *)(r1 + 0x10) = 0x6e;
444 *(u64 *)(r9 + 0x10) = r1;
445 *(u64 *)(r9 + 0x18) = 0x11;
446 *(u64 *)(r9 + 8) = 0x11;
449 *(u64 *)(r1 + 0x10) = r9;
450 *(u64 *)(r1 + 8) = r6;
455 if (r1 <= 0x300000007) {
456 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
457 r0 = fn_1c780(1, 0x11, r3);
459 *(u64 *)(0x300000000) = r1;
460 *(u64 *)(r1 + 8) = 0x656b6f745f6e6f69; // text "ion_toke"
461 *(u64 *)(r1) = 0x74616e6974736564; // text "destinat"
462 *(u8 *)(r1 + 0x10) = 0x6e;
464 *(u64 *)(r9 + 0x10) = r1;
465 *(u64 *)(r9 + 0x18) = 0x11;
466 *(u64 *)(r9 + 8) = 0x11;
469 *(u64 *)(r1 + 0x10) = r9;
470 *(u64 *)(r1 + 8) = r6;
479 if (r1 <= 0x300000007) {
480 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
481 r0 = fn_1c780(1, 0x11, r3);
483 *(u64 *)(0x300000000) = r1;
484 *(u64 *)(r1 + 8) = 0x656b6f745f6e6f69; // text "ion_toke"
485 *(u64 *)(r1) = 0x74616e6974736564; // text "destinat"
486 *(u8 *)(r1 + 0x10) = 0x6e;
488 *(u64 *)(r9 + 0x10) = r1;
489 *(u64 *)(r9 + 0x18) = 0x11;
490 *(u64 *)(r9 + 8) = 0x11;
493 *(u64 *)(r1 + 0x10) = r9;
494 *(u64 *)(r1 + 8) = r6;
501 if (r1 > 0x300000007) {
502 *(u64 *)(0x300000000) = r1;
503 *(u64 *)(r1 + 8) = 0x656b6f745f6e6f69; // text "ion_toke"
504 *(u64 *)(r1) = 0x74616e6974736564; // text "destinat"
505 *(u8 *)(r1 + 0x10) = 0x6e;
507 *(u64 *)(r9 + 0x10) = r1;
508 *(u64 *)(r9 + 0x18) = 0x11;
509 *(u64 *)(r9 + 8) = 0x11;
512 *(u64 *)(r1 + 0x10) = r9;
513 *(u64 *)(r1 + 8) = r6;
517 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
518 r0 = fn_1c780(1, 0x11, r3);
522 goto L_d9a8;● kept as goto
524 goto L_d550;● kept as goto
526 goto L_d288;● kept as goto
529 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
534 r2 = *(u64 *)(0x300000000);
545 if (r1 <= 0x300000007) {
546 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
547 r0 = fn_1c780(1, 4, r3);
549 *(u64 *)(0x300000000) = r1;
550 *(u32 *)(r1) = 0x746e696d;
552 *(u64 *)(r8 + 0x10) = r1;
553 *(u64 *)(r8 + 0x18) = 4;
554 *(u64 *)(r8 + 8) = 4;
556 *(u64 *)(r9 + 0x10) = r8;
557 *(u64 *)(r9 + 8) = r6;
562 if (r1 <= 0x300000007) {
563 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
564 r0 = fn_1c780(1, 4, r3);
566 *(u64 *)(0x300000000) = r1;
567 *(u32 *)(r1) = 0x746e696d;
569 *(u64 *)(r8 + 0x10) = r1;
570 *(u64 *)(r8 + 0x18) = 4;
571 *(u64 *)(r8 + 8) = 4;
573 *(u64 *)(r9 + 0x10) = r8;
574 *(u64 *)(r9 + 8) = r6;
583 if (r1 <= 0x300000007) {
584 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
585 r0 = fn_1c780(1, 4, r3);
587 *(u64 *)(0x300000000) = r1;
588 *(u32 *)(r1) = 0x746e696d;
590 *(u64 *)(r8 + 0x10) = r1;
591 *(u64 *)(r8 + 0x18) = 4;
592 *(u64 *)(r8 + 8) = 4;
594 *(u64 *)(r9 + 0x10) = r8;
595 *(u64 *)(r9 + 8) = r6;
602 if (r1 > 0x300000007) {
603 *(u64 *)(0x300000000) = r1;
604 *(u32 *)(r1) = 0x746e696d;
606 *(u64 *)(r8 + 0x10) = r1;
607 *(u64 *)(r8 + 0x18) = 4;
608 *(u64 *)(r8 + 8) = 4;
610 *(u64 *)(r9 + 0x10) = r8;
611 *(u64 *)(r9 + 8) = r6;
615 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
616 r0 = fn_1c780(1, 4, r3);
620 goto L_d748;● kept as goto
622 goto L_d358;● kept as goto
625 goto L_d260;● kept as goto
627 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
632 r2 = *(u64 *)(0x300000000);
643 if (r1 <= 0x300000007) {
644 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
645 r0 = fn_1c780(1, 0xc, r3);
647 *(u64 *)(0x300000000) = r1;
648 *(u64 *)(r1) = 0x745f656372756f73; // text "source_t"
649 *(u32 *)(r1 + 8) = 0x6e656b6f;
651 *(u64 *)(r7 + 0x10) = r1;
652 *(u64 *)(r7 + 0x18) = 0xc;
653 *(u64 *)(r7 + 8) = 0xc;
655 *(u64 *)(r9 + 0x10) = r7;
656 *(u64 *)(r9 + 8) = r6;
661 if (r1 <= 0x300000007) {
662 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
663 r0 = fn_1c780(1, 0xc, r3);
665 *(u64 *)(0x300000000) = r1;
666 *(u64 *)(r1) = 0x745f656372756f73; // text "source_t"
667 *(u32 *)(r1 + 8) = 0x6e656b6f;
669 *(u64 *)(r7 + 0x10) = r1;
670 *(u64 *)(r7 + 0x18) = 0xc;
671 *(u64 *)(r7 + 8) = 0xc;
673 *(u64 *)(r9 + 0x10) = r7;
674 *(u64 *)(r9 + 8) = r6;
683 if (r1 <= 0x300000007) {
684 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
685 r0 = fn_1c780(1, 0xc, r3);
687 *(u64 *)(0x300000000) = r1;
688 *(u64 *)(r1) = 0x745f656372756f73; // text "source_t"
689 *(u32 *)(r1 + 8) = 0x6e656b6f;
691 *(u64 *)(r7 + 0x10) = r1;
692 *(u64 *)(r7 + 0x18) = 0xc;
693 *(u64 *)(r7 + 8) = 0xc;
695 *(u64 *)(r9 + 0x10) = r7;
696 *(u64 *)(r9 + 8) = r6;
703 if (r1 > 0x300000007) {
704 *(u64 *)(0x300000000) = r1;
705 *(u64 *)(r1) = 0x745f656372756f73; // text "source_t"
706 *(u32 *)(r1 + 8) = 0x6e656b6f;
708 *(u64 *)(r7 + 0x10) = r1;
709 *(u64 *)(r7 + 0x18) = 0xc;
710 *(u64 *)(r7 + 8) = 0xc;
712 *(u64 *)(r9 + 0x10) = r7;
713 *(u64 *)(r9 + 8) = r6;
717 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
718 r0 = fn_1c780(1, 0xc, r3);
722 goto L_d920;● kept as goto
724 goto L_d440;● kept as goto
727 goto L_d230;● kept as goto