{"type": "func", "start": 4304267872, "end": 4304268031, "name": "EditorCommandsPopup::addCommandButton", "pseudocode": "// \n// EditorCommandsPopup::addCommandButton from 0x1008dea60 to 0x1008deaff (159 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:37:45 +0000\n// \n\n__int64 __fastcall EditorCommandsPopup::addCommandButton(__int64 a1, __int64 a2, unsigned int a3)\n{\n  char *v4; // r15\n  void *v5; // r15\n\n  v4 = ButtonSprite::create_1(a2, 0x104u, 0, 1u, (__int64)\"bigFont.fnt\", (__int64)\"GJ_button_04.png\", 0.80000001, 32.0);\n  (*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.5);\n  v5 = CCMenuItemSpriteExtra::create((__int64)v4, 0, a1, (__int64)EditorCommandsPopup::onCommand, 0);\n  (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v5 + 72LL))(v5, a3);\n  return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v5);\n}", "assembly": "; \n; EditorCommandsPopup::addCommandButton from 0x1008dea60 to 0x1008deaff (159 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:37:45 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008dea60\nmov     rbp, rsp                                                       ; +0x1, 0x1008dea61\npush    r15                                                            ; +0x4, 0x1008dea64\npush    r14                                                            ; +0x6, 0x1008dea66\npush    rbx                                                            ; +0x8, 0x1008dea68\npush    rax                                                            ; +0x9, 0x1008dea69\nmov     r14d, edx                                                      ; +0xa, 0x1008dea6a\nmov     rbx, rdi                                                       ; +0xd, 0x1008dea6d\nlea     r8, aBigfontFnt; \"bigFont.fnt\"                                 ; +0x10, 0x1008dea70\nlea     r9, aGjButton04Png; \"GJ_button_04.png\"                         ; +0x17, 0x1008dea77\nmovss   xmm0, cs:dword_100A03588                                       ; +0x1e, 0x1008dea7e\nmovss   xmm1, cs:dword_100A0376C                                       ; +0x26, 0x1008dea86\nmov     rdi, rsi                                                       ; +0x2e, 0x1008dea8e\nmov     esi, 104h                                                      ; +0x31, 0x1008dea91\nxor     edx, edx                                                       ; +0x36, 0x1008dea96\nmov     ecx, 1                                                         ; +0x38, 0x1008dea98\ncall    ButtonSprite__create_1                                         ; +0x3d, 0x1008dea9d\nmov     r15, rax                                                       ; +0x42, 0x1008deaa2\nmov     rax, [rax]                                                     ; +0x45, 0x1008deaa5\nmovss   xmm0, cs:dword_100A03578                                       ; +0x48, 0x1008deaa8\nmov     rdi, r15                                                       ; +0x50, 0x1008deab0\ncall    qword ptr [rax+0A0h]                                           ; +0x53, 0x1008deab3\nlea     rcx, EditorCommandsPopup__onCommand                            ; +0x59, 0x1008deab9\nmov     rdi, r15                                                       ; +0x60, 0x1008deac0\nxor     esi, esi                                                       ; +0x63, 0x1008deac3\nmov     rdx, rbx                                                       ; +0x65, 0x1008deac5\nxor     r8d, r8d                                                       ; +0x68, 0x1008deac8\ncall    CCMenuItemSpriteExtra__create                                  ; +0x6b, 0x1008deacb\nmov     r15, rax                                                       ; +0x70, 0x1008dead0\nmov     rax, [rax]                                                     ; +0x73, 0x1008dead3\nmov     rdi, r15                                                       ; +0x76, 0x1008dead6\nmov     esi, r14d                                                      ; +0x79, 0x1008dead9\ncall    qword ptr [rax+48h]                                            ; +0x7c, 0x1008deadc\nmov     rdi, [rbx+418h]                                                ; +0x7f, 0x1008deadf\nmov     rax, [rdi]                                                     ; +0x86, 0x1008deae6\nmov     rax, [rax+1C8h]                                                ; +0x89, 0x1008deae9\nmov     rsi, r15                                                       ; +0x90, 0x1008deaf0\nadd     rsp, 8                                                         ; +0x93, 0x1008deaf3\npop     rbx                                                            ; +0x97, 0x1008deaf7\npop     r14                                                            ; +0x98, 0x1008deaf8\npop     r15                                                            ; +0x9a, 0x1008deafa\npop     rbp                                                            ; +0x9c, 0x1008deafc\njmp     rax                                                            ; +0x9d, 0x1008deafd", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}