//
// sub_100079768 from 0x100079768 to 0x100079838 (208 bytes)
//
// 2 xrefs:
// > sub_100079570 @ 0x100079578
// > sub_100079598 @ 0x1000795f0
//
// 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 10:58:14 +0000
//
__int64 __fastcall sub_100079768(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x8
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v8; // x0
const std::string::value_type *CString; // x0
v2 = *(_QWORD *)(a1 + 688);
if ( v2 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 344LL))(v2, 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 680) + 1160LL))(*(_QWORD *)(a1 + 680), 0);
v3 = *(_QWORD *)(a1 + 672);
if ( (*(char *)(v3 + 167) & 0x8000000000000000LL) != 0 )
{
if ( *(_QWORD *)(v3 + 152) )
goto LABEL_5;
LABEL_7:
v8 = sub_1003065B0("SmartTemplate_%i", *(_DWORD *)(v3 + 192));
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v8);
std::string::assign((std::string *)(*(_QWORD *)(a1 + 672) + 144LL), CString);
goto LABEL_5;
}
if ( !*(_BYTE *)(v3 + 167) )
goto LABEL_7;
LABEL_5:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
v4 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
v5 = cocos2d::CCDirector::sharedDirector(v4);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
return cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
}