//
// PlayLayer::spawnCircle from 0x1000819e0 to 0x100081ac2 (226 bytes)
//
// 2 xrefs:
// > PlayLayer::levelComplete @ 0x10008167f
// > PlayLayer::showCompleteText @ 0x100082383
//
// 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:20:02 +0000
//
__int64 __fastcall PlayLayer::spawnCircle(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v4; // rax
float v5; // xmm1_4
__int64 v6; // r14
__int64 v7; // rax
__int16 v8; // cx
__int64 v9; // rdi
__int64 v10; // rsi
__int64 result; // rax
_QWORD v12[4]; // [rsp+0h] [rbp-20h] BYREF
v12[0] = v2;
v4 = cocos2d::CCDirector::sharedDirector(a1, a2);
v5 = sub_100479770(v4);
v6 = CCCircleWave::create_1(1, 10.0, v5, 0.5);
*(_DWORD *)(v6 + 356) = 4;
v7 = *(_QWORD *)(a1 + 3256);
v8 = *(_WORD *)(v7 + 2602);
*(_BYTE *)(v6 + 342) = *(_BYTE *)(v7 + 2604);
*(_WORD *)(v6 + 340) = v8;
if ( *(_BYTE *)(a1 + 12238) || (v9 = *(_QWORD *)(a1 + 12608)) == 0 || *(_QWORD *)(a1 + 14896) )
v10 = a1 + 14884;
else
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 192LL))(v9);
sub_1002782D0(v12, v10);
(*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 184LL))(v6, v12);
result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(
*(_QWORD *)(a1 + 3920),
v6,
0);
*(_DWORD *)(v6 + 352) = 1;
return result;
}