{"type": "func", "start": 5368966832, "end": 5368967005, "name": "ButtonSprite::create", "pseudocode": "// \n// ButtonSprite::create from 0x14003eeb0 to 0x14003ef5d (173 bytes)\n// \n// 13 xrefs:\n// > EditorUI::getSpriteButton @ 0x1400e29a7\n// > EditorUI::createCustomItems @ 0x1400e49c0\n// > EditorUI::createCustomItems @ 0x1400e4a72\n// > EditorUI::createCustomItems @ 0x1400e4b23\n// > EditorUI::createCustomItems @ 0x1400e4bd5\n// > EditorUI::setupDeleteMenu @ 0x1400e5246\n// > EditorUI::setupDeleteMenu @ 0x1400e53be\n// > EditorUI::setupDeleteMenu @ 0x1400e5741\n// > EditorUI::getCreateBtn @ 0x14010ed03\n// > LevelLeaderboard::getSpriteButton @ 0x140301d79\n// > SetupSequenceTriggerPopup::init @ 0x140443e03\n// > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462b4\n// > <???> @ 0x1406c414c\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\n// Hidden C++ exception states: #wind=1\nButtonSprite *ButtonSprite::create(\n        cocos2d::CCSprite *a1,\n        int a2,\n        int a3,\n        float a4,\n        float a5,\n        bool a6,\n        const char *a7,\n        bool a8)\n{\n  ButtonSprite *v10; // rbx\n  int v11; // r9d\n  bool v13; // [rsp+30h] [rbp-48h]\n  ButtonSprite *v14; // [rsp+50h] [rbp-28h]\n\n  v14 = (ButtonSprite *)operator new(0x2C0u);\n  v10 = ButtonSprite::ButtonSprite(v14);\n  if ( v10 )\n  {\n    if ( ButtonSprite::init(v10, a1, a2, v11, a4, a5, v13, a7, a8) )\n    {\n      cocos2d::CCObject::autorelease(v10);\n    }\n    else\n    {\n      ((void (__fastcall *)(ButtonSprite *, __int64))v10->~ButtonSprite)(v10, 1);\n      return nullptr;\n    }\n  }\n  return v10;\n}", "assembly": "; \n; ButtonSprite::create from 0x14003eeb0 to 0x14003ef5d (173 bytes)\n; \n; 13 xrefs:\n; > EditorUI::getSpriteButton @ 0x1400e29a7\n; > EditorUI::createCustomItems @ 0x1400e49c0\n; > EditorUI::createCustomItems @ 0x1400e4a72\n; > EditorUI::createCustomItems @ 0x1400e4b23\n; > EditorUI::createCustomItems @ 0x1400e4bd5\n; > EditorUI::setupDeleteMenu @ 0x1400e5246\n; > EditorUI::setupDeleteMenu @ 0x1400e53be\n; > EditorUI::setupDeleteMenu @ 0x1400e5741\n; > EditorUI::getCreateBtn @ 0x14010ed03\n; > LevelLeaderboard::getSpriteButton @ 0x140301d79\n; > SetupSequenceTriggerPopup::init @ 0x140443e03\n; > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462b4\n; > <???> @ 0x1406c414c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14003eeb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14003eeb5\npush    rdi                                                            ; +0xa, 0x14003eeba\nsub     rsp, 70h                                                       ; +0xb, 0x14003eebb\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xf, 0x14003eebf\nmovaps  xmm6, xmm3                                                     ; +0x14, 0x14003eec4\nmov     edi, edx                                                       ; +0x17, 0x14003eec7\nmov     rsi, rcx                                                       ; +0x19, 0x14003eec9\nmov     ecx, 2C0h; Size                                                ; +0x1c, 0x14003eecc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x14003eed1\nmov     [rsp+78h+var_28], rax                                          ; +0x26, 0x14003eed6\nmov     rcx, rax                                                       ; +0x2b, 0x14003eedb\ncall    ButtonSprite__ButtonSprite                                     ; +0x2e, 0x14003eede\nmov     rbx, rax                                                       ; +0x33, 0x14003eee3\ntest    rax, rax                                                       ; +0x36, 0x14003eee6\njz      short loc_14003EF43                                            ; +0x39, 0x14003eee9\nmovzx   eax, [rsp+78h+arg_38]                                          ; +0x3b, 0x14003eeeb\nmov     [rsp+78h+var_38], al                                           ; +0x43, 0x14003eef3\nmov     rcx, [rsp+78h+arg_30]                                          ; +0x47, 0x14003eef7\nmov     [rsp+78h+var_40], rcx                                          ; +0x4f, 0x14003eeff\nmovss   xmm0, [rsp+78h+arg_20]                                         ; +0x54, 0x14003ef04\nmovss   [rsp+78h+var_50], xmm0                                         ; +0x5d, 0x14003ef0d\nmovss   [rsp+78h+var_58], xmm6                                         ; +0x63, 0x14003ef13\nmov     r8d, edi                                                       ; +0x69, 0x14003ef19\nmov     rdx, rsi                                                       ; +0x6c, 0x14003ef1c\nmov     rcx, rbx                                                       ; +0x6f, 0x14003ef1f\ncall    ButtonSprite__init                                             ; +0x72, 0x14003ef22\nmov     rcx, rbx                                                       ; +0x77, 0x14003ef27\ntest    al, al                                                         ; +0x7a, 0x14003ef2a\njz      short loc_14003EF36                                            ; +0x7c, 0x14003ef2c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7e, 0x14003ef2e\njmp     short loc_14003EF43                                            ; +0x84, 0x14003ef34\nmov     rax, [rbx]                                                     ; +0x86, 0x14003ef36\nmov     edx, 1                                                         ; +0x89, 0x14003ef39\ncall    qword ptr [rax+8]                                              ; +0x8e, 0x14003ef3e\nxor     ebx, ebx                                                       ; +0x91, 0x14003ef41\nmov     rax, rbx                                                       ; +0x93, 0x14003ef43\nlea     r11, [rsp+78h+var_8]                                           ; +0x96, 0x14003ef46\nmov     rbx, [r11+10h]                                                 ; +0x9b, 0x14003ef4b\nmov     rsi, [r11+18h]                                                 ; +0x9f, 0x14003ef4f\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xa3, 0x14003ef53\nmov     rsp, r11                                                       ; +0xa8, 0x14003ef58\npop     rdi                                                            ; +0xab, 0x14003ef5b\nretn                                                                   ; +0xac, 0x14003ef5c", "xrefs": ["EditorUI::getSpriteButton @ 0x1400e29a7", "EditorUI::createCustomItems @ 0x1400e49c0", "EditorUI::createCustomItems @ 0x1400e4a72", "EditorUI::createCustomItems @ 0x1400e4b23", "EditorUI::createCustomItems @ 0x1400e4bd5", "EditorUI::setupDeleteMenu @ 0x1400e5246", "EditorUI::setupDeleteMenu @ 0x1400e53be", "EditorUI::setupDeleteMenu @ 0x1400e5741", "EditorUI::getCreateBtn @ 0x14010ed03", "LevelLeaderboard::getSpriteButton @ 0x140301d79", "SetupSequenceTriggerPopup::init @ 0x140443e03", "SetupAudioTriggerPopup::addProxVolControls @ 0x1404462b4", "<???> @ 0x1406c414c"], "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"}