//
// GJRobotSprite::setOpacity from 0x1005dd010 to 0x1005dd0f8 (232 bytes)
//
// 3 xrefs:
// > sub_1005DD100 @ 0x1005dd10c
// > ??> @ 0x100974f80
// > ??> @ 0x100975538
//
// 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 GJRobotSprite::setOpacity(GJRobotSprite *a1, unsigned __int8 a2)
{
unsigned int v2; // r15d
__int64 v3; // rax
__int64 v4; // r15
unsigned int v5; // r12d
__int64 v6; // rax
if ( (unsigned int)sub_100720070(a1->m_secondArray) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_secondArray, v2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 896LL))(v3, a2);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_secondArray) );
}
((void (__fastcall *)(CCPartAnimSprite *, _QWORD))a1->m_paSprite->setOpacity)(a1->m_paSprite, a2);
v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_glowSprite->getChildren)(a1->m_glowSprite);
if ( (unsigned int)sub_100720070(v4) )
{
v5 = 0;
do
{
v6 = sub_1007200C0(v4, v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 896LL))(v6, a2);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(v4) );
}
((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_extraSprite->setOpacity)(a1->m_extraSprite, a2);
}