// // cocos2d::extension::CCControlButton::setPreferredSize from 0x7a702c to 0x7a70d2 (166 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::setPreferredSize(int a1, float *a2, int a3, int a4) { int v6; // r3 int v7; // r3 int v8; // r5 int v9; // r9 void (__fastcall *v10)(int, _DWORD *); // r10 int v11; // r2 _DWORD v13[3]; // [sp+4h] [bp-Ch] BYREF v13[0] = a2; v13[1] = a3; v13[2] = a4; if ( *a2 == 0.0 && a2[1] == 0.0 ) { *(_BYTE *)(a1 + 363) = 1; } else { *(_BYTE *)(a1 + 363) = 0; v6 = *(_DWORD *)(a1 + 408); if ( v6 ) { v7 = *(_DWORD *)(v6 + 52); if ( v7 ) v8 = *(_DWORD *)(v7 + 272); else v8 = 0; while ( v7 ) { v9 = *(_DWORD *)(v7 + 260); v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 508); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v13, (const cocos2d::CCSize *)a2); v10(v9, v13); if ( v8 ) v11 = *(_DWORD *)(v8 + 272); else v11 = 0; v7 = v8; v8 = v11; } } } cocos2d::CCSize::operator=(a1 + 372, a2); return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 656))(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source