{"type": "func", "start": 7108128, "end": 7108524, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x6c7620 to 0x6c77ac (396 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xdb958\n// > <???> @ 0x1421688\n// \n// This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n// \n\n__int64 __fastcall CCLightStrip::draw(CCLightStrip *this)\n{\n  unsigned int v2; // w2\n  unsigned __int8 v4; // w4\n  float v5; // s8\n  unsigned int v6; // w2\n  _BYTE v7[8]; // [xsp+48h] [xbp+48h] BYREF\n  __int64 v8; // [xsp+50h] [xbp+50h] BYREF\n  __int64 v9; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v10; // [xsp+60h] [xbp+60h] BYREF\n\n  if ( (*(unsigned __int8 (__fastcall **)(CCLightStrip *))(*(_QWORD *)this + 352LL))(this) )\n  {\n    cocos2d::ccGLBlendFunc((cocos2d *)((char *)&elf_hash_bucket[66] + 2), 1u, v2);\n    cocos2d::ccDrawColor4B(\n      (cocos2d *)*((unsigned __int8 *)this + 332),\n      *((_BYTE *)this + 333),\n      *((_BYTE *)this + 334),\n      (unsigned int)*((float *)this + 84),\n      v4);\n    v5 = *((float *)this + 79) + (float)((float)(*((float *)this + 85) - *((float *)this + 79)) * 0.25);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, (float)-v5 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, v5 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, *((float *)this + 85) * 0.5, *((float *)this + 86));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (float)-*((float *)this + 85) * 0.5, *((float *)this + 86));\n    cocos2d::ccDrawSolidPoly(\n      v7,\n      4,\n      (float)*((unsigned __int8 *)this + 332) / 255.0,\n      (float)*((unsigned __int8 *)this + 333) / 255.0,\n      (float)*((unsigned __int8 *)this + 334) / 255.0,\n      *((float *)this + 84) / 255.0);\n    cocos2d::ccGLBlendFunc((cocos2d *)((char *)&dword_0 + 1), 0x303u, v6);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CCLightStrip::draw from 0x6c7620 to 0x6c77ac (396 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xdb958\n; > <???> @ 0x1421688\n; \n; This function is hookable on this platform (idp: arm, 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 12:51:21 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x6c7620\nMOV             X29, SP                                                ; +0x4, 0x6c7624\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0x8, 0x6c7628\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0xc, 0x6c762c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6c7630\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x14, 0x6c7634\nMOV             X20, X0                                                ; +0x18, 0x6c7638\nLDR             X1, [X0]                                               ; +0x1c, 0x6c763c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x6c7640\nLDR             X1, [X1,#0x160]                                        ; +0x24, 0x6c7644\nLDR             X2, [X2]                                               ; +0x28, 0x6c7648\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x2c, 0x6c764c\nBLR             X1                                                     ; +0x30, 0x6c7650\nUXTB            W0, W0                                                 ; +0x34, 0x6c7654\nCBNZ            W0, loc_6C7684                                         ; +0x38, 0x6c7658\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x6c765c\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x40, 0x6c7660\nLDR             X0, [X19]                                              ; +0x44, 0x6c7664\nCMP             X1, X0                                                 ; +0x48, 0x6c7668\nB.NE            loc_6C77A8                                             ; +0x4c, 0x6c766c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x50, 0x6c7670\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x54, 0x6c7674\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x58, 0x6c7678\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x5c, 0x6c767c\nRET                                                                    ; +0x60, 0x6c7680\nFMOV            S9, #0.5                                               ; +0x64, 0x6c7684\nMOV             W0, #(elf_hash_bucket+0x10A); this                     ; +0x68, 0x6c7688\nMOV             W1, #1; unsigned int                                   ; +0x6c, 0x6c768c\nADD             X21, X29, #0x70+var_28                                 ; +0x70, 0x6c7690\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x74, 0x6c7694\nLDR             S0, [X20,#0x150]                                       ; +0x78, 0x6c7698\nLDRB            W1, [X20,#0x14D]; unsigned __int8                      ; +0x7c, 0x6c769c\nLDRB            W2, [X20,#0x14E]; unsigned __int8                      ; +0x80, 0x6c76a0\nFCVTZU          W3, S0; unsigned __int8                                ; +0x84, 0x6c76a4\nLDRB            W0, [X20,#0x14C]; this                                 ; +0x88, 0x6c76a8\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x8c, 0x6c76ac\nLDR             S2, [X20,#0x13C]                                       ; +0x90, 0x6c76b0\nMOV             X0, X21; this                                          ; +0x94, 0x6c76b4\nLDR             S0, [X20,#0x154]                                       ; +0x98, 0x6c76b8\nFMOV            S8, #0.25                                              ; +0x9c, 0x6c76bc\nFSUB            S0, S0, S2                                             ; +0xa0, 0x6c76c0\nFMOV            S1, WZR; float                                         ; +0xa4, 0x6c76c4\nFMADD           S8, S0, S8, S2                                         ; +0xa8, 0x6c76c8\nFNEG            S0, S8                                                 ; +0xac, 0x6c76cc\nFMUL            S0, S0, S9; float                                      ; +0xb0, 0x6c76d0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x6c76d4\nFMOV            S1, WZR; float                                         ; +0xb8, 0x6c76d8\nADD             X0, X21, #8; this                                      ; +0xbc, 0x6c76dc\nFMUL            S0, S8, S9; float                                      ; +0xc0, 0x6c76e0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc4, 0x6c76e4\nLDR             S0, [X20,#0x154]                                       ; +0xc8, 0x6c76e8\nADD             X0, X21, #0x10; this                                   ; +0xcc, 0x6c76ec\nLDR             S1, [X20,#0x158]; float                                ; +0xd0, 0x6c76f0\nFMUL            S0, S0, S9; float                                      ; +0xd4, 0x6c76f4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd8, 0x6c76f8\nLDR             S0, [X20,#0x154]                                       ; +0xdc, 0x6c76fc\nADD             X0, X21, #0x18; this                                   ; +0xe0, 0x6c7700\nLDR             S1, [X20,#0x158]; float                                ; +0xe4, 0x6c7704\nFNEG            S0, S0                                                 ; +0xe8, 0x6c7708\nFMUL            S0, S0, S9; float                                      ; +0xec, 0x6c770c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf0, 0x6c7710\nLDRB            W4, [X20,#0x14D]                                       ; +0xf4, 0x6c7714\nMOV             X3, #0                                                 ; +0xf8, 0x6c7718\nLDR             S3, =0x437F0000                                        ; +0xfc, 0x6c771c\nLDRB            W5, [X20,#0x14C]                                       ; +0x100, 0x6c7720\nLDRB            W0, [X20,#0x14E]                                       ; +0x104, 0x6c7724\nMOV             X2, #0                                                 ; +0x108, 0x6c7728\nSCVTF           S0, W4                                                 ; +0x10c, 0x6c772c\nMOV             W1, #4                                                 ; +0x110, 0x6c7730\nSCVTF           S2, W5                                                 ; +0x114, 0x6c7734\nSCVTF           S1, W0                                                 ; +0x118, 0x6c7738\nMOV             X0, X21                                                ; +0x11c, 0x6c773c\nLDR             S4, [X20,#0x150]                                       ; +0x120, 0x6c7740\nFDIV            S0, S0, S3                                             ; +0x124, 0x6c7744\nFDIV            S2, S2, S3                                             ; +0x128, 0x6c7748\nFDIV            S1, S1, S3                                             ; +0x12c, 0x6c774c\nFMOV            W20, S0                                                ; +0x130, 0x6c7750\nFDIV            S0, S4, S3                                             ; +0x134, 0x6c7754\nFMOV            W5, S2                                                 ; +0x138, 0x6c7758\nBFXIL           X3, X5, #0, #0x20 ; ' '                                ; +0x13c, 0x6c775c\nBFI             X3, X20, #0x20, #0x20 ; ' '                            ; +0x140, 0x6c7760\nFMOV            W4, S1                                                 ; +0x144, 0x6c7764\nBFXIL           X2, X4, #0, #0x20 ; ' '                                ; +0x148, 0x6c7768\nUBFX            X4, X3, #0, #0x20 ; ' '                                ; +0x14c, 0x6c776c\nLSR             X3, X3, #0x20 ; ' '                                    ; +0x150, 0x6c7770\nFMOV            W5, S0                                                 ; +0x154, 0x6c7774\nFMOV            S1, W3                                                 ; +0x158, 0x6c7778\nBFI             X2, X5, #0x20, #0x20 ; ' '                             ; +0x15c, 0x6c777c\nUBFX            X3, X2, #0, #0x20 ; ' '                                ; +0x160, 0x6c7780\nLSR             X2, X2, #0x20 ; ' '                                    ; +0x164, 0x6c7784\nFMOV            S0, W4                                                 ; +0x168, 0x6c7788\nFMOV            S2, W3                                                 ; +0x16c, 0x6c778c\nFMOV            S3, W2                                                 ; +0x170, 0x6c7790\nBL              _ZN7cocos2d15ccDrawSolidPolyEPKNS_7CCPointEjNS_10_ccColor4FE; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*,uint,cocos2d::_ccColor4F) ; +0x174, 0x6c7794\nMOV             W0, #(dword_0+1); this                                 ; +0x178, 0x6c7798\nMOV             W1, #0x303; unsigned int                               ; +0x17c, 0x6c779c\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x180, 0x6c77a0\nB               loc_6C765C                                             ; +0x184, 0x6c77a4\nBL              .__stack_chk_fail                                      ; +0x188, 0x6c77a8", "xrefs": ["<???> @ 0xdb958", "<???> @ 0x1421688"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}