//
// -[EditBoxImplIOS textFieldShouldBeginEditing:] from 0x1002d2888 to 0x1002d2934 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ce1c8
//
// 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 textFieldShouldBeginEditing:](EditBoxImplIOS *self, SEL a2, id a3)
{
_QWORD *editBox; // x8
__int64 v5; // x0
__int64 v6; // x19
_QWORD *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 )
{
v5 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 16LL))(v5, editBox[2]);
editBox = self->editBox_;
}
v6 = editBox[2];
if ( v6 && *(_DWORD *)(v6 + 728) )
{
v7 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v5);
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v7 + 144LL))(
*v7,
*(unsigned int *)(v6 + 728),
"began",
v6,
0);
}
return 1;
}