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

CURLcode Curl_write(connectdata *conn,curl_socket_t sockfd,void *mem,size_t len,ssize_t *written)

{
  ssize_t sVar1;
  CURLcode CVar2;
  int iVar3;
  int *piVar4;
  uint uVar5;
  undefined *puVar6;
  CURLcode result;
  int local_c;
  
  local_c = *(int *)PTR___stack_chk_guard_000b1fd4;
  result = CURLE_OK;
  uVar5 = (uint)(conn->sock[1] == sockfd);
  sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result);
  *written = sVar1;
  if (sVar1 < 0) {
    if (result == CURLE_OK) {
      CVar2 = CURLE_SEND_ERROR;
    }
    else {
      CVar2 = result;
      if (result == CURLE_AGAIN) {
        *written = 0;
        CVar2 = CURLE_OK;
      }
    }
  }
  else {
    CVar2 = CURLE_OK;
  }
  if (local_c != *(int *)PTR___stack_chk_guard_000b1fd4) {
    puVar6 = PTR___stack_chk_fail_000b1c48;
    (*(code *)PTR___stack_chk_fail_000b1c48)();
    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();
    if (iVar3 == -1) {
      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();
      if (*piVar4 == 0xb) {
        CVar2 = CURLE_AGAIN;
      }
      else {
        CVar2 = CURLE_AGAIN;
        if (*piVar4 != 4) {
          CVar2 = CURLE_RECV_ERROR;
        }
      }
    }
    else {
      *(int *)len = iVar3;
      CVar2 = CURLE_OK;
    }
    return CVar2;
  }
  return CVar2;
}



/* WARNING: Removing unreachable block (ram,0x00027038) */
/* WARNING: Removing unreachable block (ram,0x00027040) */

undefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined *puVar5;
  
  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;
  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();
  *param_5 = iVar2;
  if (iVar2 < 0) {
    uVar3 = 0x37;
  }
  else {
    uVar3 = 0;
  }
  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {
    return uVar3;
  }
  puVar5 = PTR___stack_chk_fail_000b1c48;
  (*(code *)PTR___stack_chk_fail_000b1c48)();
  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();
  if (iVar1 == -1) {
    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();
    if (*piVar4 == 0xb) {
      uVar3 = 0x51;
    }
    else {
      uVar3 = 0x51;
      if (*piVar4 != 4) {
        uVar3 = 0x38;
      }
    }
  }
  else {
    *param_4 = iVar1;
    uVar3 = 0;
  }
  return uVar3;
}


lui gp,0x9
addiu gp,gp,0x214c
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x18(sp)
lw s0,0x40(sp)
lw v0,-0x713c(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
sw zero,0x20(sp)
lw v0,0x19c(a0)
xor a1,v0,a1
sltiu a1,a1,0x1
addiu v0,a1,0x6c
sll v0,v0,0x2
addu v1,a0,v0
addiu v0,sp,0x20
sw v0,0x10(sp)
lw t9,0x4(v1)
jalr t9
_nop
lw gp,0x18(sp)
bgez v0,0x0002704c
_sw v0,0x0(s0)
lw v0,0x20(sp)
beq v0,zero,0x00027070
_li v1,0x51
bne v0,v1,0x00027050
_nop
sw zero,0x0(s0)
b 0x00027050
_or v0,zero,zero
or v0,zero,zero
lw a0,0x24(sp)
lw v1,-0x713c(gp)
lw v1,0x0(v1)
bne a0,v1,0x00027078
_lw ra,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x30
b 0x00027050
_li v0,0x37
lw t9,-0x74c8(gp)
jalr t9
_nop
(translation_unit "/* WARNING: Removing unreachable block (ram,0x00027038) */\n/* WARNING: Removing unreachable block (ram,0x00027040) */\n\nundefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" comment comment (function_definition "undefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();" (assignment_expression "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" identifier = (call_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" (parenthesized_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))" ( (pointer_expression "**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" * (pointer_expression "*(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" * (cast_expression "(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" ( (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4" (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" identifier + (binary_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" (parenthesized_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c)" ( (binary_expression "(*(int *)(param_1 + 0x19c) == param_2) + 0x6c" (parenthesized_expression "(*(int *)(param_1 + 0x19c) == param_2)" ( (binary_expression "*(int *)(param_1 + 0x19c) == param_2" (pointer_expression "*(int *)(param_1 + 0x19c)" * (cast_expression "(int *)(param_1 + 0x19c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) == identifier) )) + number_literal) )) * number_literal)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_5 = iVar2;" (assignment_expression "*param_5 = iVar2" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar3 = 0x37;\n  }" { (expression_statement "uVar3 = 0x37;" (assignment_expression "uVar3 = 0x37" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_000b1c48;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b1c48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar5 + 0x8a9cc))();" (assignment_expression "iVar1 = (**(code **)(puVar5 + 0x8a9cc))()" identifier = (call_expression "(**(code **)(puVar5 + 0x8a9cc))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8a9cc))" ( (pointer_expression "**(code **)(puVar5 + 0x8a9cc)" * (pointer_expression "*(code **)(puVar5 + 0x8a9cc)" * (cast_expression "(code **)(puVar5 + 0x8a9cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x8a9cc)" ( (binary_expression "puVar5 + 0x8a9cc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }" { (expression_statement "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))()" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x8ad3c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x8ad3c))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8ad3c))" ( (pointer_expression "**(code **)(puVar5 + 0x8ad3c)" * (pointer_expression "*(code **)(puVar5 + 0x8ad3c)" * (cast_expression "(code **)(puVar5 + 0x8ad3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x8ad3c)" ( (binary_expression "puVar5 + 0x8ad3c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" if (parenthesized_expression "(*piVar4 == 0xb)" ( (binary_expression "*piVar4 == 0xb" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      uVar3 = 0x51;\n    }" { (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" else (compound_statement "{\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" { (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" identifier = number_literal) ;) (if_statement "if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }" if (parenthesized_expression "(*piVar4 != 4)" ( (binary_expression "*piVar4 != 4" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n        uVar3 = 0x38;\n      }" { (expression_statement "uVar3 = 0x38;" (assignment_expression "uVar3 = 0x38" identifier = number_literal) ;) })) }))) }) (else_clause "else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" else (compound_statement "{\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" { (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_write(connectdata *conn,curl_socket_t sockfd,void *mem,size_t len,ssize_t *written)\n\n{\n  ssize_t sVar1;\n  CURLcode CVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  CURLcode result;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  result = CURLE_OK;\n  uVar5 = (uint)(conn->sock[1] == sockfd);\n  sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result);\n  *written = sVar1;\n  if (sVar1 < 0) {\n    if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n  }\n  if (local_c != *(int *)PTR___stack_chk_guard_000b1fd4) {\n    puVar6 = PTR___stack_chk_fail_000b1c48;\n    (*(code *)PTR___stack_chk_fail_000b1c48)();\n    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();\n    if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }\n    return CVar2;\n  }\n  return CVar2;\n}\n\n" comment (function_definition "CURLcode Curl_write(connectdata *conn,curl_socket_t sockfd,void *mem,size_t len,ssize_t *written)\n\n{\n  ssize_t sVar1;\n  CURLcode CVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  CURLcode result;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  result = CURLE_OK;\n  uVar5 = (uint)(conn->sock[1] == sockfd);\n  sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result);\n  *written = sVar1;\n  if (sVar1 < 0) {\n    if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n  }\n  if (local_c != *(int *)PTR___stack_chk_guard_000b1fd4) {\n    puVar6 = PTR___stack_chk_fail_000b1c48;\n    (*(code *)PTR___stack_chk_fail_000b1c48)();\n    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();\n    if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }\n    return CVar2;\n  }\n  return CVar2;\n}" type_identifier (function_declarator "Curl_write(connectdata *conn,curl_socket_t sockfd,void *mem,size_t len,ssize_t *written)" identifier (parameter_list "(connectdata *conn,curl_socket_t sockfd,void *mem,size_t len,ssize_t *written)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "curl_socket_t sockfd" type_identifier identifier) , (parameter_declaration "void *mem" primitive_type (pointer_declarator "*mem" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) , (parameter_declaration "ssize_t *written" primitive_type (pointer_declarator "*written" * identifier)) ))) (compound_statement "{\n  ssize_t sVar1;\n  CURLcode CVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined *puVar6;\n  CURLcode result;\n  int local_c;\n  \n  local_c = *(int *)PTR___stack_chk_guard_000b1fd4;\n  result = CURLE_OK;\n  uVar5 = (uint)(conn->sock[1] == sockfd);\n  sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result);\n  *written = sVar1;\n  if (sVar1 < 0) {\n    if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n  }\n  if (local_c != *(int *)PTR___stack_chk_guard_000b1fd4) {\n    puVar6 = PTR___stack_chk_fail_000b1c48;\n    (*(code *)PTR___stack_chk_fail_000b1c48)();\n    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();\n    if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }\n    return CVar2;\n  }\n  return CVar2;\n}" { (declaration "ssize_t sVar1;" primitive_type identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "CURLcode result;" type_identifier identifier ;) (declaration "int local_c;" primitive_type identifier ;) (expression_statement "local_c = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "local_c = *(int *)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "result = CURLE_OK;" (assignment_expression "result = CURLE_OK" identifier = identifier) ;) (expression_statement "uVar5 = (uint)(conn->sock[1] == sockfd);" (assignment_expression "uVar5 = (uint)(conn->sock[1] == sockfd)" identifier = (call_expression "(uint)(conn->sock[1] == sockfd)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(conn->sock[1] == sockfd)" ( (binary_expression "conn->sock[1] == sockfd" (subscript_expression "conn->sock[1]" (field_expression "conn->sock" identifier -> field_identifier) [ number_literal ]) == identifier) )))) ;) (expression_statement "sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result);" (assignment_expression "sVar1 = (*conn->send[uVar5])(conn,uVar5,mem,len,&result)" identifier = (call_expression "(*conn->send[uVar5])(conn,uVar5,mem,len,&result)" (parenthesized_expression "(*conn->send[uVar5])" ( (pointer_expression "*conn->send[uVar5]" * (subscript_expression "conn->send[uVar5]" (field_expression "conn->send" identifier -> field_identifier) [ identifier ])) )) (argument_list "(conn,uVar5,mem,len,&result)" ( identifier , identifier , identifier , identifier , (pointer_expression "&result" & identifier) )))) ;) (expression_statement "*written = sVar1;" (assignment_expression "*written = sVar1" (pointer_expression "*written" * identifier) = identifier) ;) (if_statement "if (sVar1 < 0) {\n    if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n  }" if (parenthesized_expression "(sVar1 < 0)" ( (binary_expression "sVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }\n  }" { (if_statement "if (result == CURLE_OK) {\n      CVar2 = CURLE_SEND_ERROR;\n    }\n    else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }" if (parenthesized_expression "(result == CURLE_OK)" ( (binary_expression "result == CURLE_OK" identifier == identifier) )) (compound_statement "{\n      CVar2 = CURLE_SEND_ERROR;\n    }" { (expression_statement "CVar2 = CURLE_SEND_ERROR;" (assignment_expression "CVar2 = CURLE_SEND_ERROR" identifier = identifier) ;) }) (else_clause "else {\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }" else (compound_statement "{\n      CVar2 = result;\n      if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }\n    }" { (expression_statement "CVar2 = result;" (assignment_expression "CVar2 = result" identifier = identifier) ;) (if_statement "if (result == CURLE_AGAIN) {\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }" if (parenthesized_expression "(result == CURLE_AGAIN)" ( (binary_expression "result == CURLE_AGAIN" identifier == identifier) )) (compound_statement "{\n        *written = 0;\n        CVar2 = CURLE_OK;\n      }" { (expression_statement "*written = 0;" (assignment_expression "*written = 0" (pointer_expression "*written" * identifier) = number_literal) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) })) }))) }) (else_clause "else {\n    CVar2 = CURLE_OK;\n  }" else (compound_statement "{\n    CVar2 = CURLE_OK;\n  }" { (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) }))) (if_statement "if (local_c != *(int *)PTR___stack_chk_guard_000b1fd4) {\n    puVar6 = PTR___stack_chk_fail_000b1c48;\n    (*(code *)PTR___stack_chk_fail_000b1c48)();\n    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();\n    if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }\n    return CVar2;\n  }" if (parenthesized_expression "(local_c != *(int *)PTR___stack_chk_guard_000b1fd4)" ( (binary_expression "local_c != *(int *)PTR___stack_chk_guard_000b1fd4" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar6 = PTR___stack_chk_fail_000b1c48;\n    (*(code *)PTR___stack_chk_fail_000b1c48)();\n    iVar3 = (**(code **)(puVar6 + 0x8a9cc))();\n    if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }\n    return CVar2;\n  }" { (expression_statement "puVar6 = PTR___stack_chk_fail_000b1c48;" (assignment_expression "puVar6 = PTR___stack_chk_fail_000b1c48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = (**(code **)(puVar6 + 0x8a9cc))();" (assignment_expression "iVar3 = (**(code **)(puVar6 + 0x8a9cc))()" identifier = (call_expression "(**(code **)(puVar6 + 0x8a9cc))()" (parenthesized_expression "(**(code **)(puVar6 + 0x8a9cc))" ( (pointer_expression "**(code **)(puVar6 + 0x8a9cc)" * (pointer_expression "*(code **)(puVar6 + 0x8a9cc)" * (cast_expression "(code **)(puVar6 + 0x8a9cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x8a9cc)" ( (binary_expression "puVar6 + 0x8a9cc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == -1) {\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }\n    else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();\n      if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }\n    }" { (expression_statement "piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar6 + 0x8ad3c))()" identifier = (cast_expression "(int *)(**(code **)(puVar6 + 0x8ad3c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar6 + 0x8ad3c))()" (parenthesized_expression "(**(code **)(puVar6 + 0x8ad3c))" ( (pointer_expression "**(code **)(puVar6 + 0x8ad3c)" * (pointer_expression "*(code **)(puVar6 + 0x8ad3c)" * (cast_expression "(code **)(puVar6 + 0x8ad3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x8ad3c)" ( (binary_expression "puVar6 + 0x8ad3c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar4 == 0xb) {\n        CVar2 = CURLE_AGAIN;\n      }\n      else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }" if (parenthesized_expression "(*piVar4 == 0xb)" ( (binary_expression "*piVar4 == 0xb" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n        CVar2 = CURLE_AGAIN;\n      }" { (expression_statement "CVar2 = CURLE_AGAIN;" (assignment_expression "CVar2 = CURLE_AGAIN" identifier = identifier) ;) }) (else_clause "else {\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }" else (compound_statement "{\n        CVar2 = CURLE_AGAIN;\n        if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }\n      }" { (expression_statement "CVar2 = CURLE_AGAIN;" (assignment_expression "CVar2 = CURLE_AGAIN" identifier = identifier) ;) (if_statement "if (*piVar4 != 4) {\n          CVar2 = CURLE_RECV_ERROR;\n        }" if (parenthesized_expression "(*piVar4 != 4)" ( (binary_expression "*piVar4 != 4" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n          CVar2 = CURLE_RECV_ERROR;\n        }" { (expression_statement "CVar2 = CURLE_RECV_ERROR;" (assignment_expression "CVar2 = CURLE_RECV_ERROR" identifier = identifier) ;) })) }))) }) (else_clause "else {\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }" else (compound_statement "{\n      *(int *)len = iVar3;\n      CVar2 = CURLE_OK;\n    }" { (expression_statement "*(int *)len = iVar3;" (assignment_expression "*(int *)len = iVar3" (pointer_expression "*(int *)len" * (cast_expression "(int *)len" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) }))) (return_statement "return CVar2;" return identifier ;) })) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();" (assignment_expression "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" identifier = (call_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" (parenthesized_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))" ( (pointer_expression "**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" * (pointer_expression "*(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" * (cast_expression "(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" ( (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4" (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" identifier + (binary_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" (parenthesized_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c)" ( (binary_expression "(*(int *)(param_1 + 0x19c) == param_2) + 0x6c" (parenthesized_expression "(*(int *)(param_1 + 0x19c) == param_2)" ( (binary_expression "*(int *)(param_1 + 0x19c) == param_2" (pointer_expression "*(int *)(param_1 + 0x19c)" * (cast_expression "(int *)(param_1 + 0x19c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) == identifier) )) + number_literal) )) * number_literal)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "*param_5 = iVar2;" (assignment_expression "*param_5 = iVar2" (pointer_expression "*param_5" * identifier) = identifier) ;) (if_statement "if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar3 = 0x37;\n  }" { (expression_statement "uVar3 = 0x37;" (assignment_expression "uVar3 = 0x37" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }" if (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4)" ( (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4" identifier == (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" * (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_000b1c48;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b1c48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" * (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = (**(code **)(puVar5 + 0x8a9cc))();" (assignment_expression "iVar1 = (**(code **)(puVar5 + 0x8a9cc))()" identifier = (call_expression "(**(code **)(puVar5 + 0x8a9cc))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8a9cc))" ( (pointer_expression "**(code **)(puVar5 + 0x8a9cc)" * (pointer_expression "*(code **)(puVar5 + 0x8a9cc)" * (cast_expression "(code **)(puVar5 + 0x8a9cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x8a9cc)" ( (binary_expression "puVar5 + 0x8a9cc" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }" { (expression_statement "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))()" identifier = (cast_expression "(int *)(**(code **)(puVar5 + 0x8ad3c))()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar5 + 0x8ad3c))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8ad3c))" ( (pointer_expression "**(code **)(puVar5 + 0x8ad3c)" * (pointer_expression "*(code **)(puVar5 + 0x8ad3c)" * (cast_expression "(code **)(puVar5 + 0x8ad3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x8ad3c)" ( (binary_expression "puVar5 + 0x8ad3c" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" if (parenthesized_expression "(*piVar4 == 0xb)" ( (binary_expression "*piVar4 == 0xb" (pointer_expression "*piVar4" * identifier) == number_literal) )) (compound_statement "{\n      uVar3 = 0x51;\n    }" { (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" else (compound_statement "{\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" { (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" identifier = number_literal) ;) (if_statement "if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }" if (parenthesized_expression "(*piVar4 != 4)" ( (binary_expression "*piVar4 != 4" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n        uVar3 = 0x38;\n      }" { (expression_statement "uVar3 = 0x38;" (assignment_expression "uVar3 = 0x38" identifier = number_literal) ;) })) }))) }) (else_clause "else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" else (compound_statement "{\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" { (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (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 (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) + LIT) )) * LIT)) + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00026fc4(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" (identifier "FUN_00026fc4") (parameter_list "(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  undefined *puVar5;\n  \n  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;\n  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();\n  *param_5 = iVar2;\n  if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }\n  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }\n  puVar5 = PTR___stack_chk_fail_000b1c48;\n  (*(code *)PTR___stack_chk_fail_000b1c48)();\n  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();\n  if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b1fd4")))) (; ";")) (expression_statement "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();" (assignment_expression "iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))()" (parenthesized_expression "(**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))" (( "(") (pointer_expression "**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" (* "*") (pointer_expression "*(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" (* "*") (cast_expression "(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4)" (( "(") (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4" (binary_expression "param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" (identifier "param_1") (+ "+") (binary_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4" (parenthesized_expression "((*(int *)(param_1 + 0x19c) == param_2) + 0x6c)" (( "(") (binary_expression "(*(int *)(param_1 + 0x19c) == param_2) + 0x6c" (parenthesized_expression "(*(int *)(param_1 + 0x19c) == param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x19c) == param_2" (pointer_expression "*(int *)(param_1 + 0x19c)" (* "*") (cast_expression "(int *)(param_1 + 0x19c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19c)" (( "(") (binary_expression "param_1 + 0x19c" (identifier "param_1") (+ "+") (number_literal "0x19c")) () ")")))) (== "==") (identifier "param_2")) () ")")) (+ "+") (number_literal "0x6c")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_5 = iVar2;" (assignment_expression "*param_5 = iVar2" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 < 0) {\n    uVar3 = 0x37;\n  }\n  else {\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = 0x37;\n  }" ({ "{") (expression_statement "uVar3 = 0x37;" (assignment_expression "uVar3 = 0x37" (identifier "uVar3") (= "=") (number_literal "0x37")) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4)" (( "(") (binary_expression "iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4" (identifier "iVar1") (== "==") (pointer_expression "*(int *)PTR___stack_chk_guard_000b1fd4" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b1fd4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b1fd4")))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "puVar5 = PTR___stack_chk_fail_000b1c48;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000b1c48" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_000b1c48")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b1c48)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b1c48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b1c48)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b1c48" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b1c48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b1c48"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = (**(code **)(puVar5 + 0x8a9cc))();" (assignment_expression "iVar1 = (**(code **)(puVar5 + 0x8a9cc))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(puVar5 + 0x8a9cc))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8a9cc))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x8a9cc)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x8a9cc)" (* "*") (cast_expression "(code **)(puVar5 + 0x8a9cc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x8a9cc)" (( "(") (binary_expression "puVar5 + 0x8a9cc" (identifier "puVar5") (+ "+") (number_literal "0x8a9cc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }\n  else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();\n    if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }\n  }" ({ "{") (expression_statement "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();" (assignment_expression "piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))()" (identifier "piVar4") (= "=") (cast_expression "(int *)(**(code **)(puVar5 + 0x8ad3c))()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar5 + 0x8ad3c))()" (parenthesized_expression "(**(code **)(puVar5 + 0x8ad3c))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x8ad3c)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x8ad3c)" (* "*") (cast_expression "(code **)(puVar5 + 0x8ad3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x8ad3c)" (( "(") (binary_expression "puVar5 + 0x8ad3c" (identifier "puVar5") (+ "+") (number_literal "0x8ad3c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar4 == 0xb) {\n      uVar3 = 0x51;\n    }\n    else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" (if "if") (parenthesized_expression "(*piVar4 == 0xb)" (( "(") (binary_expression "*piVar4 == 0xb" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n      uVar3 = 0x51;\n    }" ({ "{") (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" (identifier "uVar3") (= "=") (number_literal "0x51")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" (else "else") (compound_statement "{\n      uVar3 = 0x51;\n      if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }\n    }" ({ "{") (expression_statement "uVar3 = 0x51;" (assignment_expression "uVar3 = 0x51" (identifier "uVar3") (= "=") (number_literal "0x51")) (; ";")) (if_statement "if (*piVar4 != 4) {\n        uVar3 = 0x38;\n      }" (if "if") (parenthesized_expression "(*piVar4 != 4)" (( "(") (binary_expression "*piVar4 != 4" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n        uVar3 = 0x38;\n      }" ({ "{") (expression_statement "uVar3 = 0x38;" (assignment_expression "uVar3 = 0x38" (identifier "uVar3") (= "=") (number_literal "0x38")) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    *param_4 = iVar1;\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "*param_4 = iVar1;" (assignment_expression "*param_4 = iVar1" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn,type_3 var_1,void *mem,size_t len,ssize_t *written)

{
  ssize_t var_2;
  type_1 CVar2;
  int var_8;
  int *piVar4;
  type_4 uVar5;
  type_5 *var_7;
  type_1 var_3;
  int var_6;
  
  var_6 = *(int *)PTR___stack_chk_guard_000b1fd4;
  var_3 = var_4;
  uVar5 = (type_4)(conn->sock[1] == var_1);
  var_2 = (*conn->send[uVar5])(conn,uVar5,mem,len,&var_3);
  *written = var_2;
  if (var_2 < 0) {
    if (var_3 == var_4) {
      CVar2 = CURLE_SEND_ERROR;
    }
    else {
      CVar2 = var_3;
      if (var_3 == var_5) {
        *written = 0;
        CVar2 = var_4;
      }
    }
  }
  else {
    CVar2 = var_4;
  }
  if (var_6 != *(int *)PTR___stack_chk_guard_000b1fd4) {
    var_7 = PTR___stack_chk_fail_000b1c48;
    (*(type_6 *)PTR___stack_chk_fail_000b1c48)();
    var_8 = (**(type_6 **)(var_7 + 0x8a9cc))();
    if (var_8 == -1) {
      piVar4 = (int *)(**(type_6 **)(var_7 + 0x8ad3c))();
      if (*piVar4 == 0xb) {
        CVar2 = var_5;
      }
      else {
        CVar2 = var_5;
        if (*piVar4 != 4) {
          CVar2 = CURLE_RECV_ERROR;
        }
      }
    }
    else {
      *(int *)len = var_8;
      CVar2 = var_4;
    }
    return CVar2;
  }
  return CVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (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: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) right: (number_literal))) right: (number_literal))) right: (number_literal))))))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (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 (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 (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

/* WARNING: Removing unreachable block (ram,0x00027038) */
/* WARNING: Removing unreachable block (ram,0x00027040) */

undefined4 MASKED(int param_1,int param_2,undefined4 param_3,int *param_4,int *param_5)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *piVar4;
  undefined *puVar5;
  
  iVar1 = *(int *)PTR___stack_chk_guard_000b1fd4;
  iVar2 = (**(code **)(param_1 + ((*(int *)(param_1 + 0x19c) == param_2) + 0x6c) * 4 + 4))();
  *param_5 = iVar2;
  if (iVar2 < 0) {
    uVar3 = 0x37;
  }
  else {
    uVar3 = 0;
  }
  if (iVar1 == *(int *)PTR___stack_chk_guard_000b1fd4) {
    return uVar3;
  }
  puVar5 = PTR___stack_chk_fail_000b1c48;
  (*(code *)PTR___stack_chk_fail_000b1c48)();
  iVar1 = (**(code **)(puVar5 + 0x8a9cc))();
  if (iVar1 == -1) {
    piVar4 = (int *)(**(code **)(puVar5 + 0x8ad3c))();
    if (*piVar4 == 0xb) {
      uVar3 = 0x51;
    }
    else {
      uVar3 = 0x51;
      if (*piVar4 != 4) {
        uVar3 = 0x38;
      }
    }
  }
  else {
    *param_4 = iVar1;
    uVar3 = 0;
  }
  return uVar3;
}

