//
// GJBaseGameLayer::loadStartPosObject from 0x5bcba0 to 0x5bccda (314 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x412852
// > LevelEditorLayer::onPlaytest @ 0x46841c
//
// 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:43 +0000
//
void __fastcall GJBaseGameLayer::loadStartPosObject(PlayerObject **this, StartPosObject *a2)
{
GameManager *v4; // r0
int v5; // r0
float *v6; // r0
PlayerObject *v7; // r2
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
*((_BYTE *)this + 11571) = GameManager::getGameVariable(v4, "0151");
*((_BYTE *)this + 11568) = 1;
PlayerObject::doReversePlayer(*(this + 519), 0);
PlayerObject::rotateGameplayOnly(*(this + 519), 0);
v5 = (int)*(this + 519);
byte_D2C434 = 1;
v6 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5);
GJBaseGameLayer::loadUpToPosition(
(GJBaseGameLayer *)this,
*v6,
*(_DWORD *)(*((_DWORD *)a2 + 412) + 312),
*(_DWORD *)(*((_DWORD *)a2 + 412) + 316));
byte_D2C434 = 0;
*((_BYTE *)this + 11568) = 0;
*((_BYTE *)this + 1280) = 1;
*((_BYTE *)this + 1281) = 1;
cocos2d::CCPoint::operator=(this + 120, flt_D2C400);
GJGameState::stopTweenAction((unsigned int)(this + 82), 0xCu);
GJGameState::stopTweenAction((unsigned int)(this + 82), 0xDu);
cocos2d::CCPoint::operator=(this + 100, flt_D2C400);
cocos2d::CCPoint::operator=(this + 128, flt_D2C400);
if ( *(_BYTE *)(*((_DWORD *)a2 + 412) + 360) )
{
v7 = *this;
*(this + 223) = nullptr;
*(this + 224) = nullptr;
*(this + 225) = nullptr;
*(this + 226) = nullptr;
(*((void (__fastcall **)(PlayerObject **, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD, int, int))v7 + 179))(
this,
0,
0,
0,
0,
0,
0,
-1,
-1);
*(this + 2701) = nullptr;
*(this + 2702) = nullptr;
*(this + 2712) = nullptr;
*(this + 2713) = nullptr;
*((_BYTE *)this + 10856) = 1;
cocos2d::CCPoint::operator=(this + 238, flt_D2C400);
cocos2d::CCPoint::operator=(this + 104, flt_D2C400);
GJBaseGameLayer::resetStaticCamera((unsigned int)this, 1, 1);
}
GJBaseGameLayer::setupLevelStart((GJBaseGameLayer *)this, *((LevelSettingsObject **)a2 + 412));
*((_BYTE *)this + 11571) = 0;
}