//
// PauseLayer::onShowStartposBrowser from 0x1404d9150 to 0x1404d92b6 (358 bytes)
//
// 2 xrefs:
// > PauseLayer::customSetup @ 0x1404d8ae8
// > ??> @ 0x140929924
//
// 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 11:33:03 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall PauseLayer::onShowStartposBrowser(__int64 a1)
{
unsigned int v2; // ebx
__int64 v3; // rdi
_QWORD *v4; // rsi
__int64 (__fastcall *v5)(__int64); // rdx
v2 = *(_DWORD *)(a1 + 600);
v3 = *(_QWORD *)(a1 + 608);
v4 = operator new(0x2D0u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*v4 = &StartPosBrowser::`vftable';
v4[40] = &StartPosBrowser::`vftable';
v4[41] = &StartPosBrowser::`vftable';
v4[42] = &StartPosBrowser::`vftable';
v4[43] = &StartPosBrowser::`vftable';
v4[44] = &StartPosBrowser::`vftable';
v4[51] = &StartPosBrowser::`vftable';
v4[54] = &StartPosBrowser::`vftable';
v4[68] = &StartPosBrowser::`vftable';
v4[83] = &StartPosBrowser::`vftable';
v4[84] = &StartPosBrowser::`vftable';
v4[85] = 0;
v4[86] = 0;
*((_DWORD *)v4 + 174) = 0;
v4[88] = 0;
v4[89] = 0;
if ( (unsigned __int8)StartPosBrowser::init(v4, v3, v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);
v4 = nullptr;
}
v4[89] = a1 + 560;
v5 = *(__int64 (__fastcall **)(__int64))(*v4 + 1064LL);
if ( v5 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v4);
else
return v5((__int64)v4);
}