//
// -[EditBoxImplMac textField:shouldChangeCharactersInRange:replacementString:] from 0x1004a43b0 to 0x1004a443b (139 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdcd28
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:30:54 +0000
//
char __cdecl -[EditBoxImplMac textField:shouldChangeCharactersInRange:replacementString:](
EditBoxImplMac *self,
SEL a2,
id a3,
_NSRange a4,
id a5)
{
NSUInteger length; // r14
id v8; // rax
char *v9; // r13
char *v10; // r13
length = a4.length;
if ( (*(int (__fastcall **)(void *, SEL, id, NSUInteger))(*(_QWORD *)self->editBox_ + 80LL))(
self->editBox_,
a2,
a3,
a4.location) < 0 )
return 1;
v8 = objc_msgSend(a3, "stringValue");
v9 = (char *)objc_msgSend(v8, "length");
v10 = &v9[(_QWORD)objc_msgSend(a5, "length") - length];
return (unsigned __int64)v10 <= (*(int (__fastcall **)(void *))(*(_QWORD *)self->editBox_ + 80LL))(self->editBox_);
}