//
// GJMGLayer::updateGroundOpacity from 0x1005ec4e0 to 0x1005ec555 (117 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x100114827
// > GJBaseGameLayer::updateLevelColors @ 0x100114858
//
// 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 GJMGLayer::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)
{
__int64 v3; // rdi
__int64 v4; // rbx
unsigned int v5; // r15d
__int64 v6; // rax
v3 = *((_QWORD *)&a1->m_ground1Sprite + !a3);
if ( v3 )
{
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 472LL))(v3);
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) );
}
}
}