//
// Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult from 0xb0e1c8 to 0xb0e2c8 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0xc2700
//
// 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
//
__int64 *__fastcall Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult(
__int64 a1,
__int64 a2,
__int64 a3)
{
int v5; // w0
size_t v6; // x19
const void *v7; // x23
_BYTE *v8; // x0
_BYTE *v9; // x22
__int64 *result; // x0
v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, a3);
v6 = v5;
if ( v5 <= 0 )
{
result = &qword_1245000;
if ( off_1245900 )
return (__int64 *)off_1245900(&byte_F288A0, qword_1245908);
}
else
{
v7 = (const void *)(*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1472LL))(a1, a3, 0);
v8 = malloc((int)v6 + 1);
v9 = v8;
if ( v8 )
{
memcpy(v8, v7, v6);
v9[v6] = 0;
if ( off_1245900 )
off_1245900(v9, qword_1245908);
free(v9);
}
return (__int64 *)(*(__int64 (__fastcall **)(__int64, __int64, const void *, _QWORD))(*(_QWORD *)a1 + 1536LL))(
a1,
a3,
v7,
0);
}
return result;
}