//
// sub_1008AD850 from 0x1008ad850 to 0x1008ad88a (58 bytes)
//
// 0 xrefs:
//
// 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:19 +0000
//
__int64 __fastcall sub_1008AD850(_QWORD *a1)
{
__int64 v1; // rax
if ( a1 && a1[18] && ((v1 = a1[13]) == 0 || v1 == 0xFFFF || a1[16] != v1) )
return a1[17];
else
return 0;
}