{"type": "func", "start": 4297927224, "end": 4297927356, "name": "-[EditBoxImplIOS textField:shouldChangeCharactersInRange:replacementString:]", "pseudocode": "// \n// -[EditBoxImplIOS textField:shouldChangeCharactersInRange:replacementString:] from 0x1002d2a38 to 0x1002d2abc (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009ce1f8\n// \n// This function is hookable on this platform (idp: arm, 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 11:02:39 +0000\n// \n\nbool __cdecl -[EditBoxImplIOS textField:shouldChangeCharactersInRange:replacementString:](\n        EditBoxImplIOS *self,\n        SEL a2,\n        id a3,\n        _NSRange a4,\n        id a5)\n{\n  NSUInteger length; // x20\n  char *v9; // x22\n  char *v10; // x20\n\n  length = a4.length;\n  if ( ((*(__int64 (__fastcall **)(void *, SEL, id, NSUInteger))(*(_QWORD *)self->editBox_ + 80LL))(\n          self->editBox_,\n          a2,\n          a3,\n          a4.location)\n      & 0x80000000) != 0 )\n    return 1;\n  v9 = (char *)objc_msgSend(objc_msgSend(a3, \"text\"), \"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; -[EditBoxImplIOS textField:shouldChangeCharactersInRange:replacementString:] from 0x1002d2a38 to 0x1002d2abc (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009ce1f8\n; \n; This function is hookable on this platform (idp: arm, 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 11:02:39 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002d2a38\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d2a3c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d2a40\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d2a44\nMOV             X21, X5                                                ; +0x10, 0x1002d2a48\nMOV             X20, X4                                                ; +0x14, 0x1002d2a4c\nMOV             X22, X2                                                ; +0x18, 0x1002d2a50\nMOV             X19, X0                                                ; +0x1c, 0x1002d2a54\nLDR             X0, [X0,#0x10]                                         ; +0x20, 0x1002d2a58\nLDR             X8, [X0]                                               ; +0x24, 0x1002d2a5c\nLDR             X8, [X8,#0x50]                                         ; +0x28, 0x1002d2a60\nBLR             X8                                                     ; +0x2c, 0x1002d2a64\nTBNZ            W0, #0x1F, loc_1002D2AA8                               ; +0x30, 0x1002d2a68\nMOV             X0, X22                                                ; +0x34, 0x1002d2a6c\nBL              _objc_msgSend$text                                     ; +0x38, 0x1002d2a70\nBL              _objc_msgSend$length                                   ; +0x3c, 0x1002d2a74\nMOV             X22, X0                                                ; +0x40, 0x1002d2a78\nMOV             X0, X21                                                ; +0x44, 0x1002d2a7c\nBL              _objc_msgSend$length                                   ; +0x48, 0x1002d2a80\nSUB             X8, X22, X20                                           ; +0x4c, 0x1002d2a84\nADD             X20, X8, X0                                            ; +0x50, 0x1002d2a88\nLDR             X0, [X19,#0x10]                                        ; +0x54, 0x1002d2a8c\nLDR             X8, [X0]                                               ; +0x58, 0x1002d2a90\nLDR             X8, [X8,#0x50]                                         ; +0x5c, 0x1002d2a94\nBLR             X8                                                     ; +0x60, 0x1002d2a98\nCMP             X20, W0,SXTW                                           ; +0x64, 0x1002d2a9c\nCSET            W0, LS                                                 ; +0x68, 0x1002d2aa0\nB               loc_1002D2AAC                                          ; +0x6c, 0x1002d2aa4\nMOV             W0, #1                                                 ; +0x70, 0x1002d2aa8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x1002d2aac\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x1002d2ab0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x7c, 0x1002d2ab4\nRET                                                                    ; +0x80, 0x1002d2ab8", "xrefs": ["<???> @ 0x1009ce1f8"], "is_objc": true, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}