//
// PlayerObject::spawnDualCircle from 0x1002c46a8 to 0x1002c4798 (240 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x100281b20
// > GJBaseGameLayer::toggleDualMode @ 0x100281b28
//
// 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 11:02:32 +0000
//
double __fastcall PlayerObject::spawnDualCircle(__int64 a1)
{
__int64 v2; // x0
double result; // d0
_QWORD *v4; // x20
__int16 v5; // w8
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x8
__int64 v10; // x8
__int64 v11; // x0
if ( (*(_BYTE *)(a1 + 1969) & 1) == 0 )
{
v2 = GameManager::sharedState(a1);
if ( (*(_BYTE *)(*(_QWORD *)(v2 + 544) + 12605LL) & 1) == 0
&& (*(_BYTE *)(GameManager::sharedState(v2) + 925) & 1) == 0 )
{
v4 = (_QWORD *)CCCircleWave::create_1(1);
v5 = *(_WORD *)(a1 + 2602);
*((_BYTE *)v4 + 342) = *(_BYTE *)(a1 + 2604);
*((_WORD *)v4 + 170) = v5;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 184LL))(v4, v6);
(*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v4,
0);
v7 = CCCircleWave::followObject(v4, a1, 1);
v8 = GameManager::sharedState(v7);
v9 = *(_QWORD *)(v8 + 544);
if ( v9 )
v10 = v9 + 13992;
else
v10 = 0;
v4[46] = v10;
v11 = GameManager::sharedState(v8);
return PlayLayer::addCircle(*(_QWORD *)(v11 + 544), (__int64)v4);
}
}
return result;
}