//
// sub_10030E2B0 from 0x10030e2b0 to 0x10030e3b6 (262 bytes)
//
// 4 xrefs:
// > GJShopLayer::dGJShopLayer @ 0x10030e3c5
// > sub_10030E3D0 @ 0x10030e3dc
// > sub_10030E3F0 @ 0x10030e3f9
// > sub_10030E410 @ 0x10030e423
//
// 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:28:37 +0000
//
__int64 __fastcall sub_10030E2B0(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rdx
__int64 v6; // rdx
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // rax
*(_QWORD *)a1 = off_100B1B458;
*(_QWORD *)(a1 + 320) = off_100B1B900;
*(_QWORD *)(a1 + 328) = &off_100B1B970;
*(_QWORD *)(a1 + 336) = off_100B1B988;
*(_QWORD *)(a1 + 344) = off_100B1B9A8;
*(_QWORD *)(a1 + 352) = off_100B1B9D0;
*(_QWORD *)(a1 + 408) = &off_100B1BA00;
*(_QWORD *)(a1 + 416) = &off_100B1BA18;
*(_QWORD *)(a1 + 424) = off_100B1BA30;
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
GameManager::sharedState(v4, a1, v5);
if ( *(_QWORD *)(v7 + 1296) == a1 + 424 )
{
GameManager::sharedState(v4, a1, v6);
*(_QWORD *)(v9 + 1296) = 0;
v8 = *(_QWORD *)(a1 + 448);
if ( !v8 )
goto LABEL_6;
goto LABEL_5;
}
v8 = *(_QWORD *)(a1 + 448);
if ( v8 )
LABEL_5:
cocos2d::CCObject::release(v8);
LABEL_6:
if ( (*(_BYTE *)(a1 + 464) & 1) != 0 )
operator delete(*(void **)(a1 + 480));
return sub_1004A9420(a1);
}