//
// __aeabi_idivmod from 0xdb90c to 0xdb92c (32 bytes)
//
// 4 xrefs:
// > j___aeabi_idivmod @ 0xe1528
// > ??> @ 0x321c
// > j___aeabi_idivmod @ 0xe1528
// > ??> @ 0xe6ab4
//
// 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:42:06 +0000
//
int __fastcall _aeabi_idivmod(int a1, unsigned int a2)
{
bool v2; // nf
if ( a2 )
return sub_DB838(a1, a2);
v2 = a1 < 0;
if ( a1 > 0 )
a1 = 0x7FFFFFFF;
if ( v2 )
a1 = 0x80000000;
return j___aeabi_idiv0(a1);
}