{"type": "func", "start": 6845260, "end": 6845388, "name": "EditorUI::getButton", "pseudocode": "// \n// EditorUI::getButton from 0x68734c to 0x6873cc (128 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa8c18\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\nCCMenuItemSpriteExtra *EditorUI::getButton(\n        EditorUI *a1,\n        const char *a2,\n        int a3,\n        cocos2d::SEL_MenuHandler a4,\n        cocos2d::CCMenu *a5)\n{\n  const char *v5; // x6\n  void (__cdecl *ptr)(cocos2d::CCObject *); // x20\n  cocos2d::CCNode *v8; // x0\n  CCMenuItemSpriteExtra *v9; // x19\n  cocos2d::SEL_MenuHandler v12; // 0:x2.16\n\n  ptr = a4.ptr;\n  v8 = (cocos2d::CCNode *)ButtonSprite::create(\n                            (ButtonSprite *)a2,\n                            (const char *)(unsigned int)a3,\n                            0,\n                            1,\n                            1.0,\n                            a4.adj,\n                            (__int64)a5,\n                            v5);\n  v12.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;\n  v12.adj = (size_t)ptr;\n  v9 = CCMenuItemSpriteExtra::create(v8, nullptr, v12);\n  if ( a5 )\n    a5->addChild(a5, v9);\n  return v9;\n}", "assembly": "; \n; EditorUI::getButton from 0x68734c to 0x6873cc (128 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa8c18\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x68734c\nFMOV            S0, #1.0; float                                        ; +0x4, 0x687350\nMOV             X29, SP                                                ; +0x8, 0x687354\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x687358\nMOV             X19, X0                                                ; +0x10, 0x68735c\nMOV             X20, X3                                                ; +0x14, 0x687360\nMOV             X0, X1; this                                           ; +0x18, 0x687364\nMOV             W3, #1; int                                            ; +0x1c, 0x687368\nMOV             W1, W2; char *                                         ; +0x20, 0x68736c\nMOV             W2, #0; int                                            ; +0x24, 0x687370\nSTR             X5, [X29,#0x40+var_8]                                  ; +0x28, 0x687374\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x2c, 0x687378\nMOV             X21, X4                                                ; +0x30, 0x68737c\nBL              _ZN12ButtonSprite6createEPKciifb; ButtonSprite::create(char const*,int,int,float,bool) ; +0x34, 0x687380\nMOV             X2, X19                                                ; +0x38, 0x687384\nMOV             X1, #0                                                 ; +0x3c, 0x687388\nMOV             X3, X20                                                ; +0x40, 0x68738c\nMOV             X4, X21                                                ; +0x44, 0x687390\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x48, 0x687394\nMOV             X19, X0                                                ; +0x4c, 0x687398\nLDR             X5, [X29,#0x40+var_8]                                  ; +0x50, 0x68739c\nCBZ             X5, loc_6873B8                                         ; +0x54, 0x6873a0\nLDR             X2, [X5]                                               ; +0x58, 0x6873a4\nMOV             X0, X5                                                 ; +0x5c, 0x6873a8\nMOV             X1, X19                                                ; +0x60, 0x6873ac\nLDR             X2, [X2,#0x1B8]                                        ; +0x64, 0x6873b0\nBLR             X2                                                     ; +0x68, 0x6873b4\nMOV             X0, X19                                                ; +0x6c, 0x6873b8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x70, 0x6873bc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x74, 0x6873c0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0x6873c4\nRET                                                                    ; +0x7c, 0x6873c8", "xrefs": ["<???> @ 0xa8c18"], "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"}