//
// showEditTextDialogJNI from 0x5e2b2c to 0x5e2bc8 (156 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCEditBoxImplAndroid::openKeyboard @ 0x5ab55a
//
// 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
//
void (*__fastcall showEditTextDialogJNI(
const char *a1,
const char *a2,
int a3,
int a4,
int a5,
int a6,
void (*a7)(const char *, void *),
void *a8))(const char *, void *)
{
void (*result)(const char *, void *); // r0
const char *v11; // r1
jstring v12; // r5
_JNIEnv *v13[3]; // [sp+18h] [bp-10h] BYREF
result = a7;
if ( a2 )
{
off_AC9124 = (int (__fastcall *)(_DWORD, _DWORD))a7;
dword_AC9128 = (int)a8;
result = (void (*)(const char *, void *))cocos2d::JniHelper::getStaticMethodInfo(
v13,
"org/cocos2dx/lib/Cocos2dxHelper",
"showEditTextDialog",
"(Ljava/lang/String;Ljava/lang/String;IIII)V");
if ( result )
{
if ( a1 )
v11 = a1;
else
v11 = (const char *)&unk_939830;
v12 = _JNIEnv::NewStringUTF(v13[0], v11);
_JNIEnv::NewStringUTF(v13[0], a2);
_JNIEnv::CallStaticVoidMethod((int)v13[0], (int)v13[1], (int)v13[2], (int)v12);
_JNIEnv::DeleteLocalRef((int)v13[0]);
_JNIEnv::DeleteLocalRef((int)v13[0]);
return (void (*)(const char *, void *))_JNIEnv::DeleteLocalRef((int)v13[0]);
}
}
return result;
}