//
// ButtonSprite::setString from 0x140043550 to 0x14004394d (1021 bytes)
//
// 35 xrefs:
// > ButtonSprite::init_1 @ 0x140042f8b
// > ButtonSprite::updateBGImage @ 0x140043080
// > AccountReviewPopup::clearCard @ 0x1400b0ec7
// > AccountReviewPopup::clearCard @ 0x1400b0eda
// > AccountReviewPopup::clearCard @ 0x1400b0eed
// > AccountReviewPopup::clearCard @ 0x1400b0f00
// > AccountReviewPopup::updateCard @ 0x1400b2d10
// > AccountReviewPopup::updateCard @ 0x1400b2d3e
// > AccountReviewPopup::updateCard @ 0x1400b2d6c
// > AccountReviewPopup::updateCard @ 0x1400b2da4
// > AccountReviewPopup::onToggleHistory @ 0x1400b348a
// > ReportQueuePopup::onToggleSort @ 0x1400c95fa
// > ThreadViewPopup::refreshLockNotice @ 0x1400db01c
// > LevelPickerPopup::onToggleKind @ 0x1400e9a3d
// > LevelPickerPopup::refreshUseID @ 0x1400e9cf1
// > LevelPickerPopup::onToggleFavorites @ 0x1400e9f2e
// > LevelPickerPopup::onOnlineMode @ 0x1400ea3b5
// > LevelPickerPopup::onOnlineMode @ 0x1400ea539
// > LevelPickerPopup::textChanged @ 0x1400ea9c8
// > InvitesPopup::onToggleIgnored @ 0x1400f724a
// > CustomizeObjectLayer::init @ 0x140140605
// > CustomizeObjectLayer::init @ 0x140140848
// > CustomizeObjectLayer::textChanged @ 0x140143a7b
// > CustomizeObjectLayer::updateCustomColorLabels @ 0x140143d56
// > EditorUI::setIDPopupClosed @ 0x1401b1208
// > EditorUI::setIDPopupClosed @ 0x1401b141b
// > EditorUI::onResetSpecialFilter @ 0x1401b1aef
// > EditorUI::onResetSpecialFilter @ 0x1401b1c07
// > IDNameBrowserPopup::init @ 0x1403c1ef4
// > IDNameBrowserPopup::updateSortButtonLabel @ 0x1403c47ce
// > OptionsScrollLayer::onMatchToggle @ 0x14047eeb8
// > ??> @ 0x140885064
// > ??> @ 0x1408850a0
// > ??> @ 0x1408850b0
// > ??> @ 0x14090f6d4
//
// 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 11:25:30 +0000
//
_UNKNOWN **__fastcall ButtonSprite::setString(__int64 *a1, void *a2)
{
_UNKNOWN **result; // rax
size_t v5; // r8
float v6; // xmm6_4
float v7; // xmm7_4
__int64 v8; // rbx
float *v9; // rax
float v10; // xmm6_4
__int64 v11; // rbx
float v12; // xmm6_4
double v13; // xmm0_8
float v14; // xmm2_4
__int64 *v15; // rdi
__int64 v16; // rbx
__int64 v17; // rax
__int64 v18; // rbx
__int64 v19; // rax
void (__fastcall **v20)(__int64 *, __int64); // rsi
float *v21; // rdi
__int64 v22; // rax
__int64 v23; // rax
float *v24; // rbx
__int64 *v25; // rsi
__int64 v26; // rdi
__int64 v27; // rax
__int64 v28; // rax
float *v29; // rbx
__int64 *v30; // rsi
__int64 v31; // rdi
__int64 v32; // rax
__int64 v33; // rax
__int64 v34; // rax
__int64 *v35; // rdi
__int64 v36; // rbx
__int64 v37; // rax
__int64 v38; // rax
void (__fastcall **v39)(__int64 *, __int64); // rdi
float *v40; // rbx
__int64 v41; // rax
__int64 v42; // rax
__int64 *v43; // rdi
__int64 v44; // rbx
_UNKNOWN *retaddr; // [rsp+68h] [rbp+0h] BYREF
char v46; // [rsp+70h] [rbp+8h] BYREF
result = &retaddr;
if ( *((_DWORD *)a1 + 150) == 1 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 160LL))(a1[79]);
(**(void (__fastcall ***)(__int64, void *))(a1[79] + 360))(a1[79] + 360, a2);
v5 = -1;
do
++v5;
while ( *((_BYTE *)a2 + v5) );
sub_1400405A0((void **)a1 + 85, a2, v5);
v6 = *((float *)a1 + 151);
if ( v6 > 0.0 && *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 320LL))(a1[79]) > v6 )
{
(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 320LL))(a1[79]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 160LL))(a1[79]);
}
if ( *((float *)a1 + 153) > (*(float (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 168LL))(a1[79]) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 168LL))(a1[79]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 160LL))(a1[79]);
if ( *((_BYTE *)a1 + 624) )
{
v7 = *((float *)a1 + 151);
}
else
{
v8 = a1[79];
v9 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 320LL))(v8);
v7 = *((float *)a1 + 152);
v10 = *v9;
if ( v7 <= (float)((*(float (__fastcall **)(__int64))(*(_QWORD *)v8 + 168LL))(v8) * v10) )
{
v11 = a1[79];
v12 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 320LL))(v11);
v13 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v11 + 168LL))(v11);
v7 = *(float *)&v13 * v12;
}
}
v14 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1[79] + 320LL))(a1[79]) + 4) + 4.0;
if ( *((float *)a1 + 154) != 0.0 )
v14 = *((float *)a1 + 154);
v15 = (__int64 *)a1[82];
v16 = *v15;
v17 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v46, v7 + 16.0, v14);
(*(void (__fastcall **)(__int64 *, __int64))(v16 + 312))(v15, v17);
v18 = a1[82];
v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 320LL))(v18);
v20 = (void (__fastcall **)(__int64 *, __int64))*a1;
v21 = (float *)v19;
v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 320LL))(v18);
v23 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v46, *v21, *(float *)(v22 + 4));
v20[39](a1, v23);
v24 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v25 = (__int64 *)a1[79];
v26 = *v25;
v27 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v28 = cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v46,
(float)(*v24 * 0.5) + *((float *)a1 + 166),
(float)(*(float *)(v27 + 4) * 0.5) + *((float *)a1 + 167));
(*(void (__fastcall **)(__int64 *, __int64))(v26 + 184))(v25, v28);
v29 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v30 = (__int64 *)a1[82];
v31 = *v30;
v32 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v33 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, *v29 * 0.5, *(float *)(v32 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v31 + 184))(v30, v33);
if ( (*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1) )
{
v34 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1);
if ( _RTDynamicCast(
v34,
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&CCMenuItemSpriteExtra `RTTI Type Descriptor',
0) )
{
v35 = (__int64 *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1);
v36 = *v35;
v37 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
(*(void (__fastcall **)(__int64 *, __int64))(v36 + 312))(v35, v37);
v38 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v39 = (void (__fastcall **)(__int64 *, __int64))*a1;
v40 = (float *)v38;
v41 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1);
v42 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, *v40 * 0.5, *(float *)(v41 + 4) * 0.5);
v39[23](a1, v42);
}
}
v43 = (__int64 *)a1[79];
v44 = *v43;
(*(void (__fastcall **)(__int64 *))(*v43 + 168))(v43);
return (_UNKNOWN **)(*(__int64 (__fastcall **)(__int64 *))(v44 + 160))(v43);
}
return result;
}