//
// sub_1008B2D50 from 0x1008b2d50 to 0x1008b2d91 (65 bytes)
//
// 13 xrefs:
// > ??> @ 0x100b47c88
// > ??> @ 0x100b48358
// > ??> @ 0x100b48a28
// > ??> @ 0x100b490f8
// > ??> @ 0x100b497c8
// > ??> @ 0x100b49e98
// > ??> @ 0x100b4a568
// > ??> @ 0x100b4ac38
// > ??> @ 0x100b4b308
// > ??> @ 0x100b4b9d8
// > ??> @ 0x100b4c0a8
// > ??> @ 0x100b91fa8
// > ??> @ 0x100baccc8
//
// 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:37:22 +0000
//
__int64 __fastcall sub_1008B2D50(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_QWORD *)(a1 + 352) != a2 )
{
*(_QWORD *)(a1 + 352) = a2;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 1640LL))(a1 - 320);
}
return result;
}