//
// PlayerObject::spawnDualCircle from 0x74fb20 to 0x74fc20 (256 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x9e6d70
// > GJBaseGameLayer::toggleDualMode @ 0x9e6d78
// > ??> @ 0xf1b10
//
// 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::spawnDualCircle(__int64 this)
{
cocos2d::CCNode *v1; // x19
CCCircleWave *v2; // x20
char v3; // w3
char v4; // w2
void (__fastcall *v5)(CCCircleWave *, __int64); // x21
__int64 v6; // x0
GameManager *v7; // x0
GameManager *v8; // x0
__int64 v9; // x0
if ( !*(_BYTE *)(this + 1969) )
{
v1 = (cocos2d::CCNode *)this;
this = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState((GameManager *)this) + 544) + 12605LL);
if ( !(_DWORD)this )
{
this = *(unsigned __int8 *)(GameManager::sharedState((GameManager *)this) + 925);
if ( !(_DWORD)this )
{
v2 = (CCCircleWave *)CCCircleWave::create((CCCircleWave *)((char *)&dword_0 + 1), 50.0, 2.0, 0.25);
v3 = *((_BYTE *)v1 + 2604);
v4 = *((_BYTE *)v1 + 2602);
*((_BYTE *)v2 + 341) = *((_BYTE *)v1 + 2603);
*((_BYTE *)v2 + 342) = v3;
*((_BYTE *)v2 + 340) = v4;
v5 = *(void (__fastcall **)(CCCircleWave *, __int64))(*(_QWORD *)v2 + 184LL);
v6 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v1 + 192LL))(v1);
v5(v2, v6);
(*(void (__fastcall **)(_QWORD, CCCircleWave *, _QWORD))(**((_QWORD **)v1 + 378) + 464LL))(
*((_QWORD *)v1 + 378),
v2,
0);
v7 = (GameManager *)CCCircleWave::followObject(v2, v1, 1u);
v8 = *(GameManager **)(GameManager::sharedState(v7) + 544);
if ( v8 )
v8 = (GameManager *)((char *)v8 + 13992);
*((_QWORD *)v2 + 46) = v8;
v9 = GameManager::sharedState(v8);
return PlayLayer::addCircle(*(cocos2d::CCArray ***)(v9 + 544), v2);
}
}
}
return this;
}