//
// __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!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}