//
// PlayerObject::spawnCircle from 0x1004005f0 to 0x1004006d2 (226 bytes)
//
// 1 xrefs:
// > PlayerObject::playSpawnEffect @ 0x100400509
//
// This function is hookable on this platform (idp: pc, 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:30:02 +0000
//
__int64 __fastcall PlayerObject::spawnCircle(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rbx
__int16 v3; // ax
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rcx
__int64 v7; // rax
result = GameManager::sharedState();
if ( !*(_BYTE *)(result + 925) )
{
v2 = CCCircleWave::create_1(1, 70.0, 2.0, 0.30000001);
v3 = *(_WORD *)(a1 + 2602);
*(_BYTE *)(v2 + 342) = *(_BYTE *)(a1 + 2604);
*(_WORD *)(v2 + 340) = v3;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 184LL))(v2, v4);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3024) + 464LL))(*(_QWORD *)(a1 + 3024), v2, 0);
CCCircleWave::followObject((_QWORD *)v2, a1, 1);
v5 = *(_QWORD *)(GameManager::sharedState() + 544);
v6 = v5 + 13992;
if ( !v5 )
v6 = 0;
*(_QWORD *)(v2 + 368) = v6;
v7 = GameManager::sharedState();
result = PlayLayer::addCircle(*(_QWORD *)(v7 + 544), v2);
*(_DWORD *)(v2 + 352) = 1;
}
return result;
}