//
// cocos2d::CCSprite::updateDisplayedOpacity from 0x10028ac90 to 0x10028adbc (300 bytes)
//
// 79 xrefs:
// > sub_10028ADC0 @ 0x10028adcc
// > ??> @ 0x1008b4148
// > ??> @ 0x1008b8130
// > ??> @ 0x1008c43f0
// > ??> @ 0x1008c4c28
// > ??> @ 0x1008c5420
// > ??> @ 0x1008c5c18
// > ??> @ 0x1008c6410
// > ??> @ 0x1008c6c08
// > ??> @ 0x1008c7400
// > ??> @ 0x1008c7bf8
// > ??> @ 0x1008c83e0
// > ??> @ 0x1008c8bf0
// > ??> @ 0x1008c9468
// > ??> @ 0x1008c9c78
// > ??> @ 0x1008ca488
// > ??> @ 0x1008cac98
// > ??> @ 0x1008cb4a8
// > ??> @ 0x1008cbcb8
// > ??> @ 0x1008cc4c8
// > ??> @ 0x1008cccd8
// > ??> @ 0x1008cd4e8
// > ??> @ 0x1008cdcf8
// > ??> @ 0x1008ce520
// > ??> @ 0x1008ced78
// > ??> @ 0x1008cf5a0
// > ??> @ 0x1008cfdc8
// > ??> @ 0x1008d05f0
// > ??> @ 0x1008d0e18
// > ??> @ 0x1008d1628
// > ??> @ 0x1008d1e38
// > ??> @ 0x1008d2648
// > ??> @ 0x1008d2e58
// > ??> @ 0x1008d3668
// > ??> @ 0x1008d3e78
// > ??> @ 0x1008d4688
// > ??> @ 0x1008d4e98
// > ??> @ 0x1008d56a8
// > ??> @ 0x1008d5eb8
// > ??> @ 0x1008d66c8
// > ??> @ 0x1008d6ed8
// > ??> @ 0x1008d76e8
// > ??> @ 0x1008d7ef8
// > ??> @ 0x1008d8708
// > ??> @ 0x1008d8f18
// > ??> @ 0x1008dd4f8
// > ??> @ 0x1008e0a28
// > ??> @ 0x1008f06a0
// > ??> @ 0x1008f3a30
// > ??> @ 0x100904e28
// > ??> @ 0x100909a00
// > ??> @ 0x10090ba38
// > ??> @ 0x1009134e0
// > ??> @ 0x100914788
// > ??> @ 0x100915318
// > ??> @ 0x10091c0a8
// > ??> @ 0x10091c630
// > ??> @ 0x10091da88
// > ??> @ 0x10091e028
// > ??> @ 0x1009236c0
// > ??> @ 0x100928058
// > ??> @ 0x10092adb0
// > ??> @ 0x100933a88
// > ??> @ 0x1009342b0
// > ??> @ 0x10093c950
// > ??> @ 0x10093cf00
// > ??> @ 0x100942190
// > ??> @ 0x10094e8a8
// > ??> @ 0x100971770
// > ??> @ 0x100971f58
// > ??> @ 0x100972768
// > ??> @ 0x1009749d0
// > ??> @ 0x100974f88
// > ??> @ 0x100975540
// > ??> @ 0x10097a530
// > ??> @ 0x10097aae8
// > ??> @ 0x1009855b8
// > ??> @ 0x1009919a0
// > ??> @ 0x1009961c8
//
// 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
//
void __fastcall cocos2d::CCSprite::updateDisplayedOpacity(cocos2d::CCSprite *a1, unsigned __int8 a2)
{
GLubyte displayedOpacity; // al
int v3; // ecx
int v4; // edx
int v5; // esi
float v6; // xmm0_4
unsigned int m_uAtlasIndex; // edx
cocos2d::CCNodeRGBA::updateDisplayedOpacity(a1, a2);
displayedOpacity = a1->_displayedOpacity;
LOBYTE(v3) = a1->_displayedColor.r;
LOBYTE(v4) = a1->_displayedColor.g;
LOBYTE(v5) = a1->_displayedColor.b;
if ( a1->m_bOpacityModifyRGB )
{
v6 = (float)displayedOpacity / 255.0;
v3 = (int)(float)((float)(unsigned __int8)v3 * v6);
v4 = (int)(float)((float)(unsigned __int8)v4 * v6);
v5 = (int)(float)((float)(unsigned __int8)v5 * v6);
}
a1->m_sQuad.bl.colors.r = v3;
a1->m_sQuad.bl.colors.g = v4;
a1->m_sQuad.bl.colors.b = v5;
a1->m_sQuad.bl.colors.a = displayedOpacity;
a1->m_sQuad.br.colors.r = v3;
a1->m_sQuad.br.colors.g = v4;
a1->m_sQuad.br.colors.b = v5;
a1->m_sQuad.br.colors.a = displayedOpacity;
a1->m_sQuad.tl.colors.r = v3;
a1->m_sQuad.tl.colors.g = v4;
a1->m_sQuad.tl.colors.b = v5;
a1->m_sQuad.tl.colors.a = displayedOpacity;
a1->m_sQuad.tr.colors.r = v3;
a1->m_sQuad.tr.colors.g = v4;
a1->m_sQuad.tr.colors.b = v5;
a1->m_sQuad.tr.colors.a = displayedOpacity;
if ( a1->m_pobBatchNode )
{
m_uAtlasIndex = a1->m_uAtlasIndex;
if ( m_uAtlasIndex == -1 )
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->setDirty)(a1, 1);
else
cocos2d::CCTextureAtlas::updateQuad(a1->m_pobTextureAtlas, &a1->m_sQuad, m_uAtlasIndex);
}
}