//
// __aeabi_ldivmod from 0xaf64d8 to 0xaf651c (68 bytes)
//
// 27 xrefs:
// > MusicDownloadManager::generateCustomContentURL @ 0x56fcce
// > cocos2d::CCProfilingEndTimingBlock @ 0x7f6148
// > sub_8208A0 @ 0x8208c4
// > sub_8208A0 @ 0x8208e2
// > sub_8208A0 @ 0x820932
// > sub_8208A0 @ 0x820982
// > sub_8209EC @ 0x820aaa
// > sub_8209EC @ 0x820b30
// > sub_820D0C @ 0x820d4c
// > sub_820D74 @ 0x820e1a
// > sub_820E44 @ 0x820eea
// > sub_820F7C @ 0x8211fc
// > sub_820F7C @ 0x82131a
// > sub_820F7C @ 0x82133c
// > sub_820F7C @ 0x82134a
// > sub_820F7C @ 0x821374
// > sub_820F7C @ 0x821396
// > sub_820F7C @ 0x8213a4
// > sub_820F7C @ 0x821474
// > sub_820F7C @ 0x821480
// > sub_820F7C @ 0x821590
// > sub_820F7C @ 0x8215fa
// > sub_820F7C @ 0x821640
// > std::__ndk1::chrono::system_clock::to_time_t @ 0x954044
// > std::__ndk1::condition_variable::__do_timed_wait @ 0x954178
// > sub_9986BA @ 0x9986d2
// > ??> @ 0x2a26c
//
// 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:03 +0000
//
int __fastcall _aeabi_ldivmod(int a1, int a2, __int64 a3)
{
bool v3; // nf
bool v4; // cc
if ( a3 )
return _gnu_ldivmod_helper(a1);
v3 = a2 < 0;
v4 = a2 <= 0;
if ( !a2 )
{
v3 = a1 < 0;
v4 = a1 <= 0;
}
if ( v3 )
a1 = 0;
if ( !v4 )
a1 = -1;
return _aeabi_idiv0(a1);
}