//
// sub_100456D14 from 0x100456d14 to 0x100456db0 (156 bytes)
//
// 4 xrefs:
// > sub_100456DB0 @ 0x100457018
// > sub_100456DB0 @ 0x10045702c
// > sub_100456DB0 @ 0x100457040
// > sub_100456DB0 @ 0x100457054
//
// 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_100456D14(__int64 a1, __int64 a2, int a3)
{
_QWORD *v4; // x8
__int64 v5; // x20
__int64 result; // x0
__int64 v7; // [xsp+8h] [xbp-18h] BYREF
if ( !a2 )
return 31;
v4 = (_QWORD *)(*(_QWORD *)(a1 + 8) + 24LL * a3 + 73664);
if ( !*v4 )
return 0;
v5 = a3;
v7 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 8LL * a3 + 336);
if ( v7 )
return 0;
result = sub_1004A6A84(*v4, a2, &v7, 2, 0, 0);
if ( !(_DWORD)result )
{
*(_QWORD *)(*(_QWORD *)(a1 + 24) + 8 * v5 + 336) = v7;
return 0;
}
return result;
}