//
// PauseLayer::createStartPosPopupClosed from 0x1003c2210 to 0x1003c22da (202 bytes)
//
// 2 xrefs:
// > sub_1003C22E0 @ 0x1003c22ec
// > ??> @ 0x100b38b80
//
// This function is hookable on this platform (idp: pc, 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 12:29:33 +0000
//
__int64 __fastcall PauseLayer::createStartPosPopupClosed(__int64 a1)
{
int v2; // r14d
__int64 v3; // rdi
__int64 v4; // r14
__int64 v5; // rdi
__int64 v6; // rax
__int64 StartPosObjectsForCurrentMode; // rax
int v8; // eax
char v9; // r14
__int64 result; // rax
v2 = *(_DWORD *)(a1 + 600);
if ( v2 <= 0 || (v3 = *(_QWORD *)(a1 + 608)) == 0 || v2 > (unsigned int)sub_1007FEF90(v3) )
{
v4 = 0;
v5 = *(_QWORD *)(a1 + 608);
if ( !v5 )
goto LABEL_6;
goto LABEL_5;
}
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 608), (unsigned int)(*(_DWORD *)(a1 + 600) - 1));
v5 = *(_QWORD *)(a1 + 608);
if ( v5 )
LABEL_5:
cocos2d::CCObject::release(v5);
LABEL_6:
v6 = GameManager::sharedState();
StartPosObjectsForCurrentMode = GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(_QWORD *)(v6 + 544));
*(_QWORD *)(a1 + 608) = StartPosObjectsForCurrentMode;
cocos2d::CCObject::retain(StartPosObjectsForCurrentMode);
if ( v4 )
v8 = sub_1007FEFB0(*(_QWORD *)(a1 + 608), v4) + 1;
else
v8 = 0;
*(_DWORD *)(a1 + 600) = v8;
v9 = *(_BYTE *)(a1 + 616);
result = PauseLayer::onChangeStartpos(a1, 0);
*(_BYTE *)(a1 + 616) = v9;
return result;
}