{"type": "func", "start": 4299863312, "end": 4299863451, "name": "-[EditBoxImplMac textField:shouldChangeCharactersInRange:replacementString:]", "pseudocode": "// \n// -[EditBoxImplMac textField:shouldChangeCharactersInRange:replacementString:] from 0x1004ab510 to 0x1004ab59b (139 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099ac88\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 textField:shouldChangeCharactersInRange:replacementString:](\n        EditBoxImplMac *self,\n        SEL a2,\n        id a3,\n        _NSRange a4,\n        id a5)\n{\n  NSUInteger length; // r14\n  id v8; // rax\n  char *v9; // r13\n  char *v10; // r13\n\n  length = a4.length;\n  if ( (*(int (__fastcall **)(void *, SEL, id, NSUInteger))(*(_QWORD *)self->editBox_ + 80LL))(\n         self->editBox_,\n         a2,\n         a3,\n         a4.location) < 0 )\n    return 1;\n  v8 = objc_msgSend(a3, \"stringValue\");\n  v9 = (char *)objc_msgSend(v8, \"length\");\n  v10 = &v9[(_QWORD)objc_msgSend(a5, \"length\") - length];\n  return (unsigned __int64)v10 <= (*(int (__fastcall **)(void *))(*(_QWORD *)self->editBox_ + 80LL))(self->editBox_);\n}", "assembly": "; \n; -[EditBoxImplMac textField:shouldChangeCharactersInRange:replacementString:] from 0x1004ab510 to 0x1004ab59b (139 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099ac88\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, 0x1004ab510\nmov     rbp, rsp                                                       ; +0x1, 0x1004ab511\npush    r15                                                            ; +0x4, 0x1004ab514\npush    r14                                                            ; +0x6, 0x1004ab516\npush    r13                                                            ; +0x8, 0x1004ab518\npush    r12                                                            ; +0xa, 0x1004ab51a\npush    rbx                                                            ; +0xc, 0x1004ab51c\npush    rax                                                            ; +0xd, 0x1004ab51d\nmov     r15, r9                                                        ; +0xe, 0x1004ab51e\nmov     r14, r8                                                        ; +0x11, 0x1004ab521\nmov     r12, rdx                                                       ; +0x14, 0x1004ab524\nmov     rbx, rdi                                                       ; +0x17, 0x1004ab527\nmov     rdi, [rdi+10h]                                                 ; +0x1a, 0x1004ab52a\nmov     rax, [rdi]                                                     ; +0x1e, 0x1004ab52e\ncall    qword ptr [rax+50h]                                            ; +0x21, 0x1004ab531\ntest    eax, eax                                                       ; +0x24, 0x1004ab534\njs      short loc_1004AB587                                            ; +0x26, 0x1004ab536\nmov     rsi, cs:selRef_stringValue; SEL                                ; +0x28, 0x1004ab538\nmov     [rbp+var_30], r14                                              ; +0x2f, 0x1004ab53f\nmov     r14, cs:_objc_msgSend_ptr                                      ; +0x33, 0x1004ab543\nmov     rdi, r12; id                                                   ; +0x3a, 0x1004ab54a\ncall    r14 ; _objc_msgSend                                            ; +0x3d, 0x1004ab54d\nmov     r12, cs:selRef_length                                          ; +0x40, 0x1004ab550\nmov     rdi, rax; id                                                   ; +0x47, 0x1004ab557\nmov     rsi, r12; SEL                                                  ; +0x4a, 0x1004ab55a\ncall    r14 ; _objc_msgSend                                            ; +0x4d, 0x1004ab55d\nmov     r13, rax                                                       ; +0x50, 0x1004ab560\nmov     rdi, r15; id                                                   ; +0x53, 0x1004ab563\nmov     rsi, r12; SEL                                                  ; +0x56, 0x1004ab566\ncall    r14 ; _objc_msgSend                                            ; +0x59, 0x1004ab569\nsub     r13, [rbp+var_30]                                              ; +0x5c, 0x1004ab56c\nadd     r13, rax                                                       ; +0x60, 0x1004ab570\nmov     rdi, [rbx+10h]                                                 ; +0x63, 0x1004ab573\nmov     rax, [rdi]                                                     ; +0x67, 0x1004ab577\ncall    qword ptr [rax+50h]                                            ; +0x6a, 0x1004ab57a\ncdqe                                                                   ; +0x6d, 0x1004ab57d\ncmp     r13, rax                                                       ; +0x6f, 0x1004ab57f\nsetbe   al                                                             ; +0x72, 0x1004ab582\njmp     short loc_1004AB589                                            ; +0x75, 0x1004ab585\nmov     al, 1                                                          ; +0x77, 0x1004ab587\nmovzx   eax, al                                                        ; +0x79, 0x1004ab589\nadd     rsp, 8                                                         ; +0x7c, 0x1004ab58c\npop     rbx                                                            ; +0x80, 0x1004ab590\npop     r12                                                            ; +0x81, 0x1004ab591\npop     r13                                                            ; +0x83, 0x1004ab593\npop     r14                                                            ; +0x85, 0x1004ab595\npop     r15                                                            ; +0x87, 0x1004ab597\npop     rbp                                                            ; +0x89, 0x1004ab599\nretn                                                                   ; +0x8a, 0x1004ab59a", "xrefs": ["<???> @ 0x10099ac88"], "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"}