//
// sub_1005DE15C from 0x1005de15c to 0x1005de178 (28 bytes)
//
// 2 xrefs:
// > sub_100543AB4 @ 0x100544358
// > sub_1005F40BC @ 0x1005f40e4
//
// 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_1005DE15C(__int64 a1, __int64 a2)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 24);
if ( result != a2 )
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = a2;
return result;
}