//
// sub_1004C0BBC from 0x1004c0bbc to 0x1004c0bfc (64 bytes)
//
// 1 xrefs:
// > ??> @ 0x100984948
//
// 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:06:19 +0000
//
void __fastcall sub_1004C0BBC(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x9
int v4; // w10
v3 = (*(_QWORD *)(a1 + 88) - *(_QWORD *)(a1 + 80)) >> 6;
if ( (int)v3 >= 1 )
{
if ( (int)v3 >= a3 )
v4 = a3;
else
v4 = (*(_QWORD *)(a1 + 88) - *(_QWORD *)(a1 + 80)) >> 6;
if ( v4 <= 1 )
v4 = 1;
*(_BYTE *)(a1 + 60) = 0;
*(_DWORD *)(a1 + 64) = v3 - v4;
sub_1004BBCDC(a1 - 672);
}
}