// // cocos2d::CCLens3D::update from 0x7babd8 to 0x7bad6e (406 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::CCLens3D::update(int this, float a2) { int v2; // r4 int i; // r9 int v4; // r6 float v5; // s20 const cocos2d::CCPoint *v6; // r1 float v7; // r0 float v8; // s15 float v9; // s15 float v10; // r0 float v11; // r0 float v12; // r0 float v13; // s16 float v14; // s21 const cocos2d::CCPoint *v15; // r1 const cocos2d::CCPoint *v16; // r1 float v17; // s16 float v18; // r0 int v19; // r3 _BYTE v20[8]; // [sp+0h] [bp-20h] BYREF _BYTE v21[8]; // [sp+8h] [bp-18h] BYREF float v22[2]; // [sp+10h] [bp-10h] BYREF float v23; // [sp+18h] [bp-8h] v2 = this; if ( *(_BYTE *)(this + 105) ) { for ( i = 0; ; ++i ) { v4 = 0; if ( (float)i >= (float)(*(float *)(v2 + 80) + 1.0) ) break; while ( 1 ) { v5 = (float)v4; if ( (float)v4 >= (float)(*(float *)(v2 + 84) + 1.0) ) break; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (float)i, (float)v4); cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)v22, (const cocos2d::CCPoint *)v2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v22[0], v22[1]); cocos2d::CCPoint::operator-(v20, v2 + 88, v21); v7 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v20, v6)); v8 = *(float *)(v2 + 96); if ( v7 < v8 ) { v9 = (float)(v8 - v7) / v8; v10 = v9 == 0.0 ? 0.001 : v9; v11 = logf(v10); v12 = expf(v11 * *(float *)(v2 + 100)); v13 = *(float *)(v2 + 96); v14 = v12; if ( COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v20, v15)) > 0.0 ) { cocos2d::ccpNormalize((cocos2d *)v21, (const cocos2d::CCPoint *)v20); cocos2d::CCPoint::operator=(v20, v21); cocos2d::CCPoint::operator*(v21, v20, v14 * v13); v17 = 1.0; if ( *(_BYTE *)(v2 + 104) ) v17 = -1.0; v18 = COERCE_FLOAT(cocos2d::ccpLength((cocos2d *)v21, v16)); v23 = v23 + (float)((float)(v17 * v18) * *(float *)(v2 + 100)); } } ++v4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (float)i, v5); this = cocos2d::CCGrid3DAction::setVertex(v2, (int)v21, (int)v22, v19); } } *(_BYTE *)(v2 + 105) = 0; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source