{"type": "func", "start": 4086652, "end": 4086978, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x3e5b7c to 0x3e5cc2 (326 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:04 +0000\n// \n\nint __fastcall CCLightStrip::draw(CCLightStrip *this)\n{\n  int result; // r0\n  unsigned int v3; // r2\n  float v4; // s16\n  int v5; // r8\n  int v6; // r7\n  int v7; // r6\n  unsigned int v8; // r2\n  unsigned __int8 v9; // [sp+0h] [bp-48h]\n  float v10[4]; // [sp+14h] [bp-34h] BYREF\n  _BYTE v11[8]; // [sp+24h] [bp-24h] BYREF\n  _BYTE v12[8]; // [sp+2Ch] [bp-1Ch] BYREF\n  _BYTE v13[8]; // [sp+34h] [bp-14h] BYREF\n  _BYTE v14[8]; // [sp+3Ch] [bp-Ch] BYREF\n\n  result = (*(int (__fastcall **)(CCLightStrip *))(*(_DWORD *)this + 176))(this);\n  if ( result )\n  {\n    cocos2d::ccGLBlendFunc((cocos2d *)((char *)&stru_2FC.st_value + 2), 1u, v3);\n    cocos2d::ccDrawColor4B(\n      (cocos2d *)*((unsigned __int8 *)this + 280),\n      *((_BYTE *)this + 281),\n      *((_BYTE *)this + 282),\n      (unsigned int)*((float *)this + 71),\n      v9);\n    v4 = *((float *)this + 66) + (float)((float)(*((float *)this + 72) - *((float *)this + 66)) * 0.25);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -(float)(v4 * 0.5), 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v4 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *((float *)this + 72) * 0.5, *((float *)this + 73));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -(float)(*((float *)this + 72) * 0.5), *((float *)this + 73));\n    v5 = *((unsigned __int8 *)this + 280);\n    v6 = *((unsigned __int8 *)this + 281);\n    v7 = *((unsigned __int8 *)this + 282);\n    memset(v10, 0, sizeof(v10));\n    v10[0] = (float)v5 / 255.0;\n    v10[1] = (float)v6 / 255.0;\n    v10[2] = (float)v7 / 255.0;\n    v10[3] = *((float *)this + 71) / 255.0;\n    cocos2d::ccDrawSolidPoly(v11, 4, LODWORD(v10[0]), LODWORD(v10[1]), LODWORD(v10[2]), LODWORD(v10[3]));\n    return cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v8);\n  }\n  return result;\n}", "assembly": "; \n; CCLightStrip::draw from 0x3e5b7c to 0x3e5cc2 (326 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:04 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3e5b7c\nMOV             R4, R0                                                 ; +0x4, 0x3e5b80\nVPUSH           {D8}                                                   ; +0x6, 0x3e5b82\nLDR             R5, =(__stack_chk_guard_ptr - 0x3E5B8C)                ; +0xa, 0x3e5b86\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3e5b88\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x3e5b8a\nSUB             SP, SP, #0x48; unsigned __int8                         ; +0x10, 0x3e5b8c\nLDR             R3, [R5]                                               ; +0x12, 0x3e5b8e\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x14, 0x3e5b90\nLDR             R3, [R0]                                               ; +0x16, 0x3e5b92\nLDR.W           R3, [R3,#0xB0]                                         ; +0x18, 0x3e5b94\nBLX             R3                                                     ; +0x1c, 0x3e5b98\nCMP             R0, #0                                                 ; +0x1e, 0x3e5b9a\nBEQ.W           loc_3E5CAC                                             ; +0x20, 0x3e5b9c\nMOVW            R0, #(stru_2FC.st_value+2); this                       ; +0x24, 0x3e5ba0\nMOVS            R1, #1; unsigned int                                   ; +0x28, 0x3e5ba4\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x2a, 0x3e5ba6\nVLDR            S15, [R4,#0x11C]                                       ; +0x2e, 0x3e5baa\nLDRB.W          R0, [R4,#0x118]; this                                  ; +0x32, 0x3e5bae\nADD.W           R9, SP, #0x48+var_24                                   ; +0x36, 0x3e5bb2\nLDRB.W          R1, [R4,#0x119]; unsigned __int8                       ; +0x3a, 0x3e5bb6\nADD.W           R10, SP, #0x48+var_34                                  ; +0x3e, 0x3e5bba\nLDRB.W          R2, [R4,#0x11A]; unsigned __int8                       ; +0x42, 0x3e5bbe\nVMOV.F32        S17, #0.5                                              ; +0x46, 0x3e5bc2\nVCVT.U32.F32    S15, S15                                               ; +0x4a, 0x3e5bc6\nVSTR            S15, [SP,#0x48+var_3C]                                 ; +0x4e, 0x3e5bca\nLDRB.W          R3, [SP,#0x48+var_3C]; unsigned __int8                 ; +0x52, 0x3e5bce\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x56, 0x3e5bd2\nVLDR            S16, [R4,#0x108]                                       ; +0x5a, 0x3e5bd6\nMOVS            R2, #0; float                                          ; +0x5e, 0x3e5bda\nMOV             R0, R9; this                                           ; +0x60, 0x3e5bdc\nVLDR            S15, [R4,#0x120]                                       ; +0x62, 0x3e5bde\nVMOV.F32        S14, #0.25                                             ; +0x66, 0x3e5be2\nVSUB.F32        S15, S15, S16                                          ; +0x6a, 0x3e5be6\nVMLA.F32        S16, S15, S14                                          ; +0x6e, 0x3e5bea\nVNMUL.F32       S15, S16, S17                                          ; +0x72, 0x3e5bee\nVMOV            R1, S15; float                                         ; +0x76, 0x3e5bf2\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7a, 0x3e5bf6\nVMUL.F32        S15, S16, S17                                          ; +0x7e, 0x3e5bfa\nMOVS            R2, #0; float                                          ; +0x82, 0x3e5bfe\nADD             R0, SP, #0x48+var_1C; this                             ; +0x84, 0x3e5c00\nVMOV            R1, S15; float                                         ; +0x86, 0x3e5c02\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8a, 0x3e5c06\nVLDR            S15, [R4,#0x120]                                       ; +0x8e, 0x3e5c0a\nLDR.W           R2, [R4,#0x124]; float                                 ; +0x92, 0x3e5c0e\nADD             R0, SP, #0x48+var_14; this                             ; +0x96, 0x3e5c12\nVMUL.F32        S15, S15, S17                                          ; +0x98, 0x3e5c14\nVMOV            R1, S15; float                                         ; +0x9c, 0x3e5c18\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x3e5c1c\nVLDR            S15, [R4,#0x120]                                       ; +0xa4, 0x3e5c20\nLDR.W           R2, [R4,#0x124]; float                                 ; +0xa8, 0x3e5c24\nADD             R0, SP, #0x48+var_C; this                              ; +0xac, 0x3e5c28\nVNMUL.F32       S15, S15, S17                                          ; +0xae, 0x3e5c2a\nVMOV            R1, S15; float                                         ; +0xb2, 0x3e5c2e\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb6, 0x3e5c32\nLDRB.W          R8, [R4,#0x118]                                        ; +0xba, 0x3e5c36\nMOVS            R1, #0; int                                            ; +0xbe, 0x3e5c3a\nMOVS            R2, #0x10; size_t                                      ; +0xc0, 0x3e5c3c\nMOV             R0, R10; void *                                        ; +0xc2, 0x3e5c3e\nLDRB.W          R7, [R4,#0x119]                                        ; +0xc4, 0x3e5c40\nLDRB.W          R6, [R4,#0x11A]                                        ; +0xc8, 0x3e5c44\nBLX             memset                                                 ; +0xcc, 0x3e5c48\nVMOV            S15, R8                                                ; +0xd0, 0x3e5c4c\nADD             R3, SP, #0x48+var_2C                                   ; +0xd4, 0x3e5c50\nVLDR            S14, =255.0                                            ; +0xd6, 0x3e5c52\nVCVT.F32.S32    S15, S15                                               ; +0xda, 0x3e5c56\nVDIV.F32        S15, S15, S14                                          ; +0xde, 0x3e5c5a\nVSTR            S15, [SP,#0x48+var_34]                                 ; +0xe2, 0x3e5c5e\nVMOV            S15, R7                                                ; +0xe6, 0x3e5c62\nVCVT.F32.S32    S15, S15                                               ; +0xea, 0x3e5c66\nVDIV.F32        S15, S15, S14                                          ; +0xee, 0x3e5c6a\nVSTR            S15, [SP,#0x48+var_30]                                 ; +0xf2, 0x3e5c6e\nVMOV            S15, R6                                                ; +0xf6, 0x3e5c72\nVCVT.F32.S32    S15, S15                                               ; +0xfa, 0x3e5c76\nVDIV.F32        S15, S15, S14                                          ; +0xfe, 0x3e5c7a\nVSTR            S15, [SP,#0x48+var_2C]                                 ; +0x102, 0x3e5c7e\nVLDR            S15, [R4,#0x11C]                                       ; +0x106, 0x3e5c82\nVDIV.F32        S14, S15, S14                                          ; +0x10a, 0x3e5c86\nVSTR            S14, [SP,#0x48+var_28]                                 ; +0x10e, 0x3e5c8a\nLDM.W           R3, {R0,R1}                                            ; +0x112, 0x3e5c8e\nSTMEA.W         SP, {R0,R1}                                            ; +0x116, 0x3e5c92\nMOV             R0, R9                                                 ; +0x11a, 0x3e5c96\nMOVS            R1, #4                                                 ; +0x11c, 0x3e5c98\nLDM.W           R10, {R2,R3}                                           ; +0x11e, 0x3e5c9a\nBL              _ZN7cocos2d15ccDrawSolidPolyEPKNS_7CCPointEjNS_10_ccColor4FE; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*,uint,cocos2d::_ccColor4F) ; +0x122, 0x3e5c9e\nMOVS            R0, #(dword_0+1); this                                 ; +0x126, 0x3e5ca2\nMOVW            R1, #0x303; unsigned int                               ; +0x128, 0x3e5ca4\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x12c, 0x3e5ca8\nLDR             R2, [SP,#0x48+var_4]                                   ; +0x130, 0x3e5cac\nLDR             R3, [R5]                                               ; +0x132, 0x3e5cae\nCMP             R2, R3                                                 ; +0x134, 0x3e5cb0\nBEQ             loc_3E5CB8                                             ; +0x136, 0x3e5cb2\nBLX             __stack_chk_fail                                       ; +0x138, 0x3e5cb4\nADD             SP, SP, #0x48 ; 'H'                                    ; +0x13c, 0x3e5cb8\nVPOP            {D8}                                                   ; +0x13e, 0x3e5cba\nPOP.W           {R4-R10,PC}                                            ; +0x142, 0x3e5cbe", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}