//
// PauseLayer::createStartPosPopupClosed from 0x1001c04cc to 0x1001c0578 (172 bytes)
//
// 2 xrefs:
// > sub_1001C0578 @ 0x1001c057c
// > ??> @ 0x1008e8348
//
// 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:00:14 +0000
//
void __fastcall PauseLayer::createStartPosPopupClosed(__int64 a1)
{
int v2; // w20
__int64 v3; // x0
__int64 v4; // x20
_DWORD *v5; // x0
__int64 v6; // x0
__int64 StartPosObjectsForCurrentMode; // x0
int v8; // w8
char v9; // w20
v2 = *(_DWORD *)(a1 + 600);
if ( v2 >= 1 && (v3 = *(_QWORD *)(a1 + 608)) != 0 && v2 <= (unsigned int)sub_1002E757C(v3) )
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 608), (unsigned int)(*(_DWORD *)(a1 + 600) - 1));
else
v4 = 0;
v5 = *(_DWORD **)(a1 + 608);
if ( v5 )
v5 = cocos2d::CCObject::release(v5);
v6 = GameManager::sharedState(v5);
StartPosObjectsForCurrentMode = GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(_QWORD *)(v6 + 544));
*(_QWORD *)(a1 + 608) = StartPosObjectsForCurrentMode;
cocos2d::CCObject::retain(StartPosObjectsForCurrentMode);
if ( v4 )
v8 = sub_1002E7588(*(_QWORD *)(a1 + 608), v4) + 1;
else
v8 = 0;
*(_DWORD *)(a1 + 600) = v8;
v9 = *(_BYTE *)(a1 + 616);
PauseLayer::onChangeStartpos(a1, 0);
*(_BYTE *)(a1 + 616) = v9;
}