// // GameToolbox::alignItemsHorisontally from 0x69b40c to 0x69b628 (540 bytes) // // 60 xrefs: // > UILayer::init @ 0x6f07a0 // > LevelCell::loadCustomLevelCell @ 0x747a64 // > CreateStartPosPopup::init @ 0x7d76a0 // > PauseLayer::customSetup @ 0x7d9340 // > LevelSearchLayer::init @ 0x7e382c // > LevelSearchLayer::init @ 0x7e3be4 // > DemonFilterSelectLayer::init @ 0x7e4910 // > EditLevelLayer::setupLevelInfo @ 0x7efcdc // > EditLevelLayer::setupLevelInfo @ 0x7efd1c // > EditLevelLayer::setupLevelInfo @ 0x7efd5c // > EditLevelLayer::setupLevelInfo @ 0x7efdc4 // > ShareLevelLayer::setupStars @ 0x7f3a14 // > ShareLevelLayer::setupStars @ 0x7f3a48 // > ShareLevelLayer::init @ 0x7f4504 // > RateLevelLayer::init @ 0x8c3754 // > RateLevelLayer::init @ 0x8c3840 // > EndLevelLayer::customSetup @ 0x8fcc7c // > SongInfoLayer::addLinkRows @ 0x9039e0 // > ShareCommentLayer::init @ 0x90ef3c // > LevelFeatureLayer::init @ 0x951338 // > GJRateLevelLayer::init @ 0x9527cc // > GJRateLevelLayer::init @ 0x952814 // > GJRateLevelLayer::init @ 0x952ae0 // > GJRateEditorSoundLayer::init @ 0x954028 // > GJRateLevelListLayer::init @ 0x955ee0 // > RateStarsLayer::init @ 0x957cbc // > RateStarsLayer::init @ 0x957d10 // > RateStarsLayer::init @ 0x957ec8 // > NewgroundsInfoLayer::init @ 0x97eec4 // > NCSInfoLayer::init @ 0x982744 // > AccountRegisterLayer::init @ 0x990bb4 // > AccountLoginLayer::init @ 0x991a0c // > UIPOptionsLayer::init @ 0xa26060 // > GJWriteMessagePopup::init @ 0xa32538 // > GJMessagePopup::loadFromGJMessage @ 0xa33550 // > GJAccountSettingsLayer::init @ 0xa38a44 // > ProfilePage::setupAccountButtons @ 0xa53e98 // > MyStuffPopup::init @ 0xa56160 // > DemonInfoPopup::init @ 0xa5707c // > ProfilePage::loadPageFromUserInfo @ 0xa5ad00 // > GauntletSelectLayer::setupGauntlets @ 0xa767f0 // > PurchaseItemPopup::init @ 0xa80fec // > RateDemonLayer::init @ 0xa84674 // > RateDemonLayer::init @ 0xa84760 // > WorldLevelPage::init @ 0xaa973c // > SetGroupIDLayer::init @ 0xac02d4 // > SetupGradientPopup::init @ 0xb316bc // > SetupGradientPopup::init @ 0xb31700 // > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a68c // > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a6d0 // > StartPosLayer::addModeButtons @ 0xb64f38 // > StartPosLayer::addSpeedButtons @ 0xb65170 // > ShareListLayer::init @ 0xbad4b8 // > GameSettingsLayer::setupTabs @ 0xc05360 // > TabbedPopupLayer::createTabButtons @ 0xc38460 // > RateStarsModLayer::init @ 0xcfd410 // > RateStarsModLayer::init @ 0xcfd460 // > RateStarsModLayer::init @ 0xcfd738 // > RateStarsModLayer::init @ 0xcfd828 // > @ 0xc1288 // // 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 12:50:40 +0000 // __int64 __fastcall GameToolbox::alignItemsHorisontally(__int64 a1, __int64 a2, unsigned __int8 a3, float a4) { int v7; // w23 unsigned int *v8; // x0 unsigned int v9; // w20 __int64 *v10; // x26 float v11; // s8 __int64 *v12; // x19 __int64 v13; // x27 const cocos2d::CCSize *v14; // x1 float v15; // s9 __int64 *v16; // x27 __int64 *v17; // x22 __int64 v18; // x19 float v19; // s8 const cocos2d::CCSize *v20; // x1 float v21; // s9 void (__fastcall *v22)(__int64, __int64 *); // x28 float v23; // s0 void (__fastcall *v24)(__int64, __int64 *); // x28 __int64 v25; // x0 float v26; // s9 float v28; // [xsp+88h] [xbp+88h] BYREF __int64 v29; // [xsp+90h] [xbp+90h] BYREF v7 = a3; if ( a1 ) { v8 = *(unsigned int **)(a1 + 56); v9 = *v8; if ( *v8 ) { v10 = *((__int64 **)v8 + 2); v11 = -a4; v12 = &v10[v9 - 1]; if ( v10 > v12 ) goto LABEL_10; v13 = *v10; if ( !*v10 ) goto LABEL_10; do { if ( v7 ) v14 = (const cocos2d::CCSize *)&unk_155AA40; else v14 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); ++v10; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v29, v14); v15 = *(float *)&v29; v11 = v11 + (float)(a4 + (float)(v15 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v13 + 136LL))(v13))); if ( v12 < v10 ) break; v13 = *v10; } while ( *v10 ); v8 = *(unsigned int **)(a1 + 56); v9 = *v8; if ( *v8 ) { LABEL_10: v16 = *((__int64 **)v8 + 2); v17 = &v16[v9 - 1]; if ( v16 <= v17 ) { v18 = *v16; if ( *v16 ) { v19 = (float)-v11 * 0.5; do { if ( v7 ) v20 = (const cocos2d::CCSize *)&unk_155AA40; else v20 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 328LL))(v18); ++v16; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v28, v20); v21 = v28; v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); v23 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v18 + 136LL))(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, v19 + (float)((float)(v21 * v23) * 0.5), 0.0); v22(v18, &v29); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 192LL))(v18); cocos2d::CCPoint::operator+(&v29, a2, v25); v24(v18, &v29); v26 = v28; v19 = v19 + (float)(a4 + (float)(v26 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v18 + 136LL))(v18))); if ( v17 < v16 ) break; v18 = *v16; } while ( *v16 ); } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source