//
// sub_10038EDDC from 0x10038eddc to 0x10038ee40 (100 bytes)
//
// 1 xrefs:
// > sub_10038DCA0 @ 0x10038e4e4
//
// 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 11:03:37 +0000
//
__int64 __fastcall sub_10038EDDC(__int64 a1, __int64 a2)
{
int v3; // w9
int v4; // w8
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v3 = 1;
else
v3 = -1;
v4 = (*(_DWORD *)(a1 + 1048) + v3) & ~((*(_DWORD *)(a1 + 1048) + v3) >> 31);
if ( v4 >= 18 )
v4 = 18;
*(_DWORD *)(a1 + 1048) = v4;
sub_10038F344(a1);
sub_10038EF50(a1);
return sub_10038ED3C(a1);
}