//
// ColorChannelSprite::updateOpacity from 0x10000d384 to 0x10000d4c8 (324 bytes)
//
// 1 xrefs:
// > ColorChannelSprite::updateValues @ 0x10000d604
//
// 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::updateOpacity(__int64 result, float a2)
{
_QWORD **v3; // x19
__int64 v4; // x8
__int64 v5; // x0
_QWORD *v6; // x20
float v7; // s9
__n128 v8; // q1
__n128 v9; // q0
__n128 v10; // q0
_QWORD *v11; // x20
__int64 v12; // x0
__int64 CString; // x0
_BYTE v14[8]; // [xsp+8h] [xbp-38h] BYREF
v3 = (_QWORD **)result;
v4 = *(_QWORD *)(result + 608);
if ( a2 == 1.0 )
{
if ( !v4 )
return result;
}
else
{
if ( !v4 )
{
v5 = cocos2d::CCLabelBMFont::create_1(" ", "bigFont.fnt");
v3[76] = (_QWORD *)v5;
((void (__fastcall *)(_QWORD **, __int64))(*v3)[57])(v3, v5);
v6 = v3[76];
v7 = *(float *)((__int64 (__fastcall *)(_QWORD **))(*v3)[41])(v3) * 0.5;
v8.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(_QWORD **))(*v3)[41])(v3) + 4) * 0.5) + -9.5;
v9.n128_f32[0] = v7;
v10 = sub_1000262BC(v14, v9, v8);
(*(void (__fastcall **)(_QWORD *, _BYTE *, __n128))(*v6 + 184LL))(v6, v14, v10);
(*(void (__fastcall **)(_QWORD *, float))(*v3[76] + 160LL))(v3[76], 0.3);
}
v11 = v3[76];
v12 = sub_1003065B0("%0.2f", a2);
CString = cocos2d::CCString::getCString(v12);
(*(void (__fastcall **)(_QWORD *, __int64))(*v11 + 928LL))(v11, CString);
}
return (*(__int64 (__fastcall **)(_QWORD *, bool))(*v3[76] + 344LL))(v3[76], a2 != 1.0);
}