{"type": "func", "start": 4724192, "end": 4724290, "name": "EditorUI::getSpriteButton", "pseudocode": "// \n// EditorUI::getSpriteButton from 0x4815e0 to 0x481642 (98 bytes)\n// \n// 20 xrefs:\n// > EditorUI::getSpriteButton @ 0x48168c\n// > EditorUI::init @ 0x48a9b4\n// > EditorUI::setupDeleteMenu @ 0x6f586e\n// > EditorUI::setupDeleteMenu @ 0x6f5b6a\n// > EditorUI::setupDeleteMenu @ 0x6f5bd4\n// > EditorUI::setupDeleteMenu @ 0x6f5c22\n// > EditorUI::setupDeleteMenu @ 0x6f5f60\n// > EditorUI::setupDeleteMenu @ 0x6f5fc0\n// > EditorUI::createMoveMenu @ 0x6f78d4\n// > EditorUI::createMoveMenu @ 0x6f7914\n// > EditorUI::createMoveMenu @ 0x6f7954\n// > EditorUI::createMoveMenu @ 0x6f7994\n// > EditorUI::createMoveMenu @ 0x6f79d4\n// > EditorUI::createMoveMenu @ 0x6f7a60\n// > EditorUI::createMoveMenu @ 0x6f7b34\n// > EditorUI::createMoveMenu @ 0x6f7bc6\n// > EditorUI::createMoveMenu @ 0x6f7c5a\n// > EditorUI::createMoveMenu @ 0x6f7cf0\n// > EditorUI::createMoveMenu @ 0x6f7d86\n// > EditorUI::createViewButton @ 0x70c7e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n// \n\n_DWORD *__fastcall EditorUI::getSpriteButton(\n        int a1,\n        cocos2d::CCSprite *a2,\n        int a3,\n        int a4,\n        int a5,\n        int a6,\n        int a7,\n        const cocos2d::CCPoint *a8,\n        float a9)\n{\n  ButtonSprite *v10; // r7\n  _BYTE v14[8]; // [sp+24h] [bp-Ch] BYREF\n\n  v10 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(a2, (const char *)a2);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, a8);\n  return EditorUI::getSpriteButton(a1, v10, a3, a4, a5, a6, a7, (const cocos2d::CCPoint *)v14, a9);\n}", "assembly": "; \n; EditorUI::getSpriteButton from 0x4815e0 to 0x481642 (98 bytes)\n; \n; 20 xrefs:\n; > EditorUI::getSpriteButton @ 0x48168c\n; > EditorUI::init @ 0x48a9b4\n; > EditorUI::setupDeleteMenu @ 0x6f586e\n; > EditorUI::setupDeleteMenu @ 0x6f5b6a\n; > EditorUI::setupDeleteMenu @ 0x6f5bd4\n; > EditorUI::setupDeleteMenu @ 0x6f5c22\n; > EditorUI::setupDeleteMenu @ 0x6f5f60\n; > EditorUI::setupDeleteMenu @ 0x6f5fc0\n; > EditorUI::createMoveMenu @ 0x6f78d4\n; > EditorUI::createMoveMenu @ 0x6f7914\n; > EditorUI::createMoveMenu @ 0x6f7954\n; > EditorUI::createMoveMenu @ 0x6f7994\n; > EditorUI::createMoveMenu @ 0x6f79d4\n; > EditorUI::createMoveMenu @ 0x6f7a60\n; > EditorUI::createMoveMenu @ 0x6f7b34\n; > EditorUI::createMoveMenu @ 0x6f7bc6\n; > EditorUI::createMoveMenu @ 0x6f7c5a\n; > EditorUI::createMoveMenu @ 0x6f7cf0\n; > EditorUI::createMoveMenu @ 0x6f7d86\n; > EditorUI::createViewButton @ 0x70c7e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:22 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x4815e0\nSUB             SP, SP, #0x30                                          ; +0x4, 0x4815e4\nLDR             R4, =(__stack_chk_guard_ptr - 0x4815F2)                ; +0x6, 0x4815e6\nADD             R5, SP, #0x30+var_18                                   ; +0x8, 0x4815e8\nMOV             R8, R0                                                 ; +0xa, 0x4815ea\nMOV             R0, R1; this                                           ; +0xc, 0x4815ec\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4815ee\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4815f0\nSTM.W           R5, {R2,R3}                                            ; +0x12, 0x4815f2\nLDR.W           R9, [SP,#0x30+arg_0]                                   ; +0x16, 0x4815f6\nADD             R6, SP, #0x30+var_C                                    ; +0x1a, 0x4815fa\nLDR             R3, [R4]                                               ; +0x1c, 0x4815fc\nLDR.W           R10, [SP,#0x30+arg_C]                                  ; +0x1e, 0x4815fe\nSTR             R3, [SP,#0x30+var_4]                                   ; +0x22, 0x481602\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x24, 0x481604\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0x28, 0x481608\nMOV             R7, R0                                                 ; +0x2a, 0x48160a\nMOV             R0, R6; this                                           ; +0x2c, 0x48160c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x2e, 0x48160e\nLDR             R3, [SP,#0x30+arg_4]                                   ; +0x32, 0x481612\nSTR.W           R9, [SP,#0x30+var_30]; int                             ; +0x34, 0x481614\nMOV             R0, R8; int                                            ; +0x38, 0x481618\nSTR             R6, [SP,#0x30+var_24]; int                             ; +0x3a, 0x48161a\nMOV             R1, R7; this                                           ; +0x3c, 0x48161c\nSTR             R3, [SP,#0x30+var_2C]; int                             ; +0x3e, 0x48161e\nLDR             R3, [SP,#0x30+arg_8]                                   ; +0x40, 0x481620\nSTR             R3, [SP,#0x30+var_28]; int                             ; +0x42, 0x481622\nLDR             R3, [SP,#0x30+arg_10]                                  ; +0x44, 0x481624\nSTR             R3, [SP,#0x30+var_20]; float                           ; +0x46, 0x481626\nLDM.W           R5, {R2,R3}; int                                       ; +0x48, 0x481628\nBL              _ZN8EditorUI15getSpriteButtonEPN7cocos2d8CCSpriteEMNS0_8CCObjectEFvPS3_EPNS0_6CCMenuEfiNS0_7CCPointEf; EditorUI::getSpriteButton(cocos2d::CCSprite *,void (cocos2d::CCObject::*)(cocos2d::CCObject*),cocos2d::CCMenu *,float,int,cocos2d::CCPoint,float) ; +0x4c, 0x48162c\nLDR             R2, [SP,#0x30+var_4]                                   ; +0x50, 0x481630\nLDR             R3, [R4]                                               ; +0x52, 0x481632\nCMP             R2, R3                                                 ; +0x54, 0x481634\nBEQ             loc_48163C                                             ; +0x56, 0x481636\nBLX             __stack_chk_fail                                       ; +0x58, 0x481638\nADD             SP, SP, #0x30 ; '0'                                    ; +0x5c, 0x48163c\nPOP.W           {R4-R10,PC}                                            ; +0x5e, 0x48163e", "xrefs": ["EditorUI::getSpriteButton @ 0x48168c", "EditorUI::init @ 0x48a9b4", "EditorUI::setupDeleteMenu @ 0x6f586e", "EditorUI::setupDeleteMenu @ 0x6f5b6a", "EditorUI::setupDeleteMenu @ 0x6f5bd4", "EditorUI::setupDeleteMenu @ 0x6f5c22", "EditorUI::setupDeleteMenu @ 0x6f5f60", "EditorUI::setupDeleteMenu @ 0x6f5fc0", "EditorUI::createMoveMenu @ 0x6f78d4", "EditorUI::createMoveMenu @ 0x6f7914", "EditorUI::createMoveMenu @ 0x6f7954", "EditorUI::createMoveMenu @ 0x6f7994", "EditorUI::createMoveMenu @ 0x6f79d4", "EditorUI::createMoveMenu @ 0x6f7a60", "EditorUI::createMoveMenu @ 0x6f7b34", "EditorUI::createMoveMenu @ 0x6f7bc6", "EditorUI::createMoveMenu @ 0x6f7c5a", "EditorUI::createMoveMenu @ 0x6f7cf0", "EditorUI::createMoveMenu @ 0x6f7d86", "EditorUI::createViewButton @ 0x70c7e8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}