//
// sub_6136B0 from 0x6136b0 to 0x613708 (88 bytes)
//
// 2 xrefs:
// > sub_61EA80 @ 0x620f06
// > sub_62A270 @ 0x62a2f8
//
// 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 sub_6136B0(int result)
{
int v1; // r4
const char **v2; // r5
void *v3; // r0
v1 = result;
v2 = *(const char ***)(result + 1320);
if ( v2 )
{
sub_631E04(result, 2, 2);
do
{
v3 = sub_6134E4(v1, (char *)*v2, *(_BYTE **)(v1 + 1328), *(_BYTE *)(v1 + 589));
if ( v3 )
*(_DWORD *)(v1 + 1328) = v3;
else
sub_61807C(v1, "ignoring failed cookie_init for %s\n", *v2);
v2 = (const char **)v2[1];
}
while ( v2 );
sub_63611C(*(_DWORD *)(v1 + 1320));
*(_DWORD *)(v1 + 1320) = 0;
return sub_631E24(v1, 2);
}
return result;
}