//
// cocos2d::CCFlipX3D::update from 0xd2c8e8 to 0xd2cbbc (724 bytes)
//
// 2 xrefs:
// > ??> @ 0xd5610
// > ??> @ 0x15127d8
//
// 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 13:07:18 +0000
//
__int64 __fastcall cocos2d::CCFlipX3D::update(cocos2d::CCFlipX3D *this, float a2)
{
float v2; // s9
float v4; // s8
float v5; // s11
float v6; // s0
int v7; // s1
int v8; // s2
float v9; // s10
float v10; // s0
float v11; // s9
int v12; // s1
int v13; // s2
float v14; // s8
float v15; // s9
float v16; // s8
int v17; // s1
float v18; // s2
int v19; // s1
float v20; // s2
int v21; // s1
float v22; // s0
float v23; // s2
int v24; // s1
float v25; // s0
float v26; // s2
char v28[8]; // [xsp+78h] [xbp+78h] BYREF
char v29[8]; // [xsp+80h] [xbp+80h] BYREF
char v30[8]; // [xsp+88h] [xbp+88h] BYREF
char v31[8]; // [xsp+90h] [xbp+90h] BYREF
float v32; // [xsp+98h] [xbp+98h]
int v33; // [xsp+9Ch] [xbp+9Ch]
int v34; // [xsp+A0h] [xbp+A0h]
float v35; // [xsp+A8h] [xbp+A8h]
int v36; // [xsp+ACh] [xbp+ACh]
int v37; // [xsp+B0h] [xbp+B0h]
float v38; // [xsp+B8h] [xbp+B8h] BYREF
int v39; // [xsp+BCh] [xbp+BCh]
float v40; // [xsp+C0h] [xbp+C0h]
v2 = a2 * 3.1416;
v4 = sinf(a2 * 3.1416);
v5 = cosf(v2 * 0.5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 1.0, 1.0);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)&v38);
v32 = v6;
v33 = v7;
v34 = v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 0.0, 0.0);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)&v38);
v9 = v32;
v11 = v10;
v35 = v10;
v36 = v12;
v37 = v13;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31);
if ( v9 > v11 )
{
v11 = v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 0.0, 0.0);
cocos2d::CCPoint::operator=(v28, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 0.0, 1.0);
cocos2d::CCPoint::operator=(v29, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 1.0, 0.0);
cocos2d::CCPoint::operator=(v30, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 1.0, 1.0);
cocos2d::CCPoint::operator=(v31, &v38);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 0.0, 0.0);
cocos2d::CCPoint::operator=(v30, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 0.0, 1.0);
cocos2d::CCPoint::operator=(v31, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 1.0, 0.0);
cocos2d::CCPoint::operator=(v28, &v38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 1.0, 1.0);
cocos2d::CCPoint::operator=(v29, &v38);
}
v14 = v11 * v4;
v15 = v11 - (float)(v11 * v5);
v16 = fabsf(floorf(v14 * 0.25));
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v28);
v39 = v17;
v38 = v15;
v40 = v16 + v18;
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v28, (__int64)&v38);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v29);
v39 = v19;
v38 = v15;
v40 = v16 + v20;
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v29, (__int64)&v38);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v30);
v39 = v21;
v38 = v22 - v15;
v40 = v23 - v16;
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v30, (__int64)&v38);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v31);
v39 = v24;
v38 = v25 - v15;
v40 = v26 - v16;
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v31, (__int64)&v38);
return _stack_chk_guard;
}