//
// ColorChannelSprite::updateOpacity from 0x1002c38b0 to 0x1002c39f6 (326 bytes)
//
// 1 xrefs:
// > ColorChannelSprite::updateValues @ 0x1002c3b3f
//
// 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:28:06 +0000
//
__int64 __fastcall ColorChannelSprite::updateOpacity(_QWORD **a1, __m128 a2)
{
__int64 result; // rax
__int64 v3; // rax
_QWORD *v4; // r14
__int64 v5; // rax
_QWORD *v6; // r14
double v7; // xmm0_8
__int64 v8; // rax
__int64 CString; // rax
__m128 v10; // rt1
char v11; // [rsp+0h] [rbp-30h]
float v12; // [rsp+8h] [rbp-28h] BYREF
float v13; // [rsp+10h] [rbp-20h]
float v14; // [rsp+14h] [rbp-1Ch]
result = (__int64)a1[76];
if ( a2.f32[0] == 1.0 )
{
if ( !result )
return result;
}
else
{
v14 = a2.f32[0];
if ( !result )
{
v3 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt");
a1[76] = (_QWORD *)v3;
((void (__fastcall *)(_QWORD **, __int64))(*a1)[57])(a1, v3);
v4 = a1[76];
v13 = *(float *)((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1) * 0.5;
v5 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1);
sub_100278250(&v12, v13, (float)(0.5 * *(float *)(v5 + 4)) + -9.5);
(*(void (__fastcall **)(_QWORD *, float *))(*v4 + 184LL))(v4, &v12);
(*(void (__fastcall **)(_QWORD *, float))(*a1[76] + 160LL))(a1[76], 0.30000001);
}
v6 = a1[76];
v7 = v14;
v8 = sub_10088E820("%0.2f", v11);
CString = cocos2d::CCString::getCString(v8);
(*(void (__fastcall **)(_QWORD *, __int64, double))(*v6 + 928LL))(v6, CString, v7);
a2 = (__m128)LODWORD(v14);
}
v10.i32[0] = 1065353216;
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1[76] + 344LL))(
a1[76],
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(a2, v10)) & 1);
}