// // CCMenuItemSpriteExtra::init from 0x1002b01c4 to 0x1002b0300 (316 bytes) // // 4 xrefs: // > RowPressItem::create @ 0x10013a2e8 // > CreateMenuItem::create @ 0x1001a8c00 // > InfoAlertButton::init @ 0x1001f8ee4 // > CCMenuItemSpriteExtra::create @ 0x1002b0170 // // This function is hookable on this platform (idp: arm, 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 11:02:20 +0000 // __int64 __fastcall CCMenuItemSpriteExtra::init(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { __int64 v8; // x21 float v9; // s8 float v10; // s8 float v11; // s9 float v12; // s0 __int64 v13; // x0 __n128 v14; // q0 __int64 v16; // [xsp+8h] [xbp-38h] BYREF v8 = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a5, a6); if ( (_DWORD)v8 ) { *(_DWORD *)(a1 + 404) = 1065353216; sub_1000262BC((float *)&v16, 0.5, 0.5); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a2 + 296LL))(a2, &v16); v9 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2); v10 = v9 * (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 136LL))(a2); v11 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2) + 4); v12 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 152LL))(a2); sub_1000262C4((float *)&v16, v10, v11 * v12); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 320LL))(a1, &v16); v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 512LL))(a2); cocos2d::CCNode::convertToNodeSpace(&v16, v13, &unk_1009F5900, v14); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a2 + 184LL))(a2, &v16); *(_BYTE *)(a1 + 408) = 1; *(_DWORD *)(a1 + 400) = 1067534254; } return v8; }