//
// sub_100568874 from 0x100568874 to 0x1005688d0 (92 bytes)
//
// 13 xrefs:
// > sub_10056EF38 @ 0x10056ef64
// > sub_100633778 @ 0x1006337cc
// > sub_100633CAC @ 0x100633ea8
// > sub_100633CAC @ 0x100633fac
// > sub_100633CAC @ 0x1006340a4
// > sub_100633CAC @ 0x1006340ec
// > sub_100633CAC @ 0x100634120
// > sub_100633CAC @ 0x1006341c0
// > sub_100633CAC @ 0x1006341f0
// > sub_100633CAC @ 0x10063422c
// > sub_100633CAC @ 0x10063438c
// > sub_100634B4C @ 0x100634b68
// > sub_100634F94 @ 0x100635090
//
// 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:08:12 +0000
//
__int64 __fastcall sub_100568874(__int64 a1, int a2, _QWORD *a3)
{
__int64 result; // x0
if ( a2 )
{
if ( *(_BYTE *)(a1 + 8) )
goto LABEL_3;
return 67;
}
a2 = *(_DWORD *)(a1 + 70460);
if ( !*(_BYTE *)(a1 + 8) )
return 67;
LABEL_3:
result = 31;
if ( a3 )
{
if ( (unsigned int)(a2 - 1) <= 7 )
{
result = 0;
*a3 = a1 + 192LL * (unsigned int)(a2 - 1) + 71136;
}
}
return result;
}