//
// sub_1001C8D50 from 0x1001c8d50 to 0x1001c8e00 (176 bytes)
//
// 4 xrefs:
// > GJShopLayer::dGJShopLayer @ 0x1001c8e04
// > sub_1001C8E08 @ 0x1001c8e0c
// > sub_1001C8E10 @ 0x1001c8e18
// > sub_1001C8E24 @ 0x1001c8e30
//
// 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:19 +0000
//
__int64 __fastcall sub_1001C8D50(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
_DWORD *v6; // x0
*(_QWORD *)a1 = off_1008EDC18;
*(_QWORD *)(a1 + 320) = off_1008EE0C0;
*(_QWORD *)(a1 + 328) = &off_1008EE130;
*(_QWORD *)(a1 + 336) = off_1008EE148;
*(_QWORD *)(a1 + 344) = &off_1008EE168;
*(_QWORD *)(a1 + 352) = off_1008EE190;
*(_QWORD *)(a1 + 408) = &off_1008EE1C0;
*(_QWORD *)(a1 + 416) = &off_1008EE1D8;
*(_QWORD *)(a1 + 424) = off_1008EE1F0;
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
v4 = cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
v5 = GameManager::sharedState(v4);
if ( *(_QWORD *)(v5 + 1296) == a1 + 424 )
*(_QWORD *)(GameManager::sharedState(v5) + 1296) = 0;
v6 = *(_DWORD **)(a1 + 448);
if ( v6 )
cocos2d::CCObject::release(v6);
if ( *(char *)(a1 + 487) < 0 )
operator delete(*(void **)(a1 + 464));
return cocos2d::CCLayer::dCCLayer((_QWORD *)a1);
}