{"type": "func", "start": 4299834016, "end": 4299834122, "name": "-[EditBoxImplMac textFieldShouldBeginEditing:]", "pseudocode": "// \n// -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004a42a0 to 0x1004a430a (106 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdccf8\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:30:53 +0000\n// \n\nchar __cdecl -[EditBoxImplMac textFieldShouldBeginEditing:](EditBoxImplMac *self, SEL a2, id a3)\n{\n  _QWORD *editBox; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rbx\n  _QWORD *v7; // rax\n\n  self->editState_ = 1;\n  editBox = self->editBox_;\n  v5 = editBox[1];\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD, id))(*(_QWORD *)v5 + 16LL))(v5, editBox[2], a3);\n    editBox = self->editBox_;\n  }\n  v6 = editBox[2];\n  if ( v6 && *(_DWORD *)(v6 + 728) )\n  {\n    v7 = cocos2d::CCScriptEngineManager::sharedManager();\n    (*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v7 + 144LL))(\n      *v7,\n      *(unsigned int *)(v6 + 728),\n      \"began\",\n      v6,\n      0);\n  }\n  return 1;\n}", "assembly": "; \n; -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004a42a0 to 0x1004a430a (106 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdccf8\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:30:53 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004a42a0\nmov     rbp, rsp                                                       ; +0x1, 0x1004a42a1\npush    rbx                                                            ; +0x4, 0x1004a42a4\npush    rax                                                            ; +0x5, 0x1004a42a5\nmov     rbx, rdi                                                       ; +0x6, 0x1004a42a6\nmov     byte ptr [rdi+18h], 1                                          ; +0x9, 0x1004a42a9\nmov     rax, [rdi+10h]                                                 ; +0xd, 0x1004a42ad\nmov     rdi, [rax+8]                                                   ; +0x11, 0x1004a42b1\ntest    rdi, rdi                                                       ; +0x15, 0x1004a42b5\njz      short loc_1004A42C8                                            ; +0x18, 0x1004a42b8\nmov     rsi, [rax+10h]                                                 ; +0x1a, 0x1004a42ba\nmov     rax, [rdi]                                                     ; +0x1e, 0x1004a42be\ncall    qword ptr [rax+10h]                                            ; +0x21, 0x1004a42c1\nmov     rax, [rbx+10h]                                                 ; +0x24, 0x1004a42c4\nmov     rbx, [rax+10h]                                                 ; +0x28, 0x1004a42c8\ntest    rbx, rbx                                                       ; +0x2c, 0x1004a42cc\njz      short loc_1004A42FE                                            ; +0x2f, 0x1004a42cf\ncmp     dword ptr [rbx+2D8h], 0                                        ; +0x31, 0x1004a42d1\njz      short loc_1004A42FE                                            ; +0x38, 0x1004a42d8\ncall    cocos2d__CCScriptEngineManager__sharedManager                  ; +0x3a, 0x1004a42da\nmov     rdi, [rax]                                                     ; +0x3f, 0x1004a42df\nmov     esi, [rbx+2D8h]                                                ; +0x42, 0x1004a42e2\nmov     rax, [rdi]                                                     ; +0x48, 0x1004a42e8\nlea     rdx, aBegan; \"began\"                                           ; +0x4b, 0x1004a42eb\nmov     rcx, rbx                                                       ; +0x52, 0x1004a42f2\nxor     r8d, r8d                                                       ; +0x55, 0x1004a42f5\ncall    qword ptr [rax+90h]                                            ; +0x58, 0x1004a42f8\nmov     eax, 1                                                         ; +0x5e, 0x1004a42fe\nadd     rsp, 8                                                         ; +0x63, 0x1004a4303\npop     rbx                                                            ; +0x67, 0x1004a4307\npop     rbp                                                            ; +0x68, 0x1004a4308\nretn                                                                   ; +0x69, 0x1004a4309", "xrefs": ["<???> @ 0x100bdccf8"], "is_objc": true, "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"}