//
// GJBaseGameLayer::activatePlayerControlTrigger from 0x14031eac0 to 0x14031ef49 (1161 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x140648a4c
// > ??> @ 0x14091ecec
//
// This function is hookable on this platform (idp: pc, 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:30:22 +0000
//
void __fastcall GJBaseGameLayer::activatePlayerControlTrigger(__int64 a1, _BYTE *a2)
{
char v3; // si
char v5; // r14
char v6; // r15
char v7; // r12
__int64 v8; // rbx
const struct cocos2d::CCPoint *v9; // rax
__int64 v10; // rax
bool v11; // zf
__int64 v12; // rbx
__int64 v13; // rbx
const struct cocos2d::CCPoint *v14; // rax
__int64 v15; // rax
bool v16; // cc
__int64 v17; // rbx
const struct cocos2d::CCPoint *v18; // rax
__int64 v19; // rax
double v20; // xmm0_8
__int64 v21; // rax
__int64 v22; // rax
__int64 v23; // rbx
const struct cocos2d::CCPoint *v24; // rax
__int64 v25; // rax
__int64 *v26; // rsi
__int64 v27; // rbx
__int64 v28; // rbx
__int64 *v29; // rax
const struct cocos2d::CCPoint *v30; // rax
__int64 v31; // rax
__int64 v32; // rbx
const struct cocos2d::CCPoint *v33; // rax
__int64 v34; // rax
double v35; // xmm0_8
__int64 v36; // rax
__int64 v37; // rax
int v38; // [rsp+68h] [rbp+10h] BYREF
v3 = a2[1701];
v5 = a2[1856];
v6 = a2[1857];
v7 = a2[1858];
if ( !a2[1700] )
{
if ( v3 )
{
LABEL_33:
if ( v5 )
{
v23 = *(_QWORD *)(a1 + 3520);
if ( !*(_BYTE *)(v23 + 3024) )
{
v38 = 1;
*(_BYTE *)sub_14016EE40((__int64 *)(v23 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v23 + 2611) )
{
if ( *(_BYTE *)(v23 + 2445) )
{
v24 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 200LL))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v24);
PlayerObject::placeStreakPoint(v23, v25);
}
v11 = *(_BYTE *)(v23 + 2540) == 0;
*(_WORD *)(v23 + 2445) = 0;
*(_BYTE *)(v23 + 2468) = 1;
if ( !v11 )
PlayerObject::stopDashing(v23);
}
}
if ( *(_BYTE *)(a1 + 12670) && v6 )
{
v26 = (__int64 *)(a1 + 3520);
v27 = *(_QWORD *)(a1 + 3520);
PlayerObject::releaseButton(v27, 2);
PlayerObject::releaseButton(v27, 3);
v28 = *(_QWORD *)(a1 + 3520);
if ( !*(_BYTE *)(v28 + 3024) )
{
v38 = 2;
*(_BYTE *)sub_14016EE40((__int64 *)(v28 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v28 + 2611) )
{
v29 = (__int64 *)(a1 + 3520);
if ( *(_BYTE *)(v28 + 2445) )
{
v30 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v28 + 200LL))(v28);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v30);
PlayerObject::placeStreakPoint(v28, v31);
v29 = (__int64 *)(a1 + 3520);
}
v16 = *(double *)(v28 + 2816) >= 0.0;
*(_BYTE *)(v28 + 2825) = 0;
if ( !v16 )
{
*(_BYTE *)(v28 + 2912) = 0;
v26 = v29;
}
}
v32 = *v26;
if ( !*(_BYTE *)(*v26 + 3024) )
{
v38 = 3;
*(_BYTE *)sub_14016EE40((__int64 *)(v32 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v32 + 2611) )
{
if ( *(_BYTE *)(v32 + 2445) )
{
v33 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 200LL))(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v33);
PlayerObject::placeStreakPoint(v32, v34);
}
v35 = *(double *)(v32 + 2816);
*(_BYTE *)(v32 + 2824) = 0;
if ( v35 > 0.0 )
*(_BYTE *)(v32 + 2912) = 0;
}
}
if ( v7 )
{
v36 = *(_QWORD *)(a1 + 3520);
*(_WORD *)(v36 + 1840) = 0;
*(_BYTE *)(v36 + 1648) = 0;
*(_DWORD *)(v36 + 1832) = 0;
}
if ( a2[1859] )
{
v37 = *(_QWORD *)(a1 + 3520);
*(_BYTE *)(v37 + 2394) = 0;
*(_BYTE *)(v37 + 2972) = 0;
}
return;
}
v3 = 1;
}
if ( v5 )
{
v8 = *(_QWORD *)(a1 + 3512);
if ( !*(_BYTE *)(v8 + 3024) )
{
v38 = 1;
*(_BYTE *)sub_14016EE40((__int64 *)(v8 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v8 + 2611) )
{
if ( *(_BYTE *)(v8 + 2445) )
{
v9 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v9);
PlayerObject::placeStreakPoint(v8, v10);
}
v11 = *(_BYTE *)(v8 + 2540) == 0;
*(_WORD *)(v8 + 2445) = 0;
*(_BYTE *)(v8 + 2468) = 1;
if ( !v11 )
PlayerObject::stopDashing(v8);
}
}
if ( *(_BYTE *)(a1 + 12670) && v6 )
{
v12 = *(_QWORD *)(a1 + 3512);
PlayerObject::releaseButton(v12, 2);
PlayerObject::releaseButton(v12, 3);
v13 = *(_QWORD *)(a1 + 3512);
if ( !*(_BYTE *)(v13 + 3024) )
{
v38 = 2;
*(_BYTE *)sub_14016EE40((__int64 *)(v13 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v13 + 2611) )
{
if ( *(_BYTE *)(v13 + 2445) )
{
v14 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 200LL))(v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v14);
PlayerObject::placeStreakPoint(v13, v15);
}
v16 = *(double *)(v13 + 2816) >= 0.0;
*(_BYTE *)(v13 + 2825) = 0;
if ( !v16 )
*(_BYTE *)(v13 + 2912) = 0;
}
v17 = *(_QWORD *)(a1 + 3512);
if ( !*(_BYTE *)(v17 + 3024) )
{
v38 = 3;
*(_BYTE *)sub_14016EE40((__int64 *)(v17 + 3008), &v38) = 0;
}
if ( !*(_BYTE *)(v17 + 2611) )
{
if ( *(_BYTE *)(v17 + 2445) )
{
v18 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 200LL))(v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v18);
PlayerObject::placeStreakPoint(v17, v19);
}
v20 = *(double *)(v17 + 2816);
*(_BYTE *)(v17 + 2824) = 0;
if ( v20 > 0.0 )
*(_BYTE *)(v17 + 2912) = 0;
}
}
if ( v7 )
{
v21 = *(_QWORD *)(a1 + 3512);
*(_WORD *)(v21 + 1840) = 0;
*(_BYTE *)(v21 + 1648) = 0;
*(_DWORD *)(v21 + 1832) = 0;
}
if ( a2[1859] )
{
v22 = *(_QWORD *)(a1 + 3512);
*(_BYTE *)(v22 + 2394) = 0;
*(_BYTE *)(v22 + 2972) = 0;
}
if ( v3 )
goto LABEL_33;
}