//
// sub_100704BF8 from 0x100704bf8 to 0x100704c2c (52 bytes)
//
// 8 xrefs:
// > sub_1006AE0E4 @ 0x1006ae1dc
// > sub_1006AE45C @ 0x1006ae4e8
// > sub_1006AF6C8 @ 0x1006af734
// > sub_1006AF8F0 @ 0x1006af9f8
// > sub_10071C774 @ 0x10071cba8
// > sub_100725BF8 @ 0x100725fc8
// > sub_100725BF8 @ 0x100726898
// > sub_10073AB6C @ 0x10073ac48
//
// 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:12:50 +0000
//
__int64 __fastcall sub_100704BF8(__int64 a1, int a2, __int64 a3)
{
__int64 result; // x0
result = 0;
if ( a1 && (a2 & 0x80000000) == 0 )
{
if ( *(_DWORD *)a1 <= a2 )
{
return 0;
}
else
{
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL * a2) = a3;
return a3;
}
}
return result;
}