// // ButtonSprite::setString from 0x68b964 to 0x68bed0 (1388 bytes) // // 36 xrefs: // > ButtonSprite::updateBGImage @ 0x68bfa0 // > ButtonSprite::init @ 0x68c2e0 // > EditorUI::onResetSpecialFilter @ 0x7c202c // > EditorUI::onResetSpecialFilter @ 0x7c2054 // > EditorUI::setIDPopupClosed @ 0x7cbb7c // > EditorUI::setIDPopupClosed @ 0x7cbbf8 // > CustomizeObjectLayer::updateCustomColorLabels @ 0x983864 // > CustomizeObjectLayer::textChanged @ 0x984a38 // > CustomizeObjectLayer::init @ 0x985cc4 // > CustomizeObjectLayer::init @ 0x985ed4 // > OptionsScrollLayer::onMatchToggle @ 0xb84d08 // > OptionsScrollLayer::onMatchToggle @ 0xb84d30 // > AccountReviewPopup::onToggleHistory @ 0xc3f54c // > AccountReviewPopup::onToggleHistory @ 0xc3f578 // > AccountReviewPopup::clearCard @ 0xc40028 // > AccountReviewPopup::clearCard @ 0xc40038 // > AccountReviewPopup::clearCard @ 0xc40048 // > AccountReviewPopup::clearCard @ 0xc40058 // > AccountReviewPopup::updateCard @ 0xc4a678 // > AccountReviewPopup::updateCard @ 0xc4a69c // > AccountReviewPopup::updateCard @ 0xc4a6c0 // > AccountReviewPopup::updateCard @ 0xc4a6ec // > ReportQueuePopup::onToggleSort @ 0xc4fe50 // > ReportQueuePopup::onToggleSort @ 0xc4fe7c // > LevelPickerPopup::refreshUseID @ 0xc709b4 // > ThreadViewPopup::refreshLockNotice @ 0xc77be0 // > ThreadViewPopup::refreshLockNotice @ 0xc77c84 // > InvitesPopup::onToggleIgnored @ 0xc82be8 // > InvitesPopup::onToggleIgnored @ 0xc82c40 // > LevelPickerPopup::onToggleKind @ 0xc84790 // > LevelPickerPopup::onToggleFavorites @ 0xc84880 // > LevelPickerPopup::onOnlineMode @ 0xc84c10 // > LevelPickerPopup::onOnlineMode @ 0xc84d1c // > LevelPickerPopup::textChanged @ 0xc84dd8 // > IDNameBrowserPopup::updateSortButtonLabel @ 0xcde1b8 // > @ 0x6f0d0 // // 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:33 +0000 // __int64 __fastcall ButtonSprite::setString(ButtonSprite *this, const char *a2) { unsigned __int64 v5; // x22 long double v6; // q0 unsigned __int64 v7; // x0 unsigned __int64 v8; // x25 __int64 v9; // x23 char *v10; // x26 void *v11; // x27 unsigned __int64 v12; // x0 __int64 v13; // x0 _DWORD *v14; // x0 float v15; // s8 __int64 v16; // x21 void (__fastcall *v17)(__int64, float); // x22 float *v18; // x0 __int64 v19; // x21 void (__fastcall *v20)(__int64, float); // x22 float v21; // s0 float v22; // s1 float v23; // s8 __int64 v24; // x0 float v25; // s1 __int64 v26; // x22 void (__fastcall *v27)(__int64, _BYTE *); // x23 void (__fastcall *v28)(ButtonSprite *, _BYTE *); // x22 __int64 v29; // x0 __int64 v30; // x22 void (__fastcall *v31)(__int64, _BYTE *); // x23 __int64 v32; // x0 __int64 v33; // x22 void (__fastcall *v34)(__int64, _BYTE *); // x23 __int64 v35; // x0 const void *v36; // x0 __int64 v37; // x22 void (__fastcall *v38)(__int64, __int64); // x23 __int64 v39; // x0 void (__fastcall *v40)(ButtonSprite *, _BYTE *); // x22 __int64 v41; // x0 __int64 v42; // x21 void (__fastcall *v43)(__int64, float); // x22 float v44; // s0 char *v45; // x3 float v46; // s9 float v47; // s8 float v48; // s8 float v49; // [xsp+70h] [xbp+70h] float v50; // [xsp+70h] [xbp+70h] float v51; // [xsp+70h] [xbp+70h] float v52; // [xsp+70h] [xbp+70h] _BYTE v53[8]; // [xsp+80h] [xbp+80h] BYREF if ( *((_DWORD *)this + 149) != 1 ) return _stack_chk_guard; (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 78) + 160LL))(*((_QWORD *)this + 78), 1.0); (*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 78) + 928LL))(*((_QWORD *)this + 78), a2); v5 = strlen(a2); if ( (*((_BYTE *)this + 672) & 1) == 0 ) { if ( v5 > 0x16 ) { v10 = (char *)this + 673; v8 = 22; if ( v5 - 22 <= 0xFFFFFFFFFFFFFFD8LL ) { LABEL_11: v12 = 2 * v8; if ( 2 * v8 < v5 ) v12 = v5; if ( v12 <= 0x16 ) { v9 = 23; v13 = 23; } else { v13 = (v12 + 16) & 0xFFFFFFFFFFFFFFF0LL; v9 = v13 | 1; } v11 = (void *)operator new(v13); if ( !v5 ) { LABEL_17: if ( v8 == 22 ) goto LABEL_18; goto LABEL_8; } LABEL_16: memcpy(v11, a2, v5); goto LABEL_17; } LABEL_44: sub_62B180(); } v45 = (char *)this + 673; LABEL_34: if ( v5 ) v45 = (char *)memmove(v45, a2, v5); v45[v5] = 0; if ( (*((_BYTE *)this + 672) & 1) != 0 ) *((_QWORD *)this + 85) = v5; else *((_BYTE *)this + 672) = 2 * v5; goto LABEL_19; } v7 = *((_QWORD *)this + 84) & 0xFFFFFFFFFFFFFFFELL; v8 = v7 - 1; if ( v5 <= v7 - 1 ) { v45 = *((char **)this + 86); goto LABEL_34; } v9 = -17; if ( v5 - v8 > -17LL - v7 ) goto LABEL_44; v10 = *((char **)this + 86); if ( v8 <= 0x7FFFFFFFFFFFFFE6LL ) goto LABEL_11; v11 = (void *)operator new(0xFFFFFFFFFFFFFFEFLL); if ( v5 ) goto LABEL_16; LABEL_8: operator delete(v10); LABEL_18: *((_QWORD *)this + 86) = v11; *((_QWORD *)this + 84) = v9; *((_QWORD *)this + 85) = v5; *((_BYTE *)v11 + v5) = 0; LABEL_19: LODWORD(v6) = *((_DWORD *)this + 150); if ( *(float *)&v6 > 0.0 ) { v14 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 328LL))(*((_QWORD *)this + 78)); v15 = *((float *)this + 150); LODWORD(v6) = *v14; if ( *(float *)v14 > v15 ) { v16 = *((_QWORD *)this + 78); v17 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL); v18 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 328LL))(v16, *(float *)&v6); v17(v16, v15 / *v18); } } v19 = *((_QWORD *)this + 78); v20 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL); v21 = (*(float (__fastcall **)(__int64, long double))(*(_QWORD *)v19 + 168LL))(v19, v6); v22 = *((float *)this + 152); if ( v21 <= v22 ) { v19 = *((_QWORD *)this + 78); v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v19 + 168LL))(v19); } v20(v19, v22); if ( *((_BYTE *)this + 620) ) { v23 = *((float *)this + 150); } else { v46 = *((float *)this + 151); v47 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 328LL))(*((_QWORD *)this + 78)); if ( v46 < (float)(v47 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 168LL))(*((_QWORD *)this + 78))) ) { v48 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 328LL))(*((_QWORD *)this + 78)); v23 = v48 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 168LL))(*((_QWORD *)this + 78)); } else { v23 = *((float *)this + 151); } } v24 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 78) + 328LL))(*((_QWORD *)this + 78)); v25 = *((float *)this + 153); if ( v25 == 0.0 ) v25 = *(float *)(v24 + 4) + 4.0; v26 = *((_QWORD *)this + 81); v27 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v26 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v53, v23 + 16.0, v25); v27(v26, v53); v28 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_QWORD *)this + 320LL); v49 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 328LL))(*((_QWORD *)this + 81)); v29 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 328LL))(*((_QWORD *)this + 81)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v53, v49, *(float *)(v29 + 4)); v28(this, v53); v30 = *((_QWORD *)this + 78); v31 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v30 + 184LL); v50 = *((float *)this + 164) + (float)(*(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5); v32 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v50, *((float *)this + 165) + (float)(*(float *)(v32 + 4) * 0.5)); v31(v30, v53); v33 = *((_QWORD *)this + 81); v34 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v33 + 184LL); v51 = *(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5; v35 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v51, *(float *)(v35 + 4) * 0.5); v34(v33, v53); if ( (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this) ) { v36 = (const void *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this); if ( v36 ) { if ( _dynamic_cast( v36, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'CCMenuItemSpriteExtra, 0) ) { v37 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this); v38 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v37 + 320LL); v39 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); v38(v37, v39); v40 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_QWORD *)this + 184LL); v52 = *(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5; v41 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v53, v52, *(float *)(v41 + 4) * 0.5); v40(this, v53); } } } v42 = *((_QWORD *)this + 78); v43 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v42 + 160LL); v44 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v42 + 168LL))(v42); v43(v42, v44 * *((float *)this + 154)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source