//
// sub_1006AF78C from 0x1006af78c to 0x1006af7d8 (76 bytes)
//
// 3 xrefs:
// > sub_1006EDE18 @ 0x1006ede1c
// > sub_1006F4E24 @ 0x1006f4e28
// > sub_1006FC868 @ 0x1006fc86c
//
// 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:11:49 +0000
//
__int64 __fastcall sub_1006AF78C(_QWORD *a1, __int64 a2)
{
__int64 v4; // x0
v4 = *a1;
if ( v4 && (int)sub_100704BB4(v4) > (int)a2 )
return sub_100704BC8(*a1, a2);
else
return 0;
}