//
// cocos2d::CCSprite::setChildOpacity from 0xd86cf8 to 0xd86da4 (172 bytes)
//
// 82 xrefs:
// > ??> @ 0x813a0
// > ??> @ 0x1413a30
// > ??> @ 0x1413ff0
// > ??> @ 0x1414da0
// > ??> @ 0x1417610
// > ??> @ 0x1417bb0
// > ??> @ 0x141b4d0
// > ??> @ 0x141bb00
// > ??> @ 0x141cf80
// > ??> @ 0x1421bb0
// > ??> @ 0x1422160
// > ??> @ 0x1423b20
// > ??> @ 0x14240d0
// > ??> @ 0x14246a0
// > ??> @ 0x1429080
// > ??> @ 0x14336f0
// > ??> @ 0x1433ef0
// > ??> @ 0x14344e0
// > ??> @ 0x1434cc0
// > ??> @ 0x14354d0
// > ??> @ 0x143a460
// > ??> @ 0x1443830
// > ??> @ 0x1444040
// > ??> @ 0x1444850
// > ??> @ 0x1445060
// > ??> @ 0x1445870
// > ??> @ 0x1446080
// > ??> @ 0x1446890
// > ??> @ 0x14470a0
// > ??> @ 0x1447880
// > ??> @ 0x1448090
// > ??> @ 0x14488a0
// > ??> @ 0x14490b0
// > ??> @ 0x14498c0
// > ??> @ 0x144a110
// > ??> @ 0x144a920
// > ??> @ 0x144b130
// > ??> @ 0x144b940
// > ??> @ 0x144c150
// > ??> @ 0x144c970
// > ??> @ 0x144d180
// > ??> @ 0x144d990
// > ??> @ 0x144e1a0
// > ??> @ 0x144e9b0
// > ??> @ 0x144f1c0
// > ??> @ 0x144f9d0
// > ??> @ 0x14501e0
// > ??> @ 0x14509f0
// > ??> @ 0x1451200
// > ??> @ 0x1451a10
// > ??> @ 0x1452220
// > ??> @ 0x1452a30
// > ??> @ 0x1453240
// > ??> @ 0x1453a50
// > ??> @ 0x1454260
// > ??> @ 0x1454a70
// > ??> @ 0x1455280
// > ??> @ 0x1455a90
// > ??> @ 0x14562a0
// > ??> @ 0x1456ab0
// > ??> @ 0x14572c0
// > ??> @ 0x1457ad0
// > ??> @ 0x14582e0
// > ??> @ 0x1458af0
// > ??> @ 0x1459320
// > ??> @ 0x145b210
// > ??> @ 0x145b7b0
// > ??> @ 0x14778a0
// > ??> @ 0x1479950
// > ??> @ 0x1486db0
// > ??> @ 0x1487360
// > ??> @ 0x1491c90
// > ??> @ 0x14970d0
// > ??> @ 0x1499620
// > ??> @ 0x14c1f50
// > ??> @ 0x14d9950
// > ??> @ 0x150cd70
// > ??> @ 0x1517c30
// > ??> @ 0x15181d0
// > ??> @ 0x1518d50
// > ??> @ 0x152e7b0
// > ??> @ 0x152ffb0
//
// This function is hookable on this platform (idp: arm, 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 13:08:13 +0000
//
__int64 __fastcall cocos2d::CCSprite::setChildOpacity(__int64 this, unsigned __int8 a2)
{
unsigned int v2; // w21
unsigned int *v3; // x1
__int64 *v4; // x19
__int64 *v5; // x20
v2 = a2;
if ( *(_BYTE *)(this + 378) )
{
this = *(_QWORD *)(this + 208);
if ( this )
{
v3 = *(unsigned int **)(this + 56);
this = *v3;
if ( (_DWORD)this )
{
v4 = *((__int64 **)v3 + 2);
v5 = &v4[(unsigned int)this - 1];
if ( v4 <= v5 )
{
for ( this = *v4; *v4; this = *v4 )
{
this = (__int64)_dynamic_cast(
(const void *)this,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite,
0);
if ( this )
this = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)this + 912LL))(this, v2);
if ( v5 < ++v4 )
break;
}
}
}
}
}
return this;
}