//
// GJRobotSprite::setOpacity from 0x1002dd0fc to 0x1002dd1d8 (220 bytes)
//
// 3 xrefs:
// > sub_1002DD1D8 @ 0x1002dd1dc
// > ??> @ 0x100922028
// > ??> @ 0x1009225f0
//
// 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 11:02:45 +0000
//
__int64 __fastcall GJRobotSprite::setOpacity(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x22
__int64 v8; // x0
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 736)) )
{
v4 = 0;
do
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 736), v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 912LL))(v5, a2);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 736)) );
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 672) + 912LL))(*(_QWORD *)(a1 + 672), a2);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 488LL))(*(_QWORD *)(a1 + 744));
if ( (unsigned int)sub_1002E757C(v6) )
{
v7 = 0;
do
{
v8 = sub_1002E75A0(v6, v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 912LL))(v8, a2);
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_1002E757C(v6) );
}
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 752) + 912LL))(*(_QWORD *)(a1 + 752), a2);
}