//
// -[EditBoxImplMac textFieldShouldBeginEditing:] from 0x1004ab400 to 0x1004ab46a (106 bytes)
//
// 1 xrefs:
// > ??> @ 0x10099ac58
//
// 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 textFieldShouldBeginEditing:](EditBoxImplMac *self, SEL a2, id a3)
{
_QWORD *editBox; // rax
__int64 v5; // rdi
__int64 v6; // rbx
cocos2d::CCScriptEngineManager *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))(
*(_QWORD *)v7,
*(unsigned int *)(v6 + 728),
"began",
v6,
0);
}
return 1;
}