{"type": "func", "start": 4722720, "end": 4722804, "name": "EditorUI::draw", "pseudocode": "// \n// EditorUI::draw from 0x481020 to 0x481074 (84 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n// \n\nint __fastcall EditorUI::draw(int this)\n{\n  int v1; // r5\n  unsigned __int8 v2; // [sp+0h] [bp-4h]\n  _BYTE v3[8]; // [sp+4h] [bp+0h] BYREF\n  _BYTE v4[8]; // [sp+Ch] [bp+8h] BYREF\n\n  v1 = this;\n  if ( *(_BYTE *)(this + 637) )\n  {\n    cocos2d::ccDrawColor4B(nullptr, 0xFFu, 0, 0xFFu, v2);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v3, (const cocos2d::CCPoint *)(v1 + 948));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, (const cocos2d::CCPoint *)(v1 + 956));\n    return cocos2d::ccDrawRect(v3, v4);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::draw from 0x481020 to 0x481074 (84 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x481028)                ; +0x0, 0x481020\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x481022\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x481024\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x481026\nSUB             SP, SP, #0x1C; unsigned __int8                         ; +0x8, 0x481028\nMOV             R5, R0                                                 ; +0xa, 0x48102a\nLDR             R2, [R3]                                               ; +0xc, 0x48102c\nMOV             R4, R3                                                 ; +0xe, 0x48102e\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x10, 0x481030\nLDRB.W          R2, [R0,#0x27D]                                        ; +0x12, 0x481032\nCBZ             R2, loc_481064                                         ; +0x16, 0x481036\nMOVS            R0, #0; this                                           ; +0x18, 0x481038\nMOVS            R1, #0xFF; unsigned __int8                             ; +0x1a, 0x48103a\nADD             R7, SP, #4                                             ; +0x1c, 0x48103c\nMOV             R2, R0; unsigned __int8                                ; +0x1e, 0x48103e\nMOV             R3, R1; unsigned __int8                                ; +0x20, 0x481040\nADD             R6, SP, #0x1C+var_10                                   ; +0x22, 0x481042\nBL              _ZN7cocos2d13ccDrawColor4BEhhhh; cocos2d::ccDrawColor4B(uchar,uchar,uchar,uchar) ; +0x24, 0x481044\nADD.W           R1, R5, #0x3B4; cocos2d::CCPoint *                     ; +0x28, 0x481048\nMOV             R0, R7; this                                           ; +0x2c, 0x48104c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x2e, 0x48104e\nADD.W           R1, R5, #0x3BC; cocos2d::CCPoint *                     ; +0x32, 0x481052\nMOV             R0, R6; this                                           ; +0x36, 0x481056\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x38, 0x481058\nMOV             R0, R7                                                 ; +0x3c, 0x48105c\nMOV             R1, R6                                                 ; +0x3e, 0x48105e\nBL              _ZN7cocos2d10ccDrawRectENS_7CCPointES0_; cocos2d::ccDrawRect(cocos2d::CCPoint,cocos2d::CCPoint) ; +0x40, 0x481060\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x44, 0x481064\nLDR             R3, [R4]                                               ; +0x46, 0x481066\nCMP             R2, R3                                                 ; +0x48, 0x481068\nBEQ             loc_481070                                             ; +0x4a, 0x48106a\nBLX             __stack_chk_fail                                       ; +0x4c, 0x48106c\nADD             SP, SP, #0x1C                                          ; +0x50, 0x481070\nPOP             {R4-R7,PC}                                             ; +0x52, 0x481072", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}