//
// GJBaseGameLayer::opacityForObject from 0x10029a52c to 0x10029a5ac (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x100918f50
// > ??> @ 0x10094c478
//
// 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:08 +0000
//
float __fastcall GJBaseGameLayer::opacityForObject(__int64 a1, __int64 a2)
{
__int64 v4; // x21
float v5; // s8
__int64 v6; // x22
int v7; // w0
if ( *(__int16 *)(a2 + 1168) < 1 )
return 1.0;
v4 = 0;
v5 = 1.0;
do
{
v6 = *(_QWORD *)(a1 + 2152);
v7 = sub_1002FA6C4(a2, v4);
v5 = v5 * sub_1000146B0(v6, v7);
v4 = (unsigned int)(v4 + 1);
}
while ( (int)v4 < *(__int16 *)(a2 + 1168) );
return v5;
}