// // cocos2d::CCPageTurn3D::update from 0x7c07b8 to 0x7c0964 (428 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:20 +0000 // float __fastcall cocos2d::CCPageTurn3D::update(cocos2d::CCPageTurn3D *this, float x) { int v3; // r7 float v4; // s15 float v5; // s20 float v6; // s16 float v7; // s22 float result; // r0 float v9; // s24 int v10; // r8 float v11; // s23 float v12; // s17 float v13; // s16 float v14; // s25 float v15; // s26 float v16; // s15 float v17; // s16 float v18; // s16 float v19; // s15 int v20; // r3 _BYTE v21[8]; // [sp+0h] [bp-1Ch] BYREF float v22; // [sp+8h] [bp-14h] BYREF float v23; // [sp+Ch] [bp-10h] float v24; // [sp+10h] [bp-Ch] v3 = 0; v4 = x - 0.25; if ( (float)(x - 0.25) <= 0.0 ) v4 = 0.0; v5 = -100.0 - (float)((float)(v4 * v4) * 500.0); v6 = (float)(sqrtf(x) * -1.5708) + 1.5708; v7 = sinf(v6); result = cosf(v6); v9 = result; while ( (float)v3 <= *((float *)this + 20) ) { v10 = 0; while ( 1 ) { v11 = (float)v10; if ( (float)v10 > *((float *)this + 21) ) break; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (float)v3, (float)v10); cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v22, this); v12 = sqrtf((float)((float)(v23 - v5) * (float)(v23 - v5)) + (float)(v22 * v22)); v13 = v12 * v7; v14 = asinf(v22 / v12) / v7; v15 = cosf(v14); if ( v14 > 3.14159265 ) v16 = 0.0; else v16 = v13 * sinf(v14); ++v10; v22 = v16; v17 = v13 * (float)(1.0 - v15); v23 = (float)(v12 + v5) - (float)(v17 * v7); v18 = (float)(v17 * v9) / 7.0; v19 = 0.5; if ( v18 >= 0.5 ) v19 = v18; v24 = v19; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (float)v3, v11); result = COERCE_FLOAT(cocos2d::CCGrid3DAction::setVertex((int)this, (int)v21, (int)&v22, v20)); } ++v3; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source