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 remove_agents_try_accounts · .text+0xab20 · 357 ins · 85 blocks · 637 lines · structured where the control flow allows↓ .c download pseudocode.c 1// remove_agents_try_accounts · 357 instructions · 2 callers · 12 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 remove_agents_try_accounts(u64 r1, u64
r2,
u64
r3,
u64
r4,
u64
r5) {
28 r0 = fn_2a90(&local_78, r2, r3);
33 r2 = *(u64 *)(0x300000000);
43 if (r1 <= 0x300000007) {
44 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
45 r0 = fn_1c780(1, 5, r3);
47 *(u64 *)(0x300000000) = r1;
48 *(u8 *)(r1 + 4) = 0x6e;
49 *(u32 *)(r1) = 0x696d6461;
51 *(u64 *)(r6 + 0x10) = r1;
52 *(u64 *)(r6 + 0x18) = 5;
56 *(u64 *)(r1 + 0x10) = r6;
57 *(u64 *)(r1 + 8) = r8;
63 if (r1 <= 0x300000007) {
64 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
65 r0 = fn_1c780(1, 5, r3);
67 *(u64 *)(0x300000000) = r1;
68 *(u8 *)(r1 + 4) = 0x6e;
69 *(u32 *)(r1) = 0x696d6461;
71 *(u64 *)(r6 + 0x10) = r1;
72 *(u64 *)(r6 + 0x18) = 5;
76 *(u64 *)(r1 + 0x10) = r6;
77 *(u64 *)(r1 + 8) = r8;
86 if (r1 <= 0x300000007) {
87 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
88 r0 = fn_1c780(1, 5, r3);
90 *(u64 *)(0x300000000) = r1;
91 *(u8 *)(r1 + 4) = 0x6e;
92 *(u32 *)(r1) = 0x696d6461;
94 *(u64 *)(r6 + 0x10) = r1;
95 *(u64 *)(r6 + 0x18) = 5;
99 *(u64 *)(r1 + 0x10) = r6;
100 *(u64 *)(r1 + 8) = r8;
107 if (r1 > 0x300000007) {
108 *(u64 *)(0x300000000) = r1;
109 *(u8 *)(r1 + 4) = 0x6e;
110 *(u32 *)(r1) = 0x696d6461;
112 *(u64 *)(r6 + 0x10) = r1;
113 *(u64 *)(r6 + 0x18) = 5;
114 *(u64 *)(r6 + 8) = 5;
117 *(u64 *)(r1 + 0x10) = r6;
118 *(u64 *)(r1 + 8) = 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_acc0;● kept as goto
129 goto L_ac68;● kept as goto
131 local_90 = *(u64 *)(r7 - 0xff8);
133 r0 = fn_2a90(&local_68, r2, r9);
138 r2 = *(u64 *)(0x300000000);
148 if (r1 <= 0x300000007) {
149 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
150 r0 = fn_1c780(1, 5, r3);
152 *(u64 *)(0x300000000) = r1;
153 *(u8 *)(r1 + 4) = 0x72;
154 *(u32 *)(r1) = 0x65796170;
156 *(u64 *)(r7 + 0x10) = r1;
157 *(u64 *)(r7 + 0x18) = 5;
158 *(u64 *)(r7 + 8) = 5;
161 *(u64 *)(r1 + 0x10) = r7;
162 *(u64 *)(r1 + 8) = r8;
168 if (r1 <= 0x300000007) {
169 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
170 r0 = fn_1c780(1, 5, r3);
172 *(u64 *)(0x300000000) = r1;
173 *(u8 *)(r1 + 4) = 0x72;
174 *(u32 *)(r1) = 0x65796170;
176 *(u64 *)(r7 + 0x10) = r1;
177 *(u64 *)(r7 + 0x18) = 5;
178 *(u64 *)(r7 + 8) = 5;
181 *(u64 *)(r1 + 0x10) = r7;
182 *(u64 *)(r1 + 8) = r8;
191 if (r1 <= 0x300000007) {
192 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
193 r0 = fn_1c780(1, 5, r3);
195 *(u64 *)(0x300000000) = r1;
196 *(u8 *)(r1 + 4) = 0x72;
197 *(u32 *)(r1) = 0x65796170;
199 *(u64 *)(r7 + 0x10) = r1;
200 *(u64 *)(r7 + 0x18) = 5;
201 *(u64 *)(r7 + 8) = 5;
204 *(u64 *)(r1 + 0x10) = r7;
205 *(u64 *)(r1 + 8) = r8;
212 if (r1 > 0x300000007) {
213 *(u64 *)(0x300000000) = r1;
214 *(u8 *)(r1 + 4) = 0x72;
215 *(u32 *)(r1) = 0x65796170;
217 *(u64 *)(r7 + 0x10) = r1;
218 *(u64 *)(r7 + 0x18) = 5;
219 *(u64 *)(r7 + 8) = 5;
222 *(u64 *)(r1 + 0x10) = r7;
223 *(u64 *)(r1 + 8) = r8;
227 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
228 r0 = fn_1c780(1, 5, r3);
232 goto L_ae20;● kept as goto
234 goto L_adc8;● kept as goto
236 r1 = *(u64 *)(r9 + 8);
238 *(u64 *)(r9 + 8) = r1 + -1;
240 *(u64 *)(r9) = r8 + 0x30;
243 r0 = fn_2b10(&local_58, r2, r9);
249 r2 = *(u64 *)(0x300000000);
260 if (r1 <= 0x300000007) {
261 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
262 r0 = fn_1c780(1, 0xe, r3);
264 *(u64 *)(0x300000000) = r1;
265 *(u64 *)(r1 + 6) = 0x6d6172676f72705f; // text "_program"
266 *(u64 *)(r1) = 0x705f6d6574737973; // text "system_p"
268 *(u64 *)(r4 + 0x10) = r1;
269 *(u64 *)(r4 + 0x18) = 0xe;
270 *(u64 *)(r4 + 8) = 0xe;
273 *(u64 *)(r1 + 0x10) = r4;
274 *(u64 *)(r1 + 8) = r9;
280 if (r1 <= 0x300000007) {
281 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
282 r0 = fn_1c780(1, 0xe, r3);
284 *(u64 *)(0x300000000) = r1;
285 *(u64 *)(r1 + 6) = 0x6d6172676f72705f; // text "_program"
286 *(u64 *)(r1) = 0x705f6d6574737973; // text "system_p"
288 *(u64 *)(r4 + 0x10) = r1;
289 *(u64 *)(r4 + 0x18) = 0xe;
290 *(u64 *)(r4 + 8) = 0xe;
293 *(u64 *)(r1 + 0x10) = r4;
294 *(u64 *)(r1 + 8) = r9;
305 if (r1 > 0x300000007) {
306 *(u64 *)(0x300000000) = r1;
307 *(u64 *)(r1 + 6) = 0x6d6172676f72705f; // text "_program"
308 *(u64 *)(r1) = 0x705f6d6574737973; // text "system_p"
310 *(u64 *)(r4 + 0x10) = r1;
311 *(u64 *)(r4 + 0x18) = 0xe;
312 *(u64 *)(r4 + 8) = 0xe;
315 *(u64 *)(r1 + 0x10) = r4;
316 *(u64 *)(r1 + 8) = r9;
320 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
321 r0 = fn_1c780(1, 0xe, r3);
325 if (r1 <= 0x300000007) {
326 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
327 r0 = fn_1c780(1, 0xe, r3);
329 *(u64 *)(0x300000000) = r1;
330 *(u64 *)(r1 + 6) = 0x6d6172676f72705f; // text "_program"
331 *(u64 *)(r1) = 0x705f6d6574737973; // text "system_p"
333 *(u64 *)(r4 + 0x10) = r1;
334 *(u64 *)(r4 + 0x18) = 0xe;
335 *(u64 *)(r4 + 8) = 0xe;
338 *(u64 *)(r1 + 0x10) = r4;
339 *(u64 *)(r1 + 8) = r9;
345 goto L_b168;● kept as goto
347 goto L_b0e8;● kept as goto
349 if (*(u8 *)(r6 + 0x29) == 0) {
350 r0 = fn_177a0(0x7d0); // Anchor error 2000 ConstraintMut?
354 r2 = *(u64 *)(0x300000000);
364 if (r1 <= 0x300000007) {
365 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
366 r0 = fn_1c780(1, 5, r3);
368 *(u64 *)(0x300000000) = r1;
369 *(u8 *)(r1 + 4) = 0x6e;
370 *(u32 *)(r1) = 0x696d6461;
372 *(u64 *)(r8 + 0x10) = r1;
373 *(u64 *)(r8 + 0x18) = 5;
374 *(u64 *)(r8 + 8) = 5;
377 *(u64 *)(r1 + 0x10) = r8;
378 *(u64 *)(r1 + 8) = r7;
384 if (r1 <= 0x300000007) {
385 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
386 r0 = fn_1c780(1, 5, r3);
388 *(u64 *)(0x300000000) = r1;
389 *(u8 *)(r1 + 4) = 0x6e;
390 *(u32 *)(r1) = 0x696d6461;
392 *(u64 *)(r8 + 0x10) = r1;
393 *(u64 *)(r8 + 0x18) = 5;
394 *(u64 *)(r8 + 8) = 5;
397 *(u64 *)(r1 + 0x10) = r8;
398 *(u64 *)(r1 + 8) = r7;
408 if (r1 > 0x300000007) {
409 *(u64 *)(0x300000000) = r1;
410 *(u8 *)(r1 + 4) = 0x6e;
411 *(u32 *)(r1) = 0x696d6461;
413 *(u64 *)(r8 + 0x10) = r1;
414 *(u64 *)(r8 + 0x18) = 5;
415 *(u64 *)(r8 + 8) = 5;
418 *(u64 *)(r1 + 0x10) = r8;
419 *(u64 *)(r1 + 8) = r7;
423 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
424 r0 = fn_1c780(1, 5, r3);
428 if (r1 <= 0x300000007) {
429 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
430 r0 = fn_1c780(1, 5, r3);
432 *(u64 *)(0x300000000) = r1;
433 *(u8 *)(r1 + 4) = 0x6e;
434 *(u32 *)(r1) = 0x696d6461;
436 *(u64 *)(r8 + 0x10) = r1;
437 *(u64 *)(r8 + 0x18) = 5;
438 *(u64 *)(r8 + 8) = 5;
441 *(u64 *)(r1 + 0x10) = r8;
442 *(u64 *)(r1 + 8) = r7;
448 goto L_b338;● kept as goto
450 goto L_b2c0;● kept as goto
452 if (*(u8 *)(r7 + 0x29) == 0) {
453 r0 = fn_177a0(0x7d0); // Anchor error 2000 ConstraintMut?
456 r3 = "payer";■ string · 5 B
458 r0 = fn_638(r1, r2, r3, r4);
460 *(u64 *)(r2 + 0x10) = r1;
461 *(u64 *)(r2 + 8) = r0;
467 r0 = sol_try_find_program_address(0x27f58, 1, local_88, &pda, &pda_bump); // &"registry"; find a PDA and its bump■ syscall
469 pda = 0x27aa8; // &"Unable to find a viable program address bump seed"
474 r0 = fn_1d7c0(&pda, &Location("src\\syscalls.rs:279:32"));■ string · 22 B
480 *(u8 *)(local_90) = pda_bump;
482 if (*(u64 *)(r1) == r9) {
483 if (*(u64 *)(r1 + 8) == r3) {
484 if (*(u64 *)(r1 + 0x10) == r4) {
485 if (*(u64 *)(r1 + 0x18) != r5) {
490 r0 = fn_177a0(0x7d6); // Anchor error 2006 ConstraintSeeds?
491 r0 = fn_638(r0, r1, "registry", 8);■ string · 8 B
494 local_30 = *(u64 *)(r1 + 0x18);
495 local_38 = *(u64 *)(r1 + 0x10);
496 local_40 = *(u64 *)(r1 + 8);
502 r0 = fn_15a00(r0, r2, &pda);
504 *(u64 *)(r2 + 0x10) = r1;
505 *(u64 *)(r2 + 8) = r0;
509 if (*(u8 *)(r8 + 0x29) == 0) {
510 r0 = fn_177a0(0x7d0); // Anchor error 2000 ConstraintMut?
513 r3 = "registry";■ string · 8 B
515 r0 = fn_638(r1, r2, r3, r4);
517 *(u64 *)(r2 + 0x10) = r1;
518 *(u64 *)(r2 + 8) = r0;
523 *(u64 *)(r1 + 0x18) = local_98;
524 *(u64 *)(r1 + 0x10) = r8;
525 *(u64 *)(r1 + 8) = r7;
533 goto L_b5e0;● kept as goto
535 r0 = fn_177a0(0xbbd); // Anchor error 3005 AccountNotEnoughKeys?
540 r2 = *(u64 *)(0x300000000);
551 if (r1 <= 0x300000007) {
552 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
553 r0 = fn_1c780(1, 8, r3);
555 *(u64 *)(0x300000000) = r1;
556 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
558 *(u64 *)(r8 + 0x10) = r1;
559 *(u64 *)(r8 + 0x18) = 8;
560 *(u64 *)(r8 + 8) = 8;
563 *(u64 *)(r1 + 0x10) = r8;
564 *(u64 *)(r1 + 8) = r4;
570 if (r1 <= 0x300000007) {
571 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
572 r0 = fn_1c780(1, 8, r3);
574 *(u64 *)(0x300000000) = r1;
575 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
577 *(u64 *)(r8 + 0x10) = r1;
578 *(u64 *)(r8 + 0x18) = 8;
579 *(u64 *)(r8 + 8) = 8;
582 *(u64 *)(r1 + 0x10) = r8;
583 *(u64 *)(r1 + 8) = r4;
594 if (r1 > 0x300000007) {
595 *(u64 *)(0x300000000) = r1;
596 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
598 *(u64 *)(r8 + 0x10) = r1;
599 *(u64 *)(r8 + 0x18) = 8;
600 *(u64 *)(r8 + 8) = 8;
603 *(u64 *)(r1 + 0x10) = r8;
604 *(u64 *)(r1 + 8) = r4;
608 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
609 r0 = fn_1c780(1, 8, r3);
613 if (r1 <= 0x300000007) {
614 r3 = &Location("D:\\a\\platform-tools\\platform-tools\\c\\out\\rust\\library\\alloc\\src\\slice.rs:449:29");■ string · 79 B
615 r0 = fn_1c780(1, 8, r3);
617 *(u64 *)(0x300000000) = r1;
618 *(u64 *)(r1) = 0x7972747369676572; // text "registry"
620 *(u64 *)(r8 + 0x10) = r1;
621 *(u64 *)(r8 + 0x18) = 8;
622 *(u64 *)(r8 + 8) = 8;
625 *(u64 *)(r1 + 0x10) = r8;
626 *(u64 *)(r1 + 8) = r4;
632 goto L_b4d0;● kept as goto
634 goto L_b450;● kept as goto
636 goto L_af00;● kept as goto