// // ButtonSprite::updateSpriteBGSize from 0x1400430e0 to 0x140043547 (1127 bytes) // // 22 xrefs: // > ButtonSprite::init @ 0x140042bb7 // > ButtonSprite::updateBGImage @ 0x14004308a // > EditorUI::getSpriteButton @ 0x1401adfcf // > EditorUI::createCustomItems @ 0x1401f64d3 // > EditorUI::createCustomItems @ 0x1401f6587 // > EditorUI::createCustomItems @ 0x1401f6643 // > EditorUI::createCustomItems @ 0x1401f66fe // > InfoLayer::getSpriteButton @ 0x1403d009a // > LeaderboardsLayer::setupTabs @ 0x1403dc02a // > LevelLeaderboard::getSpriteButton @ 0x14042977a // > MusicBrowser::init @ 0x14047ad6e // > MusicBrowser::init @ 0x14047aee4 // > MusicBrowser::init @ 0x14047b0be // > MusicBrowser::init @ 0x14047b22a // > MusicBrowser::init @ 0x14047b3e5 // > SFXBrowser::init @ 0x1406170bc // > SFXBrowser::init @ 0x14061748f // > SFXBrowser::init @ 0x1406175fb // > SFXBrowser::init @ 0x1406177b6 // > @ 0x140884ff0 // > @ 0x140885038 // > @ 0x14090f698 // // 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 // __int64 __fastcall ButtonSprite::updateSpriteBGSize(__int64 *a1) { __int64 **v2; // r14 float v3; // xmm8_4 __int64 *v4; // rbx float *v5; // rax float v6; // xmm6_4 __int64 *v7; // rbx float v8; // xmm6_4 double v9; // xmm0_8 __int64 *v10; // rbx float v11; // xmm6_4 double v12; // xmm0_8 float v13; // xmm0_4 __int64 *v14; // rbx float v15; // xmm6_4 __int64 *v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v19; // rbx float *v20; // rdi __int64 v21; // rax __int64 v22; // rax __int64 **v23; // rbp __int64 v24; // rcx __int64 v25; // rax float *v26; // rdi float *v27; // rbx __int64 *v28; // r14 __int64 v29; // rsi float v30; // xmm6_4 float v31; // xmm6_4 __int64 v32; // rax __int64 v33; // rax __int64 *v34; // rsi float *v35; // rbx __int64 v36; // rdi __int64 v37; // rax __int64 v38; // rax __int64 result; // rax __int64 v40; // rax __int64 *v41; // rdi __int64 v42; // rbx __int64 v43; // rax __int64 v44; // rax __int64 v45; // rdi float *v46; // rbx __int64 v47; // rax __int64 v48; // rax _BYTE v49[16]; // [rsp+30h] [rbp-98h] BYREF _BYTE v50[16]; // [rsp+40h] [rbp-88h] BYREF char v51; // [rsp+D0h] [rbp+8h] BYREF char v52; // [rsp+D8h] [rbp+10h] BYREF char v53; // [rsp+E0h] [rbp+18h] BYREF char v54; // [rsp+E8h] [rbp+20h] BYREF v2 = (__int64 **)(a1 + 80); if ( *((_BYTE *)a1 + 624) ) { v3 = *((float *)a1 + 151); } else { v4 = *v2; v5 = (float *)(*(__int64 (__fastcall **)(__int64 *))(**v2 + 320))(*v2); v3 = *((float *)a1 + 152); v6 = *v5; if ( v3 <= (float)((*(float (__fastcall **)(__int64 *))(*v4 + 168))(v4) * v6) ) { v7 = *v2; v8 = *(float *)(*(__int64 (__fastcall **)(__int64 *))(**v2 + 320))(*v2); v9 = (*(double (__fastcall **)(__int64 *))(*v7 + 168))(v7); v3 = *(float *)&v9 * v8; } } cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v51); if ( a1[82] ) { v10 = *v2; v11 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(**v2 + 320))(*v2) + 4); v12 = (*(double (__fastcall **)(__int64 *))(*v10 + 168))(v10); if ( *(float *)(cocos2d::CCRect::CCRect((cocos2d::CCRect *)v49, 0.0, 0.0, 40.0, 40.0) + 12LL) <= (float)((float)(*(float *)&v12 * v11) + 8.0) ) { v14 = *v2; v15 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(**v2 + 320))(*v2) + 4); v13 = (float)((*(float (__fastcall **)(__int64 *))(*v14 + 168))(v14) * v15) + 8.0; } else { v13 = *(float *)(cocos2d::CCRect::CCRect((cocos2d::CCRect *)v50, 0.0, 0.0, 40.0, 40.0) + 12LL); } if ( *((float *)a1 + 154) != 0.0 ) v13 = *((float *)a1 + 154); v16 = (__int64 *)a1[82]; v17 = *v16; v18 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v52, v3 + 8.0, v13); (*(void (__fastcall **)(__int64 *, __int64))(v17 + 312))(v16, v18); v19 = a1[82]; v20 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 320LL))(v19); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 320LL))(v19); v22 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v52, *v20, *(float *)(v21 + 4)); cocos2d::CCSize::operator=(&v51, v22); v23 = (__int64 **)(a1 + 81); } else { v23 = (__int64 **)(a1 + 81); v24 = a1[81]; if ( v24 ) { v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 320LL))(v24); cocos2d::CCSize::operator=(&v51, v25); } } (*(void (__fastcall **)(__int64 *, char *))(*a1 + 312))(a1, &v51); v26 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52, 0.0, 2.0); v27 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v28 = *v2; v29 = *v28; v30 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1) + 4); v31 = (float)((float)(v30 * 0.5) + *(float *)(cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, 0.0, 2.0) + 4LL)) + *((float *)a1 + 169); v32 = cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v54, (float)((float)(*v27 * 0.5) + *v26) + *((float *)a1 + 168), v31); (*(void (__fastcall **)(__int64 *, __int64))(v29 + 184))(v28, v32); if ( a1[82] ) { v33 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v34 = (__int64 *)a1[82]; } else { if ( !*v23 ) goto LABEL_19; v33 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v34 = *v23; } v35 = (float *)v33; v36 = *v34; v37 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v38 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52, *v35 * 0.5, *(float *)(v37 + 4) * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v36 + 184))(v34, v38); LABEL_19: result = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1); if ( result ) { v40 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1); result = _RTDynamicCast( v40, 0, &cocos2d::CCNode `RTTI Type Descriptor', &CCMenuItemSpriteExtra `RTTI Type Descriptor', 0); if ( result ) { v41 = (__int64 *)(*(__int64 (__fastcall **)(__int64 *))(*a1 + 504))(a1); v42 = *v41; v43 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); (*(void (__fastcall **)(__int64 *, __int64))(v42 + 312))(v41, v43); v44 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v45 = *a1; v46 = (float *)v44; v47 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 320))(a1); v48 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v52, *v46 * 0.5, *(float *)(v47 + 4) * 0.5); return (*(__int64 (__fastcall **)(__int64 *, __int64))(v45 + 184))(a1, v48); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source