//
// GJBaseGameLayer::controlAreaEffect from 0x1402279f0 to 0x140227b5f (367 bytes)
//
// 8 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e346
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e35d
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e374
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e38b
// > GJBaseGameLayer::controlTriggersInGroup @ 0x14021e3a2
// > ??> @ 0x1406803c4
// > ??> @ 0x1406803d4
// > ??> @ 0x1406cd8f0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void GJBaseGameLayer::controlAreaEffect(
GJBaseGameLayer *a1,
EnterEffectObject *a2,
std::vector *a3,
GJActionCommand a4)
{
std::_Vector_val>::pointer Mylast; // rsi
std::_Vector_val>::pointer Myfirst; // r10
unsigned int v7; // r12d
std::vector *v9; // r14
__int64 v10; // r15
__int64 v11; // rax
char v12; // cl
__int64 i; // rbx
std::_Vector_val>::pointer v14; // rbx
__int64 v15; // rax
Mylast = a3->_Mypair._Myval2._Mylast;
Myfirst = a3->_Mypair._Myval2._Myfirst;
v7 = 0;
v9 = a3;
if ( Mylast - a3->_Mypair._Myval2._Myfirst )
{
v10 = 0;
do
{
v11 = v10;
v12 = 1;
if ( Myfirst[v10].m_gameObject == a2 )
{
if ( a4 )
{
if ( a4 == Pause )
{
*(_WORD *)&Myfirst[v11].m_paused = 257;
}
else if ( a4 == Resume )
{
*(_WORD *)&Myfirst[v11].m_paused = 0;
}
}
else
{
for ( i = (__int64)&Myfirst[(int)v7 + 1];
(std::_Vector_val>::pointer)i != Mylast;
i += 232 )
{
sub_140250C90(i - 232, i, a3, *(_QWORD *)&a4);
}
v14 = v9->_Mypair._Myval2._Mylast;
sub_14005E430((__int64)&v14[-1].m_easeIndices);
sub_1402508A0(&v14[-1], &v14[-1]);
--v9->_Mypair._Myval2._Mylast;
v12 = 0;
}
}
Mylast = v9->_Mypair._Myval2._Mylast;
v15 = v10 + 1;
Myfirst = v9->_Mypair._Myval2._Myfirst;
a3 = (std::vector *)(v7 + 1);
if ( !v12 )
{
v15 = v10;
a3 = (std::vector *)v7;
}
v10 = v15;
v7 = (unsigned int)a3;
}
while ( (int)a3 < (unsigned __int64)(v9->_Mypair._Myval2._Mylast - Myfirst) );
}
}