//
// sub_715A8 from 0x715a8 to 0x715e4 (60 bytes)
//
// 1 xrefs:
// > sub_71D28 @ 0x71d62
//
// 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
//
int __fastcall sub_715A8(int a1, _DWORD *a2, int a3, int a4)
{
int v5; // r5
int v6; // r0
__int64 v7; // r0
_DWORD v9[2]; // [sp+4h] [bp-14h] BYREF
int v10; // [sp+Ch] [bp-Ch]
v10 = a4;
v9[0] = a1;
v9[1] = 19;
v5 = 0;
LOBYTE(v10) = 0;
sub_44998((int)v9);
v6 = a2[6] - 1;
a2[6] = v6;
if ( !v6 )
{
v7 = *(_QWORD *)a2;
v5 = 1;
*(_DWORD *)HIDWORD(v7) = v7;
*(_DWORD *)(*a2 + 4) = HIDWORD(v7);
*a2 = a2;
a2[1] = a2;
}
sub_448CC((int)v9);
return v5;
}