//
// GJEffectManager::updateOpacityAction from 0xa02f5c to 0xa02ff0 (148 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::activateTriggerEffect @ 0x795b6c
// > ??> @ 0xa37e0
//
// 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 12:59:20 +0000
//
__int64 __fastcall GJEffectManager::updateOpacityAction(GJEffectManager *this, OpacityEffectAction *a2)
{
int v2; // w2
__int64 *v3; // x20
__int64 *v4; // x1
void *v5; // x0
int v7; // [xsp+2Ch] [xbp+2Ch] BYREF
void *v8; // [xsp+30h] [xbp+30h] BYREF
v2 = *((unsigned __int8 *)a2 + 12);
v7 = *((_DWORD *)a2 + 5);
if ( v2 )
{
if ( *((float *)a2 + 6) >= 1.0 )
{
v3 = (__int64 *)((char *)this + 408);
v4 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 51,
&v7);
if ( v4 )
{
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::remove(
v3,
v4,
(__int64)&v8);
v5 = v8;
v8 = nullptr;
if ( v5 )
operator delete(v5);
}
}
}
return _stack_chk_guard;
}