
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode Curl_output_negotiate(connectdata *conn,_Bool proxy)

{
  CURLcode CVar1;
  char *pcVar2;
  Curl_easy *pCVar3;
  int iVar4;
  undefined3 in_register_00000014;
  undefined4 *puVar5;
  undefined *puVar6;
  char *base64;
  size_t len;
  int local_1c;
  
  puVar6 = PTR___stack_chk_guard_000a6fe0;
  base64 = (char *)0x0;
  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;
  pCVar3 = conn->data;
  if (CONCAT31(in_register_00000014,proxy) == 0) {
    len = 0;
    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)
                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);
    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;
    if (CVar1 != CURLE_OK) goto LAB_0004a49c;
    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)
                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);
    (*(code *)*puVar5)((conn->allocptr).userpwd);
    (conn->allocptr).userpwd = pcVar2;
  }
  else {
    len = 0;
    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)
                      (pCVar3,&(pCVar3->state).proxyneg);
    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;
    if (CVar1 != CURLE_OK) goto LAB_0004a49c;
    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)
                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);
    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);
    (conn->allocptr).proxyuserpwd = pcVar2;
  }
  (*(code *)*puVar5)(base64);
  CVar1 = CURLE_OUT_OF_MEMORY;
  if (pcVar2 != (char *)0x0) {
    CVar1 = CURLE_OK;
  }
LAB_0004a49c:
  if (local_1c == *(int *)puVar6) {
    return CVar1;
  }
  iVar4 = local_1c;
  puVar6 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48);
                    /* WARNING: Could not recover jumptable at 0x0004a558. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60);
  return CVar1;
}



int FUN_0004a3e8(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 local_24;
  undefined4 local_20;
  int local_1c;
  
  puVar4 = PTR___stack_chk_guard_000a6fe0;
  local_24 = 0;
  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;
  iVar2 = *param_1;
  if (param_2 == 0) {
    local_20 = 0;
    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);
    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;
    if (iVar2 != 0) goto LAB_0004a49c;
    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)
                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);
    (*(code *)*puVar3)(param_1[0xac]);
    param_1[0xac] = iVar1;
  }
  else {
    local_20 = 0;
    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);
    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;
    if (iVar2 != 0) goto LAB_0004a49c;
    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)
                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);
    (*(code *)*puVar3)(param_1[0xa9]);
    param_1[0xa9] = iVar1;
  }
  (*(code *)*puVar3)(local_24);
  iVar2 = 0x1b;
  if (iVar1 != 0) {
    iVar2 = 0;
  }
LAB_0004a49c:
  if (local_1c == *(int *)puVar4) {
    return iVar2;
  }
  iVar2 = local_1c;
  puVar4 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);
  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);
  return iVar2;
}


lui gp,0x6
addiu gp,gp,0x3d28
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7a1c(gp)
addiu a3,sp,0x20
sw s2,0x34(sp)
addiu a2,sp,0x1c
lw s2,-0x7130(gp)
sw gp,0x10(sp)
sw s1,0x30(sp)
or s1,a0,zero
sw ra,0x3c(sp)
sw s3,0x38(sp)
sw s0,0x2c(sp)
sw zero,0x1c(sp)
lw v0,0x0(s2)
lw a0,0x0(a0)
sw v0,0x24(sp)
beq a1,zero,0x0004a4c4
_addiu a1,a0,0xd48
addiu a1,a0,0xd60
jalr t9
_sw zero,0x20(sp)
bne v0,zero,0x0004a49c
_lw gp,0x10(sp)
lw a1,-0x7f7c(gp)
lw a0,-0x7f7c(gp)
lw s3,-0x7fcc(gp)
lw t9,-0x73b0(gp)
addiu a1,a1,-0x7784
lw a2,0x1c(sp)
jalr t9
_addiu a0,a0,-0x3038
lw t9,0x0(s3)
or s0,v0,zero
jalr t9
_lw a0,0x2a4(s1)
sw s0,0x2a4(s1)
lw t9,0x0(s3)
jalr t9
_lw a0,0x1c(sp)
li v0,0x1b
lw gp,0x10(sp)
movn v0,zero,s0
lw a0,0x24(sp)
lw v1,0x0(s2)
bne a0,v1,0x0004a50c
_lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
jalr t9
_sw zero,0x20(sp)
bne v0,zero,0x0004a49c
_lw gp,0x10(sp)
lw a1,-0x7f7c(gp)
lw a0,-0x7f7c(gp)
lw s3,-0x7fcc(gp)
lw t9,-0x73b0(gp)
addiu a1,a1,0x3538
lw a2,0x1c(sp)
jalr t9
_addiu a0,a0,-0x3038
lw t9,0x0(s3)
or s0,v0,zero
jalr t9
_lw a0,0x2b0(s1)
b 0x0004a484
_sw s0,0x2b0(s1)
lw t9,-0x74bc(gp)
jalr t9
_nop
(translation_unit "int FUN_0004a3e8(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}\n\n" (function_definition "int FUN_0004a3e8(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0004a3e8(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" identifier = (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" ( (pointer_expression "*(code *)PTR_FUN_000a66f4" * (cast_expression "(code *)PTR_FUN_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar2 + 0xd48,&local_24,&local_20)" ( identifier , (binary_expression "iVar2 + 0xd48" identifier + number_literal) , (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" identifier = (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" identifier = (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + 0x3538" identifier + number_literal) , identifier )))) ;) (expression_statement "(*(code *)*puVar3)(param_1[0xac]);" (call_expression "(*(code *)*puVar3)(param_1[0xac])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1[0xac])" ( (subscript_expression "param_1[0xac]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0xac] = iVar1;" (assignment_expression "param_1[0xac] = iVar1" (subscript_expression "param_1[0xac]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" else (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" identifier = (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" ( (pointer_expression "*(code *)PTR_FUN_000a66f4" * (cast_expression "(code *)PTR_FUN_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar2 + 0xd60)" ( identifier , (binary_expression "iVar2 + 0xd60" identifier + number_literal) )))) ;) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" identifier = (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" identifier = (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + -0x7784" identifier + number_literal) , identifier )))) ;) (expression_statement "(*(code *)*puVar3)(param_1[0xa9]);" (call_expression "(*(code *)*puVar3)(param_1[0xa9])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1[0xa9])" ( (subscript_expression "param_1[0xa9]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0xa9] = iVar1;" (assignment_expression "param_1[0xa9] = iVar1" (subscript_expression "param_1[0xa9]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "(*(code *)*puVar3)(local_24);" (call_expression "(*(code *)*puVar3)(local_24)" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "iVar2 = 0x1b;" (assignment_expression "iVar2 = 0x1b" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar4)" ( (binary_expression "local_1c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "iVar2 = local_1c;" (assignment_expression "iVar2 = local_1c" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);" (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" * (cast_expression "(code **)(puVar4 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x5c1d8)" ( (binary_expression "puVar4 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar2 + 0xd48)" ( (binary_expression "iVar2 + 0xd48" identifier + number_literal) ))) ;) (expression_statement "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);" (assignment_expression "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" identifier = (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" * (cast_expression "(code **)(puVar4 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x5c1d8)" ( (binary_expression "puVar4 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar2 + 0xd60)" ( (binary_expression "iVar2 + 0xd60" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_output_negotiate(connectdata *conn,_Bool proxy)\n\n{\n  CURLcode CVar1;\n  char *pcVar2;\n  Curl_easy *pCVar3;\n  int iVar4;\n  undefined3 in_register_00000014;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  char *base64;\n  size_t len;\n  int local_1c;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  base64 = (char *)0x0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  pCVar3 = conn->data;\n  if (CONCAT31(in_register_00000014,proxy) == 0) {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);\n    (*(code *)*puVar5)((conn->allocptr).userpwd);\n    (conn->allocptr).userpwd = pcVar2;\n  }\n  else {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }\n  (*(code *)*puVar5)(base64);\n  CVar1 = CURLE_OUT_OF_MEMORY;\n  if (pcVar2 != (char *)0x0) {\n    CVar1 = CURLE_OK;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar6) {\n    return CVar1;\n  }\n  iVar4 = local_1c;\n  puVar6 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48);\n                    /* WARNING: Could not recover jumptable at 0x0004a558. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60);\n  return CVar1;\n}\n\n" comment (function_definition "CURLcode Curl_output_negotiate(connectdata *conn,_Bool proxy)\n\n{\n  CURLcode CVar1;\n  char *pcVar2;\n  Curl_easy *pCVar3;\n  int iVar4;\n  undefined3 in_register_00000014;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  char *base64;\n  size_t len;\n  int local_1c;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  base64 = (char *)0x0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  pCVar3 = conn->data;\n  if (CONCAT31(in_register_00000014,proxy) == 0) {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);\n    (*(code *)*puVar5)((conn->allocptr).userpwd);\n    (conn->allocptr).userpwd = pcVar2;\n  }\n  else {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }\n  (*(code *)*puVar5)(base64);\n  CVar1 = CURLE_OUT_OF_MEMORY;\n  if (pcVar2 != (char *)0x0) {\n    CVar1 = CURLE_OK;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar6) {\n    return CVar1;\n  }\n  iVar4 = local_1c;\n  puVar6 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48);\n                    /* WARNING: Could not recover jumptable at 0x0004a558. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60);\n  return CVar1;\n}" type_identifier (function_declarator "Curl_output_negotiate(connectdata *conn,_Bool proxy)" identifier (parameter_list "(connectdata *conn,_Bool proxy)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool proxy" type_identifier identifier) ))) (compound_statement "{\n  CURLcode CVar1;\n  char *pcVar2;\n  Curl_easy *pCVar3;\n  int iVar4;\n  undefined3 in_register_00000014;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  char *base64;\n  size_t len;\n  int local_1c;\n  \n  puVar6 = PTR___stack_chk_guard_000a6fe0;\n  base64 = (char *)0x0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  pCVar3 = conn->data;\n  if (CONCAT31(in_register_00000014,proxy) == 0) {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);\n    (*(code *)*puVar5)((conn->allocptr).userpwd);\n    (conn->allocptr).userpwd = pcVar2;\n  }\n  else {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }\n  (*(code *)*puVar5)(base64);\n  CVar1 = CURLE_OUT_OF_MEMORY;\n  if (pcVar2 != (char *)0x0) {\n    CVar1 = CURLE_OK;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar6) {\n    return CVar1;\n  }\n  iVar4 = local_1c;\n  puVar6 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48);\n                    /* WARNING: Could not recover jumptable at 0x0004a558. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60);\n  return CVar1;\n}" { (declaration "CURLcode CVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "Curl_easy *pCVar3;" type_identifier (pointer_declarator "*pCVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "char *base64;" primitive_type (pointer_declarator "*base64" * identifier) ;) (declaration "size_t len;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar6 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "base64 = (char *)0x0;" (assignment_expression "base64 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pCVar3 = conn->data;" (assignment_expression "pCVar3 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (if_statement "if (CONCAT31(in_register_00000014,proxy) == 0) {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);\n    (*(code *)*puVar5)((conn->allocptr).userpwd);\n    (conn->allocptr).userpwd = pcVar2;\n  }\n  else {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }" if (parenthesized_expression "(CONCAT31(in_register_00000014,proxy) == 0)" ( (binary_expression "CONCAT31(in_register_00000014,proxy) == 0" (call_expression "CONCAT31(in_register_00000014,proxy)" identifier (argument_list "(in_register_00000014,proxy)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);\n    (*(code *)*puVar5)((conn->allocptr).userpwd);\n    (conn->allocptr).userpwd = pcVar2;\n  }" { (expression_statement "len = 0;" (assignment_expression "len = 0" identifier = number_literal) ;) (expression_statement "CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len);" (assignment_expression "CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len)" identifier = (call_expression "(*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).negotiate,&base64,&len)" (parenthesized_expression "(*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)" ( (pointer_expression "*(code *)PTR_Curl_auth_create_spnego_message_000a66f4" * (cast_expression "(code *)PTR_Curl_auth_create_spnego_message_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCVar3,&(pCVar3->state).negotiate,&base64,&len)" ( identifier , (pointer_expression "&(pCVar3->state).negotiate" & (field_expression "(pCVar3->state).negotiate" (parenthesized_expression "(pCVar3->state)" ( (field_expression "pCVar3->state" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&base64" & identifier) , (pointer_expression "&len" & identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;" (assignment_expression "puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144" identifier = (cast_expression "(undefined4 *)PTR_Curl_cfree_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (CVar1 != CURLE_OK) goto LAB_0004a49c;" if (parenthesized_expression "(CVar1 != CURLE_OK)" ( (binary_expression "CVar1 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64)" identifier = (cast_expression "(char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,base64)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + 0x3538" identifier + number_literal) , identifier ))))) ;) (expression_statement "(*(code *)*puVar5)((conn->allocptr).userpwd);" (call_expression "(*(code *)*puVar5)((conn->allocptr).userpwd)" (parenthesized_expression "(*(code *)*puVar5)" ( (pointer_expression "*(code *)*puVar5" * (cast_expression "(code *)*puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) )) (argument_list "((conn->allocptr).userpwd)" ( (field_expression "(conn->allocptr).userpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "(conn->allocptr).userpwd = pcVar2;" (assignment_expression "(conn->allocptr).userpwd = pcVar2" (field_expression "(conn->allocptr).userpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }) (else_clause "else {\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }" else (compound_statement "{\n    len = 0;\n    CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);\n    puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;\n    if (CVar1 != CURLE_OK) goto LAB_0004a49c;\n    pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);\n    (*(code *)*puVar5)((conn->allocptr).proxyuserpwd);\n    (conn->allocptr).proxyuserpwd = pcVar2;\n  }" { (expression_statement "len = 0;" (assignment_expression "len = 0" identifier = number_literal) ;) (expression_statement "CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg);" (assignment_expression "CVar1 = (*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg)" identifier = (call_expression "(*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)\n                      (pCVar3,&(pCVar3->state).proxyneg)" (parenthesized_expression "(*(code *)PTR_Curl_auth_create_spnego_message_000a66f4)" ( (pointer_expression "*(code *)PTR_Curl_auth_create_spnego_message_000a66f4" * (cast_expression "(code *)PTR_Curl_auth_create_spnego_message_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCVar3,&(pCVar3->state).proxyneg)" ( identifier , (pointer_expression "&(pCVar3->state).proxyneg" & (field_expression "(pCVar3->state).proxyneg" (parenthesized_expression "(pCVar3->state)" ( (field_expression "pCVar3->state" identifier -> field_identifier) )) . field_identifier)) )))) ;) (expression_statement "puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144;" (assignment_expression "puVar5 = (undefined4 *)PTR_Curl_cfree_000a6144" identifier = (cast_expression "(undefined4 *)PTR_Curl_cfree_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (CVar1 != CURLE_OK) goto LAB_0004a49c;" if (parenthesized_expression "(CVar1 != CURLE_OK)" ( (binary_expression "CVar1 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64)" identifier = (cast_expression "(char *)(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                               (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,base64)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + -0x7784" identifier + number_literal) , identifier ))))) ;) (expression_statement "(*(code *)*puVar5)((conn->allocptr).proxyuserpwd);" (call_expression "(*(code *)*puVar5)((conn->allocptr).proxyuserpwd)" (parenthesized_expression "(*(code *)*puVar5)" ( (pointer_expression "*(code *)*puVar5" * (cast_expression "(code *)*puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) )) (argument_list "((conn->allocptr).proxyuserpwd)" ( (field_expression "(conn->allocptr).proxyuserpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "(conn->allocptr).proxyuserpwd = pcVar2;" (assignment_expression "(conn->allocptr).proxyuserpwd = pcVar2" (field_expression "(conn->allocptr).proxyuserpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) }))) (expression_statement "(*(code *)*puVar5)(base64);" (call_expression "(*(code *)*puVar5)(base64)" (parenthesized_expression "(*(code *)*puVar5)" ( (pointer_expression "*(code *)*puVar5" * (cast_expression "(code *)*puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) )) (argument_list "(base64)" ( identifier ))) ;) (expression_statement "CVar1 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar1 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n    CVar1 = CURLE_OK;\n  }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    CVar1 = CURLE_OK;\n  }" { (expression_statement "CVar1 = CURLE_OK;" (assignment_expression "CVar1 = CURLE_OK" identifier = identifier) ;) })) (labeled_statement "LAB_0004a49c:\n  if (local_1c == *(int *)puVar6) {\n    return CVar1;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar6) {\n    return CVar1;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar6)" ( (binary_expression "local_1c == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return CVar1;\n  }" { (return_statement "return CVar1;" return identifier ;) }))) (expression_statement "iVar4 = local_1c;" (assignment_expression "iVar4 = local_1c" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48);" (call_expression "(**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd48)" (parenthesized_expression "(**(code **)(puVar6 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar6 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar6 + 0x5c1d8)" * (cast_expression "(code **)(puVar6 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x5c1d8)" ( (binary_expression "puVar6 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar4 + 0xd48)" ( (binary_expression "iVar4 + 0xd48" identifier + number_literal) ))) ;) comment comment (expression_statement "CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60);" (assignment_expression "CVar1 = (**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60)" identifier = (call_expression "(**(code **)(puVar6 + 0x5c1d8))(iVar4 + 0xd60)" (parenthesized_expression "(**(code **)(puVar6 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar6 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar6 + 0x5c1d8)" * (cast_expression "(code **)(puVar6 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x5c1d8)" ( (binary_expression "puVar6 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar4 + 0xd60)" ( (binary_expression "iVar4 + 0xd60" identifier + number_literal) )))) ;) (return_statement "return CVar1;" return identifier ;) })))
(translation_unit "int FUN_0004a3e8(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}\n\n" (function_definition "int FUN_0004a3e8(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0004a3e8(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000a6fe0" identifier = identifier) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" * (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" identifier = (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" ( (pointer_expression "*(code *)PTR_FUN_000a66f4" * (cast_expression "(code *)PTR_FUN_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar2 + 0xd48,&local_24,&local_20)" ( identifier , (binary_expression "iVar2 + 0xd48" identifier + number_literal) , (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_20" & identifier) )))) ;) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" identifier = (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" identifier = (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + 0x3538" identifier + number_literal) , identifier )))) ;) (expression_statement "(*(code *)*puVar3)(param_1[0xac]);" (call_expression "(*(code *)*puVar3)(param_1[0xac])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1[0xac])" ( (subscript_expression "param_1[0xac]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0xac] = iVar1;" (assignment_expression "param_1[0xac] = iVar1" (subscript_expression "param_1[0xac]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" else (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" identifier = (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" ( (pointer_expression "*(code *)PTR_FUN_000a66f4" * (cast_expression "(code *)PTR_FUN_000a66f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,iVar2 + 0xd60)" ( identifier , (binary_expression "iVar2 + 0xd60" identifier + number_literal) )))) ;) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" identifier = (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004a49c;" goto statement_identifier ;)) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" identifier = (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" ( (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" * (cast_expression "(code *)PTR_curl_maprintf_000a6d60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" ( (binary_expression "PTR_UINT_000a6194 + -0x3038" identifier + number_literal) , (binary_expression "PTR_UINT_000a6194 + -0x7784" identifier + number_literal) , identifier )))) ;) (expression_statement "(*(code *)*puVar3)(param_1[0xa9]);" (call_expression "(*(code *)*puVar3)(param_1[0xa9])" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(param_1[0xa9])" ( (subscript_expression "param_1[0xa9]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0xa9] = iVar1;" (assignment_expression "param_1[0xa9] = iVar1" (subscript_expression "param_1[0xa9]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "(*(code *)*puVar3)(local_24);" (call_expression "(*(code *)*puVar3)(local_24)" (parenthesized_expression "(*(code *)*puVar3)" ( (pointer_expression "*(code *)*puVar3" * (cast_expression "(code *)*puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) )) (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "iVar2 = 0x1b;" (assignment_expression "iVar2 = 0x1b" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n    iVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_1c == *(int *)puVar4)" ( (binary_expression "local_1c == *(int *)puVar4" identifier == (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "iVar2 = local_1c;" (assignment_expression "iVar2 = local_1c" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000a6c54" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" * (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);" (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" * (cast_expression "(code **)(puVar4 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x5c1d8)" ( (binary_expression "puVar4 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar2 + 0xd48)" ( (binary_expression "iVar2 + 0xd48" identifier + number_literal) ))) ;) (expression_statement "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);" (assignment_expression "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" identifier = (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" ( (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" * (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" * (cast_expression "(code **)(puVar4 + 0x5c1d8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + 0x5c1d8)" ( (binary_expression "puVar4 + 0x5c1d8" identifier + number_literal) ))))) )) (argument_list "(iVar2 + 0xd60)" ( (binary_expression "iVar2 + 0xd60" identifier + number_literal) )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0004a3e8(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0004a3e8(int *param_1,int param_2)" (identifier "FUN_0004a3e8") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  undefined *puVar4;\n  undefined4 local_24;\n  undefined4 local_20;\n  int local_1c;\n  \n  puVar4 = PTR___stack_chk_guard_000a6fe0;\n  local_24 = 0;\n  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;\n  iVar2 = *param_1;\n  if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }\n  (*(code *)*puVar3)(local_24);\n  iVar2 = 0x1b;\n  if (iVar1 != 0) {\n    iVar2 = 0;\n  }\nLAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }\n  iVar2 = local_1c;\n  puVar4 = PTR___stack_chk_fail_000a6c54;\n  (*(code *)PTR___stack_chk_fail_000a6c54)();\n  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);\n  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_000a6fe0;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000a6fe0" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_000a6fe0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;" (assignment_expression "local_1c = *(int *)PTR___stack_chk_guard_000a6fe0" (identifier "local_1c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000a6fe0" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000a6fe0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000a6fe0")))) (; ";")) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (param_2 == 0) {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }\n  else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);\n    (*(code *)*puVar3)(param_1[0xac]);\n    param_1[0xac] = iVar1;\n  }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a66f4" (* "*") (cast_expression "(code *)PTR_FUN_000a66f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a66f4"))) () ")")) (argument_list "(iVar2,iVar2 + 0xd48,&local_24,&local_20)" (( "(") (identifier "iVar2") (, ",") (binary_expression "iVar2 + 0xd48" (identifier "iVar2") (+ "+") (number_literal "0xd48")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_free_000a6144"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004a49c;" (goto "goto") (statement_identifier "LAB_0004a49c") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" (( "(") (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" (* "*") (cast_expression "(code *)PTR_curl_maprintf_000a6d60" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_curl_maprintf_000a6d60"))) () ")")) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24)" (( "(") (binary_expression "PTR_UINT_000a6194 + -0x3038" (identifier "PTR_UINT_000a6194") (+ "+") (number_literal "-0x3038")) (, ",") (binary_expression "PTR_UINT_000a6194 + 0x3538" (identifier "PTR_UINT_000a6194") (+ "+") (number_literal "0x3538")) (, ",") (identifier "local_24") () ")")))) (; ";")) (expression_statement "(*(code *)*puVar3)(param_1[0xac]);" (call_expression "(*(code *)*puVar3)(param_1[0xac])" (parenthesized_expression "(*(code *)*puVar3)" (( "(") (pointer_expression "*(code *)*puVar3" (* "*") (cast_expression "(code *)*puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) () ")")) (argument_list "(param_1[0xac])" (( "(") (subscript_expression "param_1[0xac]" (identifier "param_1") ([ "[") (number_literal "0xac") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[0xac] = iVar1;" (assignment_expression "param_1[0xac] = iVar1" (subscript_expression "param_1[0xac]" (identifier "param_1") ([ "[") (number_literal "0xac") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else {\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" (else "else") (compound_statement "{\n    local_20 = 0;\n    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);\n    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;\n    if (iVar2 != 0) goto LAB_0004a49c;\n    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);\n    (*(code *)*puVar3)(param_1[0xa9]);\n    param_1[0xa9] = iVar1;\n  }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60)" (parenthesized_expression "(*(code *)PTR_FUN_000a66f4)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a66f4" (* "*") (cast_expression "(code *)PTR_FUN_000a66f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a66f4"))) () ")")) (argument_list "(iVar2,iVar2 + 0xd60)" (( "(") (identifier "iVar2") (, ",") (binary_expression "iVar2 + 0xd60" (identifier "iVar2") (+ "+") (number_literal "0xd60")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined4 *)PTR_PTR_free_000a6144;" (assignment_expression "puVar3 = (undefined4 *)PTR_PTR_free_000a6144" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)PTR_PTR_free_000a6144" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_PTR_free_000a6144"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0004a49c;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004a49c;" (goto "goto") (statement_identifier "LAB_0004a49c") (; ";"))) (expression_statement "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);" (assignment_expression "iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_curl_maprintf_000a6d60)\n                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" (parenthesized_expression "(*(code *)PTR_curl_maprintf_000a6d60)" (( "(") (pointer_expression "*(code *)PTR_curl_maprintf_000a6d60" (* "*") (cast_expression "(code *)PTR_curl_maprintf_000a6d60" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_curl_maprintf_000a6d60"))) () ")")) (argument_list "(PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24)" (( "(") (binary_expression "PTR_UINT_000a6194 + -0x3038" (identifier "PTR_UINT_000a6194") (+ "+") (number_literal "-0x3038")) (, ",") (binary_expression "PTR_UINT_000a6194 + -0x7784" (identifier "PTR_UINT_000a6194") (+ "+") (number_literal "-0x7784")) (, ",") (identifier "local_24") () ")")))) (; ";")) (expression_statement "(*(code *)*puVar3)(param_1[0xa9]);" (call_expression "(*(code *)*puVar3)(param_1[0xa9])" (parenthesized_expression "(*(code *)*puVar3)" (( "(") (pointer_expression "*(code *)*puVar3" (* "*") (cast_expression "(code *)*puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) () ")")) (argument_list "(param_1[0xa9])" (( "(") (subscript_expression "param_1[0xa9]" (identifier "param_1") ([ "[") (number_literal "0xa9") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[0xa9] = iVar1;" (assignment_expression "param_1[0xa9] = iVar1" (subscript_expression "param_1[0xa9]" (identifier "param_1") ([ "[") (number_literal "0xa9") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (expression_statement "(*(code *)*puVar3)(local_24);" (call_expression "(*(code *)*puVar3)(local_24)" (parenthesized_expression "(*(code *)*puVar3)" (( "(") (pointer_expression "*(code *)*puVar3" (* "*") (cast_expression "(code *)*puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) () ")")) (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "iVar2 = 0x1b;" (assignment_expression "iVar2 = 0x1b" (identifier "iVar2") (= "=") (number_literal "0x1b")) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_0004a49c:\n  if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" (statement_identifier "LAB_0004a49c") (: ":") (if_statement "if (local_1c == *(int *)puVar4) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_1c == *(int *)puVar4)" (( "(") (binary_expression "local_1c == *(int *)puVar4" (identifier "local_1c") (== "==") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (expression_statement "iVar2 = local_1c;" (assignment_expression "iVar2 = local_1c" (identifier "iVar2") (= "=") (identifier "local_1c")) (; ";")) (expression_statement "puVar4 = PTR___stack_chk_fail_000a6c54;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000a6c54" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_000a6c54")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000a6c54)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a6c54)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a6c54)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a6c54" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a6c54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a6c54"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);" (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" (* "*") (cast_expression "(code **)(puVar4 + 0x5c1d8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x5c1d8)" (( "(") (binary_expression "puVar4 + 0x5c1d8" (identifier "puVar4") (+ "+") (number_literal "0x5c1d8")) () ")"))))) () ")")) (argument_list "(iVar2 + 0xd48)" (( "(") (binary_expression "iVar2 + 0xd48" (identifier "iVar2") (+ "+") (number_literal "0xd48")) () ")"))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);" (assignment_expression "iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60)" (parenthesized_expression "(**(code **)(puVar4 + 0x5c1d8))" (( "(") (pointer_expression "**(code **)(puVar4 + 0x5c1d8)" (* "*") (pointer_expression "*(code **)(puVar4 + 0x5c1d8)" (* "*") (cast_expression "(code **)(puVar4 + 0x5c1d8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + 0x5c1d8)" (( "(") (binary_expression "puVar4 + 0x5c1d8" (identifier "puVar4") (+ "+") (number_literal "0x5c1d8")) () ")"))))) () ")")) (argument_list "(iVar2 + 0xd60)" (( "(") (binary_expression "iVar2 + 0xd60" (identifier "iVar2") (+ "+") (number_literal "0xd60")) () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

int MASKED(int *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 *puVar3;
  undefined *puVar4;
  undefined4 local_24;
  undefined4 local_20;
  int local_1c;
  
  puVar4 = PTR___stack_chk_guard_000a6fe0;
  local_24 = 0;
  local_1c = *(int *)PTR___stack_chk_guard_000a6fe0;
  iVar2 = *param_1;
  if (param_2 == 0) {
    local_20 = 0;
    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd48,&local_24,&local_20);
    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;
    if (iVar2 != 0) goto LAB_0004a49c;
    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)
                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + 0x3538,local_24);
    (*(code *)*puVar3)(param_1[0xac]);
    param_1[0xac] = iVar1;
  }
  else {
    local_20 = 0;
    iVar2 = (*(code *)PTR_FUN_000a66f4)(iVar2,iVar2 + 0xd60);
    puVar3 = (undefined4 *)PTR_PTR_free_000a6144;
    if (iVar2 != 0) goto LAB_0004a49c;
    iVar1 = (*(code *)PTR_curl_maprintf_000a6d60)
                      (PTR_UINT_000a6194 + -0x3038,PTR_UINT_000a6194 + -0x7784,local_24);
    (*(code *)*puVar3)(param_1[0xa9]);
    param_1[0xa9] = iVar1;
  }
  (*(code *)*puVar3)(local_24);
  iVar2 = 0x1b;
  if (iVar1 != 0) {
    iVar2 = 0;
  }
LAB_0004a49c:
  if (local_1c == *(int *)puVar4) {
    return iVar2;
  }
  iVar2 = local_1c;
  puVar4 = PTR___stack_chk_fail_000a6c54;
  (*(code *)PTR___stack_chk_fail_000a6c54)();
  (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd48);
  iVar2 = (**(code **)(puVar4 + 0x5c1d8))(iVar2 + 0xd60);
  return iVar2;
}

