//
// sub_82DE0 from 0x82de0 to 0x82e28 (72 bytes)
//
// 2 xrefs:
// > sub_83194 @ 0x83240
// > sub_83194 @ 0x83250
//
// 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_82DE0(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 40);
*(_BYTE *)(a1 + 24) = 1;
result = sub_E71C0(v2);
if ( !(_DWORD)result )
{
result = sub_E71C0(*(_QWORD *)(a1 + 48));
if ( !(_DWORD)result )
return sub_82CD0();
}
return result;
}