//
// sub_D9D534 from 0xd9d534 to 0xd9d5cc (152 bytes)
//
// 11 xrefs:
// > sub_D9D5CC @ 0xd9d640
// > sub_D9D694 @ 0xd9d710
// > sub_D9D694 @ 0xd9d730
// > sub_D9D694 @ 0xd9d750
// > sub_D9D7AC @ 0xd9d828
// > sub_D9D7AC @ 0xd9d848
// > sub_D9D7AC @ 0xd9d864
// > sub_D9D7AC @ 0xd9d880
// > sub_D9D7AC @ 0xd9d89c
// > sub_D9D7AC @ 0xd9d8b8
// > sub_D9D7AC @ 0xd9d8d4
//
// This function is hookable on this platform (idp: arm, 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 13:08:27 +0000
//
__int64 __fastcall sub_D9D534(__int64 a1, __int64 a2, _DWORD *a3)
{
unsigned __int8 v7; // [xsp+37h] [xbp+37h] BYREF
if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, unsigned __int8 *, __int64))(a1 + 8))(
*(_QWORD *)(a1 + 56),
a2,
&v7,
1) == 1 )
{
*a3 = v7;
return 0;
}
else if ( (*(unsigned int (__fastcall **)(_QWORD, __int64))(a1 + 48))(*(_QWORD *)(a1 + 56), a2) )
{
return 0xFFFFFFFFLL;
}
else
{
return 0;
}
}