//
// PlayerObject::spawnCircle from 0x434830 to 0x4348be (142 bytes)
//
// 0 xrefs:
//
// 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:48:18 +0000
//
int __fastcall PlayerObject::spawnCircle(PlayerObject *this, int a2, int a3, bool a4)
{
int result; // r0
int v6; // r6
CCCircleWave *v7; // r0
char v8; // r2
char v9; // r1
CCCircleWave *v10; // r4
int v11; // r3
void (__fastcall *v12)(CCCircleWave *, int); // r7
int v13; // r0
GameManager *v14; // r0
GameManager *v15; // r0
int v16; // r3
int v17; // r0
result = GameManager::sharedState(this);
v6 = *(unsigned __int8 *)(result + 725);
if ( !*(_BYTE *)(result + 725) )
{
v7 = CCCircleWave::create(
(CCCircleWave *)0x428C0000,
0x40000000,
(cocos2d::CCActionTween *)0x3E99999A,
COERCE_FLOAT(1),
a4);
v8 = *((_BYTE *)this + 2107);
v9 = *((_BYTE *)this + 2106);
*((_BYTE *)v7 + 282) = *((_BYTE *)this + 2108);
v10 = v7;
v11 = *(_DWORD *)v7;
*((_BYTE *)v7 + 281) = v8;
*((_BYTE *)v7 + 280) = v9;
v12 = *(void (__fastcall **)(CCCircleWave *, int))(v11 + 92);
v13 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)this + 96))(this);
v12(v10, v13);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(**((_DWORD **)this + 611) + 232))(
*((_DWORD *)this + 611),
v10,
v6);
v14 = (GameManager *)CCCircleWave::followObject(v10, this, 1);
v15 = (GameManager *)GameManager::sharedState(v14);
v16 = *((_DWORD *)v15 + 101);
if ( v16 )
v16 += 11688;
*((_DWORD *)v10 + 77) = v16;
v17 = GameManager::sharedState(v15);
result = PlayLayer::addCircle(*(cocos2d::CCArray ***)(v17 + 404), v10);
*((_DWORD *)v10 + 73) = 1;
}
return result;
}