//
// cocos2d::CCMenuItemSprite::initWithNormalSprite from 0x1003a9340 to 0x1003a9427 (231 bytes)
//
// 1 xrefs:
// > CCMenuItemSpriteExtra::init @ 0x1002631ed
//
// 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:29:23 +0000
//
char __fastcall cocos2d::CCMenuItemSprite::initWithNormalSprite(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int128 a7)
{
__int64 v10; // rdi
__int64 v11; // rax
float v13; // [rsp+8h] [rbp-38h] BYREF
__int64 v14; // [rsp+10h] [rbp-30h]
v14 = a4;
sub_100278250(&v13, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v13);
*(_QWORD *)(a1 + 344) = a5;
*(_OWORD *)(a1 + 352) = 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, v14);
v10 = *(_QWORD *)(a1 + 376);
if ( v10 )
{
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v11);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}