{"type": "func", "start": 5369002400, "end": 5369002844, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x1400479a0 to 0x140047b5c (444 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140709078\n// > <???> @ 0x1408857f0\n// > <???> @ 0x140885800\n// > <???> @ 0x14090fab8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:31 +0000\n// \n\nvoid __fastcall CCLightStrip::draw(__int64 a1)\n{\n  unsigned int v2; // r8d\n  float v3; // xmm6_4\n  float v4; // xmm1_4\n  unsigned int v5; // r8d\n  __int16 v6; // [rsp+20h] [rbp-78h]\n  float v7[4]; // [rsp+30h] [rbp-68h] BYREF\n  _BYTE v8[8]; // [rsp+40h] [rbp-58h] BYREF\n  _BYTE v9[8]; // [rsp+48h] [rbp-50h] BYREF\n  _BYTE v10[8]; // [rsp+50h] [rbp-48h] BYREF\n  _BYTE v11[8]; // [rsp+58h] [rbp-40h] BYREF\n\n  if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 344LL))(a1) )\n  {\n    cocos2d::ccGLBlendFunc((cocos2d *)0x302, 1u, v2);\n    cocos2d::ccDrawColor4B(\n      (cocos2d *)*(unsigned __int8 *)(a1 + 336),\n      *(_BYTE *)(a1 + 337),\n      *(_BYTE *)(a1 + 338),\n      (int)*(float *)(a1 + 340));\n    v3 = (float)((float)(*(float *)(a1 + 344) - *(float *)(a1 + 320)) * 0.25) + *(float *)(a1 + 320);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (float)-v3 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v3 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, *(float *)(a1 + 344) * 0.5, *(float *)(a1 + 348));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)-*(float *)(a1 + 344) * 0.5, *(float *)(a1 + 348));\n    v6 = *(_WORD *)(a1 + 336);\n    v7[0] = (float)(unsigned __int8)v6 / 255.0;\n    v4 = (float)*(unsigned __int8 *)(a1 + 338);\n    v7[1] = (float)HIBYTE(v6) / 255.0;\n    v7[3] = *(float *)(a1 + 340) / 255.0;\n    v7[2] = v4 / 255.0;\n    cocos2d::ccDrawSolidPoly(v8, 4, v7);\n    cocos2d::ccGLBlendFunc((cocos2d *)1, 0x303u, v5);\n  }\n}", "assembly": "; \n; CCLightStrip::draw from 0x1400479a0 to 0x140047b5c (444 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140709078\n; > <???> @ 0x1408857f0\n; > <???> @ 0x140885800\n; > <???> @ 0x14090fab8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x1400479a0\nsub     rsp, 90h                                                       ; +0x2, 0x1400479a2\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x1400479a9\nxor     rax, rsp                                                       ; +0x10, 0x1400479b0\nmov     [rsp+98h+var_38], rax                                          ; +0x13, 0x1400479b3\nmov     rax, [rcx]                                                     ; +0x18, 0x1400479b8\nmov     rbx, rcx                                                       ; +0x1b, 0x1400479bb\ncall    qword ptr [rax+158h]                                           ; +0x1e, 0x1400479be\ntest    al, al                                                         ; +0x24, 0x1400479c4\njz      loc_140047B46                                                  ; +0x26, 0x1400479c6\nmovaps  [rsp+98h+var_18], xmm6                                         ; +0x2c, 0x1400479cc\nmov     edx, 1                                                         ; +0x34, 0x1400479d4\nmov     ecx, 302h                                                      ; +0x39, 0x1400479d9\nmovaps  [rsp+98h+var_28], xmm7                                         ; +0x3e, 0x1400479de\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x43, 0x1400479e3\ncvttss2si r9d, dword ptr [rbx+154h]                                    ; +0x49, 0x1400479e9\nmovzx   r8d, byte ptr [rbx+152h]                                       ; +0x52, 0x1400479f2\nmovzx   edx, byte ptr [rbx+151h]                                       ; +0x5a, 0x1400479fa\nmovzx   ecx, byte ptr [rbx+150h]                                       ; +0x61, 0x140047a01\ncall    cs:?ccDrawColor4B@cocos2d@@YAXEEEE@Z; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x68, 0x140047a08\nmovss   xmm0, dword ptr [rbx+140h]                                     ; +0x6e, 0x140047a0e\nlea     rcx, [rsp+98h+var_58]                                          ; +0x76, 0x140047a16\nmovss   xmm6, dword ptr [rbx+158h]                                     ; +0x7b, 0x140047a1b\nxorps   xmm2, xmm2                                                     ; +0x83, 0x140047a23\nmovss   xmm7, cs:dword_140834F20                                       ; +0x86, 0x140047a26\nsubss   xmm6, xmm0                                                     ; +0x8e, 0x140047a2e\nmulss   xmm6, cs:dword_140834E84                                       ; +0x92, 0x140047a32\naddss   xmm6, xmm0                                                     ; +0x9a, 0x140047a3a\nmovaps  xmm1, xmm6                                                     ; +0x9e, 0x140047a3e\nxorps   xmm1, cs:xmmword_140836CC0                                     ; +0xa1, 0x140047a41\nmulss   xmm1, xmm7                                                     ; +0xa8, 0x140047a48\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x140047a4c\nmulss   xmm6, xmm7                                                     ; +0xb2, 0x140047a52\nlea     rcx, [rsp+98h+var_50]                                          ; +0xb6, 0x140047a56\nxorps   xmm2, xmm2                                                     ; +0xbb, 0x140047a5b\nmovaps  xmm1, xmm6                                                     ; +0xbe, 0x140047a5e\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xc1, 0x140047a61\nmovss   xmm1, dword ptr [rbx+158h]                                     ; +0xc7, 0x140047a67\nlea     rcx, [rsp+98h+var_48]                                          ; +0xcf, 0x140047a6f\nmovss   xmm2, dword ptr [rbx+15Ch]                                     ; +0xd4, 0x140047a74\nmulss   xmm1, xmm7                                                     ; +0xdc, 0x140047a7c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe0, 0x140047a80\nmovss   xmm1, dword ptr [rbx+158h]                                     ; +0xe6, 0x140047a86\nlea     rcx, [rsp+98h+var_40]                                          ; +0xee, 0x140047a8e\nxorps   xmm1, cs:xmmword_140836CC0                                     ; +0xf3, 0x140047a93\nmovss   xmm2, dword ptr [rbx+15Ch]                                     ; +0xfa, 0x140047a9a\nmulss   xmm1, xmm7                                                     ; +0x102, 0x140047aa2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x140047aa6\nmovss   xmm2, cs:dword_140835964                                       ; +0x10c, 0x140047aac\nlea     r8, [rsp+98h+var_68]                                           ; +0x114, 0x140047ab4\nmovzx   eax, word ptr [rbx+150h]                                       ; +0x119, 0x140047ab9\nlea     rcx, [rsp+98h+var_58]                                          ; +0x120, 0x140047ac0\nmov     [rsp+98h+var_78], ax                                           ; +0x125, 0x140047ac5\nmov     edx, 4                                                         ; +0x12a, 0x140047aca\nmovzx   eax, al                                                        ; +0x12f, 0x140047acf\nmovd    xmm0, eax                                                      ; +0x132, 0x140047ad2\nmovzx   eax, byte ptr [rsp+98h+var_78+1]                               ; +0x136, 0x140047ad6\ncvtdq2ps xmm0, xmm0                                                    ; +0x13b, 0x140047adb\ndivss   xmm0, xmm2                                                     ; +0x13e, 0x140047ade\nmovss   [rsp+98h+var_68], xmm0                                         ; +0x142, 0x140047ae2\nmovd    xmm0, eax                                                      ; +0x148, 0x140047ae8\nmovzx   eax, byte ptr [rbx+152h]                                       ; +0x14c, 0x140047aec\ncvtdq2ps xmm0, xmm0                                                    ; +0x153, 0x140047af3\nmovd    xmm1, eax                                                      ; +0x156, 0x140047af6\ndivss   xmm0, xmm2                                                     ; +0x15a, 0x140047afa\ncvtdq2ps xmm1, xmm1                                                    ; +0x15e, 0x140047afe\nmovss   [rsp+98h+var_64], xmm0                                         ; +0x161, 0x140047b01\nmovss   xmm0, dword ptr [rbx+154h]                                     ; +0x167, 0x140047b07\ndivss   xmm0, xmm2                                                     ; +0x16f, 0x140047b0f\ndivss   xmm1, xmm2                                                     ; +0x173, 0x140047b13\nmovss   [rsp+98h+var_5C], xmm0                                         ; +0x177, 0x140047b17\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x17d, 0x140047b1d\ncall    cs:?ccDrawSolidPoly@cocos2d@@YAXPEBVCCPoint@1@IU_ccColor4F@1@@Z; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const *,uint,cocos2d::_ccColor4F) ; +0x183, 0x140047b23\nmov     edx, 303h                                                      ; +0x189, 0x140047b29\nmov     ecx, 1                                                         ; +0x18e, 0x140047b2e\ncall    cs:?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0x193, 0x140047b33\nmovaps  xmm7, [rsp+98h+var_28]                                         ; +0x199, 0x140047b39\nmovaps  xmm6, [rsp+98h+var_18]                                         ; +0x19e, 0x140047b3e\nmov     rcx, [rsp+98h+var_38]                                          ; +0x1a6, 0x140047b46\nxor     rcx, rsp; StackCookie                                          ; +0x1ab, 0x140047b4b\ncall    __security_check_cookie                                        ; +0x1ae, 0x140047b4e\nadd     rsp, 90h                                                       ; +0x1b3, 0x140047b53\npop     rbx                                                            ; +0x1ba, 0x140047b5a\nretn                                                                   ; +0x1bb, 0x140047b5b", "xrefs": ["<???> @ 0x140709078", "<???> @ 0x1408857f0", "<???> @ 0x140885800", "<???> @ 0x14090fab8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}