pvp
Reconstructed91.4% of control flow structuredAnchor ◇A8eZ1qbbSJvw9UiBKY76PtCJNM9P18SbtTBWDCDYTzX3decompiled 13 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v3
- Size
- ■1,069,976 bytes
- Instructions
- ●119,369
- Functions
- ●746
- SHA-256
- ●a3d96e72…8288d17d
- Upgrade authority
- ■BmeF…7ZYs
- Last deploy slot
- ■456,472,960
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
pvp · revrslypseudocode.cfn set_vote_rules_try_accounts · .text+0x862e8 · 329 ins · 72 blocks · 513 lines · structured where the control flow allows↓ .c download pseudocode.c 1// set_vote_rules_try_accounts · 329 instructions · 6 callers · 14 gotos
2u64 set_vote_rules_try_accounts(u64 r1, u64 r2, u64 r3) {
3 u8
local_ff0_u8;
58 r0 = fn_b30a0(&local_eb0, r2, r3);
63 r2 = *(u64 *)(0x300000000);
76 r0 = fn_e2de8(1, 5, r3, r4, r5);
78 *(u64 *)(0x300000000) = r1;
79 *(u8 *)(r1 + 4) = 0x6e;
80 *(u32 *)(r1) = 0x696d6461;
81 *(u64 *)(r9 + 0x10) = r1;
82 *(u64 *)(r9 + 0x18) = 5;
86 *(u64 *)(r1 + 0x10) = r9;
87 *(u64 *)(r1 + 8) = r6;
92 r0 = fn_e2de8(1, 5, r3, r4, r5);
94 *(u64 *)(0x300000000) = r1;
95 *(u8 *)(r1 + 4) = 0x6e;
96 *(u32 *)(r1) = 0x696d6461;
97 *(u64 *)(r9 + 0x10) = r1;
98 *(u64 *)(r9 + 0x18) = 5;
102 *(u64 *)(r1 + 0x10) = r9;
103 *(u64 *)(r1 + 8) = r6;
112 *(u64 *)(0x300000000) = r1;
113 *(u8 *)(r1 + 4) = 0x6e;
114 *(u32 *)(r1) = 0x696d6461;
115 *(u64 *)(r9 + 0x10) = r1;
116 *(u64 *)(r9 + 0x18) = 5;
117 *(u64 *)(r9 + 8) = 5;
120 *(u64 *)(r1 + 0x10) = r9;
121 *(u64 *)(r1 + 8) = r6;
125 r0 = fn_e2de8(1, 5, r3, r4, r5);
129 r0 = fn_e2de8(1, 5, r3, r4, r5);
131 *(u64 *)(0x300000000) = r1;
132 *(u8 *)(r1 + 4) = 0x6e;
133 *(u32 *)(r1) = 0x696d6461;
134 *(u64 *)(r9 + 0x10) = r1;
135 *(u64 *)(r9 + 0x18) = 5;
136 *(u64 *)(r9 + 8) = 5;
139 *(u64 *)(r1 + 0x10) = r9;
140 *(u64 *)(r1 + 8) = r6;
149 goto L_86570;● kept as goto
151 goto L_86620;● kept as goto
155 goto L_86600;● kept as goto
157 goto L_86558;● kept as goto
159 r0 = fn_8eae8(&local_f70, r2, r8);
160 local_e98 = local_f60;
165 r2 = *(u64 *)(0x300000000);
182 if (r1 <= 0x300000007) {
183 r0 = fn_e2de8(1, 6, r3, r4, r5);
185 *(u64 *)(0x300000000) = r1;
186 *(u16 *)(r1 + 4) = 0x6769;
187 *(u32 *)(r1) = 0x666e6f63;
189 *(u64 *)(r2 + 0x10) = r1;
190 *(u64 *)(r2 + 0x18) = 6;
191 *(u64 *)(r2 + 8) = 6;
194 *(u64 *)(r1 + 0x10) = r2;
195 *(u64 *)(r1 + 8) = r6;
204 goto L_86768;● kept as goto
206 goto L_866b0;● kept as goto
209 if (r1 <= 0x300000007) {
210 r0 = fn_e2de8(1, 6, r3, r4, r5);
212 *(u64 *)(0x300000000) = r1;
213 *(u16 *)(r1 + 4) = 0x6769;
214 *(u32 *)(r1) = 0x666e6f63;
216 *(u64 *)(r2 + 0x10) = r1;
217 *(u64 *)(r2 + 0x18) = 6;
218 *(u64 *)(r2 + 8) = 6;
221 *(u64 *)(r1 + 0x10) = r2;
222 *(u64 *)(r1 + 8) = r6;
226 local_e70 = local_eb1;
227 local_e88 = local_f50;
228 local_e90 = local_f58;
230 local_f98 = &local_fa9;
231 local_fa8 = 0xc78; // .rodata+0xc78
236 r0 = fn_e0eb0(&local_ff0_u64, &local_fa8, 2, r7);
237 if (local_ff0_u8 == 1) {
238 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
242 r2 = *(u64 *)(0x300000000);
251 if (r1 <= 0x300000007) {
252 r0 = fn_e2de8(1, 6, r3, r4, r5);
254 *(u64 *)(0x300000000) = r1;
255 *(u16 *)(r1 + 4) = 0x6769;
256 *(u32 *)(r1) = 0x666e6f63;
257 *(u64 *)(r8 + 0x10) = r1;
258 *(u64 *)(r8 + 0x18) = 6;
259 *(u64 *)(r8 + 8) = 6;
262 *(u64 *)(r1 + 0x10) = r8;
263 *(u64 *)(r1 + 8) = r7;
268 if (r1 <= 0x300000007) {
269 r0 = fn_e2de8(1, 6, r3, r4, r5);
271 *(u64 *)(0x300000000) = r1;
272 *(u16 *)(r1 + 4) = 0x6769;
273 *(u32 *)(r1) = 0x666e6f63;
274 *(u64 *)(r8 + 0x10) = r1;
275 *(u64 *)(r8 + 0x18) = 6;
276 *(u64 *)(r8 + 8) = 6;
279 *(u64 *)(r1 + 0x10) = r8;
280 *(u64 *)(r1 + 8) = r7;
288 if (r1 <= 0x300000007) {
289 r0 = fn_e2de8(1, 6, r3, r4, r5);
291 *(u64 *)(0x300000000) = r1;
292 *(u16 *)(r1 + 4) = 0x6769;
293 *(u32 *)(r1) = 0x666e6f63;
294 *(u64 *)(r8 + 0x10) = r1;
295 *(u64 *)(r8 + 0x18) = 6;
296 *(u64 *)(r8 + 8) = 6;
299 *(u64 *)(r1 + 0x10) = r8;
300 *(u64 *)(r1 + 8) = r7;
306 if (r1 > 0x300000007) {
307 *(u64 *)(0x300000000) = r1;
308 *(u16 *)(r1 + 4) = 0x6769;
309 *(u32 *)(r1) = 0x666e6f63;
310 *(u64 *)(r8 + 0x10) = r1;
311 *(u64 *)(r8 + 0x18) = 6;
312 *(u64 *)(r8 + 8) = 6;
315 *(u64 *)(r1 + 0x10) = r8;
316 *(u64 *)(r1 + 8) = r7;
320 r0 = fn_e2de8(1, 6, r3, r4, r5);
325 goto L_869c8;● kept as goto
327 goto L_864c0;● kept as goto
329 local_fad = local_fec;
330 local_fb0 = local_fef;
331 local_f85 = local_fad;
332 local_f88_u32 = local_fb0;
341 local_e78 = *(u64 *)(r1 + 0x18);
342 local_e80 = *(u64 *)(r1 + 0x10);
343 r0 = *(u64 *)(r1 + 8);
348 if (r0 == local_f80) {
349 if (local_e80 == local_f78) {
350 if (local_e78 != r3) {
357 r0 = fn_d6d20(0x7d6); // Anchor error 2006 ConstraintSeeds?
361 r2 = *(u64 *)(0x300000000);
374 if (r1 <= 0x300000007) {
375 r0 = fn_e2de8(1, 6, r3, r4, r5);
378 *(u64 *)(0x300000000) = r1;
379 *(u16 *)(r1 + 4) = 0x6769;
380 *(u32 *)(r1) = 0x666e6f63;
381 *(u64 *)(r8 + 0x10) = r1;
382 *(u64 *)(r8 + 0x18) = 6;
383 *(u64 *)(r8 + 8) = 6;
385 local_fd8_u64 = local_e78;
386 local_fe0 = local_e80;
388 local_ff0_u64 = local_e60;
389 local_fd0_u32 = local_fb0;
390 local_fcd = local_fad;
392 local_fb9 = local_e88;
398 r0 = fn_d09f0(r1, r2, r3);
400 *(u64 *)(r2 + 0x10) = r1;
401 *(u64 *)(r2 + 8) = r0;
409 if (r1 <= 0x300000007) {
410 r0 = fn_e2de8(1, 6, r3, r4, r5);
412 goto L_86bc8;● kept as goto
419 goto L_86b28;● kept as goto
421 goto L_86ba0;● kept as goto
425 goto L_86b78;● kept as goto
427 goto L_86b08;● kept as goto
429 if (*(u8 *)(r8 + 0x29) == 0) {
430 r0 = fn_d6d20(0x7d0); // Anchor error 2000 ConstraintMut?
431 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
433 *(u64 *)(r2 + 0x10) = r1;
434 *(u64 *)(r2 + 8) = r0;
439 r4 = *(u64 *)(r1 + 0x18);
440 r3 = *(u64 *)(r1 + 0x10);
441 r7 = *(u64 *)(r1 + 8);
446 if (r7 == local_e98) {
447 if (local_e90 == r3) {
448 if (local_e88 != r4) {
451 r0 = fn_d6d20(0x7d1); // Anchor error 2001 ConstraintHasOne?
452 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
458 local_fd8_u64 = local_e88;
459 local_fe0 = local_e90;
460 local_fe8 = local_e98;
461 local_ff0_u64 = local_e80;
464 r0 = fn_d09f0(r1, r2, r3);
466 *(u64 *)(r2 + 0x10) = r1;
467 *(u64 *)(r2 + 8) = r0;
472 r0 = fn_f4c90(r6 + 0x30, &local_f48, 0x96);
473 *(u8 *)(r6 + 0xc7) = local_e70;
474 *(u8 *)(r6 + 0xc6) = local_e68;
475 *(u64 *)(r6 + 0x28) = local_e88;
476 *(u64 *)(r6 + 0x20) = local_e90;
477 *(u64 *)(r6 + 0x18) = local_e98;
478 *(u64 *)(r6 + 0x10) = local_e80;
479 *(u64 *)(r6 + 8) = r8;
488 r0 = fn_d6d20(0x7d1); // Anchor error 2001 ConstraintHasOne?
489 r0 = fn_800(r0, r1, "config", 6);■ string · 6 B
495 local_fd8_u64 = local_e88;
496 local_fe0 = local_e90;
497 local_fe8 = local_e98;
498 local_ff0_u64 = local_e80;
501 r0 = fn_d09f0(r1, r2, r3);
503 *(u64 *)(r2 + 0x10) = r1;
504 *(u64 *)(r2 + 8) = r0;
512 goto L_86a68;● kept as goto