//
// -[EditBoxImplIOS textFieldShouldEndEditing:] from 0x1002d2934 to 0x1002d2a38 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ce1e0
//
// This function is hookable on this platform (idp: arm, 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 11:02:39 +0000
//
bool __cdecl -[EditBoxImplIOS textFieldShouldEndEditing:](EditBoxImplIOS *self, SEL a2, id a3)
{
void *editBox; // x20
__int64 v5; // x0
_QWORD *v6; // x0
__int64 v7; // x20
__int64 v8; // x20
_QWORD *v9; // x0
__int64 v10; // x21
self->editState_ = 0;
editBox = self->editBox_;
v5 = (*(__int64 (__fastcall **)(void *, SEL, id))(*(_QWORD *)editBox + 112LL))(editBox, a2, a3);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)editBox + 104LL))(editBox, v5);
v6 = self->editBox_;
v7 = v6[1];
if ( v7 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v7 + 24LL))(v6[1], v6[2]);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 40LL))(v7, *((_QWORD *)self->editBox_ + 2));
v6 = self->editBox_;
}
v8 = v6[2];
if ( !v8
|| !*(_DWORD *)(v8 + 728)
|| (v9 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v6),
v10 = *v9,
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v9 + 144LL))(
*v9,
*(unsigned int *)(v8 + 728),
"ended",
v8,
0),
(*(void (__fastcall **)(__int64, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)v10 + 144LL))(
v10,
*(unsigned int *)(v8 + 728),
"return",
v8,
0),
(v6 = self->editBox_) != nullptr) )
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 200LL))(v6);
}
return 1;
}