//
// sub_100079598 from 0x100079598 to 0x100079678 (224 bytes)
//
// 2 xrefs:
// > sub_100078D94 @ 0x100079360
// > sub_100078D94 @ 0x100079410
//
// 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_100079598(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 5 )
{
sub_100009900(__p, "Are you sure you want to delete this template?");
v5 = FLAlertLayer::create_1(a1 + 664, "Delete Template", __p, "NO", "YES", 300.0);
if ( v7 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 5);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
else if ( !(_DWORD)result )
{
v4 = sub_100079694(*(_QWORD *)(a1 + 672), 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
return sub_100079768(a1);
}
return result;
}