//
// PlayerObject::spawnScaleCircle from 0x1002c4574 to 0x1002c46a8 (308 bytes)
//
// 1 xrefs:
// > PlayerObject::togglePlayerScale @ 0x1002c4150
//
// 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 11:02:32 +0000
//
double __fastcall PlayerObject::spawnScaleCircle(__int64 a1)
{
__int64 v2; // x0
double result; // d0
float v4; // s3
int v5; // w21
_QWORD *v6; // x20
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x8
__int64 v11; // x8
__int64 v12; // x0
if ( (*(_BYTE *)(a1 + 1969) & 1) == 0 )
{
v2 = GameManager::sharedState(a1);
if ( (*(_BYTE *)(*(_QWORD *)(v2 + 544) + 12605LL) & 1) == 0
&& (*(_BYTE *)(GameManager::sharedState(v2) + 925) & 1) == 0 )
{
v4 = *(float *)(a1 + 2472);
if ( v4 == 1.0 )
v5 = 9895680;
else
v5 = 9830655;
v6 = (_QWORD *)CCCircleWave::create_1(v4 != 1.0);
*((_BYTE *)v6 + 342) = BYTE2(v5);
*((_WORD *)v6 + 170) = v5;
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v6 + 184LL))(v6, v7);
(*(void (__fastcall **)(_QWORD, _QWORD *, _QWORD))(**(_QWORD **)(a1 + 3024) + 464LL))(
*(_QWORD *)(a1 + 3024),
v6,
0);
v8 = CCCircleWave::followObject(v6, a1, 1);
v9 = GameManager::sharedState(v8);
v10 = *(_QWORD *)(v9 + 544);
if ( v10 )
v11 = v10 + 13992;
else
v11 = 0;
v6[46] = v11;
v12 = GameManager::sharedState(v9);
return PlayLayer::addCircle(*(_QWORD *)(v12 + 544), (__int64)v6);
}
}
return result;
}