//
// PlayerObject::spawnDualCircle from 0x100400a00 to 0x100400af6 (246 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x100101ae0
// > GJBaseGameLayer::toggleDualMode @ 0x100101aec
//
// 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
//
void __fastcall PlayerObject::spawnDualCircle(__int64 a1)
{
_QWORD *v1; // r14
__int16 v2; // ax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rcx
__int64 v6; // rax
if ( !*(_BYTE *)(a1 + 1969)
&& !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState() + 544) + 12605LL)
&& !*(_BYTE *)(GameManager::sharedState() + 925) )
{
v1 = (_QWORD *)CCCircleWave::create_1(1, 50.0, 2.0, 0.25);
v2 = *(_WORD *)(a1 + 2602);
*((_BYTE *)v1 + 342) = *(_BYTE *)(a1 + 2604);
*((_WORD *)v1 + 170) = v2;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v1 + 184LL))(v1, v3);
(*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(a1 + 3024) + 464LL))(*(_QWORD *)(a1 + 3024), v1, 0);
CCCircleWave::followObject(v1, a1, 1);
v4 = *(_QWORD *)(GameManager::sharedState() + 544);
v5 = v4 + 13992;
if ( !v4 )
v5 = 0;
v1[46] = v5;
v6 = GameManager::sharedState();
PlayLayer::addCircle(*(_QWORD *)(v6 + 544), (__int64)v1);
}
}