//
// GJShopLayer::dGJShopLayer from 0x10014a45c to 0x10014a50c (176 bytes)
//
// 4 xrefs:
// > j_GJShopLayer::dGJShopLayer @ 0x10014a510
// > sub_10014A514 @ 0x10014a518
// > sub_10014A51C @ 0x10014a524
// > sub_10014A530 @ 0x10014a53c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall GJShopLayer::dGJShopLayer(__int64 a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCTouchDispatcher *v3; // x0
cocos2d::CCObject *v4; // x0
*(_QWORD *)a1 = off_1007988A8;
*(_QWORD *)(a1 + 320) = off_100798D40;
*(_QWORD *)(a1 + 328) = &off_100798DB0;
*(_QWORD *)(a1 + 336) = off_100798DC8;
*(_QWORD *)(a1 + 344) = &off_100798DE8;
*(_QWORD *)(a1 + 352) = off_100798E08;
*(_QWORD *)(a1 + 408) = &off_100798E30;
*(_QWORD *)(a1 + 416) = &off_100798E48;
*(_QWORD *)(a1 + 424) = off_100798E60;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (cocos2d::CCObject *)a1);
if ( GameManager::sharedState()->m_rewardedVideoDelegate == (RewardedVideoDelegate *)(a1 + 424) )
GameManager::sharedState()->m_rewardedVideoDelegate = nullptr;
v4 = *(cocos2d::CCObject **)(a1 + 448);
if ( v4 )
cocos2d::CCObject::release(v4);
if ( *(char *)(a1 + 487) < 0 )
operator delete(*(void **)(a1 + 464));
return cocos2d::CCLayer::dCCLayer((_QWORD *)a1);
}