// // ColorChannelSprite::updateOpacity from 0x1002d8e20 to 0x1002d8f66 (326 bytes) // // 1 xrefs: // > ColorChannelSprite::updateValues @ 0x1002d90af // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall ColorChannelSprite::updateOpacity(ColorChannelSprite *a1, float a2) { cocos2d::CCLabelBMFont *m_opacityLabel; // rax cocos2d::CCLabelBMFont *v3; // rax cocos2d::CCLabelBMFont *v4; // r14 __int64 v5; // rax cocos2d::CCLabelBMFont *v6; // r14 double v7; // xmm0_8 cocos2d::CCString *v8; // rax const char *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] m_opacityLabel = a1->m_opacityLabel; if ( a2 == 1.0 ) { if ( !m_opacityLabel ) return; } else { v14 = a2; if ( !m_opacityLabel ) { v3 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt"); a1->m_opacityLabel = v3; ((void (__fastcall *)(ColorChannelSprite *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v3); v4 = a1->m_opacityLabel; v13 = *(float *)((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) * 0.5; v5 = ((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1); sub_10028CBE0(&v12, v13, (float)(0.5 * *(float *)(v5 + 4)) + -9.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))v4->setPosition)(v4, &v12); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_opacityLabel->setScale)( a1->m_opacityLabel, 0.30000001); } v6 = a1->m_opacityLabel; v7 = v14; v8 = (cocos2d::CCString *)sub_1007AB580("%0.2f", v11); CString = cocos2d::CCString::getCString(v8); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, double))v6->setString)(v6, CString, v7); *(_OWORD *)&a2 = LODWORD(v14); } v10.i32[0] = 1065353216; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_opacityLabel->setVisible)( a1->m_opacityLabel, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(*(__m128 *)&a2, v10)) & 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source