//
// cocos2d::CCMenuItemImage::initWithNormalImage from 0x1003a9870 to 0x1003a99a4 (308 bytes)
//
// 7 xrefs:
// > SliderThumb::create @ 0x1002ee3c6
// > SliderThumb::init @ 0x1002ee440
// > SliderTouchLogic::init @ 0x1002eec59
// > cocos2d::CCMenuItemImage::create_3 @ 0x1003a9a32
// > cocos2d::CCMenuItemImage::create @ 0x1003a9aff
// > cocos2d::CCMenuItemImage::create_1 @ 0x1003a9bd9
// > cocos2d::CCMenuItemImage::create_2 @ 0x1003a9c98
//
// 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::CCMenuItemImage::initWithNormalImage(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int128 a7)
{
char *v10; // r15
char *v11; // r12
char *v12; // r13
__int64 v13; // rdi
__int64 v14; // rax
float v16; // [rsp+8h] [rbp-48h] BYREF
__int128 v17; // [rsp+10h] [rbp-40h]
__int64 v18; // [rsp+20h] [rbp-30h]
v18 = a5;
v17 = a7;
if ( a2 )
{
v10 = cocos2d::CCSprite::create_1(a2);
if ( a3 )
goto LABEL_3;
LABEL_6:
v11 = nullptr;
if ( a4 )
goto LABEL_4;
goto LABEL_7;
}
v10 = nullptr;
if ( !a3 )
goto LABEL_6;
LABEL_3:
v11 = cocos2d::CCSprite::create_1(a3);
if ( a4 )
{
LABEL_4:
v12 = cocos2d::CCSprite::create_1(a4);
goto LABEL_8;
}
LABEL_7:
v12 = nullptr;
LABEL_8:
sub_100278250(&v16, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v16);
*(_QWORD *)(a1 + 344) = v18;
*(_OWORD *)(a1 + 352) = v17;
*(_WORD *)(a1 + 338) = 256;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1080LL))(a1, v10);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1096LL))(a1, v11);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1112LL))(a1, v12);
v13 = *(_QWORD *)(a1 + 376);
if ( v13 )
{
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v14);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}