// // drawLightning from 0x3c5c88 to 0x3c5de8 (352 bytes) // // 4 xrefs: // > drawLightning @ 0x3c5d9c // > drawLightning @ 0x3c5dca // > cocos2d::CCLightning::draw @ 0x3c5e96 // > cocos2d::CCLightning::draw @ 0x3c5eda // // 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 // float *__fastcall drawLightning( float *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3, int a4, int a5, unsigned __int64 a6, int a7, _DWORD *a8) { int v12; // r9 _DWORD *v13; // r7 int v14; // s15 int v15; // r4 float v16; // s16 float v17; // s16 int v19; // [sp+4h] [bp-40h] _BYTE v20[12]; // [sp+20h] [bp-24h] BYREF _BYTE v21[8]; // [sp+2Ch] [bp-18h] BYREF _BYTE v22[8]; // [sp+34h] [bp-10h] BYREF v12 = a7; v13 = a8; cocos2d::CCPoint::operator+(v22, a2, a3); cocos2d::CCPoint::operator*(a1, v22, 1056964608); if ( a4 >= a5 ) { v14 = a4; v15 = a4 / 2; v16 = *a1 + ((double)((int)getNextRandom(&a6) % 101) / 100.0 - 0.5) * (double)v14; *a1 = v16; v17 = a1[1] + ((double)((int)getNextRandom(&a6) % 101) / 100.0 - 0.5) * (double)v14; a1[1] = v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (const cocos2d::CCPoint *)a1); ((void (__fastcall *)(_BYTE *, _BYTE *, _BYTE *, int, int))drawLightning)(v20, v21, v22, v15, a5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (const cocos2d::CCPoint *)a1); drawLightning(v20, v21, v22, v15, a5, v19, a6, HIDWORD(a6), v12, v13); } else { cocos2d::CCPoint::operator=(v12 + 8 * *v13, a2); cocos2d::CCPoint::operator=(v12 + 8 * (*v13 + 1), a3); *v13 += 2; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source