// // GJBaseGameLayer::countCollectedUserCoins from 0x100285578 to 0x1002855d4 (92 bytes) // // 1 xrefs: // > PlayLayer::levelComplete @ 0x100142c7c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 11:01:57 +0000 // __int64 __fastcall GJBaseGameLayer::countCollectedUserCoins(__int64 a1) { __int64 v1; // x8 __int64 v2; // x8 __int64 v3; // x19 __int64 v4; // x20 v1 = *(_QWORD *)(a1 + 12592); if ( !v1 ) return 0; v2 = *(_QWORD *)(v1 + 56); if ( !v2 ) return 0; LODWORD(v3) = 0; do { v4 = *(_QWORD *)(v2 + 288); if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 264) + 1800LL))(*(_QWORD *)(v2 + 264)) == 31 ) v3 = (unsigned int)(v3 + 1); else v3 = (unsigned int)v3; v2 = v4; } while ( v4 ); return v3; }