// // cocos2d::CCLightning::draw from 0x3c5df8 to 0x3c5efc (260 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 11:46:34 +0000 // int __fastcall cocos2d::CCLightning::draw(cocos2d::CCLightning *this) { float v2; // s14 _DWORD *v4; // r8 unsigned int v5; // r2 unsigned __int64 *v6; // r9 unsigned __int64 v7; // t1 unsigned int v8; // r2 unsigned __int8 v10; // [sp+0h] [bp-34h] float v11[3]; // [sp+20h] [bp-14h] BYREF float v12[2]; // [sp+2Ch] [bp-8h] BYREF _BYTE v13[8]; // [sp+34h] [bp+0h] BYREF _BYTE v14[8]; // [sp+3Ch] [bp+8h] BYREF v2 = *((float *)this + 79); v4 = (_DWORD *)((char *)this + 324); *((_DWORD *)this + 81) = 0; cocos2d::ccDrawColor4B( (cocos2d *)*((unsigned __int8 *)this + 333), *((_BYTE *)this + 334), *((_BYTE *)this + 335), (unsigned int)(float)((float)*((unsigned __int8 *)this + 329) * v2), v10); glLineWidth(*((GLfloat *)this + 76)); cocos2d::ccGLBlendFunc((cocos2d *)((char *)&stru_2FC.st_value + 2), 1u, v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (cocos2d::CCLightning *)((char *)this + 268)); v7 = *((_QWORD *)this + 37); v6 = (unsigned __int64 *)((char *)this + 296); drawLightning( v12, (const cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v14, *((_DWORD *)this + 72), *((_DWORD *)this + 73), v7, *((_DWORD *)this + 80), v4); if ( *((_BYTE *)this + 284) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (cocos2d::CCLightning *)((char *)this + 276)); drawLightning( v11, (const cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v14, *((_DWORD *)this + 72) / 2, *((_DWORD *)this + 73), *v6, *((_DWORD *)this + 80), v4); } return cocos2d::ccDrawLines(*((cocos2d **)this + 80), *((const cocos2d::CCPoint **)this + 81), v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source