// // cocos2d::CCLightning::draw from 0x690ad0 to 0x690c08 (312 bytes) // // 2 xrefs: // > @ 0xb1b68 // > @ 0x1415f48 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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:50:35 +0000 // __int64 __fastcall cocos2d::CCLightning::draw(cocos2d::CCLightning *this) { _DWORD *v2; // x23 float v3; // s1 unsigned __int8 v4; // w2 float v5; // s0 cocos2d *v6; // x0 unsigned __int8 v7; // w1 unsigned int v8; // w2 unsigned int v9; // w2 float v11[4]; // [xsp+40h] [xbp+40h] BYREF float v12; // [xsp+50h] [xbp+50h] BYREF _BYTE v13[8]; // [xsp+58h] [xbp+58h] BYREF _BYTE v14[8]; // [xsp+60h] [xbp+60h] BYREF v2 = (_DWORD *)((char *)this + 392); v3 = *((float *)this + 95); v4 = *((_BYTE *)this + 403); v5 = (float)*((unsigned __int8 *)this + 397); v6 = (cocos2d *)*((unsigned __int8 *)this + 401); v7 = *((_BYTE *)this + 402); *((_DWORD *)this + 98) = 0; cocos2d::ccDrawColor4B(v6, v7, v4, (unsigned int)(float)(v5 * v3), (unsigned __int8)&_stack_chk_guard); glLineWidth(); cocos2d::ccGLBlendFunc((cocos2d *)((char *)&elf_hash_bucket[66] + 2), 1u, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, 0.0, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (cocos2d::CCLightning *)((char *)this + 328)); drawLightning( (const cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v14, *((_DWORD *)this + 87), *((_DWORD *)this + 88), *((_QWORD *)this + 45), *((_QWORD *)this + 48), v2, &v12); if ( *((_BYTE *)this + 344) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)&v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (cocos2d::CCLightning *)((char *)this + 336)); drawLightning( (const cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v14, *((_DWORD *)this + 87) / 2, *((_DWORD *)this + 88), *((_QWORD *)this + 45), *((_QWORD *)this + 48), v2, v11); } cocos2d::ccDrawLines(*((cocos2d **)this + 48), (const cocos2d::CCPoint *)*((unsigned int *)this + 98), v9); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source