// // cocos2d::CCLabelBMFont::limitLabelWidth from 0x100399770 to 0x10039981c (172 bytes) // // 249 xrefs: // > sub_100009340 @ 0x1000093cc // > sub_1000093E4 @ 0x1000094f8 // > ColorChannelSprite::updateCopyLabel @ 0x10000d32c // > LevelInfoLayer::init @ 0x100027e10 // > LevelInfoLayer::init @ 0x100028044 // > LevelInfoLayer::init @ 0x100029750 // > LevelInfoLayer::setupPlatformerStats @ 0x10002b478 // > LevelInfoLayer::setupPlatformerStats @ 0x10002b564 // > LevelInfoLayer::setIDPopupClosed @ 0x10002c8fc // > LevelInfoLayer::updateLabelValues @ 0x10002cf78 // > LevelInfoLayer::updateLabelValues @ 0x10002cf94 // > LevelInfoLayer::updateLabelValues @ 0x10002cfa8 // > LevelInfoLayer::updateLabelValues @ 0x10002cfbc // > LevelInfoLayer::updateLabelValues @ 0x10002cfd0 // > GameToolbox::createToggleButton @ 0x1000498c4 // > sub_100078D94 @ 0x100079324 // > sub_10007D420 @ 0x10007d46c // > GJListLayer::init @ 0x100088654 // > DialogLayer::init @ 0x10008ff68 // > EditLevelLayer::init @ 0x10010fb30 // > sub_100110828 @ 0x100110b24 // > EditLevelLayer::setIDPopupClosed @ 0x1001125e8 // > sub_100114950 @ 0x100114b7c // > sub_100114E68 @ 0x100114ed0 // > sub_100114ED4 @ 0x100114f78 // > sub_10011DE5C @ 0x10011df3c // > CustomSongWidget::updateSongInfo @ 0x100120ca0 // > CustomSongWidget::updateSongInfo @ 0x100120ce4 // > CustomSongWidget::updateSongInfo @ 0x100120d1c // > CustomSongWidget::updateSongInfo @ 0x100120ea8 // > CustomSongWidget::updateSongInfo @ 0x100120edc // > CustomSongWidget::updateSongInfo @ 0x100120ef4 // > CustomSongWidget::updateSongInfo @ 0x100120f18 // > CustomSongWidget::deleteSong @ 0x10012177c // > CustomSongWidget::updateMultiAssetInfo @ 0x1001226d8 // > sub_100122A24 @ 0x100122acc // > CustomSongWidget::downloadSongFinished @ 0x100122bdc // > CustomSongWidget::processNextMultiAsset @ 0x100122f48 // > CustomSongWidget::processNextMultiAsset @ 0x100122f70 // > LevelListCell::loadFromList @ 0x100128fa0 // > LevelListCell::loadFromList @ 0x100129238 // > LevelListCell::loadFromList @ 0x100129928 // > LevelListCell::loadFromList @ 0x100129ad0 // > LevelListCell::loadFromList @ 0x100129d68 // > ArtistCell::loadFromObject @ 0x10012a980 // > URLCell::loadFromObject @ 0x10012acd4 // > CommentCell::loadFromComment @ 0x10012b10c // > CommentCell::loadFromComment @ 0x10012bad8 // > CommentCell::loadFromComment @ 0x10012c31c // > GJScoreCell::loadFromScore @ 0x10012cf50 // > GJScoreCell::loadFromScore @ 0x10012cfcc // > GJScoreCell::loadFromScore @ 0x10012d3c4 // > GJScoreCell::loadFromScore @ 0x10012d554 // > GJScoreCell::loadFromScore @ 0x10012d754 // > GJScoreCell::loadFromScore @ 0x10012d914 // > GJScoreCell::loadFromScore @ 0x10012dad0 // > GJScoreCell::loadFromScore @ 0x10012dc98 // > GJScoreCell::loadFromScore @ 0x10012de6c // > GJLevelScoreCell::loadFromScore @ 0x10012e378 // > GJLevelScoreCell::loadFromScore @ 0x10012e4c0 // > GJLevelScoreCell::loadFromScore @ 0x10012e710 // > GJLevelScoreCell::loadFromScore @ 0x10012e788 // > GJLevelScoreCell::loadFromScore @ 0x10012e9ac // > GJLocalLevelScoreCell::loadFromScore @ 0x10012ec08 // > GJMessageCell::loadFromMessage @ 0x10012f47c // > GJMessageCell::loadFromMessage @ 0x10012f754 // > GJThreadCell::loadFromThread @ 0x100130028 // > GJThreadCell::loadFromThread @ 0x10013075c // > GJNotificationCell::loadFromNotification @ 0x100131268 // > SmartTemplateCell::loadFromObject @ 0x100131af0 // > LevelCell::loadCustomLevelCell @ 0x1001336f4 // > LevelCell::loadCustomLevelCell @ 0x100133894 // > LevelCell::loadCustomLevelCell @ 0x100134494 // > LevelCell::loadCustomLevelCell @ 0x100134554 // > LevelCell::loadCustomLevelCell @ 0x1001348cc // > LevelCell::loadCustomLevelCell @ 0x1001354dc // > LevelCell::loadCustomLevelCell @ 0x10013564c // > LevelCell::loadCustomLevelCell @ 0x100135800 // > LevelCell::loadCustomLevelCell @ 0x100135b50 // > GJCompactUserCell::buildUserRow @ 0x10013942c // > sub_100186BFC @ 0x100186d88 // > KeybindCapturePopup::updateConflictLabel @ 0x1001a53cc // > KeybindCapturePopup::updateConflictLabel @ 0x1001a5558 // > sub_1001B2300 @ 0x1001b23a4 // > sub_1001B3028 @ 0x1001b3108 // > PauseLayer::onChangeStartpos @ 0x1001c01f4 // > PauseLayer::setupPlatformerLabels @ 0x1001c0e58 // > PauseLayer::setupPlatformerLabels @ 0x1001c0f14 // > sub_1001F50BC @ 0x1001f5418 // > sub_1001F599C @ 0x1001f5dcc // > sub_1001F5F00 @ 0x1001f62a0 // > sub_100212660 @ 0x1002126d8 // > sub_10022366C @ 0x100223704 // > ProfilePage::init @ 0x10022a008 // > ProfilePage::loadPageFromUserInfo @ 0x10022b3b8 // > ProfilePage::loadPageFromUserInfo @ 0x10022b9a0 // > ProfilePage::loadPageFromUserInfo @ 0x10022c724 // > ProfilePage::loadPageFromUserInfo @ 0x10022d198 // > CommunityCreditsPage::init @ 0x10023695c // > CommunityCreditsPage::init @ 0x100236bec // > sub_10023A270 @ 0x10023a2ec // > RetryLevelLayer::customSetup @ 0x100248020 // > FRequestProfilePage::init @ 0x10024aee4 // > sub_10024CCCC @ 0x10024cd8c // > GauntletNode::generateNode @ 0x1002571f4 // > sub_10025D560 @ 0x10025d97c // > MessagesProfilePage::init @ 0x100263ee4 // > FriendsProfilePage::init @ 0x1002717b4 // > GauntletLayer::setupGauntlet @ 0x1002cf084 // > LevelListLayer::init @ 0x1002e0974 // > LevelListLayer::init @ 0x1002e09ec // > LevelLeaderboard::init @ 0x1002ec7f8 // > MenuLayer::init @ 0x10030497c // > sub_1003050E8 @ 0x100305218 // > sub_100314E5C @ 0x100315604 // > FLAlertLayer::init @ 0x10034b1dc // > sub_10036D4D8 @ 0x10036d668 // > sub_10037490C @ 0x100374ac4 // > sub_10037D680 @ 0x10037d724 // > sub_10037D90C @ 0x10037da58 // > sub_10038CC88 @ 0x10038d1c4 // > sub_10038CC88 @ 0x10038d328 // > sub_10038CC88 @ 0x10038d358 // > sub_10038D590 @ 0x10038d644 // > sub_10038D9EC @ 0x10038da88 // > sub_10038EF50 @ 0x10038efe8 // > EndLevelLayer::customSetup @ 0x1003926a4 // > EndLevelLayer::customSetup @ 0x100392770 // > EndLevelLayer::customSetup @ 0x100392a2c // > sub_100394684 @ 0x10039484c // > sub_1003949B0 @ 0x100394b78 // > ItemInfoPopup::init @ 0x1003a5ba4 // > ItemInfoPopup::init @ 0x1003a5c8c // > SecretLayer2::updateMessageLabel @ 0x1003a71dc // > SecretLayer2::onSubmit @ 0x1003a79e0 // > SecretLayer2::onSubmit @ 0x1003a7ab4 // > SecretLayer2::onSubmit @ 0x1003a7c68 // > SecretLayer2::onSubmit @ 0x1003a7d38 // > SecretLayer2::onSubmit @ 0x1003a7e08 // > SecretLayer2::onSubmit @ 0x1003a7ed8 // > SecretLayer2::onSubmit @ 0x1003a7fa8 // > sub_1003E1C10 @ 0x1003e1cbc // > InfoLayer::init @ 0x1003ee250 // > InfoLayer::init @ 0x1003ee414 // > sub_1003EF944 @ 0x1003efa14 // > sub_1003F44A4 @ 0x1003f44f0 // > sub_1003F4794 @ 0x1003f4ab0 // > sub_1003F4794 @ 0x1003f4ba0 // > sub_1003F4794 @ 0x1003f4cac // > sub_1003F4794 @ 0x1003f4d80 // > sub_1003F4794 @ 0x1003f4e94 // > sub_1003F4794 @ 0x1003f4f64 // > sub_1003F4794 @ 0x1003f5034 // > LevelEditorLayer::updateObjectLabel @ 0x1003ff4a4 // > EditorPauseLayer::customSetup @ 0x100443e44 // > SongInfoLayer::init @ 0x10044e704 // > SongInfoLayer::init @ 0x10044e790 // > SongInfoLayer::init @ 0x10044ecec // > SongInfoLayer::init @ 0x10044ef78 // > sub_100464838 @ 0x100464884 // > EditorUI::updateGroupIDLabel @ 0x100472ddc // > sub_10048D230 @ 0x10048d320 // > sub_10048D364 @ 0x10048dab0 // > sub_10048F1CC @ 0x10048f7e4 // > LevelBrowserLayer::updatePageLabel @ 0x100496f30 // > LevelBrowserLayer::updatePageLabel @ 0x100496f84 // > LevelBrowserLayer::updateLevelsLabel @ 0x10049a284 // > sub_10049E474 @ 0x10049f404 // > sub_1004AA4A0 @ 0x1004aa574 // > sub_1004AA4A0 @ 0x1004aa608 // > DeathStatsPopup::init @ 0x1004b8914 // > DeathTrackerPopup::init @ 0x1004b9d8c // > sub_1004BBCDC @ 0x1004bc690 // > sub_1004C2344 @ 0x1004c2594 // > sub_1004C27E4 @ 0x1004c284c // > sub_1004C3588 @ 0x1004c3760 // > sub_1004C4744 @ 0x1004c4a54 // > EditorSFXActionConfigLayer::refreshRows @ 0x1004c6a60 // > sub_1004CC170 @ 0x1004cc778 // > EditorSoundConfigCell::loadFromConfig @ 0x1004ce960 // > EditorSoundConfigCell::loadFromConfig @ 0x1004cebb0 // > EditorSoundConfigCell::loadFromConfig @ 0x1004ceefc // > EditorSoundConfigCell::loadFromConfig @ 0x1004cf0c8 // > EditorSoundConfigCell::loadFromConfig @ 0x1004cf2bc // > EditorSoundConfigCell::loadFromConfig @ 0x1004cf3f0 // > sub_1004CF638 @ 0x1004cf718 // > sub_1004CF638 @ 0x1004cf7f4 // > sub_1004CF9C0 @ 0x1004cfb38 // > sub_1004CF9C0 @ 0x1004cfdcc // > sub_1004D1798 @ 0x1004d19f0 // > sub_1004D5758 @ 0x1004d58ec // > sub_1004D5758 @ 0x1004d59ac // > sub_1004D5758 @ 0x1004d5bb0 // > EditorSoundsLayer::buildContentForTab @ 0x1004d7e5c // > sub_1004DF904 @ 0x1004dff1c // > sub_1004E0B74 @ 0x1004e0bdc // > IDNameBrowserPopup::mountVirtualRow @ 0x1004e19a8 // > IDNameBrowserPopup::mountVirtualRow @ 0x1004e1a94 // > sub_1004E7BB0 @ 0x1004e7cd0 // > sub_1004E7BB0 @ 0x1004e7d1c // > sub_1004F5F28 @ 0x1004f5fc4 // > ThreadViewPopup::layoutTitleRow @ 0x1004f9218 // > sub_1004F9350 @ 0x1004f93d0 // > ThreadViewPopup::buildMemberButton @ 0x1004f981c // > sub_1004FA25C @ 0x1004fa65c // > ThreadViewPopup::threadSearchFinished @ 0x1004fbbac // > ThreadViewPopup::mountVirtualRow @ 0x1004fffa4 // > ThreadViewPopup::mountVirtualRow @ 0x10050047c // > sub_100508F28 @ 0x100509428 // > sub_10050B100 @ 0x10050b168 // > sub_10050B5B8 @ 0x10050b7b4 // > ThreadOptionsPopup::init @ 0x10050cab0 // > InvitesPopup::buildRows @ 0x10050f2f4 // > InvitesPopup::buildRows @ 0x10050f540 // > InvitesPopup::buildRows @ 0x10050f670 // > InvitesPopup::buildRows @ 0x10050f70c // > sub_100514348 @ 0x1005145e0 // > sub_100514348 @ 0x1005147bc // > MusicChangelogPopup::buildContent @ 0x100517544 // > MusicChangelogPopup::buildContent @ 0x10051762c // > sub_100518264 @ 0x100518654 // > sub_100518264 @ 0x1005188f0 // > sub_10051A8C8 @ 0x10051aa0c // > sub_10051FC14 @ 0x10051fdf0 // > sub_10051FFE8 @ 0x100520280 // > sub_10051FFE8 @ 0x100520548 // > sub_100523800 @ 0x100523a34 // > sub_100523800 @ 0x100524358 // > sub_100527278 @ 0x1005273bc // > SFXChangelogPopup::buildContent @ 0x100527b8c // > sub_100528E64 @ 0x1005295a4 // > sub_1005298E4 @ 0x100529978 // > sub_10052A0E4 @ 0x10052a24c // > sub_10052A0E4 @ 0x10052a298 // > sub_10053053C @ 0x100530bf8 // > sub_10053053C @ 0x100530de0 // > sub_1005319EC @ 0x100531a70 // > NotificationsPage::init @ 0x10053afd4 // > sub_10053D150 @ 0x10053d2c0 // > AccountReviewPopup::init @ 0x100540e44 // > sub_100541BCC @ 0x100541c84 // > sub_100542A8C @ 0x100543a0c // > sub_1005452FC @ 0x100545b4c // > sub_1005452FC @ 0x100546310 // > sub_1005467AC @ 0x100547720 // > sub_100547AA0 @ 0x100548840 // > sub_100547AA0 @ 0x100548dbc // > sub_1005490A8 @ 0x1005494bc // > sub_10054BC54 @ 0x10054bfd0 // // 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 11:03:42 +0000 // __int64 __fastcall cocos2d::CCLabelBMFont::limitLabelWidth(__int64 a1, float a2, float a3, float a4) { float v8; // s11 __n128 v9; // q0 float v11; // s1 float v12; // s1 (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 160LL))(a1, 1.0); v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL))(a1); if ( v8 > a2 && a2 > 0.0 ) v9.n128_f32[0] = a2 / v8; if ( v9.n128_f32[0] >= a3 ) v11 = a3; else v11 = v9.n128_f32[0]; if ( a3 != 0.0 ) v9.n128_f32[0] = v11; if ( v9.n128_f32[0] <= a4 ) v12 = a4; else v12 = v9.n128_f32[0]; if ( a4 != 0.0 ) v9.n128_f32[0] = v12; return (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)a1 + 160LL))(a1, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source