// // cocos2d::CCPageTurn3D::update from 0x5b9ef8 to 0x5ba0a4 (428 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::CCPageTurn3D::update(cocos2d::CCPageTurn3D *a1, float a2) { int v3; // r7 float v4; // s15 float v5; // s20 float v6; // s16 float v7; // s22 float v8; // s24 int v9; // r8 float v10; // s23 float v11; // s17 float v12; // s16 float v13; // s25 float v14; // s26 float v15; // s15 float v16; // s16 float v17; // s16 GLfloat v18; // s15 cocos2d::CCPoint v19; // [sp+0h] [bp-1Ch] BYREF cocos2d::ccVertex3F v20; // [sp+8h] [bp-14h] BYREF v3 = 0; v4 = a2 - 0.25; if ( (float)(a2 - 0.25) <= 0.0 ) v4 = 0.0; v5 = -100.0 - (float)((float)(v4 * v4) * 500.0); v6 = (float)(sqrtf(a2) * -1.5708) + 1.5708; v7 = sinf(v6); v8 = cosf(v6); while ( (float)v3 <= *(float *)&a1[1].__vftable ) { v9 = 0; while ( 1 ) { v10 = (float)v9; if ( (float)v9 > *(float *)&a1[1].m_uID ) break; cocos2d::CCPoint::CCPoint(&v19, (float)v3, (float)v9); cocos2d::CCGrid3DAction::originalVertex(&v20, a1, &v19); v11 = sqrtf((float)((float)(v20.y - v5) * (float)(v20.y - v5)) + (float)(v20.x * v20.x)); v12 = v11 * v7; v13 = asinf(v20.x / v11) / v7; v14 = cosf(v13); if ( v13 > 3.14159265 ) v15 = 0.0; else v15 = v12 * sinf(v13); ++v9; v20.x = v15; v16 = v12 * (float)(1.0 - v14); v20.y = (float)(v11 + v5) - (float)(v16 * v7); v17 = (float)(v16 * v8) / 7.0; v18 = 0.5; if ( v17 >= 0.5 ) v18 = v17; v20.z = v18; cocos2d::CCPoint::CCPoint(&v19, (float)v3, v10); cocos2d::CCGrid3DAction::setVertex(a1, &v19, &v20); } ++v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source