//
// sub_100678AB8 from 0x100678ab8 to 0x100678b2c (116 bytes)
//
// 12 xrefs:
// > sub_100676A74 @ 0x100676b20
// > sub_100688CA0 @ 0x10068a418
// > sub_10068A910 @ 0x10068ab18
// > sub_10068BFF0 @ 0x10068c10c
// > sub_10069F398 @ 0x10069f488
// > sub_1006A0904 @ 0x1006a09b0
// > sub_1006A0D64 @ 0x1006a0d98
// > sub_1006A1FA4 @ 0x1006a20cc
// > sub_1006A1FA4 @ 0x1006a2134
// > sub_1006A8580 @ 0x1006a89e0
// > sub_1006A8D20 @ 0x1006a8dc8
// > sub_1006A8EE8 @ 0x1006a8fdc
//
// 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:13 +0000
//
__int64 __fastcall sub_100678AB8(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 *a5)
{
__int64 v6; // x8
__int64 result; // x0
unsigned int v8; // [xsp+Ch] [xbp-14h]
v8 = 0;
v6 = (*(__int64 (**)(void))(a1 + 8LL * (*(_DWORD *)(a1 + 468) == a2) + 504))();
result = 0;
*a5 = v6;
if ( v6 < 0 )
{
result = v8;
if ( v8 )
{
if ( v8 == 81 )
{
*a5 = 0;
return 0;
}
}
else
{
return 55;
}
}
return result;
}