//
// sub_1001FA234 from 0x1001fa234 to 0x1001fa29c (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f4cc0
//
// 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:00:42 +0000
//
void __cdecl sub_1001FA234(id a1)
{
bool v1; // zf
UIApplication *v2; // x0
v1 = dword_1009F4840 == 1;
if ( dword_1009F4840 < 1 || (--dword_1009F4840, v1) )
{
if ( qword_1009F4848 != UIBackgroundTaskInvalid )
{
v2 = +[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication");
-[UIApplication endBackgroundTask:](v2, "endBackgroundTask:", qword_1009F4848);
qword_1009F4848 = UIBackgroundTaskInvalid;
}
}
}