{"type": "func", "start": 5368986912, "end": 5368987356, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x140043d20 to 0x140043edc (444 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14052e478\n// > <???> @ 0x140662748\n// > <???> @ 0x140662758\n// > <???> @ 0x1406c45a8\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; // xmm6_4\n  float v3; // xmm0_4\n  float v4; // xmm4_4\n  float v5; // xmm2_4\n  struct cocos2d::_ccColor4F *v6; // r9\n  _DWORD v7[4]; // [rsp+30h] [rbp-68h] BYREF\n  cocos2d::CCPoint v8; // [rsp+40h] [rbp-58h] BYREF\n  cocos2d::CCPoint v9; // [rsp+48h] [rbp-50h] BYREF\n  cocos2d::CCPoint v10; // [rsp+50h] [rbp-48h] BYREF\n  cocos2d::CCPoint v11; // [rsp+58h] [rbp-40h] BYREF\n\n  if ( a1->isVisible(a1) )\n  {\n    cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u);\n    cocos2d::ccDrawColor4B((cocos2d *)a1->m_color.r, a1->m_color.g, a1->m_color.b, (int)a1->m_opacity);\n    v2 = (float)((float)(a1->m_width - a1->m_objectWidth) * 0.25) + a1->m_objectWidth;\n    cocos2d::CCPoint::CCPoint(&v8, (float)-v2 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint(&v9, v2 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint(&v10, a1->m_width * 0.5, a1->m_height);\n    cocos2d::CCPoint::CCPoint(&v11, (float)-a1->m_width * 0.5, a1->m_height);\n    v3 = a1->m_opacity / 255.0;\n    v4 = (float)(unsigned __int8)*(_WORD *)&a1->m_color.r / 255.0;\n    v5 = (float)(unsigned __int8)HIBYTE(*(_WORD *)&a1->m_color.r) / 255.0;\n    *(float *)&v7[2] = (float)a1->m_color.b / 255.0;\n    *(float *)v7 = v4;\n    *(float *)&v7[1] = v5;\n    *(float *)&v7[3] = v3;\n    cocos2d::ccDrawSolidPoly((cocos2d *)&v8, (const struct cocos2d::CCPoint *)4, (unsigned int)v7, v6);\n    cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u);\n  }\n}", "assembly": "; \n; CCLightStrip::draw from 0x140043d20 to 0x140043edc (444 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14052e478\n; > <???> @ 0x140662748\n; > <???> @ 0x140662758\n; > <???> @ 0x1406c45a8\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    rbx                                                            ; +0x0, 0x140043d20\nsub     rsp, 90h                                                       ; +0x2, 0x140043d22\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x140043d29\nxor     rax, rsp                                                       ; +0x10, 0x140043d30\nmov     [rsp+98h+var_38], rax                                          ; +0x13, 0x140043d33\nmov     rax, [rcx]                                                     ; +0x18, 0x140043d38\nmov     rbx, rcx                                                       ; +0x1b, 0x140043d3b\ncall    qword ptr [rax+148h]                                           ; +0x1e, 0x140043d3e\ntest    al, al                                                         ; +0x24, 0x140043d44\njz      loc_140043EC6                                                  ; +0x26, 0x140043d46\nmovaps  [rsp+98h+var_18], xmm6                                         ; +0x2c, 0x140043d4c\nmov     edx, 1                                                         ; +0x34, 0x140043d54\nmov     ecx, 302h                                                      ; +0x39, 0x140043d59\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0x3e, 0x140043d5e\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x43, 0x140043d63\ncvttss2si r9d, dword ptr [rbx+154h]                                    ; +0x49, 0x140043d69\nmovzx   r8d, byte ptr [rbx+152h]                                       ; +0x52, 0x140043d72\nmovzx   edx, byte ptr [rbx+151h]                                       ; +0x5a, 0x140043d7a\nmovzx   ecx, byte ptr [rbx+150h]                                       ; +0x61, 0x140043d81\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x68, 0x140043d88\nmovss   xmm0, dword ptr [rbx+140h]                                     ; +0x6e, 0x140043d8e\nlea     rcx, [rsp+98h+var_58]                                          ; +0x76, 0x140043d96\nmovss   xmm6, dword ptr [rbx+158h]                                     ; +0x7b, 0x140043d9b\nxorps   xmm2, xmm2                                                     ; +0x83, 0x140043da3\nmovss   xmm7, cs:dword_140622B08                                       ; +0x86, 0x140043da6\nsubss   xmm6, xmm0                                                     ; +0x8e, 0x140043dae\nmulss   xmm6, cs:dword_140622A88                                       ; +0x92, 0x140043db2\naddss   xmm6, xmm0                                                     ; +0x9a, 0x140043dba\nmovaps  xmm1, xmm6                                                     ; +0x9e, 0x140043dbe\nxorps   xmm1, cs:xmmword_1406243F0                                     ; +0xa1, 0x140043dc1\nmulss   xmm1, xmm7                                                     ; +0xa8, 0x140043dc8\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x140043dcc\nmulss   xmm6, xmm7                                                     ; +0xb2, 0x140043dd2\nlea     rcx, [rsp+98h+var_50]                                          ; +0xb6, 0x140043dd6\nxorps   xmm2, xmm2                                                     ; +0xbb, 0x140043ddb\nmovaps  xmm1, xmm6                                                     ; +0xbe, 0x140043dde\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc1, 0x140043de1\nmovss   xmm1, dword ptr [rbx+158h]                                     ; +0xc7, 0x140043de7\nlea     rcx, [rsp+98h+var_48]                                          ; +0xcf, 0x140043def\nmovss   xmm2, dword ptr [rbx+15Ch]                                     ; +0xd4, 0x140043df4\nmulss   xmm1, xmm7                                                     ; +0xdc, 0x140043dfc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe0, 0x140043e00\nmovss   xmm1, dword ptr [rbx+158h]                                     ; +0xe6, 0x140043e06\nlea     rcx, [rsp+98h+var_40]                                          ; +0xee, 0x140043e0e\nxorps   xmm1, cs:xmmword_1406243F0                                     ; +0xf3, 0x140043e13\nmovss   xmm2, dword ptr [rbx+15Ch]                                     ; +0xfa, 0x140043e1a\nmulss   xmm1, xmm7                                                     ; +0x102, 0x140043e22\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x140043e26\nmovss   xmm3, cs:dword_140623418                                       ; +0x10c, 0x140043e2c\nlea     r8, [rsp+98h+var_68]                                           ; +0x114, 0x140043e34\nmovzx   eax, word ptr [rbx+150h]                                       ; +0x119, 0x140043e39\nlea     rcx, [rsp+98h+var_58]                                          ; +0x120, 0x140043e40\nmovss   xmm0, dword ptr [rbx+154h]                                     ; +0x125, 0x140043e45\nmov     edx, 4                                                         ; +0x12d, 0x140043e4d\nmov     [rsp+98h+var_78], ax                                           ; +0x132, 0x140043e52\nmovzx   eax, al                                                        ; +0x137, 0x140043e57\ndivss   xmm0, xmm3                                                     ; +0x13a, 0x140043e5a\nmovd    xmm4, eax                                                      ; +0x13e, 0x140043e5e\nmovzx   eax, byte ptr [rsp+98h+var_78+1]                               ; +0x142, 0x140043e62\ncvtdq2ps xmm4, xmm4                                                    ; +0x147, 0x140043e67\nmovd    xmm2, eax                                                      ; +0x14a, 0x140043e6a\nmovzx   eax, byte ptr [rbx+152h]                                       ; +0x14e, 0x140043e6e\ncvtdq2ps xmm2, xmm2                                                    ; +0x155, 0x140043e75\nmovd    xmm1, eax                                                      ; +0x158, 0x140043e78\ncvtdq2ps xmm1, xmm1                                                    ; +0x15c, 0x140043e7c\ndivss   xmm4, xmm3                                                     ; +0x15f, 0x140043e7f\ndivss   xmm1, xmm3                                                     ; +0x163, 0x140043e83\ndivss   xmm2, xmm3                                                     ; +0x167, 0x140043e87\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x16b, 0x140043e8b\nmovss   [rsp+98h+var_68], xmm4                                         ; +0x171, 0x140043e91\nmovss   [rsp+98h+var_64], xmm2                                         ; +0x177, 0x140043e97\nmovss   [rsp+98h+var_5C], xmm0                                         ; +0x17d, 0x140043e9d\ncall    cs:?ccDrawSolidPoly@cocos2d@@YAXPEBVCCPoint@1@IU_ccColor4F@1@@Z; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const *,uint,cocos2d::_ccColor4F) ; +0x183, 0x140043ea3\nmov     edx, 303h                                                      ; +0x189, 0x140043ea9\nmov     ecx, 1                                                         ; +0x18e, 0x140043eae\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x193, 0x140043eb3\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0x199, 0x140043eb9\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0x19e, 0x140043ebe\nmov     rcx, [rsp+98h+var_38]                                          ; +0x1a6, 0x140043ec6\nxor     rcx, rsp; StackCookie                                          ; +0x1ab, 0x140043ecb\ncall    __security_check_cookie                                        ; +0x1ae, 0x140043ece\nadd     rsp, 90h                                                       ; +0x1b3, 0x140043ed3\npop     rbx                                                            ; +0x1ba, 0x140043eda\nretn                                                                   ; +0x1bb, 0x140043edb", "xrefs": ["<???> @ 0x14052e478", "<???> @ 0x140662748", "<???> @ 0x140662758", "<???> @ 0x1406c45a8"], "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"}