// // cocos2d::CCFlipY3D::update from 0x5b3cf4 to 0x5b3f38 (580 bytes) // // 0 xrefs: // // 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 // void cocos2d::CCFlipY3D::update(cocos2d::CCFlipY3D *a1, float a2) { float v3; // s16 float v4; // s18 float v5; // s19 float y; // s17 float v7; // s16 int v8; // r2 bool v9; // r3 int v10; // r2 bool v11; // r3 int v12; // r2 bool v13; // r3 int v14; // r2 bool v15; // r3 int v16; // r2 bool v17; // r3 int v18; // r2 bool v19; // r3 int v20; // r2 bool v21; // r3 GLfloat v22; // s17 float v23; // s16 cocos2d::ccVertex3F v24; // [sp+0h] [bp-20h] BYREF cocos2d::CCPoint v25; // [sp+10h] [bp-10h] BYREF cocos2d::CCPoint v26; // [sp+18h] [bp-8h] BYREF cocos2d::CCPoint v27; // [sp+20h] [bp+0h] BYREF cocos2d::CCPoint v28; // [sp+28h] [bp+8h] BYREF cocos2d::ccVertex3F v29; // [sp+30h] [bp+10h] BYREF cocos2d::ccVertex3F v30; // [sp+3Ch] [bp+1Ch] BYREF cocos2d::ccVertex3F v31; // [sp+48h] [bp+28h] BYREF v3 = a2 * 3.1416; v4 = sinf(a2 * 3.1416); v5 = cosf(v3 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 1.0, 1.0); cocos2d::CCGrid3DAction::originalVertex(&v29, a1, (const cocos2d::CCPoint *)&v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, 0.0); cocos2d::CCGrid3DAction::originalVertex(&v30, a1, (const cocos2d::CCPoint *)&v31); y = v29.y; v7 = v30.y; cocos2d::CCPoint::CCPoint(&v25); cocos2d::CCPoint::CCPoint(&v26); cocos2d::CCPoint::CCPoint(&v27); cocos2d::CCPoint::CCPoint(&v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, 0.0); if ( y <= v7 ) { cocos2d::CCPoint::operator=((PlayerObject *)&v26, COERCE_FLOAT(&v31), v8, v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, 1.0); cocos2d::CCPoint::operator=((PlayerObject *)&v25, COERCE_FLOAT(&v31), v16, v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 1.0, 0.0); cocos2d::CCPoint::operator=((PlayerObject *)&v28, COERCE_FLOAT(&v31), v18, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 1.0, 1.0); cocos2d::CCPoint::operator=((PlayerObject *)&v27, COERCE_FLOAT(&v31), v20, v21); } else { v7 = y; cocos2d::CCPoint::operator=((PlayerObject *)&v25, COERCE_FLOAT(&v31), v8, v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 0.0, 1.0); cocos2d::CCPoint::operator=((PlayerObject *)&v26, COERCE_FLOAT(&v31), v10, v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 1.0, 0.0); cocos2d::CCPoint::operator=((PlayerObject *)&v27, COERCE_FLOAT(&v31), v12, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 1.0, 1.0); cocos2d::CCPoint::operator=((PlayerObject *)&v28, COERCE_FLOAT(&v31), v14, v15); } v22 = v7 - (float)(v7 * v5); v23 = fabsf(floorf((float)(v7 * v4) * 0.25)); cocos2d::CCGrid3DAction::originalVertex(&v24, a1, &v25); v31.x = v24.x; v31.y = v22; v31.z = v24.z + v23; cocos2d::CCGrid3DAction::setVertex(a1, &v25, &v31); cocos2d::CCGrid3DAction::originalVertex(&v24, a1, &v26); v31.x = v24.x; v31.y = v24.y - v22; v31.z = v24.z - v23; cocos2d::CCGrid3DAction::setVertex(a1, &v26, &v31); cocos2d::CCGrid3DAction::originalVertex(&v24, a1, &v27); v31.x = v24.x; v31.y = v22; v31.z = v24.z + v23; cocos2d::CCGrid3DAction::setVertex(a1, &v27, &v31); cocos2d::CCGrid3DAction::originalVertex(&v24, a1, &v28); v31.x = v24.x; v31.y = v24.y - v22; v31.z = v24.z - v23; cocos2d::CCGrid3DAction::setVertex(a1, &v28, &v31); }
GD Web Decomp Icon

GD Web Decomp

Raw Source