{"type": "func", "start": 5105336, "end": 5105508, "name": "EditButtonBar::create", "pseudocode": "// \n// EditButtonBar::create from 0x4de6b8 to 0x4de764 (172 bytes)\n// \n// 16 xrefs:\n// > EditorUI::createMoveMenu @ 0x6f7e46\n// > EditorUI::setupCreateMenu @ 0x6fc92e\n// > EditorUI::setupCreateMenu @ 0x6fce02\n// > EditorUI::setupCreateMenu @ 0x6fd9d8\n// > EditorUI::setupCreateMenu @ 0x6fddd2\n// > EditorUI::setupCreateMenu @ 0x6fed7e\n// > EditorUI::setupCreateMenu @ 0x6ff1ce\n// > EditorUI::setupCreateMenu @ 0x6ffe44\n// > EditorUI::setupCreateMenu @ 0x707b14\n// > EditorUI::setupCreateMenu @ 0x70875c\n// > EditorUI::setupCreateMenu @ 0x709886\n// > EditorUI::setupCreateMenu @ 0x70ab90\n// > EditorUI::setupCreateMenu @ 0x70b37c\n// > EditorUI::setupCreateMenu @ 0x70bde2\n// > EditorUI::setupCreateMenu @ 0x70be7a\n// > EditorUI::setupViewMenu @ 0x70d1a0\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:50:58 +0000\n// \n\n_DWORD *__fastcall EditButtonBar::create(\n        cocos2d::CCArray *a1,\n        const cocos2d::CCPoint *a2,\n        int a3,\n        char a4,\n        int a5,\n        int a6)\n{\n  _DWORD *v10; // r4\n  int v11; // r3\n  _DWORD *v12; // r0\n  _BYTE v14[8]; // [sp+14h] [bp-Ch] BYREF\n\n  v10 = (_DWORD *)operator new(0x128u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v10);\n  *v10 = &off_C9AAF0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v10 + 66));\n  v10[70] = 0;\n  v10[71] = 0;\n  v10[72] = 0;\n  v10[73] = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, a2);\n  if ( EditButtonBar::init((int)v10, a1, (int)v14, a3, a4, a5, a6) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);\n  }\n  else\n  {\n    v11 = *v10;\n    v12 = v10;\n    v10 = nullptr;\n    (*(void (__fastcall **)(_DWORD *))(v11 + 8))(v12);\n  }\n  return v10;\n}", "assembly": "; \n; EditButtonBar::create from 0x4de6b8 to 0x4de764 (172 bytes)\n; \n; 16 xrefs:\n; > EditorUI::createMoveMenu @ 0x6f7e46\n; > EditorUI::setupCreateMenu @ 0x6fc92e\n; > EditorUI::setupCreateMenu @ 0x6fce02\n; > EditorUI::setupCreateMenu @ 0x6fd9d8\n; > EditorUI::setupCreateMenu @ 0x6fddd2\n; > EditorUI::setupCreateMenu @ 0x6fed7e\n; > EditorUI::setupCreateMenu @ 0x6ff1ce\n; > EditorUI::setupCreateMenu @ 0x6ffe44\n; > EditorUI::setupCreateMenu @ 0x707b14\n; > EditorUI::setupCreateMenu @ 0x70875c\n; > EditorUI::setupCreateMenu @ 0x709886\n; > EditorUI::setupCreateMenu @ 0x70ab90\n; > EditorUI::setupCreateMenu @ 0x70b37c\n; > EditorUI::setupCreateMenu @ 0x70bde2\n; > EditorUI::setupCreateMenu @ 0x70be7a\n; > EditorUI::setupViewMenu @ 0x70d1a0\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:50:58 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x4de6b8\nMOV             R8, R3                                                 ; +0x4, 0x4de6bc\nLDR             R5, =(__stack_chk_guard_ptr - 0x4DE6CC)                ; +0x6, 0x4de6be\nSUB             SP, SP, #0x20                                          ; +0x8, 0x4de6c0\nMOV             R7, R0                                                 ; +0xa, 0x4de6c2\nMOV.W           R0, #0x128; unsigned int                               ; +0xc, 0x4de6c4\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4de6c8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x4de6ca\nMOV             R9, R1                                                 ; +0x14, 0x4de6cc\nMOV             R6, R2                                                 ; +0x16, 0x4de6ce\nLDR             R3, [R5]                                               ; +0x18, 0x4de6d0\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x1a, 0x4de6d2\nBL              _Znwj; operator new(uint)                              ; +0x1c, 0x4de6d4\nMOV             R4, R0                                                 ; +0x20, 0x4de6d8\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x22, 0x4de6da\nLDR             R3, =(_ZTV13EditButtonBar_ptr - 0x4DE6E8)              ; +0x26, 0x4de6de\nADD.W           R0, R4, #0x108; this                                   ; +0x28, 0x4de6e0\nADD             R3, PC; _ZTV13EditButtonBar_ptr                        ; +0x2c, 0x4de6e4\nLDR             R3, [R3]; `vtable for'EditButtonBar ...                ; +0x2e, 0x4de6e6\nADDS            R3, #8                                                 ; +0x30, 0x4de6e8\nSTR             R3, [R4]                                               ; +0x32, 0x4de6ea\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x34, 0x4de6ec\nADD.W           R10, SP, #0x20+var_C                                   ; +0x38, 0x4de6f0\nMOVS            R3, #0                                                 ; +0x3c, 0x4de6f4\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x3e, 0x4de6f6\nSTR.W           R3, [R4,#0x118]                                        ; +0x40, 0x4de6f8\nSTR.W           R3, [R4,#0x11C]                                        ; +0x44, 0x4de6fc\nMOV             R0, R10; this                                          ; +0x48, 0x4de700\nSTR.W           R3, [R4,#0x120]                                        ; +0x4a, 0x4de702\nSTR.W           R3, [R4,#0x124]                                        ; +0x4e, 0x4de706\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x52, 0x4de70a\nLDR             R3, [SP,#0x20+arg_0]                                   ; +0x56, 0x4de70e\nSTR.W           R8, [SP,#0x20+var_20]                                  ; +0x58, 0x4de710\nMOV             R0, R4                                                 ; +0x5c, 0x4de714\nMOV             R1, R7                                                 ; +0x5e, 0x4de716\nMOV             R2, R10                                                ; +0x60, 0x4de718\nSTR             R3, [SP,#0x20+var_1C]                                  ; +0x62, 0x4de71a\nLDR             R3, [SP,#0x20+arg_4]                                   ; +0x64, 0x4de71c\nSTR             R3, [SP,#0x20+var_18]                                  ; +0x66, 0x4de71e\nMOV             R3, R6                                                 ; +0x68, 0x4de720\nBL              _ZN13EditButtonBar4initEPN7cocos2d7CCArrayENS0_7CCPointEibii; EditButtonBar::init(cocos2d::CCArray *,cocos2d::CCPoint,int,bool,int,int) ; +0x6a, 0x4de722\nMOV             R6, R0                                                 ; +0x6e, 0x4de726\nCBZ             R0, loc_4DE73C                                         ; +0x70, 0x4de728\nMOV             R0, R4; this                                           ; +0x72, 0x4de72a\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x74, 0x4de72c\nB               loc_4DE746                                             ; +0x78, 0x4de730\nMOV             R0, R4; this                                           ; +0x7a, 0x4de732\nBL              _ZN7cocos2d6CCNodeD2Ev; cocos2d::CCNode::~CCNode()     ; +0x7c, 0x4de734\nB               loc_4DE754                                             ; +0x80, 0x4de738\nB               loc_4DE75A                                             ; +0x82, 0x4de73a\nLDR             R3, [R4]                                               ; +0x84, 0x4de73c\nMOV             R0, R4                                                 ; +0x86, 0x4de73e\nMOV             R4, R6                                                 ; +0x88, 0x4de740\nLDR             R3, [R3,#8]                                            ; +0x8a, 0x4de742\nBLX             R3                                                     ; +0x8c, 0x4de744\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x8e, 0x4de746\nMOV             R0, R4                                                 ; +0x90, 0x4de748\nLDR             R3, [R5]                                               ; +0x92, 0x4de74a\nCMP             R2, R3                                                 ; +0x94, 0x4de74c\nBEQ             loc_4DE75E                                             ; +0x96, 0x4de74e\nBLX             __stack_chk_fail                                       ; +0x98, 0x4de750\nMOV             R0, R4; void *                                         ; +0x9c, 0x4de754\nBL              _ZdlPv; operator delete(void *)                        ; +0x9e, 0x4de756\nBL              __cxa_end_cleanup                                      ; +0xa2, 0x4de75a\nADD             SP, SP, #0x20 ; ' '                                    ; +0xa6, 0x4de75e\nPOP.W           {R4-R10,PC}                                            ; +0xa8, 0x4de760", "xrefs": ["EditorUI::createMoveMenu @ 0x6f7e46", "EditorUI::setupCreateMenu @ 0x6fc92e", "EditorUI::setupCreateMenu @ 0x6fce02", "EditorUI::setupCreateMenu @ 0x6fd9d8", "EditorUI::setupCreateMenu @ 0x6fddd2", "EditorUI::setupCreateMenu @ 0x6fed7e", "EditorUI::setupCreateMenu @ 0x6ff1ce", "EditorUI::setupCreateMenu @ 0x6ffe44", "EditorUI::setupCreateMenu @ 0x707b14", "EditorUI::setupCreateMenu @ 0x70875c", "EditorUI::setupCreateMenu @ 0x709886", "EditorUI::setupCreateMenu @ 0x70ab90", "EditorUI::setupCreateMenu @ 0x70b37c", "EditorUI::setupCreateMenu @ 0x70bde2", "EditorUI::setupCreateMenu @ 0x70be7a", "EditorUI::setupViewMenu @ 0x70d1a0"], "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"}