//
// PlayLayer::spawnCircle from 0x1001432b4 to 0x10014335c (168 bytes)
//
// 2 xrefs:
// > PlayLayer::levelComplete @ 0x1001430b8
// > PlayLayer::showCompleteText @ 0x100143aac
//
// 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 10:59:33 +0000
//
__int64 __fastcall PlayLayer::spawnCircle(__int64 a1)
{
__int64 v2; // x0
double v3; // d0
__int64 v4; // x20
__int64 v5; // x8
__int16 v6; // w9
double v7; // d0
__int64 result; // x0
__int64 v9; // [xsp+8h] [xbp-28h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = sub_100207EB0(v2);
v4 = CCCircleWave::create_1(1, 10.0, *(float *)&v3, 0.5);
*(_DWORD *)(v4 + 356) = 4;
v5 = *(_QWORD *)(a1 + 3256);
v6 = *(_WORD *)(v5 + 2602);
*(_BYTE *)(v4 + 342) = *(_BYTE *)(v5 + 2604);
*(_WORD *)(v4 + 340) = v6;
v7 = sub_1001427B4(a1, &v9);
(*(void (__fastcall **)(__int64, __int64 *, double))(*(_QWORD *)v4 + 184LL))(v4, &v9, v7);
result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 3920) + 464LL))(
*(_QWORD *)(a1 + 3920),
v4,
0);
*(_DWORD *)(v4 + 352) = 1;
return result;
}