//
// CCLightStrip::draw from 0x3e5b7c to 0x3e5cc2 (326 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:47:04 +0000
//
int __fastcall CCLightStrip::draw(CCLightStrip *this)
{
int result; // r0
unsigned int v3; // r2
float v4; // s16
int v5; // r8
int v6; // r7
int v7; // r6
unsigned int v8; // r2
unsigned __int8 v9; // [sp+0h] [bp-48h]
float v10[4]; // [sp+14h] [bp-34h] BYREF
_BYTE v11[8]; // [sp+24h] [bp-24h] BYREF
_BYTE v12[8]; // [sp+2Ch] [bp-1Ch] BYREF
_BYTE v13[8]; // [sp+34h] [bp-14h] BYREF
_BYTE v14[8]; // [sp+3Ch] [bp-Ch] BYREF
result = (*(int (__fastcall **)(CCLightStrip *))(*(_DWORD *)this + 176))(this);
if ( result )
{
cocos2d::ccGLBlendFunc((cocos2d *)((char *)&stru_2FC.st_value + 2), 1u, v3);
cocos2d::ccDrawColor4B(
(cocos2d *)*((unsigned __int8 *)this + 280),
*((_BYTE *)this + 281),
*((_BYTE *)this + 282),
(unsigned int)*((float *)this + 71),
v9);
v4 = *((float *)this + 66) + (float)((float)(*((float *)this + 72) - *((float *)this + 66)) * 0.25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -(float)(v4 * 0.5), 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v4 * 0.5, 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *((float *)this + 72) * 0.5, *((float *)this + 73));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -(float)(*((float *)this + 72) * 0.5), *((float *)this + 73));
v5 = *((unsigned __int8 *)this + 280);
v6 = *((unsigned __int8 *)this + 281);
v7 = *((unsigned __int8 *)this + 282);
memset(v10, 0, sizeof(v10));
v10[0] = (float)v5 / 255.0;
v10[1] = (float)v6 / 255.0;
v10[2] = (float)v7 / 255.0;
v10[3] = *((float *)this + 71) / 255.0;
cocos2d::ccDrawSolidPoly(v11, 4, LODWORD(v10[0]), LODWORD(v10[1]), LODWORD(v10[2]), LODWORD(v10[3]));
return cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v8);
}
return result;
}