{"type": "func", "start": 5926908, "end": 5927304, "name": "CCLightStrip::draw", "pseudocode": "// \n// CCLightStrip::draw from 0x5a6ffc to 0x5a7188 (396 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0xa7520\n// > <???> @ 0x1142a28\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; // s8\n  cocos2d::CCPoint v3; // [xsp+48h] [xbp+48h] BYREF\n  cocos2d::CCPoint v4; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v5; // [xsp+58h] [xbp+58h] BYREF\n  cocos2d::CCPoint v6; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::ccColor4F v7; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4\n\n  if ( a1->isVisible(a1) )\n  {\n    cocos2d::ccGLBlendFunc((unsigned int)&elf_hash_bucket[66] + 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(&v3, (float)-v2 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint(&v4, v2 * 0.5, 0.0);\n    cocos2d::CCPoint::CCPoint(&v5, a1->m_width * 0.5, a1->m_height);\n    cocos2d::CCPoint::CCPoint(&v6, (float)-a1->m_width * 0.5, a1->m_height);\n    v7.g = (float)a1->m_color.g / 255.0;\n    v7.r = (float)a1->m_color.r / 255.0;\n    v7.b = (float)a1->m_color.b / 255.0;\n    v7.a = a1->m_opacity / 255.0;\n    cocos2d::ccDrawSolidPoly(&v3, 4u, v7);\n    cocos2d::ccGLBlendFunc((unsigned int)&dword_0 + 1, 0x303u);\n  }\n}", "assembly": "; \n; CCLightStrip::draw from 0x5a6ffc to 0x5a7188 (396 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0xa7520\n; > <???> @ 0x1142a28\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x5a6ffc\nMOV             X29, SP                                                ; +0x4, 0x5a7000\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x5a7004\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0xc, 0x5a7008\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x5a700c\nLDR             X1, [X0]                                               ; +0x14, 0x5a7010\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x18, 0x5a7014\nMOV             X20, X0                                                ; +0x1c, 0x5a7018\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x5a701c\nLDR             X1, [X1,#0x150]                                        ; +0x24, 0x5a7020\nLDR             X2, [X2]                                               ; +0x28, 0x5a7024\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x2c, 0x5a7028\nBLR             X1                                                     ; +0x30, 0x5a702c\nUXTB            W0, W0                                                 ; +0x34, 0x5a7030\nCBNZ            W0, loc_5A7060                                         ; +0x38, 0x5a7034\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x5a7038\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x40, 0x5a703c\nLDR             X0, [X19]                                              ; +0x44, 0x5a7040\nCMP             X1, X0                                                 ; +0x48, 0x5a7044\nB.NE            loc_5A7184                                             ; +0x4c, 0x5a7048\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x50, 0x5a704c\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x54, 0x5a7050\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x58, 0x5a7054\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x5c, 0x5a7058\nRET                                                                    ; +0x60, 0x5a705c\nFMOV            S9, #0.5                                               ; +0x64, 0x5a7060\nMOV             W0, #(elf_hash_bucket+0x10A); this                     ; +0x68, 0x5a7064\nMOV             W1, #1; unsigned int                                   ; +0x6c, 0x5a7068\nADD             X21, X29, #0x70+var_28                                 ; +0x70, 0x5a706c\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x74, 0x5a7070\nLDR             S0, [X20,#0x150]                                       ; +0x78, 0x5a7074\nLDRB            W1, [X20,#0x14D]; unsigned __int8                      ; +0x7c, 0x5a7078\nLDRB            W2, [X20,#0x14E]; unsigned __int8                      ; +0x80, 0x5a707c\nFCVTZU          W3, S0; unsigned __int8                                ; +0x84, 0x5a7080\nLDRB            W0, [X20,#0x14C]; this                                 ; +0x88, 0x5a7084\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x8c, 0x5a7088\nLDR             S2, [X20,#0x13C]                                       ; +0x90, 0x5a708c\nMOV             X0, X21; this                                          ; +0x94, 0x5a7090\nLDR             S0, [X20,#0x154]                                       ; +0x98, 0x5a7094\nFMOV            S8, #0.25                                              ; +0x9c, 0x5a7098\nFSUB            S0, S0, S2                                             ; +0xa0, 0x5a709c\nFMOV            S1, WZR; float                                         ; +0xa4, 0x5a70a0\nFMADD           S8, S0, S8, S2                                         ; +0xa8, 0x5a70a4\nFNEG            S0, S8                                                 ; +0xac, 0x5a70a8\nFMUL            S0, S0, S9; float                                      ; +0xb0, 0x5a70ac\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xb4, 0x5a70b0\nFMOV            S1, WZR; float                                         ; +0xb8, 0x5a70b4\nADD             X0, X21, #8; this                                      ; +0xbc, 0x5a70b8\nFMUL            S0, S8, S9; float                                      ; +0xc0, 0x5a70bc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc4, 0x5a70c0\nLDR             S0, [X20,#0x154]                                       ; +0xc8, 0x5a70c4\nADD             X0, X21, #0x10; this                                   ; +0xcc, 0x5a70c8\nLDR             S1, [X20,#0x158]; float                                ; +0xd0, 0x5a70cc\nFMUL            S0, S0, S9; float                                      ; +0xd4, 0x5a70d0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd8, 0x5a70d4\nLDR             S0, [X20,#0x154]                                       ; +0xdc, 0x5a70d8\nADD             X0, X21, #0x18; this                                   ; +0xe0, 0x5a70dc\nLDR             S1, [X20,#0x158]; float                                ; +0xe4, 0x5a70e0\nFNEG            S0, S0                                                 ; +0xe8, 0x5a70e4\nFMUL            S0, S0, S9; float                                      ; +0xec, 0x5a70e8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf0, 0x5a70ec\nLDRB            W4, [X20,#0x14D]                                       ; +0xf4, 0x5a70f0\nMOV             X3, #0                                                 ; +0xf8, 0x5a70f4\nLDR             S3, =0x437F0000                                        ; +0xfc, 0x5a70f8\nLDRB            W5, [X20,#0x14C]                                       ; +0x100, 0x5a70fc\nLDRB            W0, [X20,#0x14E]                                       ; +0x104, 0x5a7100\nMOV             X2, #0                                                 ; +0x108, 0x5a7104\nSCVTF           S0, W4                                                 ; +0x10c, 0x5a7108\nMOV             W1, #4                                                 ; +0x110, 0x5a710c\nSCVTF           S2, W5                                                 ; +0x114, 0x5a7110\nSCVTF           S1, W0                                                 ; +0x118, 0x5a7114\nMOV             X0, X21                                                ; +0x11c, 0x5a7118\nLDR             S4, [X20,#0x150]                                       ; +0x120, 0x5a711c\nFDIV            S0, S0, S3                                             ; +0x124, 0x5a7120\nFDIV            S2, S2, S3                                             ; +0x128, 0x5a7124\nFDIV            S1, S1, S3                                             ; +0x12c, 0x5a7128\nFMOV            W20, S0                                                ; +0x130, 0x5a712c\nFDIV            S0, S4, S3                                             ; +0x134, 0x5a7130\nFMOV            W5, S2                                                 ; +0x138, 0x5a7134\nBFXIL           X3, X5, #0, #0x20 ; ' '                                ; +0x13c, 0x5a7138\nBFI             X3, X20, #0x20, #0x20 ; ' '                            ; +0x140, 0x5a713c\nFMOV            W4, S1                                                 ; +0x144, 0x5a7140\nBFXIL           X2, X4, #0, #0x20 ; ' '                                ; +0x148, 0x5a7144\nUBFX            X4, X3, #0, #0x20 ; ' '                                ; +0x14c, 0x5a7148\nLSR             X3, X3, #0x20 ; ' '                                    ; +0x150, 0x5a714c\nFMOV            W5, S0                                                 ; +0x154, 0x5a7150\nFMOV            S1, W3                                                 ; +0x158, 0x5a7154\nBFI             X2, X5, #0x20, #0x20 ; ' '                             ; +0x15c, 0x5a7158\nUBFX            X3, X2, #0, #0x20 ; ' '                                ; +0x160, 0x5a715c\nLSR             X2, X2, #0x20 ; ' '                                    ; +0x164, 0x5a7160\nFMOV            S0, W4                                                 ; +0x168, 0x5a7164\nFMOV            S2, W3                                                 ; +0x16c, 0x5a7168\nFMOV            S3, W2                                                 ; +0x170, 0x5a716c\nBL              _ZN7cocos2d15ccDrawSolidPolyEPKNS_7CCPointEjNS_10_ccColor4FE; cocos2d::ccDrawSolidPoly(cocos2d::CCPoint const*,uint,cocos2d::_ccColor4F) ; +0x174, 0x5a7170\nMOV             W0, #(dword_0+1); this                                 ; +0x178, 0x5a7174\nMOV             W1, #0x303; unsigned int                               ; +0x17c, 0x5a7178\nBL              _ZN7cocos2d13ccGLBlendFuncEjj; cocos2d::ccGLBlendFunc(uint,uint) ; +0x180, 0x5a717c\nB               loc_5A7038                                             ; +0x184, 0x5a7180\nBL              .__stack_chk_fail                                      ; +0x188, 0x5a7184", "xrefs": ["<???> @ 0xa7520", "<???> @ 0x1142a28"], "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"}