//
// -[EditBoxImplMac textFieldShouldEndEditing:] from 0x1004a4310 to 0x1004a43af (159 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdcd10
//
// 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 textFieldShouldEndEditing:](EditBoxImplMac *self, SEL a2, id a3)
{
_QWORD *editBox; // rax
__int64 v4; // r14
__int64 v5; // rbx
_QWORD *v6; // rax
__int64 v7; // r14
self->editState_ = 0;
editBox = self->editBox_;
v4 = editBox[1];
if ( v4 )
{
(*(void (__fastcall **)(__int64, _QWORD, id))(*(_QWORD *)v4 + 24LL))(v4, editBox[2], a3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 40LL))(v4, *((_QWORD *)self->editBox_ + 2));
editBox = self->editBox_;
}
v5 = editBox[2];
if ( v5 && *(_DWORD *)(v5 + 728) )
{
v6 = cocos2d::CCScriptEngineManager::sharedManager();
v7 = *v6;
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v6 + 144LL))(
*v6,
*(unsigned int *)(v5 + 728),
"ended",
v5,
0);
(*(void (__fastcall **)(__int64, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)v7 + 144LL))(
v7,
*(unsigned int *)(v5 + 728),
"return",
v5,
0);
}
return 1;
}