//
// Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult from 0x5e2a00 to 0x5e2a7e (126 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult(int a1, int a2, int a3)
{
int result; // r0
size_t v6; // r7
const void *v7; // r8
_BYTE *v8; // r0
_BYTE *v9; // r6
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 684))(a1, a3);
v6 = result;
if ( result <= 0 )
{
if ( off_AC9124 )
return off_AC9124(&unk_939830, dword_AC9128);
}
else
{
v7 = (const void *)(*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)a1 + 736))(a1, a3, 0);
v8 = malloc(v6 + 1);
v9 = v8;
if ( v8 )
{
memcpy(v8, v7, v6);
v9[v6] = 0;
if ( off_AC9124 )
off_AC9124(v9, dword_AC9128);
free(v9);
}
return (*(int (__fastcall **)(int, int, const void *, _DWORD))(*(_DWORD *)a1 + 768))(a1, a3, v7, 0);
}
return result;
}