//
// PlayerObject::spawnCircle from 0x74de00 to 0x74def8 (248 bytes)
//
// 3 xrefs:
// > ??> @ 0x59cc8
// > PlayerObject::playSpawnEffect @ 0x74f7b4
// > ??> @ 0x1542128
//
// 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:52:54 +0000
//
__int64 __fastcall PlayerObject::spawnCircle(PlayerObject *this)
{
__int64 result; // x0
CCCircleWave *v3; // x19
char v4; // w3
char v5; // w2
void (__fastcall *v6)(CCCircleWave *, __int64); // x21
__int64 v7; // x0
GameManager *v8; // x0
__int64 v9; // x0
GameManager *v10; // x0
__int64 v11; // x0
result = *(unsigned __int8 *)(GameManager::sharedState(this) + 925);
if ( !(_DWORD)result )
{
v3 = (CCCircleWave *)CCCircleWave::create((CCCircleWave *)((char *)&dword_0 + 1), 70.0, 2.0, 0.3);
v4 = *((_BYTE *)this + 2604);
v5 = *((_BYTE *)this + 2602);
*((_BYTE *)v3 + 341) = *((_BYTE *)this + 2603);
*((_BYTE *)v3 + 342) = v4;
*((_BYTE *)v3 + 340) = v5;
v6 = *(void (__fastcall **)(CCCircleWave *, __int64))(*(_QWORD *)v3 + 184LL);
v7 = (*(__int64 (__fastcall **)(PlayerObject *))(*(_QWORD *)this + 192LL))(this);
v6(v3, v7);
(*(void (__fastcall **)(_QWORD, CCCircleWave *, _QWORD))(**((_QWORD **)this + 378) + 464LL))(
*((_QWORD *)this + 378),
v3,
0);
v8 = (GameManager *)CCCircleWave::followObject(v3, this, 1u);
v9 = *(_QWORD *)(GameManager::sharedState(v8) + 544);
if ( v9 )
v10 = (GameManager *)(v9 + 13992);
else
v10 = nullptr;
*((_QWORD *)v3 + 46) = v10;
v11 = GameManager::sharedState(v10);
PlayLayer::addCircle(*(cocos2d::CCArray ***)(v11 + 544), v3);
*((_DWORD *)v3 + 88) = 1;
return 1;
}
return result;
}