// // sub_8209EC from 0x8209ec to 0x820b60 (372 bytes) // // 6 xrefs: // > sub_820F7C @ 0x821494 // > sub_820F7C @ 0x8214a2 // > sub_820F7C @ 0x8214b2 // > sub_820F7C @ 0x8214c2 // > sub_820F7C @ 0x8214d0 // > sub_820F7C @ 0x8214e2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:50 +0000 // int __fastcall sub_8209EC(__int64 a1, int a2) { if ( (unsigned int)&stru_1869C.st_name + 3 >= a1 ) { sub_8346C0(a2, 6, "%5lld", a1); return a2; } if ( a1 <= 10239999 ) { sub_8346C0(a2, 6, "%4lldk", a1 >> 10); return a2; } else if ( a1 < 104857600 ) { sub_8346C0( a2, 6, "%2lld.%0lldM", a1 >> 20, ((unsigned int)"16GameStatsManager23registerRewardsFromItemEP12GJRewardItem" & (unsigned int)a1) / (__int64)(unsigned int)&stru_1998C.st_other); return a2; } else { if ( a1 >= 10485760000LL ) { if ( SHIDWORD(a1) < 25 ) { sub_8346C0(a2, 6, "%2lld.%0lldG", a1 >> 30, ((unsigned int)a1 & 0x3FFFFFFF) / 107374182LL); } else if ( SHIDWORD(a1) <= 2499 ) { sub_8346C0(a2, 6, "%4lldG", a1 >> 30); } else { if ( (int)&stru_270FFC.r_offset + 3 < SHIDWORD(a1) ) { sub_8346C0(a2, 6, "%4lldP", (__int64)(SHIDWORD(a1) >> 18)); return a2; } sub_8346C0(a2, 6, "%4lldT", (__int64)(SHIDWORD(a1) >> 8)); } return a2; } sub_8346C0(a2, 6, "%4lldM", a1 >> 20); return a2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source