//
// cocos2d::CCMenuItemImage::initWithNormalImage from 0xd66d10 to 0xd66ddc (204 bytes)
//
// 5 xrefs:
// > SliderThumb::init @ 0x6b51fc
// > cocos2d::CCMenuItemImage::init @ 0xd66dfc
// > cocos2d::CCMenuItemImage::create @ 0xd66f4c
// > cocos2d::CCMenuItemImage::create @ 0xd67068
// > ??> @ 0xda9c8
//
// 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 13:07:54 +0000
//
__int64 __fastcall cocos2d::CCMenuItemImage::initWithNormalImage(
_QWORD *a1,
cocos2d::CCSprite *this,
cocos2d::CCSprite *a3,
cocos2d::CCSprite *a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
__int64 v9; // x0
__int64 v10; // x21
__int64 v11; // x2
__int64 v12; // x0
__int64 v13; // x3
_QWORD *v14; // x0
__int64 v15; // x1
__int64 v17; // [xsp+30h] [xbp+30h]
__int64 v18; // [xsp+30h] [xbp+30h]
__int64 v19; // [xsp+38h] [xbp+38h]
__int64 v20; // [xsp+38h] [xbp+38h]
__int64 v21; // [xsp+40h] [xbp+40h]
__int64 v22; // [xsp+40h] [xbp+40h]
__int64 v23; // [xsp+40h] [xbp+40h]
__int64 v24; // [xsp+48h] [xbp+48h]
cocos2d::CCSprite *v25; // [xsp+58h] [xbp+58h]
cocos2d::CCSprite *v26; // [xsp+58h] [xbp+58h]
cocos2d::CCSprite *v27; // [xsp+58h] [xbp+58h]
if ( this )
{
v21 = a5;
v17 = a6;
v19 = a7;
v25 = a3;
v9 = cocos2d::CCSprite::create(this, (const char *)this);
a3 = v25;
v10 = v9;
a5 = v21;
a6 = v17;
a7 = v19;
if ( v25 )
goto LABEL_3;
LABEL_7:
v11 = 0;
if ( a4 )
goto LABEL_4;
LABEL_8:
v14 = a1;
v15 = v10;
v13 = 0;
return cocos2d::CCMenuItemSprite::initWithNormalSprite(v14, v15, v11, v13, a5, a6, a7);
}
v10 = 0;
if ( !a3 )
goto LABEL_7;
LABEL_3:
v26 = (cocos2d::CCSprite *)a5;
v22 = a6;
v24 = a7;
v11 = cocos2d::CCSprite::create(a3, (const char *)this);
a5 = (__int64)v26;
a6 = v22;
a7 = v24;
if ( !a4 )
goto LABEL_8;
LABEL_4:
v23 = a5;
v18 = a6;
v20 = a7;
v27 = (cocos2d::CCSprite *)v11;
v12 = cocos2d::CCSprite::create(a4, (const char *)this);
v11 = (__int64)v27;
v13 = v12;
a5 = v23;
v14 = a1;
a6 = v18;
a7 = v20;
v15 = v10;
return cocos2d::CCMenuItemSprite::initWithNormalSprite(v14, v15, v11, v13, a5, a6, a7);
}