//
// cocos2d::CCMenuItemSprite::create from 0x1003a91b0 to 0x1003a9303 (339 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenuItemSprite::create_2 @ 0x1003a919d
// > cocos2d::CCMenuItemSprite::create_1 @ 0x1003a9330
//
// 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::create(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6)
{
char *v9; // rbx
__int64 v10; // rdi
__int64 v11; // rax
float v13; // [rsp+8h] [rbp-48h] BYREF
__int64 v14; // [rsp+10h] [rbp-40h]
__int64 v15; // [rsp+18h] [rbp-38h]
__int64 v16; // [rsp+20h] [rbp-30h]
v14 = a3;
v15 = a2;
v16 = a1;
v9 = (char *)operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA((__int64)v9);
*((_WORD *)v9 + 169) = 0;
*(_OWORD *)(v9 + 344) = 0;
*(_OWORD *)(v9 + 360) = 0;
*(_QWORD *)v9 = off_100B34690;
*((_QWORD *)v9 + 40) = off_100B34B08;
*(_OWORD *)(v9 + 376) = 0;
*((_QWORD *)v9 + 49) = 0;
sub_100278250(&v13, 0.5, 0.5);
(*(void (__fastcall **)(char *, float *))(*(_QWORD *)v9 + 296LL))(v9, &v13);
*((_QWORD *)v9 + 43) = a4;
*((_QWORD *)v9 + 44) = a5;
*((_QWORD *)v9 + 45) = a6;
*((_WORD *)v9 + 169) = 256;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 1080LL))(v9, v16);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 1096LL))(v9, v15);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 1112LL))(v9, v14);
v10 = *((_QWORD *)v9 + 47);
if ( v10 )
{
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 320LL))(v9, v11);
}
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 984LL))(v9, 1);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 936LL))(v9, 1);
cocos2d::CCObject::autorelease(v9);
return v9;
}