{"type": "func", "start": 8130952, "end": 8131316, "name": "EditorUI::getCreateMenuItemButton", "pseudocode": "// \n// EditorUI::getCreateMenuItemButton from 0x7c1188 to 0x7c12f4 (364 bytes)\n// \n// 5 xrefs:\n// > EditorUI::createCustomItems @ 0xbdfc98\n// > EditorUI::createCustomItems @ 0xbdfcf0\n// > EditorUI::createCustomItems @ 0xbdfd48\n// > EditorUI::createCustomItems @ 0xbdfda0\n// > <???> @ 0xbbac8\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 12:54:06 +0000\n// \n\nfloat *__fastcall EditorUI::getCreateMenuItemButton(\n        __int64 a1,\n        ButtonSprite *this,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        int a6,\n        const cocos2d::CCPoint *a7,\n        float a8)\n{\n  char *v14; // x4\n  ButtonSprite *v15; // x26\n  float *v16; // x21\n  _BYTE v18[8]; // [xsp+60h] [xbp+60h] BYREF\n\n  switch ( a6 )\n  {\n    case 2:\n      v14 = \"GJ_button_02.png\";\n      break;\n    case 3:\n      v14 = \"GJ_button_03.png\";\n      break;\n    case 4:\n      v14 = \"GJ_button_04.png\";\n      break;\n    case 5:\n      v14 = \"GJ_button_05.png\";\n      break;\n    case 6:\n      v14 = \"GJ_button_06.png\";\n      break;\n    default:\n      v14 = \"GJ_button_01.png\";\n      break;\n  }\n  v15 = (ButtonSprite *)ButtonSprite::create(\n                          this,\n                          (cocos2d::CCSprite *)&qword_20,\n                          0,\n                          (char)&dword_0 + 1,\n                          32.0,\n                          1.0,\n                          (cocos2d::CCSprite *)v14,\n                          (const char *)&dword_0 + 1,\n                          0.0);\n  v16 = (float *)CreateMenuItem::create(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  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a7);\n  ButtonSprite::updateSpriteOffset(v15, (__int64)v18);\n  return v16;\n}", "assembly": "; \n; EditorUI::getCreateMenuItemButton from 0x7c1188 to 0x7c12f4 (364 bytes)\n; \n; 5 xrefs:\n; > EditorUI::createCustomItems @ 0xbdfc98\n; > EditorUI::createCustomItems @ 0xbdfcf0\n; > EditorUI::createCustomItems @ 0xbdfd48\n; > EditorUI::createCustomItems @ 0xbdfda0\n; > <???> @ 0xbbac8\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 12:54:06 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x7c1188\nSUB             W5, W5, #2; switch 5 cases                             ; +0x4, 0x7c118c\nMOV             X29, SP                                                ; +0x8, 0x7c1190\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0xc, 0x7c1194\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7c1198\nMOV             X19, X0                                                ; +0x14, 0x7c119c\nMOV             X0, X1; this                                           ; +0x18, 0x7c11a0\nCMP             W5, #4                                                 ; +0x1c, 0x7c11a4\nSTP             X23, X24, [SP,#0x70+var_40]                            ; +0x20, 0x7c11a8\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x7c11ac\nMOV             X23, X3                                                ; +0x28, 0x7c11b0\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x2c, 0x7c11b4\nSTP             X25, X26, [SP,#0x70+var_30]                            ; +0x30, 0x7c11b8\nSTR             D8, [SP,#0x70+var_20]                                  ; +0x34, 0x7c11bc\nMOV             X22, X2                                                ; +0x38, 0x7c11c0\nLDR             X1, [X1]                                               ; +0x3c, 0x7c11c4\nMOV             X25, X4                                                ; +0x40, 0x7c11c8\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x44, 0x7c11cc\nMOV             X24, X6                                                ; +0x48, 0x7c11d0\nFMOV            S8, S0                                                 ; +0x4c, 0x7c11d4\nB.LS            loc_7C129C                                             ; +0x50, 0x7c11d8\nADRL            X4, aGjButton01Png; jumptable 00000000007C12B0 default case ; +0x54, 0x7c11dc\nLDR             S0, flt_7C12F4; float                                  ; +0x5c, 0x7c11e4\nMOV             W3, #(dword_0+1); int                                  ; +0x60, 0x7c11e8\nFMOV            S2, WZR; float                                         ; +0x64, 0x7c11ec\nMOV             W5, W3; char *                                         ; +0x68, 0x7c11f0\nFMOV            S1, #1.0; float                                        ; +0x6c, 0x7c11f4\nMOV             W1, #qword_20; cocos2d::CCSprite *                     ; +0x70, 0x7c11f8\nMOV             W2, #0; int                                            ; +0x74, 0x7c11fc\nBL              _ZN12ButtonSprite6createEPN7cocos2d8CCSpriteEiiffbPKcbf; ButtonSprite::create(cocos2d::CCSprite *,int,int,float,float,bool,char const*,bool,float) ; +0x78, 0x7c1200\nMOV             X26, X0                                                ; +0x7c, 0x7c1204\nMOV             X1, #0                                                 ; +0x80, 0x7c1208\nMOV             X2, X19                                                ; +0x84, 0x7c120c\nMOV             X3, X22                                                ; +0x88, 0x7c1210\nMOV             X4, X23                                                ; +0x8c, 0x7c1214\nBL              _ZN14CreateMenuItem6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CreateMenuItem::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x90, 0x7c1218\nLDR             X1, [X0]                                               ; +0x94, 0x7c121c\nFMOV            S0, S8                                                 ; +0x98, 0x7c1220\nMOV             X21, X0                                                ; +0x9c, 0x7c1224\nLDR             X1, [X1,#0xA0]                                         ; +0xa0, 0x7c1228\nBLR             X1                                                     ; +0xa4, 0x7c122c\nSTR             S8, [X21,#0x194]                                       ; +0xa8, 0x7c1230\nCBZ             X25, loc_7C124C                                        ; +0xac, 0x7c1234\nLDR             X2, [X25]                                              ; +0xb0, 0x7c1238\nMOV             X0, X25                                                ; +0xb4, 0x7c123c\nMOV             X1, X21                                                ; +0xb8, 0x7c1240\nLDR             X2, [X2,#0x1C8]                                        ; +0xbc, 0x7c1244\nBLR             X2                                                     ; +0xc0, 0x7c1248\nADD             X19, X29, #0x70+var_10                                 ; +0xc4, 0x7c124c\nMOV             X1, X24; cocos2d::CCPoint *                            ; +0xc8, 0x7c1250\nMOV             X0, X19; this                                          ; +0xcc, 0x7c1254\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0xd0, 0x7c1258\nMOV             X0, X26                                                ; +0xd4, 0x7c125c\nMOV             X1, X19                                                ; +0xd8, 0x7c1260\nBL              _ZN12ButtonSprite18updateSpriteOffsetEN7cocos2d7CCPointE; ButtonSprite::updateSpriteOffset(cocos2d::CCPoint) ; +0xdc, 0x7c1264\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0x7c1268\nLDR             X2, [X29,#0x70+var_8]                                  ; +0xe4, 0x7c126c\nMOV             X0, X21                                                ; +0xe8, 0x7c1270\nLDR             X1, [X20]                                              ; +0xec, 0x7c1274\nCMP             X2, X1                                                 ; +0xf0, 0x7c1278\nB.NE            loc_7C12F0                                             ; +0xf4, 0x7c127c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xf8, 0x7c1280\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xfc, 0x7c1284\nLDP             X23, X24, [SP,#0x70+var_40]                            ; +0x100, 0x7c1288\nLDP             X25, X26, [SP,#0x70+var_30]                            ; +0x104, 0x7c128c\nLDR             D8, [SP,#0x70+var_20]                                  ; +0x108, 0x7c1290\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x10c, 0x7c1294\nRET                                                                    ; +0x110, 0x7c1298\nADRL            X1, jpt_7C12B0                                         ; +0x114, 0x7c129c\nLDRB            W1, [X1,W5,UXTW]                                       ; +0x11c, 0x7c12a4\nADR             X2, loc_7C12B4; jumptable 00000000007C12B0 case 2      ; +0x120, 0x7c12a8\nADD             X1, X2, W1,SXTB#2                                      ; +0x124, 0x7c12ac\nBR              X1; switch jump                                        ; +0x128, 0x7c12b0\nADRL            X4, aGjButton02Png; jumptable 00000000007C12B0 case 2  ; +0x12c, 0x7c12b4\nB               loc_7C11E4                                             ; +0x134, 0x7c12bc\nADRL            X4, aGjButton06Png; jumptable 00000000007C12B0 case 6  ; +0x138, 0x7c12c0\nB               loc_7C11E4                                             ; +0x140, 0x7c12c8\nADRL            X4, aGjButton03Png; jumptable 00000000007C12B0 case 3  ; +0x144, 0x7c12cc\nB               loc_7C11E4                                             ; +0x14c, 0x7c12d4\nADRL            X4, aGjButton04Png; jumptable 00000000007C12B0 case 4  ; +0x150, 0x7c12d8\nB               loc_7C11E4                                             ; +0x158, 0x7c12e0\nADRL            X4, aGjButton05Png; jumptable 00000000007C12B0 case 5  ; +0x15c, 0x7c12e4\nB               loc_7C11E4                                             ; +0x164, 0x7c12ec\nBL              .__stack_chk_fail                                      ; +0x168, 0x7c12f0", "xrefs": ["EditorUI::createCustomItems @ 0xbdfc98", "EditorUI::createCustomItems @ 0xbdfcf0", "EditorUI::createCustomItems @ 0xbdfd48", "EditorUI::createCustomItems @ 0xbdfda0", "<???> @ 0xbbac8"], "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"}