// // cocos2d::CCLens3D::update from 0x18002d8c0 to 0x18002db57 (663 bytes) // // 5 xrefs: // > @ 0x1800e8a28 // > @ 0x180134c6c // > @ 0x180134cbc // > @ 0x1801438a8 // > @ 0x1801afdd8 // // 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 __fastcall cocos2d::CCLens3D::update(cocos2d::CCLens3D *this, float a2) { int v3; // esi float v4; // xmm11_4 int v5; // edi float v6; // xmm8_4 const struct cocos2d::CCPoint *v7; // rax float *v8; // rax float Length; // xmm0_4 float v10; // xmm6_4 float v11; // xmm0_4 float v12; // xmm0_4 float v13; // xmm7_4 _DWORD *v14; // rax float v15; // xmm6_4 float v16; // xmm0_4 const struct cocos2d::CCPoint *v17; // rax cocos2d::CCPoint v18; // [rsp+20h] [rbp-D8h] BYREF cocos2d::CCPoint v19; // [rsp+28h] [rbp-D0h] BYREF float v20; // [rsp+30h] [rbp-C8h] BYREF float v21; // [rsp+38h] [rbp-C0h] BYREF _BYTE v22[8]; // [rsp+40h] [rbp-B8h] BYREF float v23; // [rsp+48h] [rbp-B0h] BYREF struct cocos2d::_ccVertex3F v24; // [rsp+50h] [rbp-A8h] BYREF if ( *((_BYTE *)this + 121) ) { v3 = 0; if ( (float)(*((float *)this + 24) + 1.0) > 0.0 ) { v4 = 0.0; do { v5 = 0; if ( (float)(*((float *)this + 25) + 1.0) > 0.0 ) { v6 = 0.0; do { v7 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v20, v4, v6); cocos2d::CCGrid3DAction::originalVertex(this, &v24, v7); v8 = kmVec2Fill(&v21, v24.x, v24.y); cocos2d::CCSize::operator-((float *)this + 26, (float *)&v18, v8); Length = cocos2d::CCPoint::getLength(&v18); v10 = *((float *)this + 28); if ( v10 > Length ) { v11 = (float)(v10 - Length) / v10; if ( v11 == 0.0 ) v11 = 0.001; v12 = logf(v11); v13 = expf(v12 * *((float *)this + 29)) * v10; if ( cocos2d::CCPoint::getLength(&v18) > 0.0 ) { v14 = (_DWORD *)cocos2d::ccpNormalize((cocos2d *)v22, &v18); cocos2d::CCSize::operator=(&v18, v14); cocos2d::CCSize::operator*((float *)&v18, (float *)&v19, v13); if ( *((_BYTE *)this + 120) ) v15 = -1.0; else v15 = 1.0; v16 = cocos2d::CCPoint::getLength(&v19); v24.z = v24.z + (float)((float)(v16 * v15) * *((float *)this + 29)); } } v17 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v23, v4, v6); cocos2d::CCGrid3DAction::setVertex(this, v17, &v24); v6 = (float)++v5; } while ( (float)(*((float *)this + 25) + 1.0) > (float)v5 ); } v4 = (float)++v3; } while ( (float)(*((float *)this + 24) + 1.0) > (float)v3 ); } *((_BYTE *)this + 121) = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source