//
// sub_44D38 from 0x44d38 to 0x44d5c (36 bytes)
//
// 2 xrefs:
// > sub_45E4E @ 0x45e54
// > sub_469F0 @ 0x46a08
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:37 +0000
//
int __fastcall sub_44D38(_DWORD *a1, unsigned int a2, int a3)
{
int v4; // r0
unsigned int v5; // r4
int result; // r0
v4 = a1[5];
if ( !v4 )
return 31;
v5 = *(_DWORD *)(v4 + 44);
result = 31;
if ( v5 > a2 && a3 + a2 <= v5 )
{
a1[14] = a2;
a1[15] = a3;
return 0;
}
return result;
}