//
// sub_10020D628 from 0x10020d628 to 0x10020d6d4 (172 bytes)
//
// 6 xrefs:
// > sub_10020CAA0 @ 0x10020cab4
// > sub_10020CAA0 @ 0x10020cac0
// > sub_10020CAA0 @ 0x10020cacc
// > sub_10020CAA0 @ 0x10020cad8
// > sub_10020CAA0 @ 0x10020cae4
// > sub_10020CAA0 @ 0x10020caf8
//
// 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:01:01 +0000
//
__int64 __fastcall sub_10020D628(__int64 result, __int64 a2)
{
__int64 v3; // x20
int v4; // w21
double v5; // d0
double v6; // d1
_WORD *v7; // x1
if ( *(_QWORD *)(result + 856) )
{
v3 = result;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( sub_100010050(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 856) + 3272LL) + 320LL), v4) )
{
v7 = sub_10000F52C(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v3 + 856) + 3272LL) + 320LL), v4, v5, v6);
return ColorChannelSprite::updateValues(a2, (__int64)v7);
}
else
{
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 960LL))(a2, &unk_100761AF5);
}
}
return result;
}