// // EditorUI::getSimpleButton from 0x4816ac to 0x48174c (160 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:49:22 +0000 // int __fastcall EditorUI::getSimpleButton(int a1, int a2, int a3, int a4, int a5) { cocos2d::CCSprite *v6; // r0 int v7; // r4 void (__fastcall *v8)(int, _DWORD); // r7 float v9; // s17 int v10; // r0 int (__fastcall *v11)(int); // r3 float v12; // s15 int v13; // r4 if ( (*(_BYTE *)a2 & 1) != 0 ) v6 = *(cocos2d::CCSprite **)(a2 + 8); else v6 = (cocos2d::CCSprite *)(a2 + 1); v7 = cocos2d::CCSprite::createWithSpriteFrameName(v6, (const char *)a2); v8 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 80); v9 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 164))(v7); v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 164))(v7); v11 = *(int (__fastcall **)(int))(*(_DWORD *)v7 + 164); if ( (float)(18.0 / v9) <= (float)(18.0 / *(float *)(v10 + 4)) ) v12 = *(float *)v11(v7); else v12 = *(float *)(v11(v7) + 4); v8(v7, 18.0 / v12); v13 = CCMenuItemSpriteExtra::create(v7, 0, a1, a3, a4); if ( a5 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)a5 + 228))(a5, v13); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source