//
// -[EditBoxImplIOS textFieldShouldBeginEditing:] from 0x100235e78 to 0x100235f24 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x100846340
//
// 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
//
bool __cdecl -[EditBoxImplIOS textFieldShouldBeginEditing:](EditBoxImplIOS *self, SEL a2, id a3)
{
_QWORD *editBox; // x8
__int64 v5; // x0
__int64 v6; // x19
cocos2d::CCScriptEngineManager *v7; // x0
self->editState_ = 1;
if ( (unsigned int)objc_msgSend(
+[EAGLView sharedEGLView](&OBJC_CLASS___EAGLView, "sharedEGLView", a3),
"isKeyboardShown") )
-[EditBoxImplIOS performSelector:withObject:afterDelay:](
self,
"performSelector:withObject:afterDelay:",
"animationSelector",
0,
0.0);
editBox = self->editBox_;
v5 = editBox[1];
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 16LL))(v5, editBox[2]);
editBox = self->editBox_;
}
v6 = editBox[2];
if ( v6 && *(_DWORD *)(v6 + 728) )
{
v7 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(**(_QWORD **)v7 + 144LL))(
*(_QWORD *)v7,
*(unsigned int *)(v6 + 728),
"began",
v6,
0);
}
return 1;
}