//
// -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004a42a0 to 0x1004a430a (106 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bdccf8
//
// 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:53 +0000
//
char __cdecl -[EditBoxImplMac textFieldShouldBeginEditing:](EditBoxImplMac *self, SEL a2, id a3)
{
_QWORD *editBox; // rax
__int64 v5; // rdi
__int64 v6; // rbx
_QWORD *v7; // rax
self->editState_ = 1;
editBox = self->editBox_;
v5 = editBox[1];
if ( v5 )
{
(*(void (__fastcall **)(__int64, _QWORD, id))(*(_QWORD *)v5 + 16LL))(v5, editBox[2], a3);
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))(
*v7,
*(unsigned int *)(v6 + 728),
"began",
v6,
0);
}
return 1;
}