//
// cocos2d::CCMenuItemImage::init from 0x1003a97a0 to 0x1003a986d (205 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b142a0
// > ??> @ 0x100b34bf0
//
// 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::init(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rax
float v5[6]; // [rsp+8h] [rbp-18h] BYREF
sub_100278250(v5, 0.5, 0.5);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, v5);
*(_OWORD *)(a1 + 344) = 0;
*(_QWORD *)(a1 + 360) = 0;
*(_WORD *)(a1 + 338) = 256;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1080LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1096LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1112LL))(a1, 0);
v2 = *(_QWORD *)(a1 + 376);
if ( v2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v3);
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 984LL))(a1, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 936LL))(a1, 1);
return 1;
}