// // cocos2d::extension::CCControlButton::setPreferredSize from 0x10033f770 to 0x10033f828 (184 bytes) // // 2 xrefs: // > @ 0x100b1dfd0 // > @ 0x100b526b8 // // 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 12:28:43 +0000 // __int64 __fastcall cocos2d::extension::CCControlButton::setPreferredSize(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 v3; // rax __int64 v4; // r13 __int64 v5; // r12 _QWORD v7[6]; // [rsp+0h] [rbp-30h] BYREF v7[0] = v2; if ( *(float *)a2 == 0.0 && *(float *)(a2 + 4) == 0.0 ) { *(_BYTE *)(a1 + 483) = 1; } else { *(_BYTE *)(a1 + 483) = 0; v3 = *(_QWORD *)(a1 + 552); if ( v3 ) { v4 = *(_QWORD *)(v3 + 56); while ( v4 ) { v5 = *(_QWORD *)(v4 + 264); v4 = *(_QWORD *)(v4 + 288); sub_100278630(v7, (_QWORD *)a2); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v5 + 1016LL))(v5, v7); } } } sub_100278660((_QWORD *)(a1 + 504), (_QWORD *)a2); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1312LL))(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source