//
// PlayerObject::spawnScaleCircle from 0x435cb8 to 0x435d7c (196 bytes)
//
// 1 xrefs:
// > PlayerObject::togglePlayerScale @ 0x43f6ae
//
// 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:48:19 +0000
//
int __fastcall PlayerObject::spawnScaleCircle(int this, int a2, int a3, bool a4)
{
cocos2d::CCNode *v4; // r6
char v5; // r5
int v6; // r2
char v7; // r7
int v8; // r1
float v9; // r3
int v10; // r0
CCCircleWave *v11; // r0
CCCircleWave *v12; // r4
int v13; // r3
void (__fastcall *v14)(CCCircleWave *, int); // r5
int v15; // r0
GameManager *v16; // r0
GameManager *v17; // r0
int v18; // r3
int v19; // r0
v4 = (cocos2d::CCNode *)this;
if ( !*(_BYTE *)(this + 1601) )
{
this = GameManager::sharedState((GameManager *)this);
if ( !*(_BYTE *)(*(_DWORD *)(this + 404) + 10829) )
{
this = GameManager::sharedState((GameManager *)this);
v5 = *(_BYTE *)(this + 725);
if ( !v5 )
{
if ( *((float *)v4 + 502) == 1.0 )
{
v6 = 1050253722;
v7 = -1;
v8 = 1109393408;
LODWORD(v9) = *(unsigned __int8 *)(this + 725);
v10 = 1092616192;
}
else
{
v7 = *(_BYTE *)(this + 725);
LODWORD(v9) = 1;
v5 = -1;
v6 = 1048576000;
v8 = 0x40000000;
v10 = 1112014848;
}
v11 = CCCircleWave::create((CCCircleWave *)v10, v8, (cocos2d::CCActionTween *)v6, v9, a4);
*((_BYTE *)v11 + 282) = -106;
v12 = v11;
v13 = *(_DWORD *)v11;
*((_BYTE *)v11 + 280) = v5;
*((_BYTE *)v11 + 281) = v7;
v14 = *(void (__fastcall **)(CCCircleWave *, int))(v13 + 92);
v15 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v4 + 96))(v4);
v14(v12, v15);
(*(void (__fastcall **)(_DWORD, CCCircleWave *, _DWORD))(**((_DWORD **)v4 + 611) + 232))(
*((_DWORD *)v4 + 611),
v12,
0);
v16 = (GameManager *)CCCircleWave::followObject(v12, v4, 1);
v17 = (GameManager *)GameManager::sharedState(v16);
v18 = *((_DWORD *)v17 + 101);
if ( v18 )
v18 += 11688;
*((_DWORD *)v12 + 77) = v18;
v19 = GameManager::sharedState(v17);
return PlayLayer::addCircle(*(cocos2d::CCArray ***)(v19 + 404), v12);
}
}
}
return this;
}