//
// sub_823730 from 0x823730 to 0x823788 (88 bytes)
//
// 2 xrefs:
// > sub_82EB00 @ 0x830f86
// > sub_83A2F0 @ 0x83a378
//
// 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:53 +0000
//
int __fastcall sub_823730(int result)
{
int v1; // r4
const char **v2; // r5
void *v3; // r0
v1 = result;
v2 = *(const char ***)(result + 1320);
if ( v2 )
{
sub_841E84(result, 2, 2);
do
{
v3 = sub_823564(v1, (char *)*v2, *(_BYTE **)(v1 + 1328), *(_BYTE *)(v1 + 589));
if ( v3 )
*(_DWORD *)(v1 + 1328) = v3;
else
sub_8280FC(v1, "ignoring failed cookie_init for %s\n", *v2);
v2 = (const char **)v2[1];
}
while ( v2 );
sub_84619C(*(_DWORD *)(v1 + 1320));
*(_DWORD *)(v1 + 1320) = 0;
return sub_841EA4(v1, 2);
}
return result;
}