//
// sub_D7340 from 0xd7340 to 0xd7368 (40 bytes)
//
// 5 xrefs:
// > sub_59AE8 @ 0x59b9c
// > sub_76178 @ 0x76244
// > sub_764F4 @ 0x764f8
// > sub_7C19C @ 0x7c3e4
// > sub_7C19C @ 0x7c548
//
// 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 12:14:53 +0000
//
__int64 __fastcall sub_D7340(__int64 a1, __int64 a2, char a3)
{
int *v3; // x0
if ( !a2 )
return 31;
v3 = *(int **)(a1 + 64);
if ( v3 )
return sub_5C88C(v3, a2, -1, a3 & 1);
else
return 2;
}