//
// __aeabi_llsr from 0xaf7bcc to 0xaf7be8 (28 bytes)
//
// 4 xrefs:
// > __divdi3 @ 0xaf7a80
// > __udivdi3 @ 0xaf7ba8
// > ??> @ 0x85a6c
// > ??> @ 0x85a7c
//
// 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 12:11:04 +0000
//
// 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;
}