//
// RingObject::spawnCircle from 0x4e7cfc to 0x4e7d94 (152 bytes)
//
// 1 xrefs:
// > RingObject::powerOnObject @ 0x4e7dca
//
// 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 11:51:06 +0000
//
int __fastcall RingObject::spawnCircle(RingObject *this, int a2, int a3, bool a4)
{
int result; // r0
int v6; // r6
CCCircleWave *v7; // r4
int (__fastcall *v8)(CCCircleWave *, int); // r7
int v9; // r0
GameManager *v10; // r0
int v11; // r0
GameManager *v12; // r0
GameManager *v13; // r0
int v14; // r3
int v15; // r0
result = GameManager::sharedState(this);
if ( *(_DWORD *)(result + 404) )
{
v6 = *((unsigned __int8 *)this + 908);
if ( !*((_BYTE *)this + 908) && *((_DWORD *)this + 223) != 3643 )
{
v7 = CCCircleWave::create(
(CCCircleWave *)0x40A00000,
1113325568,
(cocos2d::CCActionTween *)0x3E800000,
COERCE_FLOAT(*((_BYTE *)this + 908)),
a4);
v8 = *(int (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v7 + 92);
v9 = (*(int (__fastcall **)(RingObject *))(*(_DWORD *)this + 96))(this);
v10 = (GameManager *)v8(v7, v9);
v11 = GameManager::sharedState(v10);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(**(_DWORD **)(*(_DWORD *)(v11 + 404) + 2436) + 232))(
*(_DWORD *)(*(_DWORD *)(v11 + 404) + 2436),
v7,
v6);
*((_DWORD *)v7 + 73) = 1;
v12 = (GameManager *)CCCircleWave::followObject(v7, this, v6);
v13 = (GameManager *)GameManager::sharedState(v12);
v14 = *((_DWORD *)v13 + 101);
if ( v14 )
v14 += 11688;
*((_DWORD *)v7 + 77) = v14;
v15 = GameManager::sharedState(v13);
return PlayLayer::addCircle(*(cocos2d::CCArray ***)(v15 + 404), v7);
}
}
return result;
}