//
// __aeabi_llsr from 0x8e40e8 to 0x8e4104 (28 bytes)
//
// 4 xrefs:
// > __divdi3 @ 0x8e3f9c
// > __udivdi3 @ 0x8e40c4
// > ??> @ 0x6c1bc
// > ??> @ 0x6c1cc
//
// 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 '__lshrdi3'
unsigned int __fastcall _aeabi_llsr(unsigned int a1, unsigned int a2, int a3)
{
unsigned int result; // r0
if ( a3 - 32 >= 0 )
result = a2 >> (a3 - 32);
else
result = a1 >> a3;
if ( a3 - 32 < 0 )
result |= a2 << (32 - a3);
return result;
}