{"type": "func", "start": 5371448880, "end": 5371449247, "name": "SetTextPopup::create", "pseudocode": "// \n// SetTextPopup::create from 0x14029ce30 to 0x14029cf9f (367 bytes)\n// \n// 4 xrefs:\n// > SetFolderPopup::onSetFolderName @ 0x14029cb9c\n// > LevelBrowserLayer::onSearch @ 0x1402cede1\n// > MusicBrowser::onSearch @ 0x14033a872\n// > <???> @ 0x1406d1e68\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=8\nSetTextPopup *__fastcall SetTextPopup::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  SetTextPopup *v8; // r14\n  __int64 v9; // rsi\n  __int64 v10; // rdi\n  int v11; // ebx\n  int v12; // eax\n  int v13; // r9d\n  SetTextPopup *v15; // [rsp+40h] [rbp-108h]\n  _BYTE v16[32]; // [rsp+60h] [rbp-E8h] BYREF\n  _BYTE v17[32]; // [rsp+80h] [rbp-C8h] BYREF\n  _BYTE v18[32]; // [rsp+A0h] [rbp-A8h] BYREF\n  _BYTE v19[32]; // [rsp+C0h] [rbp-88h] BYREF\n  __int64 v20; // [rsp+E0h] [rbp-68h]\n  __int64 v21; // [rsp+E8h] [rbp-60h]\n  __int64 v22; // [rsp+F0h] [rbp-58h]\n  __int64 v23; // [rsp+F8h] [rbp-50h]\n\n  v20 = a1;\n  v21 = a2;\n  v22 = a4;\n  v23 = a5;\n  v15 = (SetTextPopup *)operator new(0x2B8u);\n  v8 = SetTextPopup::SetTextPopup(v15);\n  if ( v8 )\n  {\n    v9 = sub_14003BDB0((__int64)v16, a5);\n    v10 = sub_14003BDB0((__int64)v17, a4);\n    v11 = sub_14003BDB0((__int64)v18, a2);\n    v12 = sub_14003BDB0((__int64)v19, a1);\n    if ( (unsigned __int8)SetTextPopup::init((_DWORD)v8, v12, v11, v13, v10, v9) )\n    {\n      cocos2d::CCObject::autorelease(v8);\n    }\n    else\n    {\n      ((void (__fastcall *)(SetTextPopup *, __int64))v8->~SetTextPopup)(v8, 1);\n      v8 = nullptr;\n    }\n  }\n  sub_14003A830(a1);\n  sub_14003A830(a2);\n  sub_14003A830(a4);\n  sub_14003A830(a5);\n  return v8;\n}", "assembly": "; \n; SetTextPopup::create from 0x14029ce30 to 0x14029cf9f (367 bytes)\n; \n; 4 xrefs:\n; > SetFolderPopup::onSetFolderName @ 0x14029cb9c\n; > LevelBrowserLayer::onSearch @ 0x1402cede1\n; > MusicBrowser::onSearch @ 0x14033a872\n; > <???> @ 0x1406d1e68\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     r11, rsp                                                       ; +0x0, 0x14029ce30\nmov     [r11+18h], rbx                                                 ; +0x3, 0x14029ce33\npush    rbp                                                            ; +0x7, 0x14029ce37\npush    rsi                                                            ; +0x8, 0x14029ce38\npush    rdi                                                            ; +0x9, 0x14029ce39\npush    r12                                                            ; +0xa, 0x14029ce3a\npush    r13                                                            ; +0xc, 0x14029ce3c\npush    r14                                                            ; +0xe, 0x14029ce3e\npush    r15                                                            ; +0x10, 0x14029ce40\nsub     rsp, 110h                                                      ; +0x12, 0x14029ce42\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x14029ce49\nxor     rax, rsp                                                       ; +0x20, 0x14029ce50\nmov     [rsp+148h+var_48], rax                                         ; +0x23, 0x14029ce53\nmov     r12, r9                                                        ; +0x2b, 0x14029ce5b\nmov     r15, rdx                                                       ; +0x2e, 0x14029ce5e\nmov     rbp, rcx                                                       ; +0x31, 0x14029ce61\nmov     [r11-68h], rcx                                                 ; +0x34, 0x14029ce64\nmov     [r11-60h], rdx                                                 ; +0x38, 0x14029ce68\nmov     [r11-58h], r9                                                  ; +0x3c, 0x14029ce6c\nmov     r13, [rsp+148h+arg_20]                                         ; +0x40, 0x14029ce70\nmov     [r11-50h], r13                                                 ; +0x48, 0x14029ce78\nmov     ecx, 2B8h; Size                                                ; +0x4c, 0x14029ce7c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x51, 0x14029ce81\nmov     [rsp+148h+var_108], rax                                        ; +0x56, 0x14029ce86\nmov     rcx, rax                                                       ; +0x5b, 0x14029ce8b\ncall    SetTextPopup__SetTextPopup                                     ; +0x5e, 0x14029ce8e\nmov     r14, rax                                                       ; +0x63, 0x14029ce93\ntest    rax, rax                                                       ; +0x66, 0x14029ce96\njz      loc_14029CF4E                                                  ; +0x69, 0x14029ce99\nlea     rax, [rsp+148h+var_E8]                                         ; +0x6f, 0x14029ce9f\nmov     [rsp+148h+var_108], rax                                        ; +0x74, 0x14029cea4\nlea     rax, [rsp+148h+var_C8]                                         ; +0x79, 0x14029cea9\nmov     [rsp+148h+var_100], rax                                        ; +0x81, 0x14029ceb1\nlea     rax, [rsp+148h+var_A8]                                         ; +0x86, 0x14029ceb6\nmov     [rsp+148h+var_F8], rax                                         ; +0x8e, 0x14029cebe\nmov     rdx, r13                                                       ; +0x93, 0x14029cec3\nlea     rcx, [rsp+148h+var_E8]                                         ; +0x96, 0x14029cec6\ncall    sub_14003BDB0                                                  ; +0x9b, 0x14029cecb\nmov     rsi, rax                                                       ; +0xa0, 0x14029ced0\nmov     rdx, r12                                                       ; +0xa3, 0x14029ced3\nlea     rcx, [rsp+148h+var_C8]                                         ; +0xa6, 0x14029ced6\ncall    sub_14003BDB0                                                  ; +0xae, 0x14029cede\nmov     rdi, rax                                                       ; +0xb3, 0x14029cee3\nmov     rdx, r15                                                       ; +0xb6, 0x14029cee6\nlea     rcx, [rsp+148h+var_A8]                                         ; +0xb9, 0x14029cee9\ncall    sub_14003BDB0                                                  ; +0xc1, 0x14029cef1\nmov     rbx, rax                                                       ; +0xc6, 0x14029cef6\nmov     rdx, rbp                                                       ; +0xc9, 0x14029cef9\nlea     rcx, [rsp+148h+var_88]                                         ; +0xcc, 0x14029cefc\ncall    sub_14003BDB0                                                  ; +0xd4, 0x14029cf04\nnop                                                                    ; +0xd9, 0x14029cf09\nmovss   xmm0, [rsp+148h+arg_30]                                        ; +0xda, 0x14029cf0a\nmovss   [rsp+148h+var_110], xmm0                                       ; +0xe3, 0x14029cf13\nmov     [rsp+148h+var_120], rsi                                        ; +0xe9, 0x14029cf19\nmov     [rsp+148h+var_128], rdi                                        ; +0xee, 0x14029cf1e\nmov     r8, rbx                                                        ; +0xf3, 0x14029cf23\nmov     rdx, rax                                                       ; +0xf6, 0x14029cf26\nmov     rcx, r14                                                       ; +0xf9, 0x14029cf29\ncall    SetTextPopup__init                                             ; +0xfc, 0x14029cf2c\nmov     rcx, r14                                                       ; +0x101, 0x14029cf31\ntest    al, al                                                         ; +0x104, 0x14029cf34\njz      short loc_14029CF40                                            ; +0x106, 0x14029cf36\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x108, 0x14029cf38\njmp     short loc_14029CF4E                                            ; +0x10e, 0x14029cf3e\nmov     rax, [r14]                                                     ; +0x110, 0x14029cf40\nmov     edx, 1                                                         ; +0x113, 0x14029cf43\ncall    qword ptr [rax+8]                                              ; +0x118, 0x14029cf48\nxor     r14d, r14d                                                     ; +0x11b, 0x14029cf4b\nmov     rcx, rbp                                                       ; +0x11e, 0x14029cf4e\ncall    sub_14003A830                                                  ; +0x121, 0x14029cf51\nnop                                                                    ; +0x126, 0x14029cf56\nmov     rcx, r15                                                       ; +0x127, 0x14029cf57\ncall    sub_14003A830                                                  ; +0x12a, 0x14029cf5a\nnop                                                                    ; +0x12f, 0x14029cf5f\nmov     rcx, r12                                                       ; +0x130, 0x14029cf60\ncall    sub_14003A830                                                  ; +0x133, 0x14029cf63\nnop                                                                    ; +0x138, 0x14029cf68\nmov     rcx, r13                                                       ; +0x139, 0x14029cf69\ncall    sub_14003A830                                                  ; +0x13c, 0x14029cf6c\nmov     rax, r14                                                       ; +0x141, 0x14029cf71\nmov     rcx, [rsp+148h+var_48]                                         ; +0x144, 0x14029cf74\nxor     rcx, rsp; StackCookie                                          ; +0x14c, 0x14029cf7c\ncall    __security_check_cookie                                        ; +0x14f, 0x14029cf7f\nmov     rbx, [rsp+148h+arg_10]                                         ; +0x154, 0x14029cf84\nadd     rsp, 110h                                                      ; +0x15c, 0x14029cf8c\npop     r15                                                            ; +0x163, 0x14029cf93\npop     r14                                                            ; +0x165, 0x14029cf95\npop     r13                                                            ; +0x167, 0x14029cf97\npop     r12                                                            ; +0x169, 0x14029cf99\npop     rdi                                                            ; +0x16b, 0x14029cf9b\npop     rsi                                                            ; +0x16c, 0x14029cf9c\npop     rbp                                                            ; +0x16d, 0x14029cf9d\nretn                                                                   ; +0x16e, 0x14029cf9e", "xrefs": ["SetFolderPopup::onSetFolderName @ 0x14029cb9c", "LevelBrowserLayer::onSearch @ 0x1402cede1", "MusicBrowser::onSearch @ 0x14033a872", "<???> @ 0x1406d1e68"], "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"}