//
// sub_1007C4DA0 from 0x1007c4da0 to 0x1007c4e63 (195 bytes)
//
// 1 xrefs:
// > sub_10056E200 @ 0x10056e647
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1007C4DA0(_QWORD *a1)
{
__int64 result; // rax
__int64 v2; // rcx
if ( !a1 )
return 4294967194LL;
result = 4294967196LL;
if ( a1[18] )
{
v2 = a1[16] + 1LL;
if ( v2 != a1[13] || a1[13] == 0xFFFF )
{
a1[17] += a1[32] + a1[31] + a1[30] + 46LL;
a1[16] = v2;
result = sub_1007C3EE0((__int64)a1, a1 + 22, a1 + 39, 0, 0, 0, 0, 0, 0);
a1[18] = (_DWORD)result == 0;
}
}
return result;
}