// // EnhancedGameObject::updateUserCoin from 0x1002fc80c to 0x1002fc910 (260 bytes) // // 2 xrefs: // > PlayLayer::createObjectsFromSetupFinished @ 0x100145134 // > sub_1002FB254 @ 0x1002fc240 // // 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:03:03 +0000 // double __fastcall EnhancedGameObject::updateUserCoin(__int64 a1) { __int64 v2; // x0 char hasUniqueCoin; // w0 double result; // d0 __int64 v5; // x0 __int64 v6; // x20 int v7; // s0 int v13; // s0 __int64 v14; // [xsp+0h] [xbp-20h] BYREF int v15; // [xsp+8h] [xbp-18h] int v16; // [xsp+Ch] [xbp-14h] if ( (*(_BYTE *)(a1 + 649) & 1) == 0 ) { v2 = GameManager::sharedState(a1); hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(*(_QWORD *)(v2 + 544), (_DWORD *)a1); *(_BYTE *)(a1 + 1446) = hasUniqueCoin; if ( (hasUniqueCoin & 1) == 0 ) { v5 = GameObject::createAndAddParticle(a1, *(unsigned int *)(a1 + 920), "coinEffect.plist", 0, 2); if ( v5 ) { if ( *(_DWORD *)(a1 + 1028) != 142 ) { v6 = v5; v7 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1352LL))(v5) + 12); __asm { FMOV V1.2S, #1.0 } v14 = _D1; v15 = 1065353216; v16 = v7; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 1360LL))(v6, &v14); v13 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1384LL))(v6) + 12); v14 = 0x3F0000003F000000LL; v15 = 1056964608; v16 = v13; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 1392LL))(v6, &v14); } } sub_1000262BC((float *)&v14, 0.0, -19.0); return sub_10002630C((_QWORD *)(a1 + 812), (double *)&v14); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source