{"type": "func", "start": 5371930752, "end": 5371930945, "name": "SearchButton::create", "pseudocode": "// \n// SearchButton::create from 0x140312880 to 0x140312941 (193 bytes)\n// \n// 11 xrefs:\n// > LevelSearchLayer::init @ 0x14030ce72\n// > LevelSearchLayer::init @ 0x14030ceb2\n// > LevelSearchLayer::init @ 0x14030cef2\n// > LevelSearchLayer::init @ 0x14030cf7a\n// > LevelSearchLayer::init @ 0x14030cfb8\n// > LevelSearchLayer::init @ 0x14030cffb\n// > LevelSearchLayer::init @ 0x14030d039\n// > LevelSearchLayer::init @ 0x14030d07b\n// > LevelSearchLayer::init @ 0x14030d0bb\n// > LevelSearchLayer::init @ 0x14030d31a\n// > <???> @ 0x1406d488c\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\nSearchButton *SearchButton::create(const char *a1, const char *a2, float a3, const char *a4)\n{\n  SearchButton *v6; // rsi\n  const char *v7; // rdx\n\n  v6 = (SearchButton *)operator new(0x268u);\n  cocos2d::CCSprite::CCSprite(v6);\n  v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SearchButton_vtbl *)&SearchButton::`vftable';\n  v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SearchButton::`vftable';\n  v6->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&SearchButton::`vftable';\n  v6->m_label = nullptr;\n  v6->m_icon = nullptr;\n  if ( SearchButton::init(v6, v7, a2, a3, a4) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    ((void (__fastcall *)(SearchButton *, __int64))v6->~SearchButton)(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SearchButton::create from 0x140312880 to 0x140312941 (193 bytes)\n; \n; 11 xrefs:\n; > LevelSearchLayer::init @ 0x14030ce72\n; > LevelSearchLayer::init @ 0x14030ceb2\n; > LevelSearchLayer::init @ 0x14030cef2\n; > LevelSearchLayer::init @ 0x14030cf7a\n; > LevelSearchLayer::init @ 0x14030cfb8\n; > LevelSearchLayer::init @ 0x14030cffb\n; > LevelSearchLayer::init @ 0x14030d039\n; > LevelSearchLayer::init @ 0x14030d07b\n; > LevelSearchLayer::init @ 0x14030d0bb\n; > LevelSearchLayer::init @ 0x14030d31a\n; > <???> @ 0x1406d488c\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_8], rbx                                               ; +0x0, 0x140312880\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140312885\nmov     [rsp+arg_0], rcx                                               ; +0xa, 0x14031288a\npush    rdi                                                            ; +0xf, 0x14031288f\nsub     rsp, 40h                                                       ; +0x10, 0x140312890\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x14, 0x140312894\nmov     rbx, r9                                                        ; +0x19, 0x140312899\nmovaps  xmm6, xmm2                                                     ; +0x1c, 0x14031289c\nmov     rdi, rdx                                                       ; +0x1f, 0x14031289f\nmov     ecx, 268h; Size                                                ; +0x22, 0x1403128a2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1403128a7\nmov     rsi, rax                                                       ; +0x2c, 0x1403128ac\nmov     [rsp+48h+arg_0], rax                                           ; +0x2f, 0x1403128af\nmov     rcx, rax                                                       ; +0x34, 0x1403128b4\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x37, 0x1403128b7\nlea     rax, ??_7SearchButton@@6B@; const SearchButton::`vftable'      ; +0x3d, 0x1403128bd\nmov     [rsi], rax                                                     ; +0x44, 0x1403128c4\nlea     rax, ??_7SearchButton@@6B@_0; const SearchButton::`vftable'    ; +0x47, 0x1403128c7\nmov     [rsi+140h], rax                                                ; +0x4e, 0x1403128ce\nlea     rax, ??_7SearchButton@@6B@_1; const SearchButton::`vftable'    ; +0x55, 0x1403128d5\nmov     [rsi+158h], rax                                                ; +0x5c, 0x1403128dc\nmov     qword ptr [rsi+258h], 0                                        ; +0x63, 0x1403128e3\nmov     qword ptr [rsi+260h], 0                                        ; +0x6e, 0x1403128ee\nmov     [rsp+48h+var_28], rbx                                          ; +0x79, 0x1403128f9\nmovaps  xmm3, xmm6                                                     ; +0x7e, 0x1403128fe\nmov     r8, rdi                                                        ; +0x81, 0x140312901\nmov     rcx, rsi                                                       ; +0x84, 0x140312904\ncall    SearchButton__init                                             ; +0x87, 0x140312907\nmov     rcx, rsi                                                       ; +0x8c, 0x14031290c\ntest    al, al                                                         ; +0x8f, 0x14031290f\njz      short loc_14031291E                                            ; +0x91, 0x140312911\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x93, 0x140312913\nmov     rax, rsi                                                       ; +0x99, 0x140312919\njmp     short loc_14031292C                                            ; +0x9c, 0x14031291c\nmov     r8, [rsi]                                                      ; +0x9e, 0x14031291e\nmov     edx, 1                                                         ; +0xa1, 0x140312921\ncall    qword ptr [r8+8]                                               ; +0xa6, 0x140312926\nxor     eax, eax                                                       ; +0xaa, 0x14031292a\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xac, 0x14031292c\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xb1, 0x140312931\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xb6, 0x140312936\nadd     rsp, 40h                                                       ; +0xbb, 0x14031293b\npop     rdi                                                            ; +0xbf, 0x14031293f\nretn                                                                   ; +0xc0, 0x140312940", "xrefs": ["LevelSearchLayer::init @ 0x14030ce72", "LevelSearchLayer::init @ 0x14030ceb2", "LevelSearchLayer::init @ 0x14030cef2", "LevelSearchLayer::init @ 0x14030cf7a", "LevelSearchLayer::init @ 0x14030cfb8", "LevelSearchLayer::init @ 0x14030cffb", "LevelSearchLayer::init @ 0x14030d039", "LevelSearchLayer::init @ 0x14030d07b", "LevelSearchLayer::init @ 0x14030d0bb", "LevelSearchLayer::init @ 0x14030d31a", "<???> @ 0x1406d488c"], "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"}