//
// GJBaseGameLayer::triggerTransformCommand from 0x9a0d84 to 0x9a0ebc (312 bytes)
//
// 2 xrefs:
// > TransformTriggerGameObject::triggerObject @ 0x898cc4
// > ??> @ 0x72a30
//
// 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:58:07 +0000
//
__int64 __fastcall GJBaseGameLayer::triggerTransformCommand(
cocos2d::CCDictionary **this,
TransformTriggerGameObject *a2)
{
double v4; // d0
double v5; // d1
float *MainObject; // x0
double v8; // d3
double v9; // d2
double v10; // [xsp+30h] [xbp+20h]
double v11; // [xsp+40h] [xbp+30h]
v4 = *((float *)a2 + 460);
v5 = *((float *)a2 + 461);
if ( v4 == 0.0 )
v4 = 1.0;
if ( v5 == 0.0 )
v5 = 1.0;
if ( *((_BYTE *)a2 + 1857) )
v4 = 1.0 / v4;
if ( *((_BYTE *)a2 + 1858) )
v5 = 1.0 / v5;
if ( *((_BYTE *)a2 + 1860) )
{
v10 = v5;
v11 = v4;
MainObject = (float *)GJBaseGameLayer::tryGetMainObject(this, *((_DWORD *)a2 + 367));
v4 = v11;
v5 = v10;
if ( MainObject )
{
v8 = (float)(MainObject[288] / MainObject[245]);
v9 = (float)(MainObject[289] / MainObject[246]);
if ( v8 != 0.0 )
v4 = (v11 - 1.0) / v8 + 1.0;
if ( v9 != 0.0 )
v5 = (v10 - 1.0) / v9 + 1.0;
}
}
return GJEffectManager::createTransformCommand(
*(this + 269),
v4,
v5,
*((float *)a2 + 462),
*((float *)a2 + 463),
*((_BYTE *)a2 + 1856),
*((float *)a2 + 363),
*((_DWORD *)a2 + 366),
*((_DWORD *)a2 + 367),
*((_DWORD *)a2 + 374),
*((float *)a2 + 375),
0,
*((_BYTE *)a2 + 1859),
*((_DWORD *)a2 + 229),
*((_DWORD *)a2 + 418));
}