{"type": "func", "start": 4295023184, "end": 4295023417, "name": "EditorUI::getCreateMenuItemButton", "pseudocode": "// \n// EditorUI::getCreateMenuItemButton from 0x10000da50 to 0x10000db39 (233 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createCustomItems @ 0x1006386ee\n// > EditorUI::createCustomItems @ 0x100638741\n// > EditorUI::createCustomItems @ 0x100638794\n// > EditorUI::createCustomItems @ 0x1006387eb\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:18:50 +0000\n// \n\nfloat *__fastcall EditorUI::getCreateMenuItemButton(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        int a6,\n        float a7,\n        __int64 a8)\n{\n  unsigned int v11; // r9d\n  const char *v12; // r8\n  __int64 v13; // r14\n  float *v14; // r15\n  _BYTE v16[8]; // [rsp+Ch] [rbp-34h] BYREF\n  float v17; // [rsp+14h] [rbp-2Ch]\n\n  v17 = a7;\n  v11 = a6 - 2;\n  if ( v11 > 4 )\n    v12 = \"GJ_button_01.png\";\n  else\n    v12 = off_100AB5540[v11];\n  v13 = ButtonSprite::create(a2, 32, 0, 1, v12, 1, 32.0, 1.0, 0.0);\n  v14 = (float *)CreateMenuItem::create(v13, 0, a1, a3, a4);\n  (*(void (__fastcall **)(float *, float))(*(_QWORD *)v14 + 160LL))(v14, v17);\n  v14[101] = v17;\n  if ( a5 )\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v14);\n  sub_1002782D0(v16, a8);\n  ButtonSprite::updateSpriteOffset(v13, v16);\n  return v14;\n}", "assembly": "; \n; EditorUI::getCreateMenuItemButton from 0x10000da50 to 0x10000db39 (233 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createCustomItems @ 0x1006386ee\n; > EditorUI::createCustomItems @ 0x100638741\n; > EditorUI::createCustomItems @ 0x100638794\n; > EditorUI::createCustomItems @ 0x1006387eb\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:18:50 +0000\n; \npush    rbp                                                            ; +0x0, 0x10000da50\nmov     rbp, rsp                                                       ; +0x1, 0x10000da51\npush    r15                                                            ; +0x4, 0x10000da54\npush    r14                                                            ; +0x6, 0x10000da56\npush    r13                                                            ; +0x8, 0x10000da58\npush    r12                                                            ; +0xa, 0x10000da5a\npush    rbx                                                            ; +0xc, 0x10000da5c\nsub     rsp, 18h                                                       ; +0xd, 0x10000da5d\nmovss   [rbp+var_2C], xmm0                                             ; +0x11, 0x10000da61\nmov     rbx, r8                                                        ; +0x16, 0x10000da66\nmov     r15, rcx                                                       ; +0x19, 0x10000da69\nmov     r12, rdx                                                       ; +0x1c, 0x10000da6c\nmov     r13, rdi                                                       ; +0x1f, 0x10000da6f\nadd     r9d, 0FFFFFFFEh                                                ; +0x22, 0x10000da72\ncmp     r9d, 4                                                         ; +0x26, 0x10000da76\nja      short loc_10000DA8C                                            ; +0x2a, 0x10000da7a\nmov     eax, r9d                                                       ; +0x2c, 0x10000da7c\nlea     rcx, off_100AB5540; \"GJ_button_02.png\"                         ; +0x2f, 0x10000da7f\nmov     r8, [rcx+rax*8]                                                ; +0x36, 0x10000da86\njmp     short loc_10000DA93                                            ; +0x3a, 0x10000da8a\nlea     r8, aGjButton01Png; \"GJ_button_01.png\"                         ; +0x3c, 0x10000da8c\nmovss   xmm0, cs:dword_100A0376C                                       ; +0x43, 0x10000da93\nmovss   xmm1, cs:alpha                                                 ; +0x4b, 0x10000da9b\nxorps   xmm2, xmm2                                                     ; +0x53, 0x10000daa3\nmov     rdi, rsi                                                       ; +0x56, 0x10000daa6\nmov     esi, 20h ; ' '                                                 ; +0x59, 0x10000daa9\nxor     edx, edx                                                       ; +0x5e, 0x10000daae\nmov     ecx, 1                                                         ; +0x60, 0x10000dab0\nmov     r9d, 1                                                         ; +0x65, 0x10000dab5\ncall    ButtonSprite__create                                           ; +0x6b, 0x10000dabb\nmov     r14, rax                                                       ; +0x70, 0x10000dac0\nmov     rdi, rax                                                       ; +0x73, 0x10000dac3\nxor     esi, esi                                                       ; +0x76, 0x10000dac6\nmov     rdx, r13                                                       ; +0x78, 0x10000dac8\nmov     rcx, r12                                                       ; +0x7b, 0x10000dacb\nmov     r8, r15                                                        ; +0x7e, 0x10000dace\ncall    CreateMenuItem__create                                         ; +0x81, 0x10000dad1\nmov     r15, rax                                                       ; +0x86, 0x10000dad6\nmov     rax, [rax]                                                     ; +0x89, 0x10000dad9\nmov     rdi, r15                                                       ; +0x8c, 0x10000dadc\nmovss   xmm0, [rbp+var_2C]                                             ; +0x8f, 0x10000dadf\ncall    qword ptr [rax+0A0h]                                           ; +0x94, 0x10000dae4\nmovss   xmm0, [rbp+var_2C]                                             ; +0x9a, 0x10000daea\nmovss   dword ptr [r15+194h], xmm0                                     ; +0x9f, 0x10000daef\ntest    rbx, rbx                                                       ; +0xa8, 0x10000daf8\njz      short loc_10000DB0C                                            ; +0xab, 0x10000dafb\nmov     rax, [rbx]                                                     ; +0xad, 0x10000dafd\nmov     rdi, rbx                                                       ; +0xb0, 0x10000db00\nmov     rsi, r15                                                       ; +0xb3, 0x10000db03\ncall    qword ptr [rax+1C8h]                                           ; +0xb6, 0x10000db06\nlea     rbx, [rbp+var_34]                                              ; +0xbc, 0x10000db0c\nmov     rdi, rbx                                                       ; +0xc0, 0x10000db10\nmov     rsi, [rbp+arg_0]                                               ; +0xc3, 0x10000db13\ncall    sub_1002782D0                                                  ; +0xc7, 0x10000db17\nmov     rdi, r14                                                       ; +0xcc, 0x10000db1c\nmov     rsi, rbx                                                       ; +0xcf, 0x10000db1f\ncall    ButtonSprite__updateSpriteOffset                               ; +0xd2, 0x10000db22\nmov     rax, r15                                                       ; +0xd7, 0x10000db27\nadd     rsp, 18h                                                       ; +0xda, 0x10000db2a\npop     rbx                                                            ; +0xde, 0x10000db2e\npop     r12                                                            ; +0xdf, 0x10000db2f\npop     r13                                                            ; +0xe1, 0x10000db31\npop     r14                                                            ; +0xe3, 0x10000db33\npop     r15                                                            ; +0xe5, 0x10000db35\npop     rbp                                                            ; +0xe7, 0x10000db37\nretn                                                                   ; +0xe8, 0x10000db38", "xrefs": ["EditorUI::createCustomItems @ 0x1006386ee", "EditorUI::createCustomItems @ 0x100638741", "EditorUI::createCustomItems @ 0x100638794", "EditorUI::createCustomItems @ 0x1006387eb"], "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"}