{"type": "func", "start": 4301134880, "end": 4301135073, "name": "EditButtonBar::create", "pseudocode": "// \n// EditButtonBar::create from 0x1005e1c20 to 0x1005e1ce1 (193 bytes)\n// \n// 15 xrefs:\n// > EditorUI::setupCreateMenu @ 0x100013d2e\n// > EditorUI::setupCreateMenu @ 0x100014425\n// > EditorUI::setupCreateMenu @ 0x10001550e\n// > EditorUI::setupCreateMenu @ 0x100015abc\n// > EditorUI::setupCreateMenu @ 0x10001714b\n// > EditorUI::setupCreateMenu @ 0x100017791\n// > EditorUI::setupCreateMenu @ 0x100018965\n// > EditorUI::setupCreateMenu @ 0x100023e1f\n// > EditorUI::setupCreateMenu @ 0x100024fb6\n// > EditorUI::setupCreateMenu @ 0x100026856\n// > EditorUI::setupCreateMenu @ 0x10002843f\n// > EditorUI::setupCreateMenu @ 0x100028ff5\n// > EditorUI::setupCreateMenu @ 0x100029ef4\n// > EditorUI::setupCreateMenu @ 0x100029f96\n// > EditorUI::createMoveMenu @ 0x100047fba\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\n// local variable allocation has failed, the output may be wrong!\nEditButtonBar *__fastcall EditButtonBar::create(\n        cocos2d::CCArray *a1,\n        cocos2d::CCPoint a2,\n        int a3,\n        bool a4,\n        int a5,\n        int a6)\n{\n  _OWORD *v8; // rbx\n  cocos2d::CCPoint v9; // xmm0_8\n  __int64 v11; // [rsp+8h] [rbp-48h] BYREF\n  cocos2d::CCArray *v12; // [rsp+10h] [rbp-40h]\n  double *v13; // [rsp+18h] [rbp-38h]\n  int v14; // [rsp+24h] [rbp-2Ch]\n\n  v14 = a5;\n  v13 = *(double **)&a3;\n  v12 = a1;\n  v8 = operator new(0x168u);\n  cocos2d::CCNode::CCNode((__int64)v8);\n  *(_QWORD *)v8 = off_1009763D0;\n  sub_10028CC30((_OWORD *)((char *)v8 + 316));\n  v8[21] = 0;\n  *((_QWORD *)v8 + 44) = 0;\n  *(double *)&v9 = sub_10028CC60(&v11, v13);\n  if ( EditButtonBar::init((EditButtonBar *)v8, v12, v9, (int)&v11, a4, (unsigned __int8)v14, a6) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v8 + 16LL))(v8);\n    return nullptr;\n  }\n  return (EditButtonBar *)v8;\n}", "assembly": "; \n; EditButtonBar::create from 0x1005e1c20 to 0x1005e1ce1 (193 bytes)\n; \n; 15 xrefs:\n; > EditorUI::setupCreateMenu @ 0x100013d2e\n; > EditorUI::setupCreateMenu @ 0x100014425\n; > EditorUI::setupCreateMenu @ 0x10001550e\n; > EditorUI::setupCreateMenu @ 0x100015abc\n; > EditorUI::setupCreateMenu @ 0x10001714b\n; > EditorUI::setupCreateMenu @ 0x100017791\n; > EditorUI::setupCreateMenu @ 0x100018965\n; > EditorUI::setupCreateMenu @ 0x100023e1f\n; > EditorUI::setupCreateMenu @ 0x100024fb6\n; > EditorUI::setupCreateMenu @ 0x100026856\n; > EditorUI::setupCreateMenu @ 0x10002843f\n; > EditorUI::setupCreateMenu @ 0x100028ff5\n; > EditorUI::setupCreateMenu @ 0x100029ef4\n; > EditorUI::setupCreateMenu @ 0x100029f96\n; > EditorUI::createMoveMenu @ 0x100047fba\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    rbp                                                            ; +0x0, 0x1005e1c20\nmov     rbp, rsp                                                       ; +0x1, 0x1005e1c21\npush    r15                                                            ; +0x4, 0x1005e1c24\npush    r14                                                            ; +0x6, 0x1005e1c26\npush    r13                                                            ; +0x8, 0x1005e1c28\npush    r12                                                            ; +0xa, 0x1005e1c2a\npush    rbx                                                            ; +0xc, 0x1005e1c2c\nsub     rsp, 28h                                                       ; +0xd, 0x1005e1c2d\nmov     r15d, r9d                                                      ; +0x11, 0x1005e1c31\nmov     r13d, r8d                                                      ; +0x14, 0x1005e1c34\nmov     [rbp+var_2C], ecx                                              ; +0x17, 0x1005e1c37\nmov     r14d, edx                                                      ; +0x1a, 0x1005e1c3a\nmov     [rbp+var_38], rsi                                              ; +0x1d, 0x1005e1c3d\nmov     [rbp+var_40], rdi                                              ; +0x21, 0x1005e1c41\nmov     edi, 168h; __sz                                                ; +0x25, 0x1005e1c45\ncall    __Znwm; operator new(ulong)                                    ; +0x2a, 0x1005e1c4a\nmov     rbx, rax                                                       ; +0x2f, 0x1005e1c4f\nmov     rdi, rax                                                       ; +0x32, 0x1005e1c52\ncall    cocos2d__CCNode__CCNode                                        ; +0x35, 0x1005e1c55\nlea     rax, off_1009763D0                                             ; +0x3a, 0x1005e1c5a\nmov     [rbx], rax                                                     ; +0x41, 0x1005e1c61\nmov     rdi, rbx                                                       ; +0x44, 0x1005e1c64\nadd     rdi, 13Ch                                                      ; +0x47, 0x1005e1c67\ncall    sub_10028CC30                                                  ; +0x4e, 0x1005e1c6e\nxorps   xmm0, xmm0                                                     ; +0x53, 0x1005e1c73\nmovups  xmmword ptr [rbx+150h], xmm0                                   ; +0x56, 0x1005e1c76\nmov     qword ptr [rbx+160h], 0                                        ; +0x5d, 0x1005e1c7d\nlea     r12, [rbp+var_48]                                              ; +0x68, 0x1005e1c88\nmov     rdi, r12                                                       ; +0x6c, 0x1005e1c8c\nmov     rsi, [rbp+var_38]                                              ; +0x6f, 0x1005e1c8f\ncall    sub_10028CC60                                                  ; +0x73, 0x1005e1c93\nmov     [rsp+50h+var_50], r15d                                         ; +0x78, 0x1005e1c98\nmovzx   r8d, byte ptr [rbp+var_2C]                                     ; +0x7c, 0x1005e1c9c\nmov     rdi, rbx                                                       ; +0x81, 0x1005e1ca1\nmov     rsi, [rbp+var_40]                                              ; +0x84, 0x1005e1ca4\nmov     rdx, r12                                                       ; +0x88, 0x1005e1ca8\nmov     ecx, r14d                                                      ; +0x8b, 0x1005e1cab\nmov     r9d, r13d                                                      ; +0x8e, 0x1005e1cae\ncall    EditButtonBar__init                                            ; +0x91, 0x1005e1cb1\ntest    al, al                                                         ; +0x96, 0x1005e1cb6\njz      short loc_1005E1CC4                                            ; +0x98, 0x1005e1cb8\nmov     rdi, rbx                                                       ; +0x9a, 0x1005e1cba\ncall    cocos2d__CCObject__autorelease                                 ; +0x9d, 0x1005e1cbd\njmp     short loc_1005E1CCF                                            ; +0xa2, 0x1005e1cc2\nmov     rax, [rbx]                                                     ; +0xa4, 0x1005e1cc4\nmov     rdi, rbx                                                       ; +0xa7, 0x1005e1cc7\ncall    qword ptr [rax+10h]                                            ; +0xaa, 0x1005e1cca\nxor     ebx, ebx                                                       ; +0xad, 0x1005e1ccd\nmov     rax, rbx                                                       ; +0xaf, 0x1005e1ccf\nadd     rsp, 28h                                                       ; +0xb2, 0x1005e1cd2\npop     rbx                                                            ; +0xb6, 0x1005e1cd6\npop     r12                                                            ; +0xb7, 0x1005e1cd7\npop     r13                                                            ; +0xb9, 0x1005e1cd9\npop     r14                                                            ; +0xbb, 0x1005e1cdb\npop     r15                                                            ; +0xbd, 0x1005e1cdd\npop     rbp                                                            ; +0xbf, 0x1005e1cdf\nretn                                                                   ; +0xc0, 0x1005e1ce0", "xrefs": ["EditorUI::setupCreateMenu @ 0x100013d2e", "EditorUI::setupCreateMenu @ 0x100014425", "EditorUI::setupCreateMenu @ 0x10001550e", "EditorUI::setupCreateMenu @ 0x100015abc", "EditorUI::setupCreateMenu @ 0x10001714b", "EditorUI::setupCreateMenu @ 0x100017791", "EditorUI::setupCreateMenu @ 0x100018965", "EditorUI::setupCreateMenu @ 0x100023e1f", "EditorUI::setupCreateMenu @ 0x100024fb6", "EditorUI::setupCreateMenu @ 0x100026856", "EditorUI::setupCreateMenu @ 0x10002843f", "EditorUI::setupCreateMenu @ 0x100028ff5", "EditorUI::setupCreateMenu @ 0x100029ef4", "EditorUI::setupCreateMenu @ 0x100029f96", "EditorUI::createMoveMenu @ 0x100047fba"], "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"}