// // ButtonSprite::setString from 0x10005a280 to 0x10005a681 (1025 bytes) // // 32 xrefs: // > EditorUI::setIDPopupClosed @ 0x1000102db // > EditorUI::setIDPopupClosed @ 0x10001037b // > EditorUI::onResetSpecialFilter @ 0x1000107a1 // > EditorUI::onResetSpecialFilter @ 0x1000107ca // > ButtonSprite::init_1 @ 0x10005a262 // > ButtonSprite::updateBGImage @ 0x10005a78e // > CustomizeObjectLayer::init @ 0x1001d82ee // > CustomizeObjectLayer::init @ 0x1001d8517 // > CustomizeObjectLayer::updateCustomColorLabels @ 0x1001da0dd // > CustomizeObjectLayer::textChanged @ 0x1001db915 // > OptionsScrollLayer::onMatchToggle @ 0x1006ebd02 // > IDNameBrowserPopup::init @ 0x100909d2c // > sub_10090A970 @ 0x10090a9d8 // > sub_10090AA30 @ 0x10090aa71 // > sub_10092FFD0 @ 0x1009302c7 // > sub_10093EE20 @ 0x10093ee5b // > sub_10093EE20 @ 0x10093ef38 // > sub_10093F1B0 @ 0x10093f328 // > sub_10093F3A0 @ 0x10093f400 // > sub_10093F530 @ 0x10093f734 // > LevelPickerPopup::textChanged @ 0x1009402d7 // > sub_10094C250 @ 0x10094c292 // > sub_1009692B0 @ 0x1009692e4 // > sub_100995DF0 @ 0x100995e24 // > sub_100998310 @ 0x10099a418 // > sub_100998310 @ 0x10099a44d // > sub_100998310 @ 0x10099a482 // > sub_100998310 @ 0x10099a4c4 // > sub_10099ADD0 @ 0x10099ae2f // > sub_10099ADD0 @ 0x10099ae42 // > sub_10099ADD0 @ 0x10099ae55 // > sub_10099ADD0 @ 0x10099ae68 // // This function is hookable on this platform (idp: pc, 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:19:39 +0000 // void __fastcall ButtonSprite::setString(__int64 a1, const std::string::value_type *a2) { __int64 *v2; // r14 __int64 v3; // rax float *v4; // rax __int64 v5; // r14 double v6; // xmm0_8 float v7; // xmm0_4 __m128 v8; // xmm0 __m128 v9; // xmm2 __m128 v10; // xmm1 __int64 v11; // r14 __int64 v12; // rax __int64 v13; // r14 __int64 v14; // rax __int64 v15; // r14 __int64 v16; // rax const void *v17; // rax __int64 v18; // r14 __int64 v19; // rax __int64 v20; // rax __int64 v21; // r14 float v22; // xmm0_4 float v23; // [rsp-30h] [rbp-30h] int v24; // [rsp-2Ch] [rbp-2Ch] BYREF float v25; // [rsp-24h] [rbp-24h] if ( *(_DWORD *)(a1 + 596) == 1 ) { (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 624) + 160LL))(*(_QWORD *)(a1 + 624), 1.0); (*(void (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 624) + 928LL))( *(_QWORD *)(a1 + 624), a2); std::string::assign((std::string *)(a1 + 672), a2); if ( *(float *)(a1 + 600) > 0.0 && *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 328LL))(*(_QWORD *)(a1 + 624)) > *(float *)(a1 + 600) ) { v2 = *(__int64 **)(a1 + 624); v3 = *v2; v25 = *(float *)(a1 + 600); v4 = (float *)(*(__int64 (__fastcall **)(__int64 *))(v3 + 328))(v2); (*(void (__fastcall **)(__int64 *, float))(*v2 + 160))(v2, v25 / *v4); } v5 = *(_QWORD *)(a1 + 624); v6 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5); if ( *(float *)&v6 <= *(float *)(a1 + 608) ) (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 168LL))(*(_QWORD *)(a1 + 624)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); if ( *(_BYTE *)(a1 + 620) == 1 ) { v7 = *(float *)(a1 + 600); } else { v25 = *(float *)(a1 + 604); v23 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 328LL))(*(_QWORD *)(a1 + 624)); if ( (float)((*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 168LL))(*(_QWORD *)(a1 + 624)) * v23) <= v25 ) { v7 = *(float *)(a1 + 604); } else { v25 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 328LL))(*(_QWORD *)(a1 + 624)); v7 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 168LL))(*(_QWORD *)(a1 + 624)) * v25; } } v25 = v7; v8 = (__m128)*(unsigned int *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 624) + 328LL))(*(_QWORD *)(a1 + 624)) + 4); v8.f32[0] = v8.f32[0] + 4.0; v9.i64[0] = *(unsigned int *)(a1 + 612); v10 = _mm_cmpneq_ss((__m128)0LL, v9); v10.i64[0] = v10.i64[0] & v9.i64[0] | _mm_andnot_ps(v10, v8).u64[0]; v11 = *(_QWORD *)(a1 + 648); v8.i64[0] = LODWORD(v25); v8.f32[0] = v25 + 16.0; sub_100278260(&v24, *(double *)v8.i64, *(double *)v10.i64); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v11 + 320LL))(v11, &v24); v25 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 328LL))(*(_QWORD *)(a1 + 648)); v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 328LL))(*(_QWORD *)(a1 + 648)); sub_100278260( &v24, COERCE_DOUBLE((unsigned __int64)LODWORD(v25)), COERCE_DOUBLE((unsigned __int64)*(_DWORD *)(v12 + 4))); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 320LL))(a1, &v24); v13 = *(_QWORD *)(a1 + 624); v25 = (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5) + *(float *)(a1 + 656); v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250(&v24, v25, (float)(*(float *)(v14 + 4) * 0.5) + *(float *)(a1 + 660)); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v13 + 184LL))(v13, &v24); v15 = *(_QWORD *)(a1 + 648); v25 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250(&v24, v25, *(float *)(v16 + 4) * 0.5); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v15 + 184LL))(v15, &v24); if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1) ) { v17 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( v17 ) { if ( __dynamic_cast( v17, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'CCMenuItemSpriteExtra, 0) ) { v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 320LL))(v18, v19); v25 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_100278250(&v24, v25, 0.5 * *(float *)(v20 + 4)); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)a1 + 184LL))(a1, &v24); } } } v21 = *(_QWORD *)(a1 + 624); v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v21 + 168LL))(v21); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, v22 * *(float *)(a1 + 616)); } }