//
// cocos2d::CCMenuItemLabel::setLabel from 0x1003a7f40 to 0x1003a7fcf (143 bytes)
//
// 3 xrefs:
// > ??> @ 0x100b345e0
// > ??> @ 0x100b35510
// > ??> @ 0x100b35a08
//
// 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:22 +0000
//
__int64 __fastcall cocos2d::CCMenuItemLabel::setLabel(_QWORD *a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rax
__int64 v5; // rsi
float v6[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v6 = result;
if ( a2 )
{
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, a2);
sub_100278250(v6, 0.0, 0.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a2 + 296LL))(a2, v6);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
result = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 320LL))(a1, v4);
}
v5 = a1[48];
if ( v5 )
result = (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*a1 + 552LL))(a1, v5, 1);
a1[48] = a2;
return result;
}