//
// __ashrdi3 from 0xdb92c to 0xdb948 (28 bytes)
//
// 5 xrefs:
// > j___ashrdi3 @ 0xe3288
// > ??> @ 0x4dec
// > ??> @ 0x5b7c
// > j___ashrdi3 @ 0xe3288
// > ??> @ 0xe720c
//
// 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
//
// Alternative name is '__aeabi_lasr'
int __fastcall _ashrdi3(unsigned int a1, int a2, int a3)
{
int result; // r0
if ( a3 - 32 >= 0 )
result = a2 >> (a3 - 32);
else
result = a1 >> a3;
if ( a3 - 32 < 0 )
return result | (a2 << (32 - a3));
return result;
}