//
// EnhancedGameObject::updateUserCoin from 0x77e330 to 0x77e470 (320 bytes)
//
// 3 xrefs:
// > PlayLayer::createObjectsFromSetupFinished @ 0x6fdc98
// > GameObject::objectFromVector @ 0x781a68
// > ??> @ 0xe3320
//
// 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 12:53:19 +0000
//
__int64 __fastcall EnhancedGameObject::updateUserCoin(EnhancedGameObject *this)
{
GameManager *v2; // x0
__int64 v4; // x0
char hasUniqueCoin; // w0
GameManager *v6; // x0
GameManager *v7; // x21
void (__fastcall *v8)(GameManager *, float *); // x23
int v9; // w2
void (__fastcall *v10)(GameManager *, float *); // x23
int v11; // w2
float v12; // [xsp+48h] [xbp+48h] BYREF
float v13; // [xsp+4Ch] [xbp+4Ch]
float v14; // [xsp+50h] [xbp+50h]
int v15; // [xsp+54h] [xbp+54h]
v2 = (GameManager *)*((unsigned __int8 *)this + 649);
if ( !(_DWORD)v2 )
{
v4 = GameManager::sharedState(v2);
hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(*(GJBaseGameLayer **)(v4 + 544), this);
*((_BYTE *)this + 1446) = hasUniqueCoin;
if ( !hasUniqueCoin )
{
v6 = GameObject::createAndAddParticle((__int64)this, *((_DWORD *)this + 230), (__int64)"coinEffect.plist", 0, 2u);
v7 = v6;
if ( v6 && *((_DWORD *)this + 257) != 142 )
{
v8 = *(void (__fastcall **)(GameManager *, float *))(*(_QWORD *)v6 + 1360LL);
v9 = *(_DWORD *)((*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v6 + 1352LL))(v6) + 12);
v12 = 1.0;
v13 = 1.0;
v14 = 1.0;
v15 = v9;
v8(v7, &v12);
v10 = *(void (__fastcall **)(GameManager *, float *))(*(_QWORD *)v7 + 1392LL);
v11 = *(_DWORD *)((*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v7 + 1384LL))(v7) + 12);
v12 = 0.5;
v13 = 0.5;
v14 = 0.5;
v15 = v11;
v10(v7, &v12);
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, -19.0);
cocos2d::CCPoint::operator=((char *)this + 812, &v12);
}
}
return _stack_chk_guard;
}