// // ButtonSprite::updateSpriteBGSize from 0x68b098 to 0x68b4f4 (1116 bytes) // // 4 xrefs: // > ButtonSprite::init @ 0x68b6e8 // > ButtonSprite::updateSpriteOffset @ 0x68b960 // > ButtonSprite::updateBGImage @ 0x68bfd0 // > @ 0xdf300 // // 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::updateSpriteBGSize(ButtonSprite *this) { float v2; // s10 float v3; // s12 float v4; // s8 float v5; // s1 __int64 v6; // x24 void (__fastcall *v7)(__int64, _BYTE *); // x25 __int64 v8; // x0 __int64 v9; // x22 void (__fastcall *v10)(__int64, _BYTE *); // x24 float v11; // s9 float v12; // s8 float v13; // s9 __int64 v14; // x22 void (__fastcall *v15)(__int64, _BYTE *); // x23 __int64 v16; // x0 const void *v17; // x0 __int64 v18; // x22 void (__fastcall *v19)(__int64, __int64); // x23 __int64 v20; // x0 void (__fastcall *v21)(ButtonSprite *, _BYTE *); // x22 __int64 v22; // x0 float v24; // s8 __int64 v25; // x0 __int64 v26; // x0 float v27; // s9 float v28; // s8 float v29; // s10 float v30; // [xsp+70h] [xbp+70h] float v31; // [xsp+70h] [xbp+70h] float v32; // [xsp+70h] [xbp+70h] _BYTE v33[8]; // [xsp+88h] [xbp+88h] BYREF float v34; // [xsp+90h] [xbp+90h] BYREF _BYTE v35[4]; // [xsp+98h] [xbp+98h] BYREF float v36; // [xsp+9Ch] [xbp+9Ch] float v37; // [xsp+A4h] [xbp+A4h] _BYTE v38[12]; // [xsp+A8h] [xbp+A8h] BYREF float v39; // [xsp+B4h] [xbp+B4h] if ( *((_BYTE *)this + 620) ) { v2 = *((float *)this + 150); } else { v27 = *((float *)this + 151); v28 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 328LL))(*((_QWORD *)this + 79)); if ( v27 < (float)(v28 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 168LL))(*((_QWORD *)this + 79))) ) { v29 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 328LL))(*((_QWORD *)this + 79)); v2 = v29 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 168LL))(*((_QWORD *)this + 79)); } else { v2 = *((float *)this + 151); } } cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33); if ( *((_QWORD *)this + 81) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v35, 0.0, 0.0, 40.0, 40.0); v3 = v37; v4 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 328LL))(*((_QWORD *)this + 79)) + 4); if ( v3 < (float)((float)(v4 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 168LL))(*((_QWORD *)this + 79))) + 8.0) ) { v24 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 328LL))(*((_QWORD *)this + 79)) + 4); v5 = (float)(v24 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 79) + 168LL))(*((_QWORD *)this + 79))) + 8.0; } else { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v38, 0.0, 0.0, 40.0, 40.0); v5 = v39; } if ( *((float *)this + 153) != 0.0 ) v5 = *((float *)this + 153); v6 = *((_QWORD *)this + 81); v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v38, v2 + 8.0, v5); v7(v6, v38); v30 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 328LL))(*((_QWORD *)this + 81)); v8 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 328LL))(*((_QWORD *)this + 81)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v38, v30, *(float *)(v8 + 4)); cocos2d::CCSize::operator=(v33, v38); } else { v25 = *((_QWORD *)this + 80); if ( v25 ) { v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 328LL))(v25); cocos2d::CCSize::operator=(v33, v26); } } (*(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_QWORD *)this + 320LL))(this, v33); v9 = *((_QWORD *)this + 79); v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL); v11 = *(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, 0.0, 2.0); v12 = (float)(v34 + (float)(v11 * 0.5)) + *((float *)this + 166); v13 = *(float *)((*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) + 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, 0.0, 2.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v12, (float)(v36 + (float)(v13 * 0.5)) + *((float *)this + 167)); v10(v9, v38); v14 = *((_QWORD *)this + 81); if ( v14 || (v14 = *((_QWORD *)this + 80)) != 0 ) { v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v14 + 184LL); v31 = *(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5; v16 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v31, *(float *)(v16 + 4) * 0.5); v15(v14, v38); } if ( (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this) ) { v17 = (const void *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this); 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 **)(ButtonSprite *))(*(_QWORD *)this + 512LL))(this); v19 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 320LL); v20 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); v19(v18, v20); v21 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_QWORD *)this + 184LL); v32 = *(float *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5; v22 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v32, *(float *)(v22 + 4) * 0.5); v21(this, v38); } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source