//
// ColorSelectPopup::updateOpacityLabel from 0x4def30 to 0x4def64 (52 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::onDefault @ 0x4df456
// > ColorSelectPopup::sliderChanged @ 0x4df6de
// > ColorSelectPopup::init @ 0x4e00ca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:59 +0000
//
int __fastcall ColorSelectPopup::updateOpacityLabel(int this, const char *a2)
{
int v2; // r4
int (__fastcall *v3)(int, int); // r5
cocos2d::CCString *v4; // r0
int CString; // r0
v2 = *(_DWORD *)(this + 728);
if ( v2 )
{
v3 = *(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 464);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Opacity: %.02f",
a2,
*(float *)(this + 780));
CString = cocos2d::CCString::getCString(v4);
return v3(v2, CString);
}
return this;
}