//
// ColorChannelSprite::updateCopyLabel from 0x10000d1e4 to 0x10000d384 (416 bytes)
//
// 1 xrefs:
// > ColorChannelSprite::updateValues @ 0x10000d5f8
//
// 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 10:57:15 +0000
//
__int64 __fastcall ColorChannelSprite::updateCopyLabel(_QWORD **a1, __int64 a2, int a3)
{
__int64 result; // x0
__int64 v7; // x0
_QWORD *v8; // x22
float v9; // s8
__n128 v10; // q1
__n128 v11; // q0
__n128 v12; // q0
__int64 v13; // x0
__int64 CString; // x0
void *v15; // x1
_BYTE v16[8]; // [xsp+8h] [xbp-38h] BYREF
result = (__int64)a1[75];
if ( (_DWORD)a2 )
{
if ( !result )
{
v7 = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt");
a1[75] = (_QWORD *)v7;
((void (__fastcall *)(_QWORD **, __int64, __int64))(*a1)[58])(a1, v7, 1);
v8 = a1[75];
v9 = *(float *)((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1) * 0.5;
v10.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1) + 4) * 0.5) + 3.0;
v11.n128_f32[0] = v9;
v12 = sub_1000262BC(v16, v11, v10);
(*(void (__fastcall **)(_QWORD *, _BYTE *, __n128))(*v8 + 184LL))(v8, v16, v12);
(*(void (__fastcall **)(_QWORD *, float))(*a1[75] + 160LL))(a1[75], 0.5);
}
if ( (int)a2 > 999 )
{
CString = GJSpecialColorSelect::textForColorIdx(a2);
}
else
{
v13 = sub_1003065B0("%i", a2);
CString = cocos2d::CCString::getCString(v13);
}
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[75] + 928LL))(a1[75], CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1[75], 28.0, 0.5, 0.0);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[75] + 344LL))(a1[75], 1);
if ( a3 )
v15 = &unk_10075BE70;
else
v15 = &unk_10075BE73;
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*a1[75] + 1072LL))(a1[75], v15);
}
else if ( result )
{
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
return result;
}