//
// __aeabi_idivmod from 0x8e0864 to 0x8e0884 (32 bytes)
//
// 188 xrefs:
// > BoomScrollLayer::getPage @ 0x2e1d6c
// > BoomScrollLayer::getRelativePageForNum @ 0x2e1f66
// > drawLightning @ 0x2e5fbe
// > drawLightning @ 0x2e5fee
// > GameToolbox::transformColor @ 0x2ec8bc
// > GameToolbox::msToTimeString @ 0x2ede60
// > GameToolbox::msToTimeString @ 0x2ede6a
// > GameToolbox::msToTimeString @ 0x2ede7a
// > GameToolbox::pointsToString @ 0x2efef4
// > ListButtonPage::init @ 0x2fd53a
// > LoadingLayer::getLoadingString @ 0x30bcba
// > PlayLayer::screenFlipObject @ 0x3117bc
// > PlayerObject::updateSpecial @ 0x33d1c0
// > PlayerObject::getOldPosition @ 0x33d218
// > PlayerObject::updateDashAnimation @ 0x33da28
// > PlayerObject::convertToClosestRotation @ 0x33f01e
// > PlayerObject::redirectDash @ 0x3426ae
// > PlayerObject::updateMove @ 0x3437a6
// > PlayerObject::hitGround @ 0x344550
// > getFrameForStreak @ 0x34eba8
// > GameObject::determineSlopeDirection @ 0x355bf8
// > GameObject::editorColorForCustomMode @ 0x356ac4
// > GameObject::updateIsOriented @ 0x356e64
// > GameObject::isFacingDown @ 0x35727c
// > GameObject::isFacingLeft @ 0x3572dc
// > GameObject::objectFromVector @ 0x362d6c
// > LevelEditorLayer::getObjectRect @ 0x366094
// > LevelEditorLayer::rotationForSlopeNearObject @ 0x3670f2
// > traceColorForIndex @ 0x369c70
// > DrawGridLayer::draw @ 0x36bbd0
// > std::__rotate<__gnu_cxx::__normal_iterator>>> @ 0x37557e
// > std::__rotate<__gnu_cxx::__normal_iterator>>> @ 0x3755b6
// > LevelEditorLayer::updateDebugDraw @ 0x37a4d8
// > EditorUI::rotateObjects @ 0x381afe
// > EditorUI::rotateObjects @ 0x381bc2
// > EditorUI::transformObject @ 0x3856ce
// > EditorUI::transformObject @ 0x385758
// > EditorUI::transformObject @ 0x3859d0
// > EditorUI::transformObject @ 0x385a36
// > EditorUI::shouldSnap @ 0x385e1e
// > EditorUI::findSnapObject @ 0x385f50
// > EditorUI::onCreateObject @ 0x3a3fc0
// > PauseLayer::setupProgressBars @ 0x3a828a
// > PauseLayer::setupProgressBars @ 0x3a8296
// > PauseLayer::setupProgressBars @ 0x3a82a6
// > CreatorLayer::init @ 0x3ab6aa
// > LevelInfoLayer::setupPlatformerStats @ 0x3b19b8
// > LevelInfoLayer::setupPlatformerStats @ 0x3b19c2
// > LevelInfoLayer::setupPlatformerStats @ 0x3b19d2
// > generateBestHash @ 0x3c86fa
// > generateBestHash @ 0x3c8710
// > generateBestHash @ 0x3c8726
// > generateBestHash @ 0x3c873c
// > generateBestHash @ 0x3c8756
// > generateBestHash @ 0x3c8768
// > generateBestHash @ 0x3c8778
// > ButtonPage::init @ 0x3d91ca
// > CustomSongWidget::downloadAssetFailed @ 0x3e0b3a
// > CustomSongWidget::downloadAssetFailed @ 0x3e0b80
// > LevelSelectLayer::colorForPage @ 0x40918c
// > LevelSelectLayer::colorForPage @ 0x409208
// > LevelSelectLayer::scrollLayerMoved @ 0x4093e4
// > MoreOptionsLayer::offsetToNextPage @ 0x422b42
// > EndLevelLayer::getEndText @ 0x428bc4
// > EndLevelLayer::getEndText @ 0x428c4a
// > EndLevelLayer::customSetup @ 0x42948a
// > EndLevelLayer::customSetup @ 0x42949e
// > EndLevelLayer::customSetup @ 0x429fa8
// > RetryLevelLayer::customSetup @ 0x435d38
// > RetryLevelLayer::customSetup @ 0x435d48
// > RetryLevelLayer::getEndText @ 0x436088
// > NumberInputLayer::init @ 0x4553fa
// > CustomizeObjectLayer::init @ 0x462e02
// > GJBaseGameLayer::updateDebugDraw @ 0x46bc8a
// > parseSpecialKey @ 0x4732c2
// > parseSpecialKey @ 0x4732d8
// > GJBaseGameLayer::updateSavePositionObjects @ 0x4815e4
// > GJBaseGameLayer::getSavedPosition @ 0x48a010
// > GJOptionsLayer::offsetToNextPage @ 0x4aaee0
// > GJSpecialColorSelect::init @ 0x4ba474
// > SetupSpawnPopup::updateRemapButtons @ 0x4bc2e0
// > WorldSelectLayer::scrollLayerMoved @ 0x4fd340
// > CommunityCreditsPage::init @ 0x507bae
// > SetGroupIDLayer::updateGroupIDButtons @ 0x509a2e
// > GJBigSprite::init @ 0x50f53a
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x5284ec
// > EnhancedGameObject::updateSyncedAnimation @ 0x5292ea
// > EnhancedGameObject::updateSyncedAnimation @ 0x52994a
// > EnhancedGameObject::updateSyncedAnimation @ 0x529ac0
// > EnhancedGameObject::updateSyncedAnimation @ 0x529f94
// > CreateParticlePopup::init @ 0x534de2
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x53eb6a
// > BrowseSmartKeyLayer::init @ 0x53f4e2
// > ShaderLayer::preChromaticGlitchShader @ 0x54d7c2
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x558ca6
// > CharacterColorPage::createColorMenu @ 0x565312
// > SelectArtLayer::init @ 0x570998
// > SelectSettingLayer::init @ 0x572ca0
// > SelectEventLayer::nextPosition @ 0x5786ac
// > SelectEventLayer::nextPosition @ 0x5786c4
// > SetupItemCompareTriggerPopup::init @ 0x57c628
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x580348
// > SecretRewardsLayer::scrollLayerMoved @ 0x58525c
// > SecretRewardsLayer::scrollLayerMoved @ 0x585318
// > SecretRewardsLayer::init @ 0x58655e
// > SelectListIconLayer::init @ 0x592660
// > SecretGame01Layer::resetGame @ 0x59e1f8
// > cocos2d::extension::CCControlStepper::update @ 0x5a7702
// > cocos2d::CCShaky3D::update @ 0x5b4100
// > cocos2d::CCShaky3D::update @ 0x5b4122
// > cocos2d::CCShaky3D::update @ 0x5b414a
// > cocos2d::CCShakyTiles3D::update @ 0x5ba4a4
// > cocos2d::CCShakyTiles3D::update @ 0x5ba4c6
// > cocos2d::CCShakyTiles3D::update @ 0x5ba4e8
// > cocos2d::CCShakyTiles3D::update @ 0x5ba50a
// > cocos2d::CCShakyTiles3D::update @ 0x5ba52c
// > cocos2d::CCShakyTiles3D::update @ 0x5ba54e
// > cocos2d::CCShakyTiles3D::update @ 0x5ba570
// > cocos2d::CCShakyTiles3D::update @ 0x5ba592
// > cocos2d::CCShakyTiles3D::update @ 0x5ba5bc
// > cocos2d::CCShakyTiles3D::update @ 0x5ba5de
// > cocos2d::CCShakyTiles3D::update @ 0x5ba600
// > cocos2d::CCShakyTiles3D::update @ 0x5ba622
// > cocos2d::CCShatteredTiles3D::update @ 0x5baf94
// > cocos2d::CCShatteredTiles3D::update @ 0x5bafb6
// > cocos2d::CCShatteredTiles3D::update @ 0x5bafd8
// > cocos2d::CCShatteredTiles3D::update @ 0x5baffa
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb01c
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb03e
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb060
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb082
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb0ac
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb0ce
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb0f0
// > cocos2d::CCShatteredTiles3D::update @ 0x5bb112
// > cocos2d::CCShuffleTiles::shuffle @ 0x5bb81c
// > cocos2d::CCTurnOffTiles::shuffle @ 0x5bbf38
// > isin @ 0x5bd978
// > cocos2d::CCParticleSystem::initParticle @ 0x5db5ee
// > jinit_c_master_control @ 0x67142e
// > jinit_c_master_control @ 0x67146e
// > jinit_c_master_control @ 0x6715be
// > jinit_c_master_control @ 0x6715ee
// > jinit_downsampler @ 0x673906
// > jinit_downsampler @ 0x673910
// > jpeg_calc_output_dimensions @ 0x67ebe0
// > jpeg_calc_output_dimensions @ 0x67ec10
// > jpeg_calc_output_dimensions @ 0x67ecbe
// > jpeg_calc_output_dimensions @ 0x67ece0
// > jinit_upsampler @ 0x680996
// > jinit_upsampler @ 0x6809a0
// > jround_up @ 0x69ee6c
// > sub_6C0574 @ 0x6c05d0
// > sub_6C1420 @ 0x6c147c
// > sub_6C5DF4 @ 0x6c5e30
// > sub_6C6EA0 @ 0x6c6efc
// > sub_6C8618 @ 0x6c8654
// > sub_6C8940 @ 0x6c89a8
// > sub_6D7BE8 @ 0x6d7c20
// > sub_6D7CE0 @ 0x6d7d18
// > sub_6D8D40 @ 0x6d8d78
// > sub_6D8E38 @ 0x6d8e70
// > sub_6DF41C @ 0x6df4bc
// > sub_6E41CC @ 0x6e44e4
// > sub_6E41CC @ 0x6e4538
// > sub_6E82BC @ 0x6e82f8
// > sub_6E8724 @ 0x6e877c
// > sub_6E89B0 @ 0x6e8a08
// > sub_6E8C30 @ 0x6e8c8c
// > sub_6E8EAC @ 0x6e8f08
// > sub_6E95A8 @ 0x6e96b0
// > sub_6E97C4 @ 0x6e9808
// > sub_6E9C90 @ 0x6e9cf0
// > sub_6E9F58 @ 0x6e9fbc
// > sub_6EA67C @ 0x6ea808
// > sub_6F2090 @ 0x6f20c8
// > sub_6FCC80 @ 0x6fcca6
// > sub_6FE948 @ 0x6fe986
// > ssl3_enc @ 0x78b22c
// > tls1_enc @ 0x78b738
// > BIO_hex_string @ 0x7cc9f0
// > IDEA_set_decrypt_key @ 0x80a87c
// > IDEA_set_decrypt_key @ 0x80a8ec
// > PKCS12_key_gen_uni @ 0x824304
// > PKCS12_key_gen_uni @ 0x824364
// > PKCS12_key_gen_uni @ 0x8244b0
// > BN_mod_exp_mont_consttime @ 0x86d608
// > ??> @ 0x256c
//
// 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
//
int __fastcall _aeabi_idivmod(int a1, unsigned int a2)
{
bool v2; // nf
if ( a2 )
return sub_8E0790(a1, a2);
v2 = a1 < 0;
if ( a1 > 0 )
a1 = 0x7FFFFFFF;
if ( v2 )
a1 = 0x80000000;
return _aeabi_idiv0(a1);
}