// // cocos2d::extension::CCControlButton::needsLayout from 0x7a75c0 to 0x7a797c (956 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:59 +0000 // int __fastcall cocos2d::extension::CCControlButton::needsLayout(int this) { _DWORD *v1; // r4 int v2; // r0 int v3; // r0 void (__fastcall *v4)(_DWORD *, float *); // r8 cocos2d::CCObject *v5; // r0 cocos2d::CCObject *v6; // r0 int v7; // r0 int v8; // r1 int v9; // r3 cocos2d::CCObject *v10; // r0 cocos2d::CCObject *v11; // r8 cocos2d::CCObject *v12; // r0 const void *v13; // r0 void (__fastcall ***v14)(void *, int); // r8 cocos2d::CCString *v15; // r0 void (__fastcall *v16)(void *, int); // r9 int CString; // r0 const void *v18; // r0 void (__fastcall ***v19)(void *, int); // r0 int v20; // r6 void (__fastcall *v21)(int, float *); // r8 float v22; // s16 int v23; // r0 cocos2d::CCObject *v24; // r0 cocos2d::CCObject *v25; // r6 cocos2d::CCObject *v26; // r0 int v27; // r6 void (__fastcall *v28)(int, float *); // r8 float v29; // s16 int v30; // r0 int v31; // r6 void (__fastcall *v32)(int, float *); // r8 int v33; // r0 int (__fastcall *v34)(_DWORD *, _BYTE *); // r6 int v35; // r6 void (__fastcall *v36)(int, _BYTE *); // r8 float v37; // s16 int v38; // r0 int v39; // r6 void (__fastcall *v40)(int, _BYTE *); // r8 float v41; // s16 int v42; // r0 float v43; // [sp+Ch] [bp-48h] BYREF float v44; // [sp+10h] [bp-44h] _BYTE v45[8]; // [sp+14h] [bp-40h] BYREF _BYTE v46[16]; // [sp+1Ch] [bp-38h] BYREF _BYTE v47[16]; // [sp+2Ch] [bp-28h] BYREF float v48; // [sp+3Ch] [bp-18h] BYREF float v49; // [sp+40h] [bp-14h] float v50[2]; // [sp+44h] [bp-10h] BYREF v1 = (_DWORD *)this; if ( *(_BYTE *)(this + 393) ) { v2 = *(_DWORD *)(this + 364); if ( v2 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v2 + 172))(v2, 0); v3 = v1[92]; if ( v3 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 172))(v3, 0); v4 = *(void (__fastcall **)(_DWORD *, float *))(*v1 + 700); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, (const cocos2d::CCPoint *)(v1 + 96)); v4(v1, &v48); v5 = (cocos2d::CCObject *)v1[89]; if ( v5 ) cocos2d::CCObject::release(v5); v6 = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD *, _DWORD))(*v1 + 720))(v1, v1[83]); v1[89] = v6; if ( v6 ) cocos2d::CCObject::retain(v6); v7 = (*(int (__fastcall **)(_DWORD *, _DWORD))(*v1 + 728))(v1, v1[83]); v8 = v1[83]; *((_BYTE *)v1 + 361) = BYTE1(v7); v9 = *v1; *((_BYTE *)v1 + 360) = v7; *((_BYTE *)v1 + 362) = BYTE2(v7); v10 = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD *, int))(v9 + 736))(v1, v8); v11 = v10; if ( (cocos2d::CCObject *)v1[91] != v10 ) { if ( v10 ) cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)v1[91]; if ( v12 ) cocos2d::CCObject::release(v12); v1[91] = v11; } v13 = (const void *)v1[91]; if ( v13 ) { v14 = (void (__fastcall ***)(void *, int))_dynamic_cast( v13, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelProtocol, -2); if ( v14 ) { v15 = (cocos2d::CCString *)v1[89]; if ( v15 ) { v16 = **v14; CString = cocos2d::CCString::getCString(v15); v16(v14, CString); } } } v18 = (const void *)v1[91]; if ( v18 ) { v19 = (void (__fastcall ***)(void *, int))_dynamic_cast( v18, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol, -2); if ( v19 ) (**v19)(v19, (int)(v1 + 90)); } v20 = v1[91]; if ( v20 ) { v21 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v20 + 92); v22 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); v23 = (*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v22 * 0.5, *(float *)(v23 + 4) * 0.5); v21(v20, &v48); } v24 = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD *, _DWORD))(*v1 + 768))(v1, v1[83]); v25 = v24; if ( (cocos2d::CCObject *)v1[92] != v24 ) { if ( v24 ) cocos2d::CCObject::retain(v24); v26 = (cocos2d::CCObject *)v1[92]; if ( v26 ) cocos2d::CCObject::release(v26); v1[92] = v25; } v27 = v1[92]; if ( v27 ) { v28 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v27 + 92); v29 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); v30 = (*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v29 * 0.5, *(float *)(v30 + 4) * 0.5); v28(v27, &v48); } cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v43); if ( v1[91] ) { cocos2d::CCNode::boundingBox((cocos2d::CCNode *)&v48); cocos2d::CCSize::operator=(&v43, v50); } v31 = v1[92]; if ( *((_BYTE *)v1 + 363) ) { if ( v31 ) { v32 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v31 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v48, (float)(2 * v1[104]) + v43, (float)(2 * v1[103]) + v44); v32(v31, &v48); } } else if ( v31 ) { (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v31 + 504))(&v48, v1[92]); v33 = v1[92]; if ( v48 <= 0.0 ) v48 = v43; if ( v49 <= 0.0 ) v49 = v44; (*(void (__fastcall **)(int, float *))(*(_DWORD *)v33 + 160))(v33, &v48); } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v46); if ( v1[91] ) { cocos2d::CCNode::boundingBox((cocos2d::CCNode *)&v48); cocos2d::CCRect::operator=(v46, &v48); } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v47); if ( v1[92] ) { cocos2d::CCNode::boundingBox((cocos2d::CCNode *)&v48); cocos2d::CCRect::operator=(v47, &v48); } cocos2d::extension::CCControlUtils::CCRectUnion( (cocos2d::extension::CCControlUtils *)&v48, (const cocos2d::CCRect *)v46, (const cocos2d::CCRect *)v47); v34 = *(int (__fastcall **)(_DWORD *, _BYTE *))(*v1 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v45, v50[0], v50[1]); this = v34(v1, v45); v35 = v1[91]; if ( v35 ) { v36 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 92); v37 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); v38 = (*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v37 * 0.5, *(float *)(v38 + 4) * 0.5); v36(v35, v45); this = (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)v1[91] + 172))(v1[91], 1); } v39 = v1[92]; if ( v39 ) { v40 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v39 + 92); v41 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); v42 = (*(int (__fastcall **)(_DWORD *))(*v1 + 164))(v1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v41 * 0.5, *(float *)(v42 + 4) * 0.5); v40(v39, v45); return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)v1[92] + 172))(v1[92], 1); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source