// // CCMenuItemSpriteExtra::init from 0x3c6634 to 0x3c6728 (244 bytes) // // 4 xrefs: // > CCMenuItemSpriteExtra::create @ 0x3c68ba // > RowPressItem::create @ 0x4279e0 // > InfoAlertButton::init @ 0x5e8394 // > CreateMenuItem::init @ 0x6e7d0a // // 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:46:34 +0000 // int __fastcall CCMenuItemSpriteExtra::init(int a1, int a2, int a3, int a4, int a5, int a6) { int v8; // r8 void (__fastcall *v9)(int, _BYTE *); // r9 void (__fastcall *v10)(int, _BYTE *); // r9 float v11; // s17 float v12; // s15 float v13; // s16 float v14; // r0 void (__fastcall *v15)(int, _BYTE *); // r9 const cocos2d::CCPoint *v16; // r0 _BYTE v18[8]; // [sp+14h] [bp-10h] BYREF v8 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a5, a6); if ( v8 ) { *(_DWORD *)(a1 + 316) = 1065353216; v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a2 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.5, 0.5); v9(a2, v18); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a1 + 160); v11 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2); v12 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 68))(a2)); v13 = *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2) + 4); v14 = (*(float (__fastcall **)(int))(*(_DWORD *)a2 + 76))(a2); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v18, v11 * v12, v13 * v14); v10(a1, v18); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)a2 + 92); v16 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 256))(a2); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v18, v16); v15(a2, v18); *(_BYTE *)(a1 + 320) = 1; *(_DWORD *)(a1 + 312) = 1067534254; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source