//
// sub_10071F9D0 from 0x10071f9d0 to 0x10071fa1b (75 bytes)
//
// 1 xrefs:
// > sub_10071B6B0 @ 0x10071baa7
//
// This function is hookable on this platform (idp: pc, 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 12:36:13 +0000
//
__int64 __fastcall sub_10071F9D0(__int64 a1, char a2)
{
__int64 v2; // rdx
__int64 result; // rax
v2 = *(_QWORD *)(a1 + 10248);
result = v2 - 2048;
if ( (unsigned __int64)(v2 - 2048) <= 0xFFFFFFFFFFFFF7FELL )
{
result = sub_100727E20(a1, a1, v2);
*(_QWORD *)(a1 + 10248) = 0;
v2 = 0;
}
*(_BYTE *)(a1 + v2) = a2;
++*(_QWORD *)(a1 + 10248);
return result;
}