pvp ◇ inferred name Reconstructed 91.4% of control flow structured Anchor ◇ A8eZ1qbbSJvw9UiBKY76PtCJNM9P18SbtTBWDCDYTzX3 copy decompiled 13 Oct 2026
Identity · published metadata ▾
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 output Verified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
Functions
Account loaders 27
◇ set_rewards_root_try_accounts 463 ins ◇ execute_proposal_try_accounts 1,407 ins ◇ claim_holder_rewards_try_accounts 934 ins ◇ vote_try_accounts 1,243 ins ◇ withdraw_try_accounts 1,107 ins ◇ set_vote_rules_try_accounts 329 ins ◇ request_unstake_try_accounts 955 ins ◇ complete_unstake_try_accounts 894 ins ◇ claim_rewards_try_accounts 678 ins ◇ init_stake_pool_try_accounts 1,181 ins ◇ sync_rewards_try_accounts 433 ins ◇ unstake_try_accounts 1,069 ins ◇ claim_pool_fees_try_accounts 1,673 ins ◇ sweep_fee_buffer_try_accounts 650 ins ◇ unblock_name_try_accounts 490 ins ◇ set_dbc_config_try_accounts 665 ins ◇ create_token_try_accounts 1,387 ins ◇ claim_partner_surplus_try_accounts 1,715 ins ◇ set_operator_try_accounts 587 ins ◇ set_pvp_token_try_accounts 588 ins ◇ set_rewards_authority_try_accounts 590 ins ◇ init_holder_rewards_try_accounts 942 ins ◇ initialize_config_try_accounts 528 ins ◇ block_name_try_accounts 630 ins ◇ create_proposal_try_accounts 1,725 ins ◇ team_create_proposal_try_accounts 1,416 ins ◇ idl_set_buffer_try_accounts 981 ins Other functions 686
+ 625 more · type to filter
fn_2ef68 ▾
pseudocode.c fn fn_2ef68 · .text+0x2ef68 · 377 ins · 87 blocks · 383 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // fn_2ef68 · 377 instructions · 2 callers · 11 gotos
2 // panic locations in this function: programs/pvp/src/lib.rs:1208, programs/pvp/src/lib.rs:1223, programs/pvp/src/lib.rs:1225, library/alloc/src/string.rs:2916
3 u64 fn_2ef68( u64 r1, u64 r2, u64 r3, u64 r4,
Evidence why revrsly believes it ×
Function ● Derived
fn_2ef68
· The binary doesn't name this function. fn_2ef68 is its offset in .text.
● .text+0x2ef68 · 377 instructions · 87 blocks
● 2 callers
◇ takes 5 arguments (from register use)
u64
r5) {
76 r0 = fn_31680(r9, r8, r3, r4, r5);
78 if (*( u64 *)(r7 + 0xa0 ) == 0 ) {
79 if (*( u64 *)(r7 + 0xa8 ) == 0 ) {
80 if (*( u64 *)(r7 + 0xb0 ) == 0 ) {
81 if (*( u64 *)(r7 + 0xb8 ) != 0 ) {
83 r0 = fn_344d0(&local_ea0, 0xbd0 ); // .rodata+0xbd0
87 local_f88 = 0xc900 ; // .rodata+0xc900
88 local_f90 = &local_f78;
89 local_f80 = 0x60000020 ;
90 r0 = fn_791e8( 0xbd0 , &local_f90, r3, r4, r5); // .rodata+0xbd0
92 r0 = fn_e8b10( "a Display implementation returned an error unexpectedly" , 0x37 , &local_f98, 0xc930 , & Location ( "library/alloc/src/string.rs:2916:14" )); // .rodata+0xc930 ■ string · 55 B
94 local_f18 = local_f68;
95 local_f20 = local_f70;
96 local_f28 = local_f78;
97 local_f40 = local_ea0;
98 local_f38 = local_e98;
99 local_f30 = local_e90;
100 local_f58 = 0xca0 ; // .rodata+0xca0
101 local_ec8 = 0x177b ; // custom Anchor error 6011 (#11)?
106 r0 = fn_d52d8(&local_f60);
107 *( u64 *)(r6 + 8 ) = r1;
111 local_e40 = local_fa0;
113 local_e30 = local_fb0;
115 local_e50 = local_fc0;
116 local_e48 = local_fc8;
117 local_e38 = local_fe0;
118 r4 = *( u64 *)(r7 + 0xd0 );
127 if (((r1 ^ r3) & 1 ) != 0 ) {
128 r0 = fn_ea788(& Location ( "programs/pvp/src/lib.rs:1208:27" ), r2, r3, r4, r5); ■ string · 31 B
131 if (( i64 )r2 < *( u64 *)(local_e88 + 0x78 )) {
132 r0 = fn_344d0(&local_f40, 0xba8 ); // .rodata+0xba8
133 r0 = fn_ab040(&local_f28, 0xba8 , r3, r4, r5); // .rodata+0xba8
134 local_f58 = 0xca0 ; // .rodata+0xca0
139 local_ec8 = 0x1795 ; // custom Anchor error 6037 (#37)?
140 r0 = fn_d52d8(&local_f60);
141 *( u64 *)(r6 + 8 ) = r1;
148 r0 = fn_303b8(&local_f60, local_e80);
151 if (local_f60 == - 0x8000000000000000 ) {
152 *( u64 *)(r6 + 8 ) = r2;
157 local_e80 = local_f40;
159 local_e18 = local_f20;
160 local_e10 = local_f28;
163 r0 = fn_f4c50(r1, r9, r3);
165 if ((r0 << 0x20 >> 0x20 ) == 0 ) {
166 if (r4 == local_e78) {
167 r0 = fn_f4c50(local_e80, local_e70, local_e78);
169 if ((r0 << 0x20 >> 0x20 ) == 0 ) {
170 if (local_e18 == local_e60) {
171 r0 = fn_f4c50(local_e10, local_e38, local_e60);
173 if ((r0 << 0x20 >> 0x20 ) == 0 ) {
174 r0 = fn_344d0(&local_f40, 0xaa0 ); // .rodata+0xaa0
175 r0 = fn_ab040(&local_f28, 0xaa0 , r3, r4, r5); // .rodata+0xaa0
176 local_f58 = 0xca0 ; // .rodata+0xca0
181 local_ec8 = 0x1775 ; // custom Anchor error 6005 (#5)?
182 r0 = fn_d52d8(&local_f60);
184 *( u64 *)(r6 + 8 ) = r1;
195 r0 = fn_f4c50(r8, local_e80, r9);
196 r0 = r0 << 0x20 >> 0x20 ;
199 r0 = fn_32b68(r8, r9, local_e50);
204 if (r2 == *( u64 *)(r7 + 0x80 )) {
205 r2 = *( u64 *)(r8 + 8 );
206 if (r2 == *( u64 *)(r7 + 0x88 )) {
207 r2 = *( u64 *)(r8 + 0x10 );
208 if (r2 == *( u64 *)(r7 + 0x90 )) {
209 r2 = *( u64 *)(r8 + 0x18 );
210 if (r2 == *( u64 *)(r7 + 0x98 )) {
211 r7 = *( u64 *)(local_e88 + 0x70 );
220 if (((r1 ^ r3) & 1 ) != 0 ) {
221 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1225:8" ), r2, r3, r4, r5); ■ string · 30 B
223 *( u64 *)(r6 + 8 ) = r2;
228 if (((r1 ^ r3) & 1 ) != 0 ) {
229 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1225:8" ), r2, r3, r4, r5); ■ string · 30 B
231 *( u64 *)(r6 + 8 ) = r2;
238 if (((r1 ^ r3) & 1 ) == 0 ) {
239 *( u64 *)(r6 + 8 ) = r2;
243 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1225:8" ), r2, r3, r4, r5); ■ string · 30 B
246 if (((r1 ^ r3) & 1 ) != 0 ) {
247 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1225:8" ), r2, r3, r4, r5); ■ string · 30 B
249 *( u64 *)(r6 + 8 ) = r2;
257 r0 = fn_dd0a8(local_e48, r2, r3, r4, r5);
259 r0 = fn_344d0(&local_f40, 0xb50 ); // .rodata+0xb50
260 r0 = fn_ab040(&local_f28, 0xb50 , r3, r4, r5); // .rodata+0xb50
261 local_f58 = 0xca0 ; // .rodata+0xca0
266 local_ec8 = 0x1773 ; // custom Anchor error 6003 (#3)?
267 r0 = fn_d52d8(&local_f60);
269 *( u64 *)(r6 + 8 ) = r1;
273 local_ea8 = *( u64 *)(r2 + 0x18 );
274 local_eb0 = *( u64 *)(r2 + 0x10 );
275 local_eb8 = *( u64 *)(r2 + 8 );
276 local_ec0 = *( u64 *)(r2);
277 if (local_e40 == 0 ) {
278 r0 = fn_37988(local_e28, &local_ec0, local_e20, *( u64 *)(local_e88 + 0x48 ));
280 r0 = fn_344d0(&local_f40, 0xaa8 ); // .rodata+0xaa8
281 r0 = fn_ab040(&local_f28, 0xaa8 , r3, r4, r5); // .rodata+0xaa8
282 local_f58 = 0xca0 ; // .rodata+0xca0
287 local_ec8 = 0x1774 ; // custom Anchor error 6004 (#4)?
288 r0 = fn_d52d8(&local_f60);
290 *( u64 *)(r6 + 8 ) = r1;
295 if (*( u64 *)(r2) == 0 ) {
296 if (*( u64 *)(r2 + 8 ) == 0 ) {
297 if (*( u64 *)(r2 + 0x10 ) == 0 ) {
298 if (*( u64 *)(r2 + 0x18 ) == 0 ) {
299 *( u64 *)(r2 + 0x18 ) = *( u64 *)(r8 + 0x18 );
300 *( u64 *)(r2 + 0x10 ) = *( u64 *)(r8 + 0x10 );
301 *( u64 *)(r2 + 8 ) = *( u64 *)(r8 + 8 );
302 *( u64 *)(r2) = *( u64 *)(r8);
303 *( u8 *)(r2 + 0x70 ) = local_e30;
308 *( u64 *)(r2 + 0x58 ) = local_ea8;
309 *( u64 *)(r2 + 0x50 ) = local_eb0;
310 *( u64 *)(r2 + 0x48 ) = local_eb8;
311 *( u64 *)(r2 + 0x40 ) = local_ec0;
312 r7 = *( u64 *)(local_e88 + 0x70 );
313 r0 = fn_f4cd8(r7, sar64(r7, 0x3f ), 3 , 0 );
314 r3 = sar64(r0, 0x3f );
322 r0 = fn_ea760(& Location ( "programs/pvp/src/lib.rs:1223:36" ), r2, r3, r4, r5); ■ string · 31 B
334 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1223:30" ), r2, r3, r4, r5); ■ string · 31 B
337 *( u64 *)(r3 + 0x68 ) = r2;
338 goto L_2f9d8; ● kept as goto
342 if (((r1 ^ 0 ) & 1 ) != 0 ) {
343 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1223:30" ), r2, r3, r4, r5); ■ string · 31 B
345 goto L_2f9d0; ● kept as goto
349 goto L_2fab0; ● kept as goto
351 goto L_2f9b0; ● kept as goto
354 *( u64 *)(r6 + 8 ) = r1;
357 goto L_2f540; ● kept as goto
359 goto L_2f518; ● kept as goto
363 if (((r1 ^ r3) & 1 ) != 0 ) {
364 r0 = fn_ea788(& Location ( "programs/pvp/src/lib.rs:1208:27" ), r2, r3, r4, r5); ■ string · 31 B
366 goto L_2f100; ● kept as goto
370 goto L_2f5e8; ● kept as goto
372 goto L_2f0e8; ● kept as goto
374 goto L_2f328; ● kept as goto
378 goto L_2f1b0; ● kept as goto
381 *( u64 *)(r6 + 8 ) = r1;