//
// GJBaseGameLayer::createLiveStartPosObject from 0x58e9e4 to 0x58eb6e (394 bytes)
//
// 1 xrefs:
// > CreateStartPosPopup::onCreate @ 0x491ddc
//
// 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:53:04 +0000
//
GameObject *__fastcall GJBaseGameLayer::createLiveStartPosObject(GJBaseGameLayer *this, int a2, int a3, int a4)
{
GameObject *v5; // r6
void (__fastcall *v6)(GameObject *, _DWORD *); // r8
const cocos2d::CCPoint *v7; // r0
_BYTE *v8; // r3
int v9; // r4
int v10; // r3
float v11; // s15
int v12; // r3
double v13; // d7
_DWORD v15[3]; // [sp+4h] [bp-Ch] BYREF
v15[0] = a2;
v15[1] = a3;
v15[2] = a4;
v5 = GameObject::createWithKey((GameObject *)((char *)&dword_1C + 3), a2);
(*(void (__fastcall **)(GameObject *))(*(_DWORD *)v5 + 628))(v5);
(*(void (__fastcall **)(GameObject *))(*(_DWORD *)v5 + 632))(v5);
v6 = *(void (__fastcall **)(GameObject *, _DWORD *))(*(_DWORD *)v5 + 684);
v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v7);
v6(v5, v15);
v8 = *((_BYTE **)this + 519);
v9 = *((_DWORD *)v5 + 412);
if ( v8[1953] )
{
v10 = 1;
}
else if ( v8[1955] )
{
v10 = 2;
}
else if ( v8[1954] )
{
v10 = 3;
}
else if ( v8[1956] )
{
v10 = 4;
}
else if ( v8[1957] )
{
v10 = 5;
}
else if ( v8[1958] )
{
v10 = 6;
}
else if ( v8[1964] )
{
v10 = 7;
}
else
{
v10 = 0;
}
*(_DWORD *)(v9 + 268) = v10;
v11 = *(float *)(*((_DWORD *)this + 519) + 2012);
if ( v11 == 0.7 )
{
v12 = 1;
}
else if ( v11 == 1.1 )
{
v12 = 2;
}
else if ( v11 == 1.3 )
{
v12 = 3;
}
else if ( v11 == 1.6 )
{
v12 = 4;
}
else
{
v12 = 0;
}
*(_DWORD *)(v9 + 272) = v12;
*(_BYTE *)(v9 + 309) = *(_BYTE *)(*((_DWORD *)this + 519) + 1959);
*(_BYTE *)(v9 + 276) = *(float *)(*((_DWORD *)this + 519) + 2008) < 1.0;
*(_BYTE *)(v9 + 277) = *((_BYTE *)this + 866);
*(_BYTE *)(v9 + 278) = *((_BYTE *)this + 856);
*(_BYTE *)(v9 + 310) = *(_BYTE *)(*((_DWORD *)this + 519) + 1962);
*(_BYTE *)(v9 + 279) = *(_BYTE *)(*((_DWORD *)this + 519) + 1963);
*(_DWORD *)(v9 + 316) = *((_DWORD *)this + 183);
v13 = COERCE_DOUBLE(PlayerObject::getYVelocity((PlayerObject *)*((_DWORD *)this + 519)));
*((float *)&v13 + 1) = v13;
*(_DWORD *)(v9 + 396) = HIDWORD(v13);
*(_BYTE *)(v9 + 383) = *((_BYTE *)this + 689);
*(_BYTE *)(v9 + 384) = 1;
return v5;
}