{"type": "func", "start": 4036464, "end": 4036632, "name": "EditButtonBar::create", "pseudocode": "// \n// EditButtonBar::create from 0x3d9770 to 0x3d9818 (168 bytes)\n// \n// 15 xrefs:\n// > EditorUI::createMoveMenu @ 0x37f0ae\n// > EditorUI::setupCreateMenu @ 0x38c84c\n// > EditorUI::setupCreateMenu @ 0x38ccf2\n// > EditorUI::setupCreateMenu @ 0x38d8a0\n// > EditorUI::setupCreateMenu @ 0x38dc6c\n// > EditorUI::setupCreateMenu @ 0x38ebec\n// > EditorUI::setupCreateMenu @ 0x38f00e\n// > EditorUI::setupCreateMenu @ 0x38fc5c\n// > EditorUI::setupCreateMenu @ 0x397900\n// > EditorUI::setupCreateMenu @ 0x39851e\n// > EditorUI::setupCreateMenu @ 0x39961c\n// > EditorUI::setupCreateMenu @ 0x39a8fc\n// > EditorUI::setupCreateMenu @ 0x39b0ba\n// > EditorUI::setupCreateMenu @ 0x39bae2\n// > EditorUI::setupCreateMenu @ 0x39bb4e\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\nEditButtonBar *EditButtonBar::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, bool a4, int a5, int a6)\n{\n  float x; // r9\n  float y; // r6\n  EditButtonBar *v10; // r4\n  cocos2d::CCPoint v11; // r2\n  EditButtonBar_vtbl *v12; // r3\n  EditButtonBar *v13; // r0\n  int v15; // [sp+Ch] [bp-14h]\n  cocos2d::CCPoint v16; // [sp+14h] [bp-Ch] BYREF\n\n  x = a2.x;\n  y = a2.y;\n  v10 = (EditButtonBar *)operator new(0x124u);\n  cocos2d::CCNode::CCNode(v10);\n  v10->__vftable = (EditButtonBar_vtbl *)&off_A51630;\n  cocos2d::CCPoint::CCPoint(&v10->m_position);\n  v10->m_buttonArray = nullptr;\n  v10->m_scrollLayer = nullptr;\n  v10->m_pagesArray = nullptr;\n  cocos2d::CCPoint::CCPoint(&v16, (const cocos2d::CCPoint *)LODWORD(x));\n  LODWORD(v11.x) = &v16;\n  v11.y = y;\n  if ( EditButtonBar::init(v10, a1, v11, a3, a4, a5, v15) )\n  {\n    cocos2d::CCObject::autorelease(v10);\n  }\n  else\n  {\n    v12 = v10->__vftable;\n    v13 = v10;\n    v10 = nullptr;\n    v12->~EditButtonBar_0(v13);\n  }\n  return v10;\n}", "assembly": "; \n; EditButtonBar::create from 0x3d9770 to 0x3d9818 (168 bytes)\n; \n; 15 xrefs:\n; > EditorUI::createMoveMenu @ 0x37f0ae\n; > EditorUI::setupCreateMenu @ 0x38c84c\n; > EditorUI::setupCreateMenu @ 0x38ccf2\n; > EditorUI::setupCreateMenu @ 0x38d8a0\n; > EditorUI::setupCreateMenu @ 0x38dc6c\n; > EditorUI::setupCreateMenu @ 0x38ebec\n; > EditorUI::setupCreateMenu @ 0x38f00e\n; > EditorUI::setupCreateMenu @ 0x38fc5c\n; > EditorUI::setupCreateMenu @ 0x397900\n; > EditorUI::setupCreateMenu @ 0x39851e\n; > EditorUI::setupCreateMenu @ 0x39961c\n; > EditorUI::setupCreateMenu @ 0x39a8fc\n; > EditorUI::setupCreateMenu @ 0x39b0ba\n; > EditorUI::setupCreateMenu @ 0x39bae2\n; > EditorUI::setupCreateMenu @ 0x39bb4e\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\nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3d9770\nMOV             R8, R3                                                 ; +0x4, 0x3d9774\nLDR             R5, =(__stack_chk_guard_ptr - 0x3D9784)                ; +0x6, 0x3d9776\nSUB             SP, SP, #0x20                                          ; +0x8, 0x3d9778\nMOV             R7, R0                                                 ; +0xa, 0x3d977a\nMOV.W           R0, #0x124; unsigned int                               ; +0xc, 0x3d977c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3d9780\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x3d9782\nMOV             R9, R1                                                 ; +0x14, 0x3d9784\nMOV             R6, R2                                                 ; +0x16, 0x3d9786\nLDR             R3, [R5]                                               ; +0x18, 0x3d9788\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x1a, 0x3d978a\nBL              _Znwj; operator new(uint)                              ; +0x1c, 0x3d978c\nMOV             R4, R0                                                 ; +0x20, 0x3d9790\nBL              _ZN7cocos2d6CCNodeC2Ev; cocos2d::CCNode::CCNode(void)  ; +0x22, 0x3d9792\nLDR             R3, =(_ZTV13EditButtonBar_ptr - 0x3D97A0)              ; +0x26, 0x3d9796\nADD.W           R0, R4, #0x108; this                                   ; +0x28, 0x3d9798\nADD             R3, PC; _ZTV13EditButtonBar_ptr                        ; +0x2c, 0x3d979c\nLDR             R3, [R3]; `vtable for'EditButtonBar ...                ; +0x2e, 0x3d979e\nADDS            R3, #8                                                 ; +0x30, 0x3d97a0\nSTR             R3, [R4]                                               ; +0x32, 0x3d97a2\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x34, 0x3d97a4\nADD.W           R10, SP, #0x20+var_C                                   ; +0x38, 0x3d97a8\nMOVS            R3, #0                                                 ; +0x3c, 0x3d97ac\nMOV             R1, R9; cocos2d::CCPoint *                             ; +0x3e, 0x3d97ae\nSTR.W           R3, [R4,#0x118]                                        ; +0x40, 0x3d97b0\nSTR.W           R3, [R4,#0x11C]                                        ; +0x44, 0x3d97b4\nMOV             R0, R10; this                                          ; +0x48, 0x3d97b8\nSTR.W           R3, [R4,#0x120]                                        ; +0x4a, 0x3d97ba\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x4e, 0x3d97be\nLDR             R3, [SP,#0x20+arg_0]                                   ; +0x52, 0x3d97c2\nSTR.W           R8, [SP,#0x20+var_20]                                  ; +0x54, 0x3d97c4\nMOV             R0, R4                                                 ; +0x58, 0x3d97c8\nMOV             R1, R7                                                 ; +0x5a, 0x3d97ca\nMOV             R2, R10                                                ; +0x5c, 0x3d97cc\nSTR             R3, [SP,#0x20+var_1C]                                  ; +0x5e, 0x3d97ce\nLDR             R3, [SP,#0x20+arg_4]                                   ; +0x60, 0x3d97d0\nSTR             R3, [SP,#0x20+var_18]                                  ; +0x62, 0x3d97d2\nMOV             R3, R6                                                 ; +0x64, 0x3d97d4\nBL              _ZN13EditButtonBar4initEPN7cocos2d7CCArrayENS0_7CCPointEibii; EditButtonBar::init(cocos2d::CCArray *,cocos2d::CCPoint,int,bool,int,int) ; +0x66, 0x3d97d6\nMOV             R6, R0                                                 ; +0x6a, 0x3d97da\nCBZ             R0, loc_3D97F0                                         ; +0x6c, 0x3d97dc\nMOV             R0, R4; this                                           ; +0x6e, 0x3d97de\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x70, 0x3d97e0\nB               loc_3D97FA                                             ; +0x74, 0x3d97e4\nMOV             R0, R4; this                                           ; +0x76, 0x3d97e6\nBL              _ZN7cocos2d6CCNodeD2Ev; cocos2d::CCNode::~CCNode()     ; +0x78, 0x3d97e8\nB               loc_3D9808                                             ; +0x7c, 0x3d97ec\nB               loc_3D980E                                             ; +0x7e, 0x3d97ee\nLDR             R3, [R4]                                               ; +0x80, 0x3d97f0\nMOV             R0, R4                                                 ; +0x82, 0x3d97f2\nMOV             R4, R6                                                 ; +0x84, 0x3d97f4\nLDR             R3, [R3,#8]                                            ; +0x86, 0x3d97f6\nBLX             R3                                                     ; +0x88, 0x3d97f8\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x8a, 0x3d97fa\nMOV             R0, R4                                                 ; +0x8c, 0x3d97fc\nLDR             R3, [R5]                                               ; +0x8e, 0x3d97fe\nCMP             R2, R3                                                 ; +0x90, 0x3d9800\nBEQ             loc_3D9812                                             ; +0x92, 0x3d9802\nBLX             __stack_chk_fail                                       ; +0x94, 0x3d9804\nMOV             R0, R4; p                                              ; +0x98, 0x3d9808\nBL              _ZdlPv; operator delete(void *)                        ; +0x9a, 0x3d980a\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x3d980e\nADD             SP, SP, #0x20 ; ' '                                    ; +0xa2, 0x3d9812\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x3d9814", "xrefs": ["EditorUI::createMoveMenu @ 0x37f0ae", "EditorUI::setupCreateMenu @ 0x38c84c", "EditorUI::setupCreateMenu @ 0x38ccf2", "EditorUI::setupCreateMenu @ 0x38d8a0", "EditorUI::setupCreateMenu @ 0x38dc6c", "EditorUI::setupCreateMenu @ 0x38ebec", "EditorUI::setupCreateMenu @ 0x38f00e", "EditorUI::setupCreateMenu @ 0x38fc5c", "EditorUI::setupCreateMenu @ 0x397900", "EditorUI::setupCreateMenu @ 0x39851e", "EditorUI::setupCreateMenu @ 0x39961c", "EditorUI::setupCreateMenu @ 0x39a8fc", "EditorUI::setupCreateMenu @ 0x39b0ba", "EditorUI::setupCreateMenu @ 0x39bae2", "EditorUI::setupCreateMenu @ 0x39bb4e"], "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"}