//
// cocos2d::CCLabelBMFont::limitLabelWidth from 0xd55f24 to 0xd56000 (220 bytes)
//
// 262 xrefs:
// > FLAlertLayer::init @ 0x69a338
// > GameToolbox::createToggleButton @ 0x69c81c
// > MenuLayer::updateUserProfileButton @ 0x6eb1f0
// > MenuLayer::init @ 0x6ebe9c
// > URLCell::loadFromObject @ 0x73ae54
// > GJThreadCell::loadFromThread @ 0x73e180
// > GJThreadCell::loadFromThread @ 0x73e9d4
// > GJMessageCell::loadFromMessage @ 0x73f5c0
// > GJMessageCell::loadFromMessage @ 0x73f87c
// > SmartTemplateCell::loadFromObject @ 0x73ff24
// > LevelListCell::loadFromList @ 0x7403a4
// > LevelListCell::loadFromList @ 0x740610
// > LevelListCell::loadFromList @ 0x740bb4
// > LevelListCell::loadFromList @ 0x740d58
// > LevelListCell::loadFromList @ 0x7413b8
// > ArtistCell::loadFromObject @ 0x741ab0
// > GJScoreCell::loadFromScore @ 0x74350c
// > GJScoreCell::loadFromScore @ 0x74358c
// > GJScoreCell::loadFromScore @ 0x743884
// > GJScoreCell::loadFromScore @ 0x743a08
// > GJScoreCell::loadFromScore @ 0x743bf8
// > GJScoreCell::loadFromScore @ 0x743db4
// > GJScoreCell::loadFromScore @ 0x743f6c
// > GJScoreCell::loadFromScore @ 0x744130
// > GJScoreCell::loadFromScore @ 0x744440
// > GJCompactUserCell::buildUserRow @ 0x744a44
// > LevelCell::loadCustomLevelCell @ 0x745840
// > LevelCell::loadCustomLevelCell @ 0x745a84
// > LevelCell::loadCustomLevelCell @ 0x745b00
// > LevelCell::loadCustomLevelCell @ 0x745e44
// > LevelCell::loadCustomLevelCell @ 0x746108
// > LevelCell::loadCustomLevelCell @ 0x746888
// > LevelCell::loadCustomLevelCell @ 0x7469ec
// > LevelCell::loadCustomLevelCell @ 0x746b7c
// > LevelCell::loadCustomLevelCell @ 0x746e4c
// > LevelCell::loadCustomLevelCell @ 0x7473c8
// > GJLocalLevelScoreCell::loadFromScore @ 0x749340
// > GJLevelScoreCell::loadFromScore @ 0x749708
// > GJLevelScoreCell::loadFromScore @ 0x74994c
// > GJLevelScoreCell::loadFromScore @ 0x749c50
// > GJLevelScoreCell::loadFromScore @ 0x749cbc
// > GJLevelScoreCell::loadFromScore @ 0x749cf8
// > GJLevelScoreCell::loadFromScore @ 0x749dc4
// > GJNotificationCell::loadFromNotification @ 0x74a570
// > CommentCell::loadFromComment @ 0x74afcc
// > CommentCell::loadFromComment @ 0x74b5d4
// > CommentCell::loadFromComment @ 0x74bfec
// > CommentCell::loadFromComment @ 0x74c108
// > LevelEditorLayer::updateObjectLabel @ 0x7991b0
// > EditorUI::updateGroupIDLabel @ 0x7c61d4
// > PauseLayer::onChangeStartpos @ 0x7d48b4
// > PauseLayer::createToggleButton @ 0x7d5ab4
// > PauseLayer::setupPlatformerLabels @ 0x7d7d70
// > PauseLayer::setupPlatformerLabels @ 0x7d7ecc
// > LevelInfoLayer::setIDPopupClosed @ 0x7e4e40
// > LevelInfoLayer::updateLabelValues @ 0x7e8840
// > LevelInfoLayer::updateLabelValues @ 0x7e8854
// > LevelInfoLayer::updateLabelValues @ 0x7e8868
// > LevelInfoLayer::updateLabelValues @ 0x7e887c
// > LevelInfoLayer::updateLabelValues @ 0x7e8890
// > LevelInfoLayer::setupPlatformerStats @ 0x7e9ff4
// > LevelInfoLayer::setupPlatformerStats @ 0x7ea36c
// > LevelInfoLayer::init @ 0x7eacc0
// > LevelInfoLayer::init @ 0x7eaeac
// > LevelInfoLayer::init @ 0x7ebe1c
// > LevelInfoLayer::init @ 0x7ec388
// > EditLevelLayer::setIDPopupClosed @ 0x7ed2a8
// > EditLevelLayer::setupLevelInfo @ 0x7efc44
// > EditLevelLayer::init @ 0x7f0e84
// > ShareLevelSettingsLayer::init @ 0x7f339c
// > LevelBrowserLayer::updatePageLabel @ 0x7f5be0
// > LevelBrowserLayer::updatePageLabel @ 0x7f5c28
// > LevelBrowserLayer::updateLevelsLabel @ 0x7f5ce0
// > ColorSelectPopup::init @ 0x865dac
// > CustomSongWidget::updateError @ 0x868960
// > CustomSongWidget::updateError @ 0x8689c8
// > CustomSongWidget::updateSongInfo @ 0x86a4ac
// > CustomSongWidget::updateSongInfo @ 0x86a4c0
// > CustomSongWidget::updateSongInfo @ 0x86a640
// > CustomSongWidget::updateSongInfo @ 0x86a68c
// > CustomSongWidget::updateSongInfo @ 0x86a6b0
// > CustomSongWidget::updateSongInfo @ 0x86a898
// > CustomSongWidget::updateSongInfo @ 0x86a8ac
// > CustomSongWidget::updateSongInfo @ 0x86a8c8
// > CustomSongWidget::deleteSong @ 0x86ad98
// > CustomSongWidget::deleteSong @ 0x86addc
// > CustomSongWidget::updateMultiAssetInfo @ 0x86c974
// > CustomSongWidget::processNextMultiAsset @ 0x86ce08
// > CustomSongWidget::processNextMultiAsset @ 0x86ceec
// > CustomSongWidget::processNextMultiAsset @ 0x86cfd4
// > CustomSongWidget::downloadSongFinished @ 0x86dc34
// > CustomSongWidget::downloadSongFinished @ 0x86dc6c
// > EditorPauseLayer::customSetup @ 0x8b5bfc
// > ItemInfoPopup::init @ 0x8be8d8
// > ItemInfoPopup::init @ 0x8bedc8
// > GJListLayer::init @ 0x8c8e7c
// > VideoOptionsLayer::updateTextureQuality @ 0x8ef004
// > VideoOptionsLayer::updateTextureQuality @ 0x8ef040
// > VideoOptionsLayer::updateTextureQuality @ 0x8ef078
// > VideoOptionsLayer::updateTextureQuality @ 0x8ef0b8
// > VideoOptionsLayer::updateResolution @ 0x8ef3c0
// > VideoOptionsLayer::createToggleButton @ 0x8ef724
// > EndLevelLayer::playCurrencyEffect @ 0x8fa3a8
// > EndLevelLayer::playDiamondEffect @ 0x8fa720
// > EndLevelLayer::customSetup @ 0x8fc3f0
// > EndLevelLayer::customSetup @ 0x8fd28c
// > EndLevelLayer::customSetup @ 0x8fd2f8
// > SongInfoLayer::init @ 0x9046f4
// > SongInfoLayer::init @ 0x904784
// > SongInfoLayer::init @ 0x904d90
// > SongInfoLayer::init @ 0x905510
// > InfoLayer::refreshUserTitle @ 0x908948
// > InfoLayer::init @ 0x90bdfc
// > InfoLayer::init @ 0x90bf18
// > RetryLevelLayer::customSetup @ 0x91903c
// > GJRateEditorSoundLayer::init @ 0x953d3c
// > GJRateLevelListLayer::init @ 0x95551c
// > NumberInputLayer::updateNumberState @ 0x9568bc
// > ColorChannelSprite::updateCopyLabel @ 0x9f877c
// > GJAccountSettingsLayer::createToggleButton @ 0xa1fd9c
// > SetTextPopup::addInfoLabel @ 0xa202d0
// > SetTextPopup::addPathLabel @ 0xa20464
// > MessagesProfilePage::init @ 0xa4b41c
// > FRequestProfilePage::init @ 0xa4e210
// > FRequestProfilePage::onSelectMode @ 0xa4f070
// > FriendsProfilePage::init @ 0xa50674
// > ProfilePage::loadPageFromUserInfo @ 0xa59638
// > ProfilePage::loadPageFromUserInfo @ 0xa59a08
// > ProfilePage::loadPageFromUserInfo @ 0xa5a7f8
// > ProfilePage::loadPageFromUserInfo @ 0xa5adac
// > ProfilePage::init @ 0xa5bcb0
// > SecretLayer::updateMessageLabel @ 0xa5e418
// > ColorSelectLiveOverlay::createToggleButton @ 0xa651fc
// > DialogLayer::init @ 0xa71268
// > GauntletNode::generateNode @ 0xa748c0
// > GauntletLayer::setupGauntlet @ 0xa78c38
// > LevelLeaderboard::init @ 0xa82d34
// > RewardUnlockLayer::playLabelEffect @ 0xa85a8c
// > SecretLayer2::updateMessageLabel @ 0xa8ab00
// > SecretLayer2::onSubmit @ 0xa916c0
// > SecretLayer2::onSubmit @ 0xa919a0
// > SecretLayer4::updateMessageLabel @ 0xa93e28
// > SecretLayer4::onSubmit @ 0xa9683c
// > WorldLevelPage::init @ 0xaa8dcc
// > TopArtistsLayer::updateLevelsLabel @ 0xaaca70
// > SetupCameraOffsetTrigger::updateEasingLabel @ 0xaae4a8
// > CommunityCreditsPage::init @ 0xab766c
// > CommunityCreditsPage::init @ 0xab7914
// > SetupCameraRotatePopup::updateEasingLabel @ 0xaec4cc
// > CreateParticlePopup::createParticleSlider @ 0xb001a0
// > GJSmartBlockPreview::addCount @ 0xb0d0a0
// > GJSmartBlockPreview::addChance @ 0xb100c0
// > SetupSmartTemplateLayer::init @ 0xb16f14
// > SetupTriggerPopup::updateEaseLabel @ 0xb2177c
// > SetupTriggerPopup::updateCustomEaseLabel @ 0xb2206c
// > SetupGradientPopup::updateBlendingLabel @ 0xb30a1c
// > SetupMGTrigger::updateEasingLabel @ 0xb4d6f4
// > CustomSFXWidget::updateError @ 0xb5e160
// > CustomSFXWidget::updateSFXInfo @ 0xb5e70c
// > CustomSFXWidget::updateSFXInfo @ 0xb5e730
// > CustomSFXWidget::updateSFXInfo @ 0xb5e890
// > CustomSFXWidget::updateSFXInfo @ 0xb5e9a0
// > CustomSFXWidget::deleteSFX @ 0xb5ee44
// > SetupReverbPopup::updateReverbLabel @ 0xb6c458
// > SetupItemEditTriggerPopup::updateFormulaLabel @ 0xb7b340
// > SetupItemCompareTriggerPopup::updateFormulaLabel @ 0xb7c22c
// > SetupItemEditTriggerPopup::updateOpButton @ 0xb7c8b0
// > MusicChangelogPopup::buildContent @ 0xb89ad4
// > MusicChangelogPopup::buildContent @ 0xb89bc0
// > NewsPopup::rebuildPage @ 0xb8b2a8
// > NewsPopup::rebuildPage @ 0xb8b768
// > SFXBrowser::fitFolderPath @ 0xb917dc
// > SFXBrowser::updateSelectionUI @ 0xb91f28
// > SFXBrowser::setupList @ 0xb9246c
// > SFXChangelogPopup::buildContent @ 0xb989e4
// > ScrollViewPopup::addVersionHeader @ 0xb994bc
// > LevelListLayer::init @ 0xbaeeb8
// > LevelListLayer::init @ 0xbaef3c
// > SecretLayer5::updateMessageLabel @ 0xbc4854
// > EditorUI::updateDpadStepLabel @ 0xbe058c
// > PagedListPopup::initPaged @ 0xc39a98
// > SFXFolderPickerPopup::updateShareHint @ 0xc3a880
// > SFXFolderPickerPopup::updateShareHint @ 0xc3a934
// > SFXFolderPickerPopup::rebuildList @ 0xc3c11c
// > AdminActionConfirmPopup::init @ 0xc3e980
// > AccountReviewPopup::viewedByLabel @ 0xc3fce0
// > AccountReviewPopup::init @ 0xc44ac4
// > AccountReviewPopup::buildDirectReportRow @ 0xc4624c
// > AccountReviewPopup::buildFilterRows @ 0xc46f60
// > AccountReviewPopup::buildHistoryRows @ 0xc480b0
// > AccountReviewPopup::buildHistoryRows @ 0xc485bc
// > AccountReviewPopup::updateCard @ 0xc4a584
// > AccountReviewPopup::buildReportedRows @ 0xc4db08
// > AccountReviewPopup::buildReportedRows @ 0xc4e08c
// > ReportQueuePopup::buildRows @ 0xc50a34
// > ReportQueuePopup::buildRows @ 0xc51388
// > AutoBackupPopup::updateSummary @ 0xc52214
// > AutoBackupPopup::buildRows @ 0xc57d88
// > AutoBackupPopup::buildRows @ 0xc58138
// > NotificationsPage::init @ 0xc5f108
// > MessageThreadsPage::updateInviteButton @ 0xc6515c
// > ThreadViewPopup::refreshDMSubLabel @ 0xc65acc
// > ThreadViewPopup::buildMemberButton @ 0xc662a4
// > ThreadViewPopup::layoutTitleRow @ 0xc6d8d0
// > ThreadViewPopup::refreshLockNotice @ 0xc77a68
// > NewThreadPopup::updateRecipientLabel @ 0xc7d17c
// > NewThreadPopup::applyMode @ 0xc7d2bc
// > NewThreadPopup::init @ 0xc7d954
// > ThreadOptionsPopup::init @ 0xc7f1c8
// > ThreadOptionsPopup::init @ 0xc7f744
// > ThreadRequestPopup::init @ 0xc800c8
// > ThreadRequestPopup::init @ 0xc80958
// > InvitesPopup::buildRows @ 0xc819b8
// > InvitesPopup::buildRows @ 0xc81ab8
// > InvitesPopup::buildRows @ 0xc81be8
// > InvitesPopup::buildRows @ 0xc824f0
// > ThreadViewPopup::threadSearchFinished @ 0xc88fd8
// > ThreadViewPopup::mountVirtualRow @ 0xc8b484
// > ThreadViewPopup::mountVirtualRow @ 0xc8bae4
// > SongUsagePopup::init @ 0xc8d090
// > SongUsagePopup::init @ 0xc8d0dc
// > ClearPlatformerSavesPopup::updateStats @ 0xc8ef04
// > ClearPlatformerSavesPopup::updateStats @ 0xc8ef88
// > AccountBanPopup::init @ 0xc93964
// > DeathStatsPopup::init @ 0xca7f88
// > DeathTrackerPopup::refreshView @ 0xcb2694
// > DeathTrackerPopup::init @ 0xcb41dc
// > sub_CB5D38 @ 0xcb5e48
// > Dropdown::refreshValueLabel @ 0xcb6570
// > Dropdown::init @ 0xcb6d70
// > EasingSelectPopup::init @ 0xcbb6c4
// > EditorSFXActionConfigLayer::refreshRows @ 0xcbe5d0
// > EditorSoundBrowserLayer::init @ 0xcc9d20
// > EditorSoundConfigCell::loadFromConfig @ 0xccb37c
// > EditorSoundConfigCell::loadFromConfig @ 0xccb5a4
// > EditorSoundConfigCell::loadFromConfig @ 0xccb740
// > EditorSoundConfigCell::loadFromConfig @ 0xccb81c
// > EditorSoundConfigCell::loadFromConfig @ 0xccb9c8
// > EditorSoundConfigCell::loadFromConfig @ 0xccbca8
// > EditorSoundConfigCell::loadFromConfig @ 0xccbe84
// > EditorSoundConfigCell::loadFromConfig @ 0xccbfac
// > EditorSoundConfigCell::loadFromConfig @ 0xccc144
// > EditorSoundConfigCell::loadFromConfig @ 0xccc220
// > EditorSoundConfigInfoLayer::buildSummary @ 0xccee4c
// > EditorSoundConfigInfoLayer::init @ 0xcd0c14
// > EditorSoundConfigInfoLayer::init @ 0xcd0d18
// > EditorSoundConfigUploadPopup::init @ 0xcd4ae8
// > EditorSoundConfigUploadPopup::init @ 0xcd4b9c
// > EditorSoundConfigUploadPopup::init @ 0xcd4db4
// > EditorSoundsLayer::buildContentForTab @ 0xcd63f0
// > IDNameBrowserPopup::mountVirtualRow @ 0xcdd32c
// > IDNameBrowserPopup::mountVirtualRow @ 0xcdd414
// > IDNameBrowserPopup::updateSortButtonLabel @ 0xcde1d8
// > IDNameBrowserPopup::init @ 0xce2c4c
// > IDNameInput::refreshLabel @ 0xce4e40
// > IDNameInput::refreshLabel @ 0xce4e7c
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6c28
// > KeybindCapturePopup::updateConflictLabel @ 0xcf6f50
// > ReportPopup::buildReasonRows @ 0xcfec84
// > ReportPopup::init @ 0xd0080c
// > ReportPopup::init @ 0xd00c28
// > ??> @ 0x63850
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:43 +0000
//
__int64 __fastcall cocos2d::CCLabelBMFont::limitLabelWidth(cocos2d::CCLabelBMFont *this, float a2, float a3, float a4)
{
float v6; // s9
float v7; // s0
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)this + 160LL))(this, 1.0);
v6 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)this + 328LL))(this);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)this + 168LL))(this);
if ( v6 > a2 && a2 > 0.0 )
v7 = a2 / v6;
if ( a3 != 0.0 && v7 >= a3 )
v7 = a3;
if ( a4 == 0.0 || v7 > a4 )
return (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)this + 160LL))(this);
else
return (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)this + 160LL))(this, a4);
}