{"type": "func", "start": 5368981664, "end": 5368981852, "name": "ButtonSprite::create", "pseudocode": "// \n// ButtonSprite::create from 0x1400428a0 to 0x14004295c (188 bytes)\n// \n// 6 xrefs:\n// > EditorUI::getSpriteButton @ 0x1401aded6\n// > EditorUI::createCustomItems @ 0x1401f6471\n// > EditorUI::createCustomItems @ 0x1401f652d\n// > EditorUI::createCustomItems @ 0x1401f65e8\n// > EditorUI::createCustomItems @ 0x1401f66a4\n// > <???> @ 0x14090f644\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:30 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall ButtonSprite::create(int a1, int a2, __int64 a3, float a4, int a5)\n{\n  cocos2d::CCObject *v7; // rbx\n  int v8; // r9d\n  void *v10; // [rsp+50h] [rbp-28h]\n\n  v10 = operator new(0x2C8u);\n  v7 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v10);\n  if ( v7 )\n  {\n    if ( (unsigned __int8)ButtonSprite::init((_DWORD)v7, a1, a2, v8, LODWORD(a4), a5) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n      return nullptr;\n    }\n  }\n  return v7;\n}", "assembly": "; \n; ButtonSprite::create from 0x1400428a0 to 0x14004295c (188 bytes)\n; \n; 6 xrefs:\n; > EditorUI::getSpriteButton @ 0x1401aded6\n; > EditorUI::createCustomItems @ 0x1401f6471\n; > EditorUI::createCustomItems @ 0x1401f652d\n; > EditorUI::createCustomItems @ 0x1401f65e8\n; > EditorUI::createCustomItems @ 0x1401f66a4\n; > <???> @ 0x14090f644\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:30 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400428a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1400428a5\npush    rdi                                                            ; +0xa, 0x1400428aa\nsub     rsp, 70h                                                       ; +0xb, 0x1400428ab\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0xf, 0x1400428af\nmovaps  xmm6, xmm3                                                     ; +0x14, 0x1400428b4\nmov     edi, edx                                                       ; +0x17, 0x1400428b7\nmov     rsi, rcx                                                       ; +0x19, 0x1400428b9\nmov     ecx, 2C8h; Size                                                ; +0x1c, 0x1400428bc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x1400428c1\nmov     [rsp+78h+var_28], rax                                          ; +0x26, 0x1400428c6\nmov     rcx, rax                                                       ; +0x2b, 0x1400428cb\ncall    ButtonSprite__ButtonSprite                                     ; +0x2e, 0x1400428ce\nmov     rbx, rax                                                       ; +0x33, 0x1400428d3\ntest    rax, rax                                                       ; +0x36, 0x1400428d6\njz      short loc_140042942                                            ; +0x39, 0x1400428d9\nmovss   xmm0, [rsp+78h+arg_40]                                         ; +0x3b, 0x1400428db\nmovss   [rsp+78h+var_30], xmm0                                         ; +0x44, 0x1400428e4\nmovzx   eax, [rsp+78h+arg_38]                                          ; +0x4a, 0x1400428ea\nmov     [rsp+78h+var_38], al                                           ; +0x52, 0x1400428f2\nmov     rcx, [rsp+78h+arg_30]                                          ; +0x56, 0x1400428f6\nmov     [rsp+78h+var_40], rcx                                          ; +0x5e, 0x1400428fe\nmovss   xmm0, [rsp+78h+arg_20]                                         ; +0x63, 0x140042903\nmovss   [rsp+78h+var_50], xmm0                                         ; +0x6c, 0x14004290c\nmovss   [rsp+78h+var_58], xmm6                                         ; +0x72, 0x140042912\nmov     r8d, edi                                                       ; +0x78, 0x140042918\nmov     rdx, rsi                                                       ; +0x7b, 0x14004291b\nmov     rcx, rbx                                                       ; +0x7e, 0x14004291e\ncall    ButtonSprite__init                                             ; +0x81, 0x140042921\nmov     rcx, rbx                                                       ; +0x86, 0x140042926\ntest    al, al                                                         ; +0x89, 0x140042929\njz      short loc_140042935                                            ; +0x8b, 0x14004292b\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8d, 0x14004292d\njmp     short loc_140042942                                            ; +0x93, 0x140042933\nmov     rax, [rbx]                                                     ; +0x95, 0x140042935\nmov     edx, 1                                                         ; +0x98, 0x140042938\ncall    qword ptr [rax+8]                                              ; +0x9d, 0x14004293d\nxor     ebx, ebx                                                       ; +0xa0, 0x140042940\nmov     rax, rbx                                                       ; +0xa2, 0x140042942\nlea     r11, [rsp+78h+var_8]                                           ; +0xa5, 0x140042945\nmov     rbx, [r11+10h]                                                 ; +0xaa, 0x14004294a\nmov     rsi, [r11+18h]                                                 ; +0xae, 0x14004294e\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0xb2, 0x140042952\nmov     rsp, r11                                                       ; +0xb7, 0x140042957\npop     rdi                                                            ; +0xba, 0x14004295a\nretn                                                                   ; +0xbb, 0x14004295b", "xrefs": ["EditorUI::getSpriteButton @ 0x1401aded6", "EditorUI::createCustomItems @ 0x1401f6471", "EditorUI::createCustomItems @ 0x1401f652d", "EditorUI::createCustomItems @ 0x1401f65e8", "EditorUI::createCustomItems @ 0x1401f66a4", "<???> @ 0x14090f644"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}