{"type": "func", "start": 4296933392, "end": 4296933523, "name": "EditLevelLayer::textInputOpened", "pseudocode": "// \n// EditLevelLayer::textInputOpened from 0x1001e0010 to 0x1001e0093 (131 bytes)\n// \n// 2 xrefs:\n// > sub_1001E00E0 @ 0x1001e00e5\n// > <???> @ 0x100ade980\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 12:26:28 +0000\n// \n\nvoid __fastcall EditLevelLayer::textInputOpened(__int64 a1, __int64 a2)\n{\n  void *v2[3]; // [rsp+8h] [rbp-38h] BYREF\n  std::string v3; // [rsp+20h] [rbp-20h] BYREF\n\n  CCTextInputNode::getString(v2, a2);\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    goto LABEL_9;\n  }\n  if ( ((__int64)v2[0] & 1) != 0 )\n  {\n    if ( v2[1] )\n      goto LABEL_9;\n  }\n  else if ( LOBYTE(v2[0]) >> 1 )\n  {\n    goto LABEL_9;\n  }\n  *(_WORD *)&v3.__r_.__value_.__l.0 = 8194;\n  v3.__r_.__value_.__s.__data_[1] = 0;\n  CCTextInputNode::updateLabel(a2, &v3);\n  if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v3.__r_.__value_.__l.__data_);\nLABEL_9:\n  if ( ((__int64)v2[0] & 1) != 0 )\n    operator delete(v2[2]);\n}", "assembly": "; \n; EditLevelLayer::textInputOpened from 0x1001e0010 to 0x1001e0093 (131 bytes)\n; \n; 2 xrefs:\n; > sub_1001E00E0 @ 0x1001e00e5\n; > <???> @ 0x100ade980\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 12:26:28 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001e0010\nmov     rbp, rsp                                                       ; +0x1, 0x1001e0011\npush    rbx                                                            ; +0x4, 0x1001e0014\nsub     rsp, 38h                                                       ; +0x5, 0x1001e0015\nmov     rbx, rsi                                                       ; +0x9, 0x1001e0019\nlea     rdi, [rbp+var_38]                                              ; +0xc, 0x1001e001c\ncall    CCTextInputNode__getString                                     ; +0x10, 0x1001e0020\nmov     rax, [rbx]                                                     ; +0x15, 0x1001e0025\nmov     rdi, rbx                                                       ; +0x18, 0x1001e0028\ncall    qword ptr [rax+40h]                                            ; +0x1b, 0x1001e002b\ncmp     eax, 1                                                         ; +0x1e, 0x1001e002e\njnz     short loc_1001E0046                                            ; +0x21, 0x1001e0031\nmovzx   eax, [rbp+var_38]                                              ; +0x23, 0x1001e0033\ntest    al, 1                                                          ; +0x27, 0x1001e0037\njz      short loc_1001E0051                                            ; +0x29, 0x1001e0039\nmov     rax, [rbp+var_30]                                              ; +0x2b, 0x1001e003b\ntest    rax, rax                                                       ; +0x2f, 0x1001e003f\njnz     short loc_1001E007D                                            ; +0x32, 0x1001e0042\njmp     short loc_1001E0058                                            ; +0x34, 0x1001e0044\nmov     rax, [rbx]                                                     ; +0x36, 0x1001e0046\nmov     rdi, rbx                                                       ; +0x39, 0x1001e0049\ncall    qword ptr [rax+40h]                                            ; +0x3c, 0x1001e004c\njmp     short loc_1001E007D                                            ; +0x3f, 0x1001e004f\nshr     eax, 1                                                         ; +0x41, 0x1001e0051\ntest    rax, rax                                                       ; +0x43, 0x1001e0053\njnz     short loc_1001E007D                                            ; +0x46, 0x1001e0056\nmov     [rbp+var_20], 2002h                                            ; +0x48, 0x1001e0058\nmov     [rbp+var_1E], 0                                                ; +0x4e, 0x1001e005e\nlea     rsi, [rbp+var_20]                                              ; +0x52, 0x1001e0062\nmov     rdi, rbx                                                       ; +0x56, 0x1001e0066\ncall    CCTextInputNode__updateLabel                                   ; +0x59, 0x1001e0069\ntest    byte ptr [rbp+var_20], 1                                       ; +0x5e, 0x1001e006e\njz      short loc_1001E007D                                            ; +0x62, 0x1001e0072\nmov     rdi, [rbp+__p]; __p                                            ; +0x64, 0x1001e0074\ncall    __ZdlPv; operator delete(void *)                               ; +0x68, 0x1001e0078\ntest    [rbp+var_38], 1                                                ; +0x6d, 0x1001e007d\njz      short loc_1001E008C                                            ; +0x71, 0x1001e0081\nmov     rdi, [rbp+var_28]; __p                                         ; +0x73, 0x1001e0083\ncall    __ZdlPv; operator delete(void *)                               ; +0x77, 0x1001e0087\nadd     rsp, 38h                                                       ; +0x7c, 0x1001e008c\npop     rbx                                                            ; +0x80, 0x1001e0090\npop     rbp                                                            ; +0x81, 0x1001e0091\nretn                                                                   ; +0x82, 0x1001e0092", "xrefs": ["sub_1001E00E0 @ 0x1001e00e5", "<???> @ 0x100ade980"], "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"}