//
// PlayLayer::spawnCircle from 0x14050a7b0 to 0x14050a896 (230 bytes)
//
// 3 xrefs:
// > PlayLayer::levelComplete @ 0x140507030
// > PlayLayer::showCompleteText @ 0x1405076b0
// > ??> @ 0x14092a938
//
// 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 11:33:28 +0000
//
__int64 __fastcall PlayLayer::spawnCircle(__int64 a1)
{
cocos2d::CCDirector *v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // r8
cocos2d::CCObject *v6; // rdi
__int64 v7; // rdx
__int64 v8; // rcx
const struct cocos2d::CCPoint *v9; // rdx
__int64 result; // rax
char v11; // [rsp+40h] [rbp+8h] BYREF
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getScreenRight(v2);
v6 = CCCircleWave::create(v4, v3, v5, 1, 1);
*((_DWORD *)v6 + 89) = 4;
v7 = *(_QWORD *)(a1 + 3512);
*((_WORD *)v6 + 170) = *(_WORD *)(v7 + 2706);
*((_BYTE *)v6 + 342) = *(_BYTE *)(v7 + 2708);
if ( *(_BYTE *)(a1 + 12670) || (v8 = *(_QWORD *)(a1 + 13088)) == 0 || *(_QWORD *)(a1 + 15576) )
v9 = (const struct cocos2d::CCPoint *)(a1 + 15564);
else
v9 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, v9);
(*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v6 + 184LL))(v6, &v11);
result = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))(
*(_QWORD *)(a1 + 4296),
v6,
0);
*((_DWORD *)v6 + 88) = 1;
return result;
}