//
// -[EditBoxImplMac textFieldShouldEndEditing:] from 0x1004ab470 to 0x1004ab50f (159 bytes)
//
// 1 xrefs:
// > ??> @ 0x10099ac70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __cdecl -[EditBoxImplMac textFieldShouldEndEditing:](EditBoxImplMac *self, SEL a2, id a3)
{
_QWORD *editBox; // rax
__int64 v4; // r14
__int64 v5; // rbx
cocos2d::CCScriptEngineManager *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 = *(_QWORD *)v6;
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(**(_QWORD **)v6 + 144LL))(
*(_QWORD *)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;
}