{"type": "func", "start": 6842036, "end": 6842184, "name": "EditorUI::draw", "pseudocode": "// \n// EditorUI::draw from 0x6866b4 to 0x686748 (148 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x43b78\n// > <???> @ 0x1156988\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 EditorUI::draw(EditorUI *a1)\n{\n  cocos2d::CCPoint v2; // [xsp+38h] [xbp+38h] BYREF\n  cocos2d::CCPoint v3; // [xsp+40h] [xbp+40h] BYREF\n  cocos2d::CCPoint v4; // 0:s0.4,4:s1.4\n  cocos2d::CCPoint v5; // 0:s2.4,4:s3.4\n\n  if ( a1->m_swipeActive )\n  {\n    cocos2d::ccDrawColor4B(0, 0xFFu, 0, 0xFFu);\n    cocos2d::CCPoint::CCPoint(&v2, &a1->m_swipeStart);\n    cocos2d::CCPoint::CCPoint(&v3, &a1->m_swipeEnd);\n    cocos2d::ccDrawRect(v4, v5);\n  }\n}", "assembly": "; \n; EditorUI::draw from 0x6866b4 to 0x686748 (148 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x43b78\n; > <???> @ 0x1156988\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_50]!                                ; +0x0, 0x6866b4\nMOV             X29, SP                                                ; +0x4, 0x6866b8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6866bc\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6866c0\nMOV             X20, X0                                                ; +0x10, 0x6866c4\nLDRB            W0, [X0,#0x315]                                        ; +0x14, 0x6866c8\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x18, 0x6866cc\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6866d0\nLDR             X1, [X1]                                               ; +0x20, 0x6866d4\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x6866d8\nCBZ             W0, loc_686720                                         ; +0x28, 0x6866dc\nMOV             W1, #0xFFFFFFFF; unsigned __int8                       ; +0x2c, 0x6866e0\nMOV             W2, #0; unsigned __int8                                ; +0x30, 0x6866e4\nMOV             W3, W1; unsigned __int8                                ; +0x34, 0x6866e8\nMOV             W0, #0; this                                           ; +0x38, 0x6866ec\nADD             X22, X29, #0x50+var_18                                 ; +0x3c, 0x6866f0\nADD             X21, X29, #0x50+var_10                                 ; +0x40, 0x6866f4\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x44, 0x6866f8\nMOV             X0, X22; this                                          ; +0x48, 0x6866fc\nADD             X1, X20, #0x500; cocos2d::CCPoint *                    ; +0x4c, 0x686700\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x686704\nMOV             X0, X21; this                                          ; +0x54, 0x686708\nADD             X1, X20, #0x508; cocos2d::CCPoint *                    ; +0x58, 0x68670c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x5c, 0x686710\nMOV             X0, X22                                                ; +0x60, 0x686714\nMOV             X1, X21                                                ; +0x64, 0x686718\nBL              _ZN7cocos2d10ccDrawRectENS_7CCPointES0_; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0x68, 0x68671c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x6c, 0x686720\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x70, 0x686724\nLDR             X0, [X19]                                              ; +0x74, 0x686728\nCMP             X1, X0                                                 ; +0x78, 0x68672c\nB.NE            loc_686744                                             ; +0x7c, 0x686730\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x80, 0x686734\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x84, 0x686738\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x88, 0x68673c\nRET                                                                    ; +0x8c, 0x686740\nBL              .__stack_chk_fail                                      ; +0x90, 0x686744", "xrefs": ["<???> @ 0x43b78", "<???> @ 0x1156988"], "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"}