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…
pvp · revrsly
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 ▾
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 fn fn_2ef68( mut r1: u64 , mut r2: u64 ,
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)
mut
r3:
u64
,
mut
r4:
u64
,
mut
r5:
u64
) ->
u64
{
4 let mut local_1000: u64 = 0 ;
5 let mut local_ff8: u64 = 0 ;
6 let mut local_ff0: u64 = 0 ;
7 let mut local_fe8: u64 = 0 ;
8 let mut local_fe0: u64 = 0 ;
9 let mut local_fd8: u64 = 0 ;
10 let mut local_fd0: u64 = 0 ;
11 let mut local_fc8: u64 = 0 ;
12 let mut local_fc0: u64 = 0 ;
13 let mut local_fb8: u64 = 0 ;
14 let mut local_fb0: u64 = 0 ;
15 let mut local_fa8: u64 = 0 ;
16 let mut local_fa0: u64 = 0 ;
17 let mut local_f98: u64 = 0 ;
18 let mut local_f90: u64 = 0 ;
19 let mut local_f88: u64 = 0 ;
20 let mut local_f80: u64 = 0 ;
21 let mut local_f78: u64 = 0 ;
22 let mut local_f70: u64 = 0 ;
23 let mut local_f68: u64 = 0 ;
24 let mut local_f60: u64 = 0 ;
25 let mut local_f58: u64 = 0 ;
26 let mut local_f50: u64 = 0 ;
27 let mut local_f48: u32 = 0 ;
28 let mut local_f40: u64 = 0 ;
29 let mut local_f38: u64 = 0 ;
30 let mut local_f30: u64 = 0 ;
31 let mut local_f28: u64 = 0 ;
32 let mut local_f20: u64 = 0 ;
33 let mut local_f18: u64 = 0 ;
34 let mut local_f10: u8 = 0 ;
35 let mut local_ec8: u32 = 0 ;
36 let mut local_ec0: u64 = 0 ;
37 let mut local_eb8: u64 = 0 ;
38 let mut local_eb0: u64 = 0 ;
39 let mut local_ea8: u64 = 0 ;
40 let mut local_ea0: u64 = 0 ;
41 let mut local_e98: u64 = 0 ;
42 let mut local_e90: u64 = 0 ;
43 let mut local_e88: u64 = 0 ;
44 let mut local_e80: u64 = 0 ;
45 let mut local_e78: u64 = 0 ;
46 let mut local_e70: u64 = 0 ;
47 let mut local_e68: u64 = 0 ;
48 let mut local_e60: u64 = 0 ;
49 let mut local_e58: u64 = 0 ;
50 let mut local_e50: u64 = 0 ;
51 let mut local_e48: u64 = 0 ;
52 let mut local_e40: u64 = 0 ;
53 let mut local_e38: u64 = 0 ;
54 let mut local_e30: u64 = 0 ;
55 let mut local_e28: u64 = 0 ;
56 let mut local_e20: u64 = 0 ;
57 let mut local_e18: u64 = 0 ;
58 let mut local_e10: u64 = 0 ;
59 let mut local_0: u64 = 0 ;
76 r0 = fn_31680(r9, r8, r3, r4, r5);
78 if *((r7 + 0xa0 ) as * const u64 ) == 0 {
79 if *((r7 + 0xa8 ) as * const u64 ) == 0 {
80 if *((r7 + 0xb0 ) as * const u64 ) == 0 {
81 if *((r7 + 0xb8 ) as * const u64 ) != 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 *((r6 + 8 ) as * mut u64 ) = r1;
108 *((r6) as * mut u64 ) = r0;
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 = *((r7 + 0xd0 ) as * const u64 );
122 if (r4 as i64 ) <= 0 {
125 if (r2 as i64 ) < r5 {
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 (r2 as i64 ) < *((local_e88 + 0x78 ) as * const u64 ) {
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 *((r6 + 8 ) as * mut u64 ) = r1;
142 *((r6) as * mut u64 ) = r0;
148 r0 = fn_303b8(&local_f60, local_e80);
151 if local_f60 == - 0x8000000000000000 {
152 *((r6 + 8 ) as * mut u64 ) = r2;
153 *((r6) as * mut u64 ) = r1;
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 {
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);
183 *((r6) as * mut u64 ) = r0;
184 *((r6 + 8 ) as * mut u64 ) = r1;
195 r0 = fn_f4c50(r8, local_e80, r9);
196 r0 = r0 << 0x20 >> 0x20 ;
199 r0 = fn_32b68(r8, r9, local_e50);
203 r2 = *((r8) as * const u64 );
204 if r2 == *((r7 + 0x80 ) as * const u64 ) {
205 r2 = *((r8 + 8 ) as * const u64 );
206 if r2 == *((r7 + 0x88 ) as * const u64 ) {
207 r2 = *((r8 + 0x10 ) as * const u64 );
208 if r2 == *((r7 + 0x90 ) as * const u64 ) {
209 r2 = *((r8 + 0x18 ) as * const u64 );
210 if r2 == *((r7 + 0x98 ) as * const u64 ) {
211 r7 = *((local_e88 + 0x70 ) as * const u64 );
216 if (r7 as i64 ) >= 0 {
219 if (r2 as i64 ) < r4 {
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 *((r6 + 8 ) as * mut u64 ) = r2;
224 *((r6) as * mut u64 ) = 2 ;
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 *((r6 + 8 ) as * mut u64 ) = r2;
232 *((r6) as * mut u64 ) = 2 ;
236 if (r2 as i64 ) >= r4 {
238 if ((r1 ^ r3) & 1 ) == 0 {
239 *((r6 + 8 ) as * mut u64 ) = r2;
240 *((r6) as * mut u64 ) = 2 ;
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 *((r6 + 8 ) as * mut u64 ) = r2;
250 *((r6) as * mut u64 ) = 2 ;
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);
268 *((r6) as * mut u64 ) = r0;
269 *((r6 + 8 ) as * mut u64 ) = r1;
273 local_ea8 = *((r2 + 0x18 ) as * const u64 );
274 local_eb0 = *((r2 + 0x10 ) as * const u64 );
275 local_eb8 = *((r2 + 8 ) as * const u64 );
276 local_ec0 = *((r2) as * const u64 );
278 r0 = fn_37988(local_e28, &local_ec0, local_e20, *((local_e88 + 0x48 ) as * const u64 ));
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);
289 *((r6) as * mut u64 ) = r0;
290 *((r6 + 8 ) as * mut u64 ) = r1;
295 if *((r2) as * const u64 ) == 0 {
296 if *((r2 + 8 ) as * const u64 ) == 0 {
297 if *((r2 + 0x10 ) as * const u64 ) == 0 {
298 if *((r2 + 0x18 ) as * const u64 ) == 0 {
299 *((r2 + 0x18 ) as * mut u64 ) = *((r8 + 0x18 ) as * const u64 );
300 *((r2 + 0x10 ) as * mut u64 ) = *((r8 + 0x10 ) as * const u64 );
301 *((r2 + 8 ) as * mut u64 ) = *((r8 + 8 ) as * const u64 );
302 *((r2) as * mut u64 ) = *((r8) as * const u64 );
303 *((r2 + 0x70 ) as * mut u8 ) = local_e30;
308 *((r2 + 0x58 ) as * mut u64 ) = local_ea8;
309 *((r2 + 0x50 ) as * mut u64 ) = local_eb0;
310 *((r2 + 0x48 ) as * mut u64 ) = local_eb8;
311 *((r2 + 0x40 ) as * mut u64 ) = local_ec0;
312 r7 = *((local_e88 + 0x70 ) as * const u64 );
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
326 if (r0 as i64 ) >= 0 {
329 if (r2 as i64 ) < r4 {
334 r0 = fn_ea738(& Location ( "programs/pvp/src/lib.rs:1223:30" ), r2, r3, r4, r5); ■ string · 31 B
337 *((r3 + 0x68 ) as * mut u64 ) = r2;
338 /* continues at L_2f9d8; not expressible as structured Rust */ ● an edge Rust can't hold
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 /* continues at L_2f9d0; not expressible as structured Rust */ ● an edge Rust can't hold
348 if (r2 as i64 ) >= r4 {
349 /* continues at L_2fab0; not expressible as structured Rust */ ● an edge Rust can't hold
351 /* continues at L_2f9b0; not expressible as structured Rust */ ● an edge Rust can't hold
353 *((r6) as * mut u64 ) = r0;
354 *((r6 + 8 ) as * mut u64 ) = r1;
357 /* continues at L_2f540; not expressible as structured Rust */ ● an edge Rust can't hold
359 /* continues at L_2f518; not expressible as structured Rust */ ● an edge Rust can't hold
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 /* continues at L_2f100; not expressible as structured Rust */ ● an edge Rust can't hold
369 if (r2 as i64 ) >= r5 {
370 /* continues at L_2f5e8; not expressible as structured Rust */ ● an edge Rust can't hold
372 /* continues at L_2f0e8; not expressible as structured Rust */ ● an edge Rust can't hold
374 /* continues at L_2f328; not expressible as structured Rust */ ● an edge Rust can't hold
378 /* continues at L_2f1b0; not expressible as structured Rust */ ● an edge Rust can't hold
380 *((r6) as * mut u64 ) = r0;
381 *((r6 + 8 ) as * mut u64 ) = r1;