//
// sub_1007CB570 from 0x1007cb570 to 0x1007cb5b1 (65 bytes)
//
// 13 xrefs:
// > ??> @ 0x10093da40
// > ??> @ 0x10093e100
// > ??> @ 0x10093e7c0
// > ??> @ 0x10093ee80
// > ??> @ 0x10093f540
// > ??> @ 0x10093fc00
// > ??> @ 0x1009402c0
// > ??> @ 0x100940980
// > ??> @ 0x100941040
// > ??> @ 0x100941700
// > ??> @ 0x100941dc0
// > ??> @ 0x10097e8d8
// > ??> @ 0x100996a50
//
// 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_1007CB570(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_QWORD *)(a1 + 352) != a2 )
{
*(_QWORD *)(a1 + 352) = a2;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1624LL))(a1 - 320);
}
return result;
}