once ❝ published name Reconstructed 91.5% of control flow structured Anchor ◇ GRzKU9i3Cs7A5Euf9gGZjbRnpypw7DzaU3hWRfUgpYTa copy decompiled 22 Oct 2026
Identity · published metadata ▾
Loader ■ v3 · upgradeable
sBPF ■ v0
Size ■ 556,728 bytes
Instructions ● 58,814
Functions ● 412
SHA-256 ● 23200e76…1d4a7b42
Upgrade authority ■ 8gop…M677
Last deploy slot ■ 459,519,774 ❝ Published by the authors · their claims, not revrsly output Verified build github.com/call-once/once-program @ 1ee2ebf · ✓ hash matches this bytecode IDL · none publishedsecurity.txt · embedded ■ read from the bytes view Loading the reconstruction…
Functions
Other functions 354
+ 294 more · type to filter
event_data_bought ▾
pseudocode.c fn event_data_bought · .text+0x3f8d0 · 59 ins · 10 blocks · 75 lines · structured where the control flow allows copy ↓ .c download pseudocode.c 1 // event_data_bought · 59 instructions · 2 callers · 4 gotos
2 // panic locations in this function: programs/once/src/events.rs:33
3 u64 event_data_bought ( u64 r1, u64 r2) {
4
Evidence why revrsly believes it ×
Function ◇ Inferred
event_data_bought
◇ Writes this event's discriminator: its serializer for emit!/emit_cpi!.
● .text+0x3f8d0 · 59 instructions · 10 blocks
● 2 callers
◇ takes 2 arguments (from register use)
r7 = r2;
7 r2 = *( u64 *)( 0x300000000 );
18 if (r1 > 0x300000007 ) {
19 *( u64 *)( 0x300000000 ) = r1;
20 *( u64 *)(r1) = 0x682a4c9c18d738c1 ; // discriminator of event `Bought`
21 *( u64 *)(r1 + 8 ) = *( u64 *)(r7);
22 *( u64 *)(r1 + 0x10 ) = *( u64 *)(r7 + 8 );
23 *( u64 *)(r1 + 0x18 ) = *( u64 *)(r7 + 0x10 );
24 *( u64 *)(r1 + 0x20 ) = *( u64 *)(r7 + 0x18 );
25 *( u64 *)(r1 + 0x28 ) = *( u64 *)(r7 + 0x40 );
26 *( u64 *)(r1 + 0x48 ) = *( u64 *)(r7 + 0x38 );
27 *( u64 *)(r1 + 0x40 ) = *( u64 *)(r7 + 0x30 );
28 *( u64 *)(r1 + 0x38 ) = *( u64 *)(r7 + 0x28 );
29 *( u64 *)(r1 + 0x30 ) = *( u64 *)(r7 + 0x20 );
30 *( u64 *)(r1 + 0x50 ) = *( u64 *)(r7 + 0x48 );
31 *( u64 *)(r1 + 0x58 ) = *( u64 *)(r7 + 0x50 );
32 *( u64 *)(r1 + 0x60 ) = *( u64 *)(r7 + 0x58 );
33 *( u64 *)(r6 + 8 ) = r1;
34 *( u64 *)(r6 + 0x10 ) = 0x68 ;
38 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:33:1" )); ■ string · 32 B
41 if (r1 <= 0x300000007 ) {
42 r0 = fn_67b18( 1 , 0x100 , & Location ( "programs/once/src/events.rs:33:1" )); ■ string · 32 B
44 *( u64 *)( 0x300000000 ) = r1;
45 *( u64 *)(r1) = 0x682a4c9c18d738c1 ; // discriminator of event `Bought`
46 *( u64 *)(r1 + 8 ) = *( u64 *)(r7);
47 *( u64 *)(r1 + 0x10 ) = *( u64 *)(r7 + 8 );
48 *( u64 *)(r1 + 0x18 ) = *( u64 *)(r7 + 0x10 );
49 *( u64 *)(r1 + 0x20 ) = *( u64 *)(r7 + 0x18 );
50 *( u64 *)(r1 + 0x28 ) = *( u64 *)(r7 + 0x40 );
51 *( u64 *)(r1 + 0x48 ) = *( u64 *)(r7 + 0x38 );
52 *( u64 *)(r1 + 0x40 ) = *( u64 *)(r7 + 0x30 );
53 *( u64 *)(r1 + 0x38 ) = *( u64 *)(r7 + 0x28 );
54 *( u64 *)(r1 + 0x30 ) = *( u64 *)(r7 + 0x20 );
55 *( u64 *)(r1 + 0x50 ) = *( u64 *)(r7 + 0x48 );
56 *( u64 *)(r1 + 0x58 ) = *( u64 *)(r7 + 0x50 );
57 *( u64 *)(r1 + 0x60 ) = *( u64 *)(r7 + 0x58 );
58 *( u64 *)(r6 + 8 ) = r1;
59 *( u64 *)(r6 + 0x10 ) = 0x68 ;
67 goto L_3f948; ● kept as goto
69 goto L_3faa0; ● kept as goto
72 goto L_3fa80; ● kept as goto
74 goto L_3f930; ● kept as goto