//
// sub_10071F960 from 0x10071f960 to 0x10071f9c3 (99 bytes)
//
// 3 xrefs:
// > sub_10071B6B0 @ 0x10071bff0
// > sub_10071B6B0 @ 0x10071c099
// > sub_10071B6B0 @ 0x10071c0c4
//
// 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_10071F960(__int64 a1, char a2, char a3)
{
__int64 v4; // rdx
__int64 result; // rax
v4 = *(_QWORD *)(a1 + 10248);
if ( (unsigned __int64)(v4 - 2047) <= 0xFFFFFFFFFFFFF7FELL )
{
sub_100727E20(a1, a1, v4);
*(_QWORD *)(a1 + 10248) = 0;
v4 = 0;
}
*(_BYTE *)(a1 + v4) = a2;
result = *(_QWORD *)(a1 + 10248);
*(_BYTE *)(result + a1 + 1) = a3;
*(_QWORD *)(a1 + 10248) += 2LL;
return result;
}