{"type": "func", "start": 3654836, "end": 3654906, "name": "EditorUI::getButton", "pseudocode": "// \n// EditorUI::getButton from 0x37c4b4 to 0x37c4fa (70 bytes)\n// \n// 0 xrefs:\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  ButtonSprite *v6; // r0\n  CCMenuItemSpriteExtra *v7; // r5\n  unsigned int varg_r3; // [sp+1Ch] [bp+10h]\n\n  v6 = ButtonSprite::create((ButtonSprite *)a2, (const char *)a3, 0, 1.0, COERCE_FLOAT(1), (bool)a2);\n  v7 = CCMenuItemSpriteExtra::create(v6, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(varg_r3, (unsigned int)a1));\n  if ( a5 )\n    a5->addChild(a5, v7);\n  return v7;\n}", "assembly": "; \n; EditorUI::getButton from 0x37c4b4 to 0x37c4fa (70 bytes)\n; \n; 0 xrefs:\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, #8                                             ; +0x0, 0x37c4b4\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x2, 0x37c4b6\nMOV             R5, R0                                                 ; +0x4, 0x37c4b8\nSTR             R3, [SP,#0xC+varg_r3]                                  ; +0x6, 0x37c4ba\nMOV             R0, R1; this                                           ; +0x8, 0x37c4bc\nMOVS            R3, #1                                                 ; +0xa, 0x37c4be\nMOV             R1, R2; char *                                         ; +0xc, 0x37c4c0\nSTR             R3, [SP,#0xC+var_C]; float                             ; +0xe, 0x37c4c2\nMOVS            R2, #0; int                                            ; +0x10, 0x37c4c4\nMOV.W           R3, #0x3F800000; int                                   ; +0x12, 0x37c4c6\nLDR             R4, [SP,#0xC+arg_4]                                    ; +0x16, 0x37c4ca\nBL              _ZN12ButtonSprite6createEPKciifb; ButtonSprite::create(char const*,int,int,float,bool) ; +0x18, 0x37c4cc\nLDR             R3, [SP,#0xC+arg_0]                                    ; +0x1c, 0x37c4d0\nMOV             R2, R5                                                 ; +0x1e, 0x37c4d2\nMOVS            R1, #0                                                 ; +0x20, 0x37c4d4\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x22, 0x37c4d6\nLDR             R3, [SP,#0xC+varg_r3]                                  ; +0x24, 0x37c4d8\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x26, 0x37c4da\nMOV             R5, R0                                                 ; +0x2a, 0x37c4de\nCBZ             R4, loc_37C4EE                                         ; +0x2c, 0x37c4e0\nLDR             R3, [R4]                                               ; +0x2e, 0x37c4e2\nMOV             R0, R4                                                 ; +0x30, 0x37c4e4\nMOV             R1, R5                                                 ; +0x32, 0x37c4e6\nLDR.W           R3, [R3,#0xDC]                                         ; +0x34, 0x37c4e8\nBLX             R3                                                     ; +0x38, 0x37c4ec\nMOV             R0, R5                                                 ; +0x3a, 0x37c4ee\nADD             SP, SP, #0xC                                           ; +0x3c, 0x37c4f0\nPOP.W           {R4,R5,LR}                                             ; +0x3e, 0x37c4f2\nADD             SP, SP, #8                                             ; +0x42, 0x37c4f6\nBX              LR                                                     ; +0x44, 0x37c4f8", "xrefs": [], "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"}