{"type": "func", "start": 4299863152, "end": 4299863311, "name": "-[EditBoxImplMac textFieldShouldEndEditing:]", "pseudocode": "// \n// -[EditBoxImplMac textFieldShouldEndEditing:] from 0x1004ab470 to 0x1004ab50f (159 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099ac70\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\nchar __cdecl -[EditBoxImplMac textFieldShouldEndEditing:](EditBoxImplMac *self, SEL a2, id a3)\n{\n  _QWORD *editBox; // rax\n  __int64 v4; // r14\n  __int64 v5; // rbx\n  cocos2d::CCScriptEngineManager *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 = *(_QWORD *)v6;\n    (*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(**(_QWORD **)v6 + 144LL))(\n      *(_QWORD *)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 0x1004ab470 to 0x1004ab50f (159 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099ac70\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\npush    rbp                                                            ; +0x0, 0x1004ab470\nmov     rbp, rsp                                                       ; +0x1, 0x1004ab471\npush    r14                                                            ; +0x4, 0x1004ab474\npush    rbx                                                            ; +0x6, 0x1004ab476\nmov     byte ptr [rdi+18h], 0                                          ; +0x7, 0x1004ab477\nmov     rax, [rdi+10h]                                                 ; +0xb, 0x1004ab47b\nmov     r14, [rax+8]                                                   ; +0xf, 0x1004ab47f\ntest    r14, r14                                                       ; +0x13, 0x1004ab483\njz      short loc_1004AB4AD                                            ; +0x16, 0x1004ab486\nmov     rbx, rdi                                                       ; +0x18, 0x1004ab488\nmov     rsi, [rax+10h]                                                 ; +0x1b, 0x1004ab48b\nmov     rax, [r14]                                                     ; +0x1f, 0x1004ab48f\nmov     rdi, r14                                                       ; +0x22, 0x1004ab492\ncall    qword ptr [rax+18h]                                            ; +0x25, 0x1004ab495\nmov     rax, [rbx+10h]                                                 ; +0x28, 0x1004ab498\nmov     rsi, [rax+10h]                                                 ; +0x2c, 0x1004ab49c\nmov     rax, [r14]                                                     ; +0x30, 0x1004ab4a0\nmov     rdi, r14                                                       ; +0x33, 0x1004ab4a3\ncall    qword ptr [rax+28h]                                            ; +0x36, 0x1004ab4a6\nmov     rax, [rbx+10h]                                                 ; +0x39, 0x1004ab4a9\nmov     rbx, [rax+10h]                                                 ; +0x3d, 0x1004ab4ad\ntest    rbx, rbx                                                       ; +0x41, 0x1004ab4b1\njz      short loc_1004AB505                                            ; +0x44, 0x1004ab4b4\ncmp     dword ptr [rbx+2D8h], 0                                        ; +0x46, 0x1004ab4b6\njz      short loc_1004AB505                                            ; +0x4d, 0x1004ab4bd\ncall    cocos2d__CCScriptEngineManager__sharedManager                  ; +0x4f, 0x1004ab4bf\nmov     r14, [rax]                                                     ; +0x54, 0x1004ab4c4\nmov     esi, [rbx+2D8h]                                                ; +0x57, 0x1004ab4c7\nmov     rax, [r14]                                                     ; +0x5d, 0x1004ab4cd\nlea     rdx, aEnded; \"ended\"                                           ; +0x60, 0x1004ab4d0\nmov     rdi, r14                                                       ; +0x67, 0x1004ab4d7\nmov     rcx, rbx                                                       ; +0x6a, 0x1004ab4da\nxor     r8d, r8d                                                       ; +0x6d, 0x1004ab4dd\ncall    qword ptr [rax+90h]                                            ; +0x70, 0x1004ab4e0\nmov     esi, [rbx+2D8h]                                                ; +0x76, 0x1004ab4e6\nmov     rax, [r14]                                                     ; +0x7c, 0x1004ab4ec\nlea     rdx, aReturn; \"return\"                                         ; +0x7f, 0x1004ab4ef\nmov     rdi, r14                                                       ; +0x86, 0x1004ab4f6\nmov     rcx, rbx                                                       ; +0x89, 0x1004ab4f9\nxor     r8d, r8d                                                       ; +0x8c, 0x1004ab4fc\ncall    qword ptr [rax+90h]                                            ; +0x8f, 0x1004ab4ff\nmov     eax, 1                                                         ; +0x95, 0x1004ab505\npop     rbx                                                            ; +0x9a, 0x1004ab50a\npop     r14                                                            ; +0x9b, 0x1004ab50b\npop     rbp                                                            ; +0x9d, 0x1004ab50d\nretn                                                                   ; +0x9e, 0x1004ab50e", "xrefs": ["<???> @ 0x10099ac70"], "is_objc": true, "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"}