{"type": "func", "start": 6443212544, "end": 6443212838, "name": "cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder", "pseudocode": "// \n// cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder from 0x1800b9f00 to 0x1800ba026 (294 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2e2c\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:22:23 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 *__fastcall cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  cocos2d::CCTextFieldTTF *v6; // rax\n  __int64 *v7; // rbx\n  void *v8; // rdi\n  __int64 v9; // rax\n\n  v6 = (cocos2d::CCTextFieldTTF *)sub_1800E4AC0(0x300u);\n  if ( v6 )\n    v7 = (__int64 *)cocos2d::CCTextFieldTTF::CCTextFieldTTF(v6);\n  else\n    v7 = nullptr;\n  if ( !v7 )\n    return nullptr;\n  v8 = (void *)v7[92];\n  if ( v8 )\n  {\n    sub_180005C70(v7[92]);\n    j_j_free_0(v8);\n    v7[92] = 0;\n  }\n  v9 = sub_1800E4AC0(0x20u);\n  if ( v9 )\n  {\n    *(_OWORD *)v9 = 0;\n    *(_QWORD *)(v9 + 16) = 0;\n    *(_QWORD *)(v9 + 24) = 15;\n    *(_BYTE *)v9 = 0;\n  }\n  v7[92] = v9;\n  if ( *(_QWORD *)(v9 + 24) > 0xFu )\n    v9 = *(_QWORD *)v9;\n  if ( !(unsigned __int8)cocos2d::CCLabelTTF::initWithString((__int64)v7, v9, a4) )\n  {\n    (*(void (__fastcall **)(__int64 *, __int64))(*v7 + 8))(v7, 1);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n  if ( a1 )\n    (*(void (__fastcall **)(__int64 *, __int64))(*v7 + 1104))(v7, a1);\n  return v7;\n}", "assembly": "; \n; cocos2d::CCTextFieldTTF::textFieldWithPlaceHolder from 0x1800b9f00 to 0x1800ba026 (294 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2e2c\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:22:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b9f00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b9f05\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b9f0a\npush    rdi                                                            ; +0xf, 0x1800b9f0f\npush    r14                                                            ; +0x10, 0x1800b9f10\npush    r15                                                            ; +0x12, 0x1800b9f12\nsub     rsp, 40h                                                       ; +0x14, 0x1800b9f14\nmov     rbp, r9                                                        ; +0x18, 0x1800b9f18\nmov     r14d, r8d                                                      ; +0x1b, 0x1800b9f1b\nmov     r15, rdx                                                       ; +0x1e, 0x1800b9f1e\nmov     rsi, rcx                                                       ; +0x21, 0x1800b9f21\nmov     ecx, 300h; Size                                                ; +0x24, 0x1800b9f24\ncall    sub_1800E4AC0                                                  ; +0x29, 0x1800b9f29\nmov     [rsp+58h+var_28], rax                                          ; +0x2e, 0x1800b9f2e\ntest    rax, rax                                                       ; +0x33, 0x1800b9f33\njz      short loc_1800B9F45                                            ; +0x36, 0x1800b9f36\nmov     rcx, rax; this                                                 ; +0x38, 0x1800b9f38\ncall    ??0CCTextFieldTTF@cocos2d@@QEAA@XZ; cocos2d::CCTextFieldTTF::CCTextFieldTTF(void) ; +0x3b, 0x1800b9f3b\nmov     rbx, rax                                                       ; +0x40, 0x1800b9f40\njmp     short loc_1800B9F47                                            ; +0x43, 0x1800b9f43\nxor     ebx, ebx                                                       ; +0x45, 0x1800b9f45\ntest    rbx, rbx                                                       ; +0x47, 0x1800b9f47\njz      loc_1800BA00B                                                  ; +0x4a, 0x1800b9f4a\nmov     rdi, [rbx+2E0h]                                                ; +0x50, 0x1800b9f50\ntest    rdi, rdi                                                       ; +0x57, 0x1800b9f57\njz      short loc_1800B9F7C                                            ; +0x5a, 0x1800b9f5a\nmov     rcx, rdi                                                       ; +0x5c, 0x1800b9f5c\ncall    sub_180005C70                                                  ; +0x5f, 0x1800b9f5f\nmov     edx, 20h ; ' '                                                 ; +0x64, 0x1800b9f64\nmov     rcx, rdi; Block                                                ; +0x69, 0x1800b9f69\ncall    j_j_free_0                                                     ; +0x6c, 0x1800b9f6c\nmov     qword ptr [rbx+2E0h], 0                                        ; +0x71, 0x1800b9f71\nmov     ecx, 20h ; ' '; Size                                           ; +0x7c, 0x1800b9f7c\ncall    sub_1800E4AC0                                                  ; +0x81, 0x1800b9f81\nmov     [rsp+58h+var_28], rax                                          ; +0x86, 0x1800b9f86\ntest    rax, rax                                                       ; +0x8b, 0x1800b9f8b\njz      short loc_1800B9FA9                                            ; +0x8e, 0x1800b9f8e\nxorps   xmm0, xmm0                                                     ; +0x90, 0x1800b9f90\nmovups  xmmword ptr [rax], xmm0                                        ; +0x93, 0x1800b9f93\nmov     qword ptr [rax+10h], 0                                         ; +0x96, 0x1800b9f96\nmov     qword ptr [rax+18h], 0Fh                                       ; +0x9e, 0x1800b9f9e\nmov     byte ptr [rax], 0                                              ; +0xa6, 0x1800b9fa6\nmov     [rbx+2E0h], rax                                                ; +0xa9, 0x1800b9fa9\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xb0, 0x1800b9fb0\njbe     short loc_1800B9FBA                                            ; +0xb5, 0x1800b9fb5\nmov     rax, [rax]                                                     ; +0xb7, 0x1800b9fb7\nmov     [rsp+58h+var_30], r14d                                         ; +0xba, 0x1800b9fba\nmov     [rsp+58h+var_38], r15                                          ; +0xbf, 0x1800b9fbf\nmovss   xmm3, [rsp+58h+arg_20]                                         ; +0xc4, 0x1800b9fc4\nmov     r8, rbp                                                        ; +0xcd, 0x1800b9fcd\nmov     rdx, rax                                                       ; +0xd0, 0x1800b9fd0\nmov     rcx, rbx                                                       ; +0xd3, 0x1800b9fd3\ncall    ?initWithString@CCLabelTTF@cocos2d@@QEAA_NPEBD0MAEBVCCSize@2@W4CCTextAlignment@2@@Z; cocos2d::CCLabelTTF::initWithString(char const *,char const *,float,cocos2d::CCSize const &,cocos2d::CCTextAlignment) ; +0xd6, 0x1800b9fd6\nmov     rcx, rbx; this                                                 ; +0xdb, 0x1800b9fdb\ntest    al, al                                                         ; +0xde, 0x1800b9fde\njz      short loc_1800BA000                                            ; +0xe0, 0x1800b9fe0\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe2, 0x1800b9fe2\ntest    rsi, rsi                                                       ; +0xe7, 0x1800b9fe7\njz      short loc_1800B9FFB                                            ; +0xea, 0x1800b9fea\nmov     rax, [rbx]                                                     ; +0xec, 0x1800b9fec\nmov     rdx, rsi                                                       ; +0xef, 0x1800b9fef\nmov     rcx, rbx                                                       ; +0xf2, 0x1800b9ff2\ncall    qword ptr [rax+450h]                                           ; +0xf5, 0x1800b9ff5\nmov     rax, rbx                                                       ; +0xfb, 0x1800b9ffb\njmp     short loc_1800BA00D                                            ; +0xfe, 0x1800b9ffe\nmov     rax, [rbx]                                                     ; +0x100, 0x1800ba000\nmov     edx, 1                                                         ; +0x103, 0x1800ba003\ncall    qword ptr [rax+8]                                              ; +0x108, 0x1800ba008\nxor     eax, eax                                                       ; +0x10b, 0x1800ba00b\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x10d, 0x1800ba00d\nmov     rbp, [rsp+58h+arg_8]                                           ; +0x112, 0x1800ba012\nmov     rsi, [rsp+58h+arg_10]                                          ; +0x117, 0x1800ba017\nadd     rsp, 40h                                                       ; +0x11c, 0x1800ba01c\npop     r15                                                            ; +0x120, 0x1800ba020\npop     r14                                                            ; +0x122, 0x1800ba022\npop     rdi                                                            ; +0x124, 0x1800ba024\nretn                                                                   ; +0x125, 0x1800ba025", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2e2c"], "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"}