//
// cocos2d::extension::CCEditBoxImplAndroid::openKeyboard from 0xd1c360 to 0xd1c418 (184 bytes)
//
// 2 xrefs:
// > ??> @ 0x54700
// > ??> @ 0x15105e8
//
// 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 13:07:09 +0000
//
__int64 __fastcall cocos2d::extension::CCEditBoxImplAndroid::openKeyboard(
cocos2d::extension::CCEditBoxImplAndroid *this)
{
cocos2d::extension::CCEditBoxImplAndroid *v1; // x7
__int64 v2; // x0
__int64 v3; // x3
cocos2d::CCScriptEngineManager *v4; // x0
const char *v5; // x0
const char *v6; // x1
_QWORD *v8; // x0
cocos2d::extension::CCEditBoxImplAndroid *v9; // [xsp+10h] [xbp+10h]
cocos2d::extension::CCEditBoxImplAndroid *v10; // [xsp+18h] [xbp+18h]
unsigned int *v11; // [xsp+18h] [xbp+18h]
v1 = this;
v2 = *((_QWORD *)this + 1);
if ( v2 )
{
v10 = v1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 16LL))(v2, *((_QWORD *)v1 + 2));
v1 = v10;
}
v3 = *((_QWORD *)v1 + 2);
if ( v3 )
{
v4 = (cocos2d::CCScriptEngineManager *)*(unsigned int *)(v3 + 728);
if ( (_DWORD)v4 )
{
v9 = v1;
v11 = *((unsigned int **)v1 + 2);
v8 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v4);
(*(void (__fastcall **)(_QWORD, _QWORD, const char *, unsigned int *, _QWORD))(*(_QWORD *)*v8 + 144LL))(
*v8,
v11[182],
"began",
v11,
0);
v1 = v9;
}
}
v5 = (char *)v1 + 81;
if ( (*((_BYTE *)v1 + 80) & 1) != 0 )
v5 = *((const char **)v1 + 12);
v6 = (char *)v1 + 57;
if ( (*((_BYTE *)v1 + 56) & 1) != 0 )
v6 = *((const char **)v1 + 9);
return showEditTextDialogJNI(
v5,
v6,
*((_DWORD *)v1 + 10),
*((_DWORD *)v1 + 11),
*((_DWORD *)v1 + 12),
*((_DWORD *)v1 + 28),
(void (*)(const char *, void *))sub_D1C418,
v1);
}