//
// sub_10050244C from 0x10050244c to 0x1005024fc (176 bytes)
//
// 4 xrefs:
// > LevelBadgePopup::dLevelBadgePopup @ 0x100502500
// > sub_100502504 @ 0x100502508
// > sub_10050250C @ 0x100502514
// > sub_100502520 @ 0x10050252c
//
// 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:06:54 +0000
//
__int64 __fastcall sub_10050244C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
*(_QWORD *)a1 = off_100996480;
*(_QWORD *)(a1 + 320) = off_1009969E0;
*(_QWORD *)(a1 + 328) = &off_100996A50;
*(_QWORD *)(a1 + 336) = off_100996A68;
*(_QWORD *)(a1 + 344) = off_100996A88;
*(_QWORD *)(a1 + 352) = off_100996AB0;
*(_QWORD *)(a1 + 408) = off_100996AE0;
*(_QWORD *)(a1 + 432) = off_100996B60;
*(_QWORD *)(a1 + 544) = off_100996B80;
*(_QWORD *)(a1 + 664) = off_100996BC8;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1224) == a1 + 664 )
*(_QWORD *)(GameLevelManager::sharedState() + 1224) = 0;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
if ( *(char *)(a1 + 719) < 0 )
operator delete(*(void **)(a1 + 696));
return sub_10034A834(a1);
}