//
// __aeabi_idivmod from 0xaf5864 to 0xaf5884 (32 bytes)
//
// 235 xrefs:
// > BoomScrollLayer::getPage @ 0x3c145c
// > BoomScrollLayer::getRelativePageForNum @ 0x3c1656
// > drawLightning @ 0x3c5d16
// > drawLightning @ 0x3c5d46
// > GameToolbox::transformColor @ 0x3cdaac
// > GameToolbox::msToTimeString @ 0x3cfda0
// > GameToolbox::msToTimeString @ 0x3cfdaa
// > GameToolbox::msToTimeString @ 0x3cfdba
// > GameToolbox::gameVersionToString @ 0x3d39ba
// > GameToolbox::pointsToString @ 0x3d3b48
// > ListButtonPage::init @ 0x3e6b66
// > LoadingLayer::getLoadingString @ 0x3fb07e
// > PlayLayer::screenFlipObject @ 0x400c78
// > PlayerObject::updateSpecial @ 0x43518c
// > PlayerObject::getOldPosition @ 0x4351e8
// > PlayerObject::updateDashAnimation @ 0x4359e8
// > PlayerObject::convertToClosestRotation @ 0x436fd6
// > PlayerObject::redirectDash @ 0x43a12e
// > PlayerObject::hitGround @ 0x43c090
// > PlayerObject::updateMove @ 0x43dfd6
// > getFrameForStreak @ 0x446d24
// > GameObject::determineSlopeDirection @ 0x44d624
// > GameObject::editorColorForCustomMode @ 0x44e0dc
// > GameObject::updateIsOriented @ 0x44e478
// > GameObject::isFacingDown @ 0x44e890
// > GameObject::isFacingLeft @ 0x44e8ee
// > GameObject::objectFromVector @ 0x45c770
// > LevelEditorLayer::getObjectRect @ 0x460088
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x46101a
// > traceColorForIndex @ 0x4633e0
// > DrawGridLayer::draw @ 0x465490
// > LevelEditorLayer::updateDebugDraw @ 0x480030
// > EditorUI::shouldSnap @ 0x485010
// > EditorUI::findSnapObject @ 0x485140
// > EditorUI::onCreateObject @ 0x48776e
// > PauseLayer::setupPlatformerLabels @ 0x490870
// > PauseLayer::setupPlatformerLabels @ 0x49087a
// > PauseLayer::setupPlatformerLabels @ 0x49088a
// > CreatorLayer::init @ 0x494668
// > LevelInfoLayer::setupPlatformerStats @ 0x49cf3a
// > LevelInfoLayer::setupPlatformerStats @ 0x49cf44
// > LevelInfoLayer::setupPlatformerStats @ 0x49cf54
// > generateBestHash @ 0x4ab712
// > generateBestHash @ 0x4ab728
// > generateBestHash @ 0x4ab73e
// > generateBestHash @ 0x4ab754
// > generateBestHash @ 0x4ab76e
// > generateBestHash @ 0x4ab780
// > generateBestHash @ 0x4ab790
// > ButtonPage::init @ 0x4ddf8e
// > LevelSelectLayer::colorForPage @ 0x5118dc
// > LevelSelectLayer::colorForPage @ 0x511958
// > LevelSelectLayer::updateDeathButton @ 0x511af4
// > LevelSelectLayer::updateDeathButton @ 0x511b00
// > LevelSelectLayer::scrollLayerMoved @ 0x511b94
// > MoreOptionsLayer::offsetToNextPage @ 0x52cdd4
// > ParentalGateLayer::generateChallenge @ 0x533c92
// > ParentalGateLayer::generateChallenge @ 0x533ca0
// > ParentalGateLayer::generateChallenge @ 0x533cac
// > ParentalGateLayer::generateChallenge @ 0x533cb8
// > ParentalGateLayer::generateChallenge @ 0x533cc6
// > ParentalGateLayer::generateChallenge @ 0x533cd2
// > EndLevelLayer::getEndText @ 0x534c7c
// > EndLevelLayer::getEndText @ 0x534d02
// > EndLevelLayer::customSetup @ 0x535fde
// > EndLevelLayer::customSetup @ 0x535ff0
// > EndLevelLayer::customSetup @ 0x536bd6
// > RetryLevelLayer::getEndText @ 0x547304
// > RetryLevelLayer::customSetup @ 0x547836
// > RetryLevelLayer::customSetup @ 0x547846
// > NumberInputLayer::init @ 0x568d3a
// > MusicDownloadManager::getCustomSFXRoot @ 0x56e2d8
// > CustomizeObjectLayer::init @ 0x58009e
// > GJBaseGameLayer::drawHitboxTrail @ 0x58ce5e
// > GJBaseGameLayer::drawHitboxTrail @ 0x58cee4
// > GJBaseGameLayer::drawHitboxTrail @ 0x58cf4e
// > GJBaseGameLayer::updateDebugDraw @ 0x58d870
// > parseSpecialKey @ 0x592d6e
// > parseSpecialKey @ 0x592d84
// > GJBaseGameLayer::recordHitboxTrailState @ 0x5a01f2
// > GJBaseGameLayer::recordHitboxTrailState @ 0x5a029c
// > GJBaseGameLayer::updateSavePositionObjects @ 0x5a56e4
// > GJBaseGameLayer::getSavedPosition @ 0x5a7550
// > GJOptionsLayer::offsetToNextPage @ 0x5d4716
// > GJSpecialColorSelect::init @ 0x5e8ff8
// > SetupSpawnPopup::updateRemapButtons @ 0x5eaf68
// > WorldSelectLayer::scrollLayerMoved @ 0x62cf10
// > CommunityCreditsPage::init @ 0x63891c
// > SetGroupIDLayer::updateGroupIDButtons @ 0x63a564
// > GJBigSprite::init @ 0x640968
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x65be74
// > EnhancedGameObject::updateSyncedAnimation @ 0x65d122
// > EnhancedGameObject::updateSyncedAnimation @ 0x65d782
// > EnhancedGameObject::updateSyncedAnimation @ 0x65d8f8
// > EnhancedGameObject::updateSyncedAnimation @ 0x65ddcc
// > CreateParticlePopup::applyTexturePage @ 0x664932
// > CreateParticlePopup::applyTexturePage @ 0x66496e
// > CreateParticlePopup::onTexturePage @ 0x664a1a
// > CreateParticlePopup::init @ 0x669c28
// > CreateParticlePopup::init @ 0x669c44
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673cce
// > BrowseSmartKeyLayer::init @ 0x674ec6
// > ShaderLayer::preChromaticGlitchShader @ 0x683ade
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68fd8a
// > SelectPremadeLayer::init @ 0x699ce8
// > CharacterColorPage::createColorMenu @ 0x69d56e
// > SelectArtLayer::init @ 0x6a9a34
// > SelectSettingLayer::init @ 0x6aa918
// > SelectEventLayer::nextPosition @ 0x6b31a4
// > SelectEventLayer::nextPosition @ 0x6b31bc
// > SetupItemCompareTriggerPopup::init @ 0x6ba70c
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x6bc238
// > std::__ndk1::__inplace_merge SecretRewardsLayer::scrollLayerMoved @ 0x6ca70c
// > SecretRewardsLayer::scrollLayerMoved @ 0x6ca7d4
// > SecretRewardsLayer::init @ 0x6ce63e
// > SelectListIconLayer::init @ 0x6d53b8
// > SecretGame01Layer::resetGame @ 0x6e53de
// > EditorUI::findObject @ 0x6f4d7e
// > EditorUI::createDpadMoveMenu @ 0x6f72f6
// > EditorUI::nextDpadStep @ 0x6f803c
// > EditorUI::rotateObjects @ 0x70dbc6
// > EditorUI::rotateObjects @ 0x70dc80
// > EditorUI::transformObject @ 0x70dd9e
// > EditorUI::transformObject @ 0x70de28
// > EditorUI::transformObject @ 0x70e0a4
// > EditorUI::transformObject @ 0x70e10a
// > GameSettingsLayer::addToggle @ 0x710cae
// > TabbedPopupLayer::offsetToNextPage @ 0x72da7a
// > sub_73293C @ 0x732958
// > sub_73293C @ 0x732980
// > ThreadSearchPopup::clampDayField @ 0x74e0fc
// > ThreadSearchPopup::clampDayField @ 0x74e108
// > std::__ndk1::__inplace_merge ThreadSearchPopup::onGoToDate @ 0x75bf4a
// > ThreadSearchPopup::onGoToDate @ 0x75bf56
// > ThreadViewPopup::mountVirtualRow @ 0x75f5f8
// > SongUsagePopup::buildUsageGrid @ 0x7600dc
// > sub_7663D4 @ 0x766560
// > DeathHistogram::rebuildAxis @ 0x7671dc
// > DtLabelPlacer::place @ 0x767928
// > std::__ndk1::__rotate_gcd> @ 0x76be5c
// > sub_7723A8 @ 0x7723e8
// > sub_7723A8 @ 0x772468
// > DeathTrackerPopup::onPanelButton @ 0x77553e
// > EditorSFXManager::playAction @ 0x7800dc
// > EditorSFXManager::playAction @ 0x7800e8
// > EditorSoundBrowserLayer::init @ 0x782c9e
// > IDNameBrowserPopup::onToggleSort @ 0x793434
// > sub_79B760 @ 0x79b78e
// > sub_79B760 @ 0x79b798
// > ReportPopup::buildReasonRows @ 0x79f7e0
// > cocos2d::extension::CCControlStepper::update @ 0x7ad3fa
// > cocos2d::CCShaky3D::update @ 0x7ba948
// > cocos2d::CCShaky3D::update @ 0x7ba96a
// > cocos2d::CCShaky3D::update @ 0x7ba992
// > cocos2d::CCShakyTiles3D::update @ 0x7c0d64
// > cocos2d::CCShakyTiles3D::update @ 0x7c0d86
// > cocos2d::CCShakyTiles3D::update @ 0x7c0da8
// > cocos2d::CCShakyTiles3D::update @ 0x7c0dca
// > cocos2d::CCShakyTiles3D::update @ 0x7c0dec
// > cocos2d::CCShakyTiles3D::update @ 0x7c0e0e
// > cocos2d::CCShakyTiles3D::update @ 0x7c0e30
// > cocos2d::CCShakyTiles3D::update @ 0x7c0e52
// > cocos2d::CCShakyTiles3D::update @ 0x7c0e7c
// > cocos2d::CCShakyTiles3D::update @ 0x7c0e9e
// > cocos2d::CCShakyTiles3D::update @ 0x7c0ec0
// > cocos2d::CCShakyTiles3D::update @ 0x7c0ee2
// > cocos2d::CCShatteredTiles3D::update @ 0x7c1854
// > cocos2d::CCShatteredTiles3D::update @ 0x7c1876
// > cocos2d::CCShatteredTiles3D::update @ 0x7c1898
// > cocos2d::CCShatteredTiles3D::update @ 0x7c18ba
// > cocos2d::CCShatteredTiles3D::update @ 0x7c18dc
// > cocos2d::CCShatteredTiles3D::update @ 0x7c18fe
// > cocos2d::CCShatteredTiles3D::update @ 0x7c1920
// > cocos2d::CCShatteredTiles3D::update @ 0x7c1942
// > cocos2d::CCShatteredTiles3D::update @ 0x7c196c
// > cocos2d::CCShatteredTiles3D::update @ 0x7c198e
// > cocos2d::CCShatteredTiles3D::update @ 0x7c19b0
// > cocos2d::CCShatteredTiles3D::update @ 0x7c19d2
// > cocos2d::CCShuffleTiles::shuffle @ 0x7c20dc
// > cocos2d::CCTurnOffTiles::shuffle @ 0x7c27fc
// > isin @ 0x7c43b8
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3840
// > jinit_c_master_control @ 0x8814ae
// > jinit_c_master_control @ 0x8814ee
// > jinit_c_master_control @ 0x88163e
// > jinit_c_master_control @ 0x88166e
// > jinit_downsampler @ 0x883986
// > jinit_downsampler @ 0x883990
// > jpeg_calc_output_dimensions @ 0x88ec60
// > jpeg_calc_output_dimensions @ 0x88ec90
// > jpeg_calc_output_dimensions @ 0x88ed3e
// > jpeg_calc_output_dimensions @ 0x88ed60
// > jinit_upsampler @ 0x890a16
// > jinit_upsampler @ 0x890a20
// > jround_up @ 0x8aeeec
// > sub_8D0134 @ 0x8d0190
// > sub_8D0FE0 @ 0x8d103c
// > sub_8D59B4 @ 0x8d59f0
// > sub_8D6A60 @ 0x8d6abc
// > sub_8D81D8 @ 0x8d8214
// > sub_8D8500 @ 0x8d8568
// > sub_8E77A8 @ 0x8e77e0
// > sub_8E78A0 @ 0x8e78d8
// > sub_8E8900 @ 0x8e8938
// > sub_8E89F8 @ 0x8e8a30
// > sub_8EEFDC @ 0x8ef07c
// > sub_8F3D8C @ 0x8f40a4
// > sub_8F3D8C @ 0x8f40f8
// > sub_8F7E7C @ 0x8f7eb8
// > sub_8F82E4 @ 0x8f833c
// > sub_8F8570 @ 0x8f85c8
// > sub_8F87F0 @ 0x8f884c
// > sub_8F8A6C @ 0x8f8ac8
// > sub_8F9168 @ 0x8f9270
// > sub_8F9384 @ 0x8f93c8
// > sub_8F9850 @ 0x8f98b0
// > sub_8F9B18 @ 0x8f9b7c
// > sub_8FA23C @ 0x8fa3c8
// > sub_901C50 @ 0x901c88
// > sub_90C840 @ 0x90c866
// > sub_90E508 @ 0x90e546
// > std::__ndk1::__rotate_gcd> @ 0x976744
// > std::__ndk1::__rotate_gcd> @ 0x9767c8
// > ssl3_enc @ 0x99fe30
// > tls1_enc @ 0x9a033c
// > BIO_hex_string @ 0x9e15f0
// > IDEA_set_decrypt_key @ 0xa1f47c
// > IDEA_set_decrypt_key @ 0xa1f4ec
// > PKCS12_key_gen_uni @ 0xa38f04
// > PKCS12_key_gen_uni @ 0xa38f64
// > PKCS12_key_gen_uni @ 0xa390b0
// > BN_mod_exp_mont_consttime @ 0xa82208
// > ??> @ 0x290c
//
// 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:02 +0000
//
int __fastcall _aeabi_idivmod(int a1, unsigned int a2)
{
bool v2; // nf
if ( a2 )
return sub_AF5790(a1, a2);
v2 = a1 < 0;
if ( a1 > 0 )
a1 = 0x7FFFFFFF;
if ( v2 )
a1 = 0x80000000;
return _aeabi_idiv0(a1);
}