//
// PlayLayer::spawnCircle from 0x3ffe54 to 0x3ffedc (136 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:23 +0000
//
int __fastcall PlayLayer::spawnCircle(PlayLayer *this, int a2, int a3, int a4)
{
cocos2d::CCDirector *v5; // r0
int ScreenRight; // r0
CCCircleWave *v7; // r0
CCCircleWave *v8; // r4
_BYTE *v9; // r3
char v10; // r2
char v11; // r1
void (__fastcall *v12)(CCCircleWave *, _DWORD *); // r8
int result; // r0
char v14; // [sp+0h] [bp-4h]
_DWORD v15[3]; // [sp+4h] [bp+0h] BYREF
v14 = (char)this;
v15[0] = a2;
v15[1] = a3;
v15[2] = a4;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
ScreenRight = cocos2d::CCDirector::getScreenRight(v5);
v7 = CCCircleWave::create(
(CCCircleWave *)0x41200000,
ScreenRight,
(cocos2d::CCActionTween *)0x3F000000,
COERCE_FLOAT(1),
v14);
*((_DWORD *)v7 + 74) = 4;
v8 = v7;
v9 = *((_BYTE **)this + 519);
v10 = v9[2107];
v11 = v9[2106];
LOBYTE(v9) = v9[2108];
*((_BYTE *)v7 + 281) = v10;
*((_BYTE *)v7 + 280) = v11;
*((_BYTE *)v7 + 282) = (_BYTE)v9;
v12 = *(void (__fastcall **)(CCCircleWave *, _DWORD *))(*(_DWORD *)v7 + 92);
PlayLayer::getEndPosition((PlayLayer *)v15, (int)this);
v12(v8, v15);
result = (*(int (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**((_DWORD **)this + 609) + 232))(
*((_DWORD *)this + 609),
v8,
0);
*((_DWORD *)v8 + 73) = 1;
return result;
}