//
// Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult from 0xd7f198 to 0xd7f298 (256 bytes)
//
// 1 xrefs:
// > ??> @ 0xfd360
//
// 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:08:09 +0000
//
int *__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
int *result; // x0
v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, a3);
v6 = v5;
if ( v5 <= 0 )
{
result = &dword_1560000;
if ( off_15608A8 )
return (int *)off_15608A8(&byte_11B8890, qword_15608B0);
}
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_15608A8 )
off_15608A8(v9, qword_15608B0);
free(v9);
}
return (int *)(*(__int64 (__fastcall **)(__int64, __int64, const void *, _QWORD))(*(_QWORD *)a1 + 1536LL))(
a1,
a3,
v7,
0);
}
return result;
}