//
// Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetEditTextDialogResult from 0x7ec9d0 to 0x7eca4e (126 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:00 +0000
//
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_D2F87C )
return off_D2F87C(&unk_B6B226, dword_D2F880);
}
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_D2F87C )
off_D2F87C(v9, dword_D2F880);
free(v9);
}
return (*(int (__fastcall **)(int, int, const void *, _DWORD))(*(_DWORD *)a1 + 768))(a1, a3, v7, 0);
}
return result;
}