{"type": "func", "start": 3943520, "end": 3943628, "name": "ButtonSprite::create", "pseudocode": "// \n// ButtonSprite::create from 0x3c2c60 to 0x3c2ccc (108 bytes)\n// \n// 29 xrefs:\n// > ButtonSprite::create @ 0x3c2ce8\n// > LevelCell::loadCustomLevelCell @ 0x42ef5a\n// > LevelCell::loadCustomLevelCell @ 0x42f1b8\n// > LevelCell::loadCustomLevelCell @ 0x42f252\n// > LevelCell::loadCustomLevelCell @ 0x42f2e2\n// > EditorUI::getSpriteButton @ 0x481562\n// > EditorUI::getCreateMenuItemButton @ 0x4817be\n// > InfoLayer::getSpriteButton @ 0x53cc0a\n// > LeaderboardsLayer::setupTabs @ 0x563a44\n// > SetupSpawnPopup::init @ 0x5eb57e\n// > SetupSpawnPopup::init @ 0x5eb616\n// > LevelLeaderboard::getSpriteButton @ 0x614d92\n// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68fcb2\n// > SetupAudioTriggerPopup::addProxVolControls @ 0x6b04aa\n// > SetupSequenceTriggerPopup::init @ 0x6bc85e\n// > sub_6BEA10 @ 0x6bf122\n// > sub_6BEA10 @ 0x6bf1ee\n// > sub_6BEA10 @ 0x6bf32c\n// > sub_6BEA10 @ 0x6bf3fa\n// > sub_6BEA10 @ 0x6bf4ce\n// > sub_6BEA10 @ 0x6bf664\n// > sub_6C6B24 @ 0x6c71a8\n// > sub_6C6B24 @ 0x6c72b2\n// > sub_6C6B24 @ 0x6c7434\n// > sub_6C6B24 @ 0x6c7508\n// > sub_6C6B24 @ 0x6c75e4\n// > EditorUI::menuItemFromObjectString @ 0x6f60e4\n// > EditorUI::getCreateBtn @ 0x6f8220\n// > EditorSFXActionConfigLayer::init @ 0x77c972\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:46:32 +0000\n// \n\nButtonSprite *__fastcall ButtonSprite::create(\n        ButtonSprite *this,\n        cocos2d::CCSprite *a2,\n        int a3,\n        float a4,\n        float a5,\n        _BOOL4 a6,\n        char *a7,\n        const char *a8,\n        float a9,\n        float a10)\n{\n  ButtonSprite *v14; // r4\n  int v15; // r3\n  ButtonSprite *v16; // r0\n\n  v14 = (ButtonSprite *)operator new(0x244u);\n  ButtonSprite::ButtonSprite(v14);\n  if ( ButtonSprite::init(v14, this, (int)a2, a3, a4, a5, a6, (cocos2d::CCSprite *)a7, (bool)a8, a9) )\n  {\n    cocos2d::CCObject::autorelease(v14);\n  }\n  else\n  {\n    v15 = *(_DWORD *)v14;\n    v16 = v14;\n    v14 = nullptr;\n    (*(void (__fastcall **)(ButtonSprite *))(v15 + 8))(v16);\n  }\n  return v14;\n}", "assembly": "; \n; ButtonSprite::create from 0x3c2c60 to 0x3c2ccc (108 bytes)\n; \n; 29 xrefs:\n; > ButtonSprite::create @ 0x3c2ce8\n; > LevelCell::loadCustomLevelCell @ 0x42ef5a\n; > LevelCell::loadCustomLevelCell @ 0x42f1b8\n; > LevelCell::loadCustomLevelCell @ 0x42f252\n; > LevelCell::loadCustomLevelCell @ 0x42f2e2\n; > EditorUI::getSpriteButton @ 0x481562\n; > EditorUI::getCreateMenuItemButton @ 0x4817be\n; > InfoLayer::getSpriteButton @ 0x53cc0a\n; > LeaderboardsLayer::setupTabs @ 0x563a44\n; > SetupSpawnPopup::init @ 0x5eb57e\n; > SetupSpawnPopup::init @ 0x5eb616\n; > LevelLeaderboard::getSpriteButton @ 0x614d92\n; > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68fcb2\n; > SetupAudioTriggerPopup::addProxVolControls @ 0x6b04aa\n; > SetupSequenceTriggerPopup::init @ 0x6bc85e\n; > sub_6BEA10 @ 0x6bf122\n; > sub_6BEA10 @ 0x6bf1ee\n; > sub_6BEA10 @ 0x6bf32c\n; > sub_6BEA10 @ 0x6bf3fa\n; > sub_6BEA10 @ 0x6bf4ce\n; > sub_6BEA10 @ 0x6bf664\n; > sub_6C6B24 @ 0x6c71a8\n; > sub_6C6B24 @ 0x6c72b2\n; > sub_6C6B24 @ 0x6c7434\n; > sub_6C6B24 @ 0x6c7508\n; > sub_6C6B24 @ 0x6c75e4\n; > EditorUI::menuItemFromObjectString @ 0x6f60e4\n; > EditorUI::getCreateBtn @ 0x6f8220\n; > EditorSFXActionConfigLayer::init @ 0x77c972\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:46:32 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3c2c60\nMOV             R7, R0                                                 ; +0x4, 0x3c2c64\nSUB             SP, SP, #0x18                                          ; +0x6, 0x3c2c66\nMOV.W           R0, #0x244; unsigned int                               ; +0x8, 0x3c2c68\nMOV             R6, R1                                                 ; +0xc, 0x3c2c6c\nMOV             R5, R2                                                 ; +0xe, 0x3c2c6e\nMOV             R8, R3                                                 ; +0x10, 0x3c2c70\nBL              _Znwj; operator new(uint)                              ; +0x12, 0x3c2c72\nMOV             R4, R0                                                 ; +0x16, 0x3c2c76\nBL              _ZN12ButtonSpriteC2Ev; ButtonSprite::ButtonSprite(void) ; +0x18, 0x3c2c78\nLDR             R3, [SP,#0x18+arg_0]                                   ; +0x1c, 0x3c2c7c\nMOV             R0, R4; this                                           ; +0x1e, 0x3c2c7e\nSTR.W           R8, [SP,#0x18+var_18]; float                           ; +0x20, 0x3c2c80\nMOV             R1, R7; cocos2d::CCSprite *                            ; +0x24, 0x3c2c84\nMOV             R2, R6; int                                            ; +0x26, 0x3c2c86\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x28, 0x3c2c88\nLDRB.W          R3, [SP,#0x18+arg_4]                                   ; +0x2a, 0x3c2c8a\nSTR             R3, [SP,#0x18+var_10]; bool                            ; +0x2e, 0x3c2c8e\nLDR             R3, [SP,#0x18+arg_8]                                   ; +0x30, 0x3c2c90\nSTR             R3, [SP,#0x18+var_C]; char *                           ; +0x32, 0x3c2c92\nLDRB.W          R3, [SP,#0x18+arg_C]                                   ; +0x34, 0x3c2c94\nSTR             R3, [SP,#0x18+var_8]; bool                             ; +0x38, 0x3c2c98\nLDR             R3, [SP,#0x18+arg_10]                                  ; +0x3a, 0x3c2c9a\nSTR             R3, [SP,#0x18+var_4]; float                            ; +0x3c, 0x3c2c9c\nMOV             R3, R5; int                                            ; +0x3e, 0x3c2c9e\nBL              _ZN12ButtonSprite4initEPN7cocos2d8CCSpriteEiiffbPKcbf; ButtonSprite::init(cocos2d::CCSprite *,int,int,float,float,bool,char const*,bool,float) ; +0x40, 0x3c2ca0\nMOV             R5, R0                                                 ; +0x44, 0x3c2ca4\nCBZ             R0, loc_3C2CBA                                         ; +0x46, 0x3c2ca6\nMOV             R0, R4; this                                           ; +0x48, 0x3c2ca8\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x4a, 0x3c2caa\nB               loc_3C2CC4                                             ; +0x4e, 0x3c2cae\nMOV             R0, R4; void *                                         ; +0x50, 0x3c2cb0\nBL              _ZdlPv; operator delete(void *)                        ; +0x52, 0x3c2cb2\nBL              __cxa_end_cleanup                                      ; +0x56, 0x3c2cb6\nLDR             R3, [R4]                                               ; +0x5a, 0x3c2cba\nMOV             R0, R4                                                 ; +0x5c, 0x3c2cbc\nMOV             R4, R5                                                 ; +0x5e, 0x3c2cbe\nLDR             R3, [R3,#8]                                            ; +0x60, 0x3c2cc0\nBLX             R3                                                     ; +0x62, 0x3c2cc2\nMOV             R0, R4                                                 ; +0x64, 0x3c2cc4\nADD             SP, SP, #0x18                                          ; +0x66, 0x3c2cc6\nPOP.W           {R4-R8,PC}                                             ; +0x68, 0x3c2cc8", "xrefs": ["ButtonSprite::create @ 0x3c2ce8", "LevelCell::loadCustomLevelCell @ 0x42ef5a", "LevelCell::loadCustomLevelCell @ 0x42f1b8", "LevelCell::loadCustomLevelCell @ 0x42f252", "LevelCell::loadCustomLevelCell @ 0x42f2e2", "EditorUI::getSpriteButton @ 0x481562", "EditorUI::getCreateMenuItemButton @ 0x4817be", "InfoLayer::getSpriteButton @ 0x53cc0a", "LeaderboardsLayer::setupTabs @ 0x563a44", "SetupSpawnPopup::init @ 0x5eb57e", "SetupSpawnPopup::init @ 0x5eb616", "LevelLeaderboard::getSpriteButton @ 0x614d92", "SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68fcb2", "SetupAudioTriggerPopup::addProxVolControls @ 0x6b04aa", "SetupSequenceTriggerPopup::init @ 0x6bc85e", "sub_6BEA10 @ 0x6bf122", "sub_6BEA10 @ 0x6bf1ee", "sub_6BEA10 @ 0x6bf32c", "sub_6BEA10 @ 0x6bf3fa", "sub_6BEA10 @ 0x6bf4ce", "sub_6BEA10 @ 0x6bf664", "sub_6C6B24 @ 0x6c71a8", "sub_6C6B24 @ 0x6c72b2", "sub_6C6B24 @ 0x6c7434", "sub_6C6B24 @ 0x6c7508", "sub_6C6B24 @ 0x6c75e4", "EditorUI::menuItemFromObjectString @ 0x6f60e4", "EditorUI::getCreateBtn @ 0x6f8220", "EditorSFXActionConfigLayer::init @ 0x77c972"], "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"}