{"type": "func", "start": 3130752, "end": 3131078, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x2fc580 to 0x2fc6c6 (326 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCLightStrip::draw(CCLightStrip *a1)\n{\n  float v2; // s16\n  int r; // r8\n  int g; // r7\n  int b; // r6\n  cocos2d::ccColor4F v6; // [sp+14h] [bp-34h] BYREF\n  cocos2d::CCPoint v7; // [sp+24h] [bp-24h] BYREF\n  cocos2d::CCPoint v8; // [sp+2Ch] [bp-1Ch] BYREF\n  cocos2d::CCPoint v9; // [sp+34h] [bp-14h] BYREF\n  cocos2d::CCPoint v10; // [sp+3Ch] [bp-Ch] BYREF\n\n  if ( ((int (__fastcall *)(CCLightStrip *))a1->isVisible)(a1) )\n  {\n    cocos2d::ccGLBlendFunc((unsigned int)&stru_2FC.st_value + 2, 1u);\n    cocos2d::ccDrawColor4B(a1->m_color.r, a1->m_color.g, a1->m_color.b, (unsigned int)a1->m_opacity);\n    v2 = a1->m_objectWidth + (float)((float)(a1->m_width - a1->m_objectWidth) * 0.25);\n    cocos2d::CCPoint::CCPoint(&v7, -(float)(v2 * 0.5), 0.0);\n    cocos2d::CCPoint::CCPoint(&v8, v2 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint(&v9, a1->m_width * 0.5, a1->m_height);\n    cocos2d::CCPoint::CCPoint(&v10, -(float)(a1->m_width * 0.5), a1->m_height);\n    r = a1->m_color.r;\n    g = a1->m_color.g;\n    b = a1->m_color.b;\n    memset(&v6, 0, sizeof(v6));\n    v6.r = (float)r / 255.0;\n    v6.g = (float)g / 255.0;\n    v6.b = (float)b / 255.0;\n    v6.a = a1->m_opacity / 255.0;\n    cocos2d::ccDrawSolidPoly(&v7, 4u, v6);\n    cocos2d::ccGLBlendFunc((unsigned int)&dword_0 + 1, 0x303u);\n  }\n}", "assembly": "; \n; CCLightStrip::draw from 0x2fc580 to 0x2fc6c6 (326 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x2fc580\nMOV             R4, R0                                                 ; +0x4, 0x2fc584\nLDR             R5, =(__stack_chk_guard_ptr - 0x2FC590)                ; +0x6, 0x2fc586\nVPUSH           {D8}                                                   ; +0x8, 0x2fc588\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x2fc58c\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x2fc58e\nLDR             R3, [R5]                                               ; +0x10, 0x2fc590\nSUB             SP, SP, #0x48; unsigned __int8                         ; +0x12, 0x2fc592\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x14, 0x2fc594\nLDR             R3, [R0]                                               ; +0x16, 0x2fc596\nLDR.W           R3, [R3,#0xA8]                                         ; +0x18, 0x2fc598\nBLX             R3                                                     ; +0x1c, 0x2fc59c\nCMP             R0, #0                                                 ; +0x1e, 0x2fc59e\nBEQ.W           loc_2FC6B0                                             ; +0x20, 0x2fc5a0\nMOVW            R0, #(stru_2FC.st_value+2); this                       ; +0x24, 0x2fc5a4\nMOVS            R1, #1; unsigned int                                   ; +0x28, 0x2fc5a8\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x2a, 0x2fc5aa\nVLDR            S15, [R4,#0x11C]                                       ; +0x2e, 0x2fc5ae\nLDRB.W          R0, [R4,#0x118]; this                                  ; +0x32, 0x2fc5b2\nADD.W           R9, SP, #0x48+var_24                                   ; +0x36, 0x2fc5b6\nLDRB.W          R1, [R4,#0x119]; unsigned __int8                       ; +0x3a, 0x2fc5ba\nADD.W           R10, SP, #0x48+var_34                                  ; +0x3e, 0x2fc5be\nLDRB.W          R2, [R4,#0x11A]; unsigned __int8                       ; +0x42, 0x2fc5c2\nVMOV.F32        S17, #0.5                                              ; +0x46, 0x2fc5c6\nVCVT.U32.F32    S15, S15                                               ; +0x4a, 0x2fc5ca\nVSTR            S15, [SP,#0x48+var_3C]                                 ; +0x4e, 0x2fc5ce\nLDRB.W          R3, [SP,#0x48+var_3C]; unsigned __int8                 ; +0x52, 0x2fc5d2\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x56, 0x2fc5d6\nVLDR            S16, [R4,#0x108]                                       ; +0x5a, 0x2fc5da\nMOVS            R2, #0; float                                          ; +0x5e, 0x2fc5de\nMOV             R0, R9; this                                           ; +0x60, 0x2fc5e0\nVLDR            S15, [R4,#0x120]                                       ; +0x62, 0x2fc5e2\nVMOV.F32        S14, #0.25                                             ; +0x66, 0x2fc5e6\nVSUB.F32        S15, S15, S16                                          ; +0x6a, 0x2fc5ea\nVMLA.F32        S16, S15, S14                                          ; +0x6e, 0x2fc5ee\nVNMUL.F32       S15, S16, S17                                          ; +0x72, 0x2fc5f2\nVMOV            R1, S15; float                                         ; +0x76, 0x2fc5f6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7a, 0x2fc5fa\nVMUL.F32        S15, S16, S17                                          ; +0x7e, 0x2fc5fe\nMOVS            R2, #0; float                                          ; +0x82, 0x2fc602\nADD             R0, SP, #0x48+var_1C; this                             ; +0x84, 0x2fc604\nVMOV            R1, S15; float                                         ; +0x86, 0x2fc606\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8a, 0x2fc60a\nVLDR            S15, [R4,#0x120]                                       ; +0x8e, 0x2fc60e\nLDR.W           R2, [R4,#0x124]; float                                 ; +0x92, 0x2fc612\nADD             R0, SP, #0x48+var_14; this                             ; +0x96, 0x2fc616\nVMUL.F32        S15, S15, S17                                          ; +0x98, 0x2fc618\nVMOV            R1, S15; float                                         ; +0x9c, 0x2fc61c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x2fc620\nVLDR            S15, [R4,#0x120]                                       ; +0xa4, 0x2fc624\nLDR.W           R2, [R4,#0x124]; float                                 ; +0xa8, 0x2fc628\nADD             R0, SP, #0x48+var_C; this                              ; +0xac, 0x2fc62c\nVNMUL.F32       S15, S15, S17                                          ; +0xae, 0x2fc62e\nVMOV            R1, S15; float                                         ; +0xb2, 0x2fc632\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb6, 0x2fc636\nLDRB.W          R8, [R4,#0x118]                                        ; +0xba, 0x2fc63a\nMOVS            R1, #0; int                                            ; +0xbe, 0x2fc63e\nMOVS            R2, #0x10; size_t                                      ; +0xc0, 0x2fc640\nMOV             R0, R10; void *                                        ; +0xc2, 0x2fc642\nLDRB.W          R7, [R4,#0x119]                                        ; +0xc4, 0x2fc644\nLDRB.W          R6, [R4,#0x11A]                                        ; +0xc8, 0x2fc648\nBLX             memset                                                 ; +0xcc, 0x2fc64c\nVMOV            S15, R8                                                ; +0xd0, 0x2fc650\nADD             R3, SP, #0x48+var_2C                                   ; +0xd4, 0x2fc654\nVLDR            S14, =255.0                                            ; +0xd6, 0x2fc656\nVCVT.F32.S32    S15, S15                                               ; +0xda, 0x2fc65a\nVDIV.F32        S15, S15, S14                                          ; +0xde, 0x2fc65e\nVSTR            S15, [SP,#0x48+var_34]                                 ; +0xe2, 0x2fc662\nVMOV            S15, R7                                                ; +0xe6, 0x2fc666\nVCVT.F32.S32    S15, S15                                               ; +0xea, 0x2fc66a\nVDIV.F32        S15, S15, S14                                          ; +0xee, 0x2fc66e\nVSTR            S15, [SP,#0x48+var_30]                                 ; +0xf2, 0x2fc672\nVMOV            S15, R6                                                ; +0xf6, 0x2fc676\nVCVT.F32.S32    S15, S15                                               ; +0xfa, 0x2fc67a\nVDIV.F32        S15, S15, S14                                          ; +0xfe, 0x2fc67e\nVSTR            S15, [SP,#0x48+var_2C]                                 ; +0x102, 0x2fc682\nVLDR            S15, [R4,#0x11C]                                       ; +0x106, 0x2fc686\nVDIV.F32        S14, S15, S14                                          ; +0x10a, 0x2fc68a\nVSTR            S14, [SP,#0x48+var_28]                                 ; +0x10e, 0x2fc68e\nLDM.W           R3, {R0,R1}                                            ; +0x112, 0x2fc692\nSTMEA.W         SP, {R0,R1}                                            ; +0x116, 0x2fc696\nMOV             R0, R9                                                 ; +0x11a, 0x2fc69a\nMOVS            R1, #4                                                 ; +0x11c, 0x2fc69c\nLDM.W           R10, {R2,R3}                                           ; +0x11e, 0x2fc69e\nBL              _ZN7cocos2d15ccDrawSolidPolyEPKNS_7CCPointEjNS_10_ccColor4FE; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*,uint,cocos2d::_ccColor4F) ; +0x122, 0x2fc6a2\nMOVS            R0, #(dword_0+1); this                                 ; +0x126, 0x2fc6a6\nMOVW            R1, #0x303; unsigned int                               ; +0x128, 0x2fc6a8\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x12c, 0x2fc6ac\nLDR             R2, [SP,#0x48+var_4]                                   ; +0x130, 0x2fc6b0\nLDR             R3, [R5]                                               ; +0x132, 0x2fc6b2\nCMP             R2, R3                                                 ; +0x134, 0x2fc6b4\nBEQ             loc_2FC6BC                                             ; +0x136, 0x2fc6b6\nBLX             __stack_chk_fail                                       ; +0x138, 0x2fc6b8\nADD             SP, SP, #0x48 ; 'H'                                    ; +0x13c, 0x2fc6bc\nVPOP            {D8}                                                   ; +0x13e, 0x2fc6be\nPOP.W           {R4-R10,PC}                                            ; +0x142, 0x2fc6c2", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}