{"type": "func", "start": 4299834128, "end": 4299834287, "name": "-[EditBoxImplMac textFieldShouldEndEditing:]", "pseudocode": "// \n// -[EditBoxImplMac textFieldShouldEndEditing:] from 0x1004a4310 to 0x1004a43af (159 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100bdcd10\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:54 +0000\n// \n\nchar __cdecl -[EditBoxImplMac textFieldShouldEndEditing:](EditBoxImplMac *self, SEL a2, id a3)\n{\n  _QWORD *editBox; // rax\n  __int64 v4; // r14\n  __int64 v5; // rbx\n  _QWORD *v6; // rax\n  __int64 v7; // r14\n\n  self->editState_ = 0;\n  editBox = self->editBox_;\n  v4 = editBox[1];\n  if ( v4 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD, id))(*(_QWORD *)v4 + 24LL))(v4, editBox[2], a3);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 40LL))(v4, *((_QWORD *)self->editBox_ + 2));\n    editBox = self->editBox_;\n  }\n  v5 = editBox[2];\n  if ( v5 && *(_DWORD *)(v5 + 728) )\n  {\n    v6 = cocos2d::CCScriptEngineManager::sharedManager();\n    v7 = *v6;\n    (*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v6 + 144LL))(\n      *v6,\n      *(unsigned int *)(v5 + 728),\n      \"ended\",\n      v5,\n      0);\n    (*(void (__fastcall **)(__int64, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)v7 + 144LL))(\n      v7,\n      *(unsigned int *)(v5 + 728),\n      \"return\",\n      v5,\n      0);\n  }\n  return 1;\n}", "assembly": "; \n; -[EditBoxImplMac textFieldShouldEndEditing:] from 0x1004a4310 to 0x1004a43af (159 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100bdcd10\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:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004a4310\nmov     rbp, rsp                                                       ; +0x1, 0x1004a4311\npush    r14                                                            ; +0x4, 0x1004a4314\npush    rbx                                                            ; +0x6, 0x1004a4316\nmov     byte ptr [rdi+18h], 0                                          ; +0x7, 0x1004a4317\nmov     rax, [rdi+10h]                                                 ; +0xb, 0x1004a431b\nmov     r14, [rax+8]                                                   ; +0xf, 0x1004a431f\ntest    r14, r14                                                       ; +0x13, 0x1004a4323\njz      short loc_1004A434D                                            ; +0x16, 0x1004a4326\nmov     rbx, rdi                                                       ; +0x18, 0x1004a4328\nmov     rsi, [rax+10h]                                                 ; +0x1b, 0x1004a432b\nmov     rax, [r14]                                                     ; +0x1f, 0x1004a432f\nmov     rdi, r14                                                       ; +0x22, 0x1004a4332\ncall    qword ptr [rax+18h]                                            ; +0x25, 0x1004a4335\nmov     rax, [rbx+10h]                                                 ; +0x28, 0x1004a4338\nmov     rsi, [rax+10h]                                                 ; +0x2c, 0x1004a433c\nmov     rax, [r14]                                                     ; +0x30, 0x1004a4340\nmov     rdi, r14                                                       ; +0x33, 0x1004a4343\ncall    qword ptr [rax+28h]                                            ; +0x36, 0x1004a4346\nmov     rax, [rbx+10h]                                                 ; +0x39, 0x1004a4349\nmov     rbx, [rax+10h]                                                 ; +0x3d, 0x1004a434d\ntest    rbx, rbx                                                       ; +0x41, 0x1004a4351\njz      short loc_1004A43A5                                            ; +0x44, 0x1004a4354\ncmp     dword ptr [rbx+2D8h], 0                                        ; +0x46, 0x1004a4356\njz      short loc_1004A43A5                                            ; +0x4d, 0x1004a435d\ncall    cocos2d__CCScriptEngineManager__sharedManager                  ; +0x4f, 0x1004a435f\nmov     r14, [rax]                                                     ; +0x54, 0x1004a4364\nmov     esi, [rbx+2D8h]                                                ; +0x57, 0x1004a4367\nmov     rax, [r14]                                                     ; +0x5d, 0x1004a436d\nlea     rdx, aEnded; \"ended\"                                           ; +0x60, 0x1004a4370\nmov     rdi, r14                                                       ; +0x67, 0x1004a4377\nmov     rcx, rbx                                                       ; +0x6a, 0x1004a437a\nxor     r8d, r8d                                                       ; +0x6d, 0x1004a437d\ncall    qword ptr [rax+90h]                                            ; +0x70, 0x1004a4380\nmov     esi, [rbx+2D8h]                                                ; +0x76, 0x1004a4386\nmov     rax, [r14]                                                     ; +0x7c, 0x1004a438c\nlea     rdx, aReturn; \"return\"                                         ; +0x7f, 0x1004a438f\nmov     rdi, r14                                                       ; +0x86, 0x1004a4396\nmov     rcx, rbx                                                       ; +0x89, 0x1004a4399\nxor     r8d, r8d                                                       ; +0x8c, 0x1004a439c\ncall    qword ptr [rax+90h]                                            ; +0x8f, 0x1004a439f\nmov     eax, 1                                                         ; +0x95, 0x1004a43a5\npop     rbx                                                            ; +0x9a, 0x1004a43aa\npop     r14                                                            ; +0x9b, 0x1004a43ab\npop     rbp                                                            ; +0x9d, 0x1004a43ad\nretn                                                                   ; +0x9e, 0x1004a43ae", "xrefs": ["<???> @ 0x100bdcd10"], "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"}