{"type": "func", "start": 4299059816, "end": 4299060064, "name": "EditorUI::getCreateMenuItemButton", "pseudocode": "// \n// EditorUI::getCreateMenuItemButton from 0x1003e7268 to 0x1003e7360 (248 bytes)\n// \n// 4 xrefs:\n// > EditorUI::createCustomItems @ 0x1003e8d68\n// > EditorUI::createCustomItems @ 0x1003e8db8\n// > EditorUI::createCustomItems @ 0x1003e8e08\n// > EditorUI::createCustomItems @ 0x1003e8e58\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\nCreateMenuItem *__fastcall EditorUI::getCreateMenuItemButton(\n        EditorUI *a1,\n        cocos2d::CCSprite *a2,\n        cocos2d::SEL_MenuHandler a3,\n        cocos2d::CCMenu *a4,\n        float a5,\n        int a6,\n        cocos2d::CCPoint a7)\n{\n  __int64 *v7; // x6\n  __int64 *v8; // x19\n  size_t adj; // x21\n  void (__cdecl *ptr)(cocos2d::CCObject *); // x22\n  const char *v14; // x4\n  ButtonSprite *v15; // x24\n  CreateMenuItem *v16; // x21\n  __int64 v18; // [xsp+8h] [xbp-48h] BYREF\n  cocos2d::SEL_MenuHandler v19; // 0:x3.16\n  cocos2d::CCPoint v20; // 0:s0.4,4:s1.4\n\n  v8 = v7;\n  adj = a3.adj;\n  ptr = a3.ptr;\n  if ( (unsigned int)(a6 - 2) > 4 )\n    v14 = \"GJ_button_01.png\";\n  else\n    v14 = off_100815A48[a6 - 2];\n  v15 = ButtonSprite::create(a2, 32, 0, 32.0, 1.0, 1, v14, 1);\n  v19.ptr = ptr;\n  v19.adj = adj;\n  v16 = CreateMenuItem::create(v15, nullptr, a1, v19);\n  ((void (__fastcall *)(CreateMenuItem *, float))v16->setScale)(v16, a5);\n  v16->m_baseScale = a5;\n  if ( a4 )\n    ((void (__fastcall *)(cocos2d::CCMenu *, CreateMenuItem *))a4->addChild)(a4, v16);\n  v20.x = sub_1000229B8(&v18, v8);\n  ButtonSprite::updateSpriteOffset(v15, v20);\n  return v16;\n}", "assembly": "; \n; EditorUI::getCreateMenuItemButton from 0x1003e7268 to 0x1003e7360 (248 bytes)\n; \n; 4 xrefs:\n; > EditorUI::createCustomItems @ 0x1003e8d68\n; > EditorUI::createCustomItems @ 0x1003e8db8\n; > EditorUI::createCustomItems @ 0x1003e8e08\n; > EditorUI::createCustomItems @ 0x1003e8e58\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1003e7268\nSTP             D9, D8, [SP,#0x50+var_40]                              ; +0x4, 0x1003e726c\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x1003e7270\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x1003e7274\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x1003e7278\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x1003e727c\nADD             X29, SP, #0x50                                         ; +0x18, 0x1003e7280\nMOV             X19, X6                                                ; +0x1c, 0x1003e7284\nFMOV            S8, S0                                                 ; +0x20, 0x1003e7288\nMOV             X20, X4                                                ; +0x24, 0x1003e728c\nMOV             X21, X3                                                ; +0x28, 0x1003e7290\nMOV             X22, X2                                                ; +0x2c, 0x1003e7294\nMOV             X23, X0                                                ; +0x30, 0x1003e7298\nSUB             W8, W5, #2                                             ; +0x34, 0x1003e729c\nCMP             W8, #4                                                 ; +0x38, 0x1003e72a0\nB.HI            loc_1003E72B8                                          ; +0x3c, 0x1003e72a4\nADRL            X9, off_100815A48; \"GJ_button_02.png\"                  ; +0x40, 0x1003e72a8\nLDR             X4, [X9,W8,UXTW#3]                                     ; +0x48, 0x1003e72b0\nB               loc_1003E72C0                                          ; +0x4c, 0x1003e72b4\nADRL            X4, aGjButton01Png; \"GJ_button_01.png\"                 ; +0x50, 0x1003e72b8\nMOVI            V0.2S, #0x42,LSL#24 ; 'B'                              ; +0x58, 0x1003e72c0\nFMOV            S1, #1.0                                               ; +0x5c, 0x1003e72c4\nMOV             X0, X1                                                 ; +0x60, 0x1003e72c8\nMOV             W1, #0x20 ; ' '                                        ; +0x64, 0x1003e72cc\nMOV             W2, #0                                                 ; +0x68, 0x1003e72d0\nMOV             W3, #1                                                 ; +0x6c, 0x1003e72d4\nMOV             W5, #1                                                 ; +0x70, 0x1003e72d8\nBL              ButtonSprite__create                                   ; +0x74, 0x1003e72dc\nMOV             X24, X0                                                ; +0x78, 0x1003e72e0\nMOV             X1, #0                                                 ; +0x7c, 0x1003e72e4\nMOV             X2, X23                                                ; +0x80, 0x1003e72e8\nMOV             X3, X22                                                ; +0x84, 0x1003e72ec\nMOV             X4, X21                                                ; +0x88, 0x1003e72f0\nBL              CreateMenuItem__create                                 ; +0x8c, 0x1003e72f4\nMOV             X21, X0                                                ; +0x90, 0x1003e72f8\nLDR             X8, [X0]                                               ; +0x94, 0x1003e72fc\nLDR             X8, [X8,#0xA0]                                         ; +0x98, 0x1003e7300\nFMOV            S0, S8                                                 ; +0x9c, 0x1003e7304\nBLR             X8                                                     ; +0xa0, 0x1003e7308\nSTR             S8, [X21,#0x194]                                       ; +0xa4, 0x1003e730c\nCBZ             X20, loc_1003E7328                                     ; +0xa8, 0x1003e7310\nLDR             X8, [X20]                                              ; +0xac, 0x1003e7314\nLDR             X8, [X8,#0x1B8]                                        ; +0xb0, 0x1003e7318\nMOV             X0, X20                                                ; +0xb4, 0x1003e731c\nMOV             X1, X21                                                ; +0xb8, 0x1003e7320\nBLR             X8                                                     ; +0xbc, 0x1003e7324\nADD             X0, SP, #0x50+var_48                                   ; +0xc0, 0x1003e7328\nMOV             X1, X19                                                ; +0xc4, 0x1003e732c\nBL              sub_1000229B8                                          ; +0xc8, 0x1003e7330\nADD             X1, SP, #0x50+var_48                                   ; +0xcc, 0x1003e7334\nMOV             X0, X24                                                ; +0xd0, 0x1003e7338\nBL              ButtonSprite__updateSpriteOffset                       ; +0xd4, 0x1003e733c\nMOV             X0, X21                                                ; +0xd8, 0x1003e7340\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xdc, 0x1003e7344\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xe0, 0x1003e7348\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xe4, 0x1003e734c\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xe8, 0x1003e7350\nLDP             D9, D8, [SP,#0x50+var_40]                              ; +0xec, 0x1003e7354\nADD             SP, SP, #0x60 ; '`'                                    ; +0xf0, 0x1003e7358\nRET                                                                    ; +0xf4, 0x1003e735c", "xrefs": ["EditorUI::createCustomItems @ 0x1003e8d68", "EditorUI::createCustomItems @ 0x1003e8db8", "EditorUI::createCustomItems @ 0x1003e8e08", "EditorUI::createCustomItems @ 0x1003e8e58"], "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"}