{"type": "func", "start": 4299639884, "end": 4299640136, "name": "EditorUI::getCreateMenuItemButton", "pseudocode": "// \n// EditorUI::getCreateMenuItemButton from 0x100474c4c to 0x100474d48 (252 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createCustomItems @ 0x100184a00\n// > EditorUI::createCustomItems @ 0x100184a50\n// > EditorUI::createCustomItems @ 0x100184aa0\n// > EditorUI::createCustomItems @ 0x100184af0\n// \n// This function is hookable on this platform (idp: arm, 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 11:05:40 +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        double *a7,\n        float a8)\n{\n  const char *v14; // x4\n  void *v15; // x24\n  float *v16; // x21\n  __int64 v18; // [xsp+8h] [xbp-48h] BYREF\n\n  if ( (unsigned int)(a6 - 2) > 4 )\n    v14 = \"GJ_button_01.png\";\n  else\n    v14 = off_10096D770[a6 - 2];\n  v15 = ButtonSprite::create(a2, 32, 0, 1, (__int64)v14, 1, 32.0, 1.0, 0.0);\n  v16 = (float *)CreateMenuItem::create((__int64)v15, 0, a1, a3, a4);\n  (*(void (__fastcall **)(float *, float))(*(_QWORD *)v16 + 160LL))(v16, a8);\n  v16[101] = a8;\n  if ( a5 )\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v16);\n  sub_1000262F4(&v18, a7);\n  sub_1000687DC((__int64)v15, (double *)&v18);\n  return v16;\n}", "assembly": "; \n; EditorUI::getCreateMenuItemButton from 0x100474c4c to 0x100474d48 (252 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createCustomItems @ 0x100184a00\n; > EditorUI::createCustomItems @ 0x100184a50\n; > EditorUI::createCustomItems @ 0x100184aa0\n; > EditorUI::createCustomItems @ 0x100184af0\n; \n; This function is hookable on this platform (idp: arm, 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 11:05:40 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x100474c4c\nSTP             D9, D8, [SP,#0x50+var_40]                              ; +0x4, 0x100474c50\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x100474c54\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x100474c58\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x100474c5c\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x100474c60\nADD             X29, SP, #0x50                                         ; +0x18, 0x100474c64\nMOV             X19, X6                                                ; +0x1c, 0x100474c68\nFMOV            S8, S0                                                 ; +0x20, 0x100474c6c\nMOV             X20, X4                                                ; +0x24, 0x100474c70\nMOV             X21, X3                                                ; +0x28, 0x100474c74\nMOV             X22, X2                                                ; +0x2c, 0x100474c78\nMOV             X23, X0                                                ; +0x30, 0x100474c7c\nSUB             W8, W5, #2                                             ; +0x34, 0x100474c80\nCMP             W8, #4                                                 ; +0x38, 0x100474c84\nB.HI            loc_100474C9C                                          ; +0x3c, 0x100474c88\nADRL            X9, off_10096D770; \"GJ_button_02.png\"                  ; +0x40, 0x100474c8c\nLDR             X4, [X9,W8,UXTW#3]                                     ; +0x48, 0x100474c94\nB               loc_100474CA4                                          ; +0x4c, 0x100474c98\nADRL            X4, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x50, 0x100474c9c\nMOVI            V0.2S, #0x42,LSL#24 ; 'B'                              ; +0x58, 0x100474ca4\nFMOV            S1, #1.0                                               ; +0x5c, 0x100474ca8\nFMOV            S2, WZR                                                ; +0x60, 0x100474cac\nMOV             X0, X1                                                 ; +0x64, 0x100474cb0\nMOV             W1, #0x20 ; ' '                                        ; +0x68, 0x100474cb4\nMOV             W2, #0                                                 ; +0x6c, 0x100474cb8\nMOV             W3, #1                                                 ; +0x70, 0x100474cbc\nMOV             W5, #1                                                 ; +0x74, 0x100474cc0\nBL              ButtonSprite__create                                   ; +0x78, 0x100474cc4\nMOV             X24, X0                                                ; +0x7c, 0x100474cc8\nMOV             X1, #0                                                 ; +0x80, 0x100474ccc\nMOV             X2, X23                                                ; +0x84, 0x100474cd0\nMOV             X3, X22                                                ; +0x88, 0x100474cd4\nMOV             X4, X21                                                ; +0x8c, 0x100474cd8\nBL              CreateMenuItem__create                                 ; +0x90, 0x100474cdc\nMOV             X21, X0                                                ; +0x94, 0x100474ce0\nLDR             X8, [X0]                                               ; +0x98, 0x100474ce4\nLDR             X8, [X8,#0xA0]                                         ; +0x9c, 0x100474ce8\nFMOV            S0, S8                                                 ; +0xa0, 0x100474cec\nBLR             X8                                                     ; +0xa4, 0x100474cf0\nSTR             S8, [X21,#0x194]                                       ; +0xa8, 0x100474cf4\nCBZ             X20, loc_100474D10                                     ; +0xac, 0x100474cf8\nLDR             X8, [X20]                                              ; +0xb0, 0x100474cfc\nLDR             X8, [X8,#0x1C8]                                        ; +0xb4, 0x100474d00\nMOV             X0, X20                                                ; +0xb8, 0x100474d04\nMOV             X1, X21                                                ; +0xbc, 0x100474d08\nBLR             X8                                                     ; +0xc0, 0x100474d0c\nADD             X0, SP, #0x50+var_48                                   ; +0xc4, 0x100474d10\nMOV             X1, X19                                                ; +0xc8, 0x100474d14\nBL              sub_1000262F4                                          ; +0xcc, 0x100474d18\nADD             X1, SP, #0x50+var_48                                   ; +0xd0, 0x100474d1c\nMOV             X0, X24                                                ; +0xd4, 0x100474d20\nBL              sub_1000687DC                                          ; +0xd8, 0x100474d24\nMOV             X0, X21                                                ; +0xdc, 0x100474d28\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xe0, 0x100474d2c\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xe4, 0x100474d30\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xe8, 0x100474d34\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xec, 0x100474d38\nLDP             D9, D8, [SP,#0x50+var_40]                              ; +0xf0, 0x100474d3c\nADD             SP, SP, #0x60 ; '`'                                    ; +0xf4, 0x100474d40\nRET                                                                    ; +0xf8, 0x100474d44", "xrefs": ["EditorUI::createCustomItems @ 0x100184a00", "EditorUI::createCustomItems @ 0x100184a50", "EditorUI::createCustomItems @ 0x100184aa0", "EditorUI::createCustomItems @ 0x100184af0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}