//
// sub_100501A54 from 0x100501a54 to 0x100501aec (152 bytes)
//
// 4 xrefs:
// > ThreadMessageOptionsPopup::dThreadMessageOptionsPopup @ 0x100501af0
// > sub_100501AF4 @ 0x100501af8
// > sub_100501AFC @ 0x100501b04
// > sub_100501B10 @ 0x100501b1c
//
// 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_100501A54(__int64 a1)
{
_DWORD *v2; // x0
*(_QWORD *)a1 = off_100995C50;
*(_QWORD *)(a1 + 320) = off_100996248;
*(_QWORD *)(a1 + 328) = &off_1009962B8;
*(_QWORD *)(a1 + 336) = off_1009962D0;
*(_QWORD *)(a1 + 344) = off_1009962F0;
*(_QWORD *)(a1 + 352) = off_100996318;
*(_QWORD *)(a1 + 408) = off_100996348;
*(_QWORD *)(a1 + 432) = off_1009963C8;
*(_QWORD *)(a1 + 544) = off_1009963E8;
*(_QWORD *)(a1 + 664) = &off_100996430;
*(_QWORD *)(a1 + 672) = off_100996448;
*(_QWORD *)(a1 + 1016) = &off_100996468;
v2 = *(_DWORD **)(a1 + 1024);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( *(char *)(a1 + 1063) < 0 )
operator delete(*(void **)(a1 + 1040));
return sub_1001ABB48(a1);
}