//
// cocos2d::CCMenuItemSprite::initWithNormalSprite from 0x100055708 to 0x100055820 (280 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenuItemImage::init @ 0x100055a50
// > cocos2d::CCMenuItemImage::initWithNormalImage @ 0x100055aec
// > CCMenuItemSpriteExtra::init @ 0x1002b01f4
//
// 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 10:57:45 +0000
//
__int64 __fastcall cocos2d::CCMenuItemSprite::initWithNormalSprite(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
__int64 v14; // x0
__int64 v15; // x0
float v17; // [xsp+8h] [xbp-48h] BYREF
sub_1000262BC(&v17, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v17);
*(_QWORD *)(a1 + 344) = a5;
*(_QWORD *)(a1 + 352) = a6;
*(_QWORD *)(a1 + 360) = a7;
*(_WORD *)(a1 + 338) = 256;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1080LL))(a1, a2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1096LL))(a1, a3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1112LL))(a1, a4);
v14 = *(_QWORD *)(a1 + 376);
if ( v14 )
{
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 328LL))(v14);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v15);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}