//
// cocos2d::CCLabelBMFont::limitLabelWidth from 0x7d325e to 0x7d32f2 (148 bytes)
//
// 242 xrefs:
// > FLAlertLayer::init @ 0x3cbe78
// > GameToolbox::createToggleButton @ 0x3cd428
// > MenuLayer::updateUserProfileButton @ 0x3f9f28
// > MenuLayer::init @ 0x3fac16
// > URLCell::loadFromObject @ 0x426f88
// > SmartTemplateCell::loadFromObject @ 0x429306
// > LevelListCell::loadFromList @ 0x4297de
// > LevelListCell::loadFromList @ 0x4299be
// > LevelListCell::loadFromList @ 0x429e1e
// > LevelListCell::loadFromList @ 0x429f4e
// > LevelListCell::loadFromList @ 0x42a160
// > GJThreadCell::loadFromThread @ 0x42af94
// > GJThreadCell::loadFromThread @ 0x42b54c
// > GJMessageCell::loadFromMessage @ 0x42bc4e
// > GJMessageCell::loadFromMessage @ 0x42bea2
// > ArtistCell::loadFromObject @ 0x42c2ea
// > GJScoreCell::loadFromScore @ 0x42d4ba
// > GJScoreCell::loadFromScore @ 0x42d4fa
// > GJScoreCell::loadFromScore @ 0x42d834
// > GJScoreCell::loadFromScore @ 0x42d94e
// > GJScoreCell::loadFromScore @ 0x42daaa
// > GJScoreCell::loadFromScore @ 0x42dc26
// > GJScoreCell::loadFromScore @ 0x42dd56
// > GJScoreCell::loadFromScore @ 0x42dea6
// > GJScoreCell::loadFromScore @ 0x42e02a
// > GJCompactUserCell::buildUserRow @ 0x42e29a
// > LevelCell::loadCustomLevelCell @ 0x42eb20
// > LevelCell::loadCustomLevelCell @ 0x42ec12
// > LevelCell::loadCustomLevelCell @ 0x42f4ca
// > LevelCell::loadCustomLevelCell @ 0x42f516
// > LevelCell::loadCustomLevelCell @ 0x42f7a8
// > LevelCell::loadCustomLevelCell @ 0x42ff14
// > LevelCell::loadCustomLevelCell @ 0x430002
// > LevelCell::loadCustomLevelCell @ 0x430158
// > LevelCell::loadCustomLevelCell @ 0x4303a4
// > GJLocalLevelScoreCell::loadFromScore @ 0x4314f8
// > GJLevelScoreCell::loadFromScore @ 0x431708
// > GJLevelScoreCell::loadFromScore @ 0x4317ec
// > GJLevelScoreCell::loadFromScore @ 0x4319fa
// > GJLevelScoreCell::loadFromScore @ 0x431a7e
// > GJLevelScoreCell::loadFromScore @ 0x431c0c
// > GJNotificationCell::loadFromNotification @ 0x432190
// > CommentCell::loadFromComment @ 0x43286e
// > CommentCell::loadFromComment @ 0x432fe0
// > CommentCell::loadFromComment @ 0x433822
// > LevelEditorLayer::updateObjectLabel @ 0x469b86
// > EditorUI::updateGroupIDLabel @ 0x484338
// > PauseLayer::createToggleButton @ 0x48f0b2
// > PauseLayer::onChangeStartpos @ 0x48f96c
// > PauseLayer::setupPlatformerLabels @ 0x49092c
// > PauseLayer::setupPlatformerLabels @ 0x490a32
// > LevelInfoLayer::setIDPopupClosed @ 0x499aa4
// > LevelInfoLayer::updateLabelValues @ 0x49bf6c
// > LevelInfoLayer::updateLabelValues @ 0x49bf7c
// > LevelInfoLayer::updateLabelValues @ 0x49bf8c
// > LevelInfoLayer::updateLabelValues @ 0x49bf9c
// > LevelInfoLayer::updateLabelValues @ 0x49bfac
// > LevelInfoLayer::setupPlatformerStats @ 0x49d02c
// > LevelInfoLayer::setupPlatformerStats @ 0x49d162
// > LevelInfoLayer::init @ 0x49d882
// > LevelInfoLayer::init @ 0x49d930
// > LevelInfoLayer::init @ 0x49e726
// > EditLevelLayer::setIDPopupClosed @ 0x49f380
// > EditLevelLayer::setupLevelInfo @ 0x4a0b2a
// > EditLevelLayer::init @ 0x4a1948
// > ShareLevelSettingsLayer::init @ 0x4a32ca
// > LevelBrowserLayer::updatePageLabel @ 0x4a4958
// > LevelBrowserLayer::updatePageLabel @ 0x4a498e
// > LevelBrowserLayer::updateLevelsLabel @ 0x4a4a08
// > ColorSelectPopup::init @ 0x4e0892
// > CustomSongWidget::updateError @ 0x4e296a
// > CustomSongWidget::updateSongInfo @ 0x4e3b56
// > CustomSongWidget::updateSongInfo @ 0x4e3b90
// > CustomSongWidget::updateSongInfo @ 0x4e3ba0
// > CustomSongWidget::updateSongInfo @ 0x4e3bb4
// > CustomSongWidget::updateSongInfo @ 0x4e3ca6
// > CustomSongWidget::updateSongInfo @ 0x4e3cee
// > CustomSongWidget::updateSongInfo @ 0x4e3d18
// > CustomSongWidget::deleteSong @ 0x4e3f64
// > CustomSongWidget::updateMultiAssetInfo @ 0x4e535a
// > CustomSongWidget::processNextMultiAsset @ 0x4e574c
// > CustomSongWidget::processNextMultiAsset @ 0x4e57cc
// > CustomSongWidget::downloadSongFinished @ 0x4e5de2
// > EditorPauseLayer::customSetup @ 0x508852
// > ItemInfoPopup::init @ 0x50e458
// > ItemInfoPopup::init @ 0x50e502
// > GJListLayer::init @ 0x5154f0
// > VideoOptionsLayer::updateTextureQuality @ 0x52d01c
// > VideoOptionsLayer::updateResolution @ 0x52d27a
// > VideoOptionsLayer::createToggleButton @ 0x52d44c
// > EndLevelLayer::playCurrencyEffect @ 0x534784
// > EndLevelLayer::playDiamondEffect @ 0x5349f8
// > EndLevelLayer::customSetup @ 0x536110
// > EndLevelLayer::customSetup @ 0x53619c
// > EndLevelLayer::customSetup @ 0x536466
// > SongInfoLayer::init @ 0x53b36e
// > SongInfoLayer::init @ 0x53b3cc
// > SongInfoLayer::init @ 0x53b77e
// > SongInfoLayer::init @ 0x53be78
// > InfoLayer::refreshUserTitle @ 0x53d8bc
// > InfoLayer::init @ 0x53f02e
// > InfoLayer::init @ 0x53f220
// > RetryLevelLayer::customSetup @ 0x547754
// > GJRateLevelListLayer::init @ 0x566ed0
// > GJRateEditorSoundLayer::init @ 0x56796e
// > NumberInputLayer::updateNumberState @ 0x568a76
// > ColorChannelSprite::updateCopyLabel @ 0x5c2218
// > GJAccountSettingsLayer::createToggleButton @ 0x5d49b2
// > SetTextPopup::addInfoLabel @ 0x5d4bc8
// > SetTextPopup::addPathLabel @ 0x5d5dee
// > MessagesProfilePage::init @ 0x5f0592
// > FRequestProfilePage::init @ 0x5f2344
// > FRequestProfilePage::onSelectMode @ 0x5f2ed8
// > FriendsProfilePage::init @ 0x5f3bf6
// > ProfilePage::loadPageFromUserInfo @ 0x5f8d52
// > ProfilePage::loadPageFromUserInfo @ 0x5f913a
// > ProfilePage::loadPageFromUserInfo @ 0x5f9a6c
// > ProfilePage::loadPageFromUserInfo @ 0x5fa3d8
// > ProfilePage::init @ 0x5fa8aa
// > SecretLayer::updateMessageLabel @ 0x5fca9c
// > ColorSelectLiveOverlay::createToggleButton @ 0x601460
// > DialogLayer::init @ 0x609cc6
// > GauntletNode::generateNode @ 0x60c036
// > GauntletLayer::setupGauntlet @ 0x60e706
// > LevelLeaderboard::init @ 0x6153ca
// > RewardUnlockLayer::playLabelEffect @ 0x617222
// > SecretLayer2::updateMessageLabel @ 0x61a898
// > SecretLayer2::onSubmit @ 0x61e902
// > SecretLayer4::updateMessageLabel @ 0x620dcc
// > SecretLayer4::onSubmit @ 0x62270e
// > WorldLevelPage::init @ 0x62ebe8
// > TopArtistsLayer::updateLevelsLabel @ 0x631612
// > SetupCameraOffsetTrigger::updateEasingLabel @ 0x632d84
// > CommunityCreditsPage::init @ 0x638a46
// > CommunityCreditsPage::init @ 0x638d50
// > SetupCameraRotatePopup::updateEasingLabel @ 0x65a574
// > CreateParticlePopup::createParticleSlider @ 0x666dcc
// > GJSmartBlockPreview::addCount @ 0x66f0a0
// > GJSmartBlockPreview::addChance @ 0x6708f6
// > SetupSmartTemplateLayer::init @ 0x6746f0
// > SetupTriggerPopup::updateEaseLabel @ 0x67b7fa
// > SetupTriggerPopup::updateCustomEaseLabel @ 0x67be88
// > SetupGradientPopup::updateBlendingLabel @ 0x687188
// > SetupMGTrigger::updateEasingLabel @ 0x69aafc
// > CustomSFXWidget::updateError @ 0x6a63c8
// > CustomSFXWidget::updateSFXInfo @ 0x6a6a0e
// > CustomSFXWidget::updateSFXInfo @ 0x6a6a58
// > CustomSFXWidget::updateSFXInfo @ 0x6a6b28
// > CustomSFXWidget::deleteSFX @ 0x6a6cd2
// > SetupReverbPopup::updateReverbLabel @ 0x6afa50
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0x6b8324
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0x6b8c72
// > SetupItemEditTriggerPopup::updateOpButton @ 0x6b900a
// > MusicChangelogPopup::buildContent @ 0x6c1360
// > MusicChangelogPopup::buildContent @ 0x6c1412
// > NewsPopup::rebuildPage @ 0x6c1e60
// > NewsPopup::rebuildPage @ 0x6c2196
// > SFXBrowser::fitFolderPath @ 0x6c5814
// > SFXBrowser::updateSelectionUI @ 0x6c5b28
// > SFXBrowser::setupList @ 0x6c5f4c
// > SFXChangelogPopup::buildContent @ 0x6c99b0
// > ScrollViewPopup::addVersionHeader @ 0x6ca02e
// > LevelListLayer::init @ 0x6d8a66
// > LevelListLayer::init @ 0x6d8aa2
// > SecretLayer5::updateMessageLabel @ 0x6e2bbc
// > EditorUI::updateDpadStepLabel @ 0x6f6d60
// > PagedListPopup::initPaged @ 0x72e80a
// > SFXFolderPickerPopup::updateShareHint @ 0x72f168
// > SFXFolderPickerPopup::rebuildList @ 0x72ffc4
// > AdminActionConfirmPopup::init @ 0x731634
// > AccountReviewPopup::viewedByLabel @ 0x7323c8
// > AccountReviewPopup::init @ 0x73556e
// > AccountReviewPopup::buildDirectReportRow @ 0x73666c
// > AccountReviewPopup::buildFilterRows @ 0x7372c4
// > AccountReviewPopup::buildHistoryRows @ 0x737aec
// > AccountReviewPopup::buildHistoryRows @ 0x737f1e
// > AccountReviewPopup::updateCard @ 0x738fea
// > AccountReviewPopup::buildReportedRows @ 0x739d5a
// > AccountReviewPopup::buildReportedRows @ 0x73a23a
// > ReportQueuePopup::buildRows @ 0x73b7e0
// > ReportQueuePopup::buildRows @ 0x73c08a
// > AutoBackupPopup::updateSummary @ 0x73c6ba
// > AutoBackupPopup::buildRows @ 0x73f1fe
// > AutoBackupPopup::buildRows @ 0x73f38e
// > NotificationsPage::init @ 0x7436ba
// > MessageThreadsPage::updateInviteButton @ 0x746944
// > ThreadViewPopup::refreshDMSubLabel @ 0x746e42
// > ThreadViewPopup::buildMemberButton @ 0x7471a4
// > ThreadViewPopup::layoutTitleRow @ 0x74d252
// > ThreadViewPopup::refreshLockNotice @ 0x752bd4
// > NewThreadPopup::updateRecipientLabel @ 0x755e24
// > NewThreadPopup::applyMode @ 0x755ed2
// > NewThreadPopup::init @ 0x756370
// > ThreadOptionsPopup::init @ 0x7575b6
// > ThreadRequestPopup::init @ 0x757e12
// > ThreadRequestPopup::init @ 0x757fe6
// > InvitesPopup::buildRows @ 0x7590c0
// > InvitesPopup::buildRows @ 0x7592c8
// > InvitesPopup::buildRows @ 0x7593b2
// > InvitesPopup::buildRows @ 0x759428
// > ThreadViewPopup::threadSearchFinished @ 0x75d838
// > ThreadViewPopup::mountVirtualRow @ 0x75f0b0
// > ThreadViewPopup::mountVirtualRow @ 0x75f466
// > SongUsagePopup::init @ 0x76040e
// > SongUsagePopup::init @ 0x760442
// > ClearPlatformerSavesPopup::updateStats @ 0x761946
// > ClearPlatformerSavesPopup::updateStats @ 0x7619a2
// > AccountBanPopup::init @ 0x7647da
// > DeathStatsPopup::init @ 0x76f88c
// > DeathTrackerPopup::refreshView @ 0x774ee8
// > DeathTrackerPopup::init @ 0x775c2e
// > sub_776E74 @ 0x776fe6
// > Dropdown::refreshValueLabel @ 0x777196
// > Dropdown::init @ 0x77784a
// > EasingSelectPopup::init @ 0x77a1aa
// > EditorSFXActionConfigLayer::refreshRows @ 0x77c2e4
// > EditorSoundBrowserLayer::init @ 0x782ba8
// > sub_783854 @ 0x7838c8
// > EditorSoundConfigCell::loadFromConfig @ 0x783ecc
// > EditorSoundConfigCell::loadFromConfig @ 0x784004
// > EditorSoundConfigCell::loadFromConfig @ 0x78412a
// > EditorSoundConfigCell::loadFromConfig @ 0x7842da
// > EditorSoundConfigCell::loadFromConfig @ 0x78443c
// > EditorSoundConfigCell::loadFromConfig @ 0x78450e
// > EditorSoundConfigInfoLayer::buildSummary @ 0x786070
// > EditorSoundConfigInfoLayer::init @ 0x78702c
// > EditorSoundConfigInfoLayer::init @ 0x7870ea
// > EditorSoundConfigUploadPopup::init @ 0x7894a2
// > EditorSoundConfigUploadPopup::init @ 0x789526
// > EditorSoundConfigUploadPopup::init @ 0x789782
// > EditorSoundsLayer::buildContentForTab @ 0x78a658
// > IDNameBrowserPopup::mountVirtualRow @ 0x78ef5a
// > IDNameBrowserPopup::mountVirtualRow @ 0x78f018
// > IDNameBrowserPopup::updateSortButtonLabel @ 0x78fa16
// > IDNameBrowserPopup::init @ 0x7928b0
// > IDNameInput::refreshLabel @ 0x793e16
// > IDNameInput::refreshLabel @ 0x793e60
// > KeybindCapturePopup::updateConflictLabel @ 0x79a614
// > KeybindCapturePopup::updateConflictLabel @ 0x79a6f2
// > ReportPopup::buildReasonRows @ 0x79f8e4
// > ReportPopup::init @ 0x7a0846
// > ReportPopup::init @ 0x7a0ab8
//
// 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:00:36 +0000
//
int __fastcall cocos2d::CCLabelBMFont::limitLabelWidth(cocos2d::CCLabelBMFont *this, float a2, float a3, float a4)
{
float v8; // s19
float v9; // s15
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int, _DWORD))(*(_DWORD *)this + 80))(this, 1065353216, LODWORD(a3));
v8 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)this + 164))(this);
v9 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)this + 84))(this));
if ( v8 > a2 && a2 > 0.0 )
v9 = a2 / v8;
if ( a3 != 0.0 && a3 <= v9 )
v9 = a3;
if ( a4 != 0.0 && a4 >= v9 )
v9 = a4;
return (*(int (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_DWORD *)this + 80))(
this,
COERCE_FLOAT(LODWORD(v9)));
}