{"type": "func", "start": 4299863040, "end": 4299863146, "name": "-[EditBoxImplMac textFieldShouldBeginEditing:]", "pseudocode": "// \n// -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004ab400 to 0x1004ab46a (106 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099ac58\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 textFieldShouldBeginEditing:](EditBoxImplMac *self, SEL a2, id a3)\n{\n  _QWORD *editBox; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rbx\n  cocos2d::CCScriptEngineManager *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      *(_QWORD *)v7,\n      *(unsigned int *)(v6 + 728),\n      \"began\",\n      v6,\n      0);\n  }\n  return 1;\n}", "assembly": "; \n; -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004ab400 to 0x1004ab46a (106 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099ac58\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, 0x1004ab400\nmov     rbp, rsp                                                       ; +0x1, 0x1004ab401\npush    rbx                                                            ; +0x4, 0x1004ab404\npush    rax                                                            ; +0x5, 0x1004ab405\nmov     rbx, rdi                                                       ; +0x6, 0x1004ab406\nmov     byte ptr [rdi+18h], 1                                          ; +0x9, 0x1004ab409\nmov     rax, [rdi+10h]                                                 ; +0xd, 0x1004ab40d\nmov     rdi, [rax+8]                                                   ; +0x11, 0x1004ab411\ntest    rdi, rdi                                                       ; +0x15, 0x1004ab415\njz      short loc_1004AB428                                            ; +0x18, 0x1004ab418\nmov     rsi, [rax+10h]                                                 ; +0x1a, 0x1004ab41a\nmov     rax, [rdi]                                                     ; +0x1e, 0x1004ab41e\ncall    qword ptr [rax+10h]                                            ; +0x21, 0x1004ab421\nmov     rax, [rbx+10h]                                                 ; +0x24, 0x1004ab424\nmov     rbx, [rax+10h]                                                 ; +0x28, 0x1004ab428\ntest    rbx, rbx                                                       ; +0x2c, 0x1004ab42c\njz      short loc_1004AB45E                                            ; +0x2f, 0x1004ab42f\ncmp     dword ptr [rbx+2D8h], 0                                        ; +0x31, 0x1004ab431\njz      short loc_1004AB45E                                            ; +0x38, 0x1004ab438\ncall    cocos2d__CCScriptEngineManager__sharedManager                  ; +0x3a, 0x1004ab43a\nmov     rdi, [rax]                                                     ; +0x3f, 0x1004ab43f\nmov     esi, [rbx+2D8h]                                                ; +0x42, 0x1004ab442\nmov     rax, [rdi]                                                     ; +0x48, 0x1004ab448\nlea     rdx, aBegan; \"began\"                                           ; +0x4b, 0x1004ab44b\nmov     rcx, rbx                                                       ; +0x52, 0x1004ab452\nxor     r8d, r8d                                                       ; +0x55, 0x1004ab455\ncall    qword ptr [rax+90h]                                            ; +0x58, 0x1004ab458\nmov     eax, 1                                                         ; +0x5e, 0x1004ab45e\nadd     rsp, 8                                                         ; +0x63, 0x1004ab463\npop     rbx                                                            ; +0x67, 0x1004ab467\npop     rbp                                                            ; +0x68, 0x1004ab468\nretn                                                                   ; +0x69, 0x1004ab469", "xrefs": ["<???> @ 0x10099ac58"], "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"}