//
// cocos2d::CCFlipY3D::update from 0x7ba53c to 0x7ba780 (580 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:15 +0000
//
int __fastcall cocos2d::CCFlipY3D::update(cocos2d::CCFlipY3D *this, float a2)
{
float v3; // s16
float v4; // s18
float v5; // s19
float v6; // s17
float v7; // s16
float v8; // s17
float v9; // s16
int v10; // r3
int v11; // r3
int v12; // r3
int v13; // r3
int v15; // [sp+0h] [bp-20h] BYREF
float v16; // [sp+4h] [bp-1Ch]
float v17; // [sp+8h] [bp-18h]
_BYTE v18[8]; // [sp+10h] [bp-10h] BYREF
_BYTE v19[8]; // [sp+18h] [bp-8h] BYREF
_BYTE v20[8]; // [sp+20h] [bp+0h] BYREF
_BYTE v21[8]; // [sp+28h] [bp+8h] BYREF
_BYTE v22[4]; // [sp+30h] [bp+10h] BYREF
float v23; // [sp+34h] [bp+14h]
_BYTE v24[4]; // [sp+3Ch] [bp+1Ch] BYREF
float v25; // [sp+40h] [bp+20h]
int v26; // [sp+48h] [bp+28h] BYREF
float v27; // [sp+4Ch] [bp+2Ch]
float v28; // [sp+50h] [bp+30h]
v3 = a2 * 3.1416;
v4 = sinf(a2 * 3.1416);
v5 = cosf(v3 * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 1.0, 1.0);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)v22, this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, 0.0);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)v24, this);
v6 = v23;
v7 = v25;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, 0.0);
if ( v6 <= v7 )
{
cocos2d::CCPoint::operator=(v19, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, 1.0);
cocos2d::CCPoint::operator=(v18, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 1.0, 0.0);
cocos2d::CCPoint::operator=(v21, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 1.0, 1.0);
cocos2d::CCPoint::operator=(v20, &v26);
}
else
{
v7 = v6;
cocos2d::CCPoint::operator=(v18, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, 1.0);
cocos2d::CCPoint::operator=(v19, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 1.0, 0.0);
cocos2d::CCPoint::operator=(v20, &v26);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 1.0, 1.0);
cocos2d::CCPoint::operator=(v21, &v26);
}
v8 = v7 - (float)(v7 * v5);
v9 = fabsf(floorf((float)(v7 * v4) * 0.25));
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v15, this);
v26 = v15;
v27 = v8;
v28 = v17 + v9;
cocos2d::CCGrid3DAction::setVertex((int)this, (int)v18, (int)&v26, v10);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v15, this);
v26 = v15;
v27 = v16 - v8;
v28 = v17 - v9;
cocos2d::CCGrid3DAction::setVertex((int)this, (int)v19, (int)&v26, v11);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v15, this);
v26 = v15;
v27 = v8;
v28 = v17 + v9;
cocos2d::CCGrid3DAction::setVertex((int)this, (int)v20, (int)&v26, v12);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v15, this);
v26 = v15;
v27 = v16 - v8;
v28 = v17 - v9;
return cocos2d::CCGrid3DAction::setVertex((int)this, (int)v21, (int)&v26, v13);
}