// // GJBaseGameLayer::hasUniqueCoin from 0x100284e40 to 0x100284f3c (252 bytes) // // 5 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x10014a5a8 // > GJBaseGameLayer::collisionCheckObjects @ 0x100283cfc // > GJBaseGameLayer::collisionCheckObjects @ 0x100283ea4 // > EnhancedGameObject::updateUserCoin @ 0x1002fc834 // > GameObject::playDestroyObjectAnim @ 0x1003e8190 // // 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::hasUniqueCoin(__int64 a1, _DWORD *a2) { __int64 v4; // x0 int v5; // w8 __int64 v6; // x8 int v7; // w9 int v8; // w8 __int64 CoinKey_1; // x20 int v10; // w19 __int64 v11; // x0 __int64 hasUserCoin; // x0 __int64 v14; // x0 __int64 v15; // x8 __int64 v16; // x8 v4 = *(_QWORD *)(a1 + 1936); if ( *(_DWORD *)(v4 + 1140) == 2 ) { if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2) == 31 ) { v5 = a2[448]; switch ( v5 ) { case 3: v16 = *(_QWORD *)(a1 + 1936); v7 = *(_DWORD *)(v16 + 1032); v8 = *(_DWORD *)(v16 + 1036); return v7 - v8 == 1; case 2: v15 = *(_QWORD *)(a1 + 1936); v7 = *(_DWORD *)(v15 + 1020); v8 = *(_DWORD *)(v15 + 1024); return v7 - v8 == 1; case 1: v6 = *(_QWORD *)(a1 + 1936); v7 = *(_DWORD *)(v6 + 1008); v8 = *(_DWORD *)(v6 + 1012); return v7 - v8 == 1; } } return 0; } CoinKey_1 = GJGameLevel::getCoinKey_1(v4, (unsigned int)a2[448]); v10 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL); v11 = GameStatsManager::sharedState(CoinKey_1); if ( v10 == 1 ) return GameStatsManager::hasSecretCoin(v11, CoinKey_1); hasUserCoin = GameStatsManager::hasUserCoin(v11, CoinKey_1); if ( (hasUserCoin & 1) != 0 ) return 1; v14 = GameStatsManager::sharedState(hasUserCoin); return GameStatsManager::hasPendingUserCoin(v14, CoinKey_1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source