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

CURLcode Curl_auth_create_digest_http_message
                   (Curl_easy *data,char *userp,char *passwdp,uchar *request,uchar *uripath,
                   digestdata *digest,char **outptr,size_t *outlen)

{
  int iVar1;
  char **outptr_00;
  CURLcode CVar2;
  _func_void_uchar_ptr_uchar_ptr *convert_to_ascii;
  int unaff_EDI;
  
  outptr_00 = outptr;
  __x86_get_pc_thunk_di();
  iVar1 = digest->algo;
  if (iVar1 < 0) {
    return CURLE_UNSUPPORTED_PROTOCOL;
  }
  if (iVar1 < 2) {
    outptr = (char **)(unaff_EDI + -0x2d087);
    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);
  }
  else {
    if (5 < iVar1) {
      return CURLE_UNSUPPORTED_PROTOCOL;
    }
    outptr = (char **)(unaff_EDI + -0x9997);
    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);
  }
  CVar2 = _Curl_auth_create_digest_http_message
                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,
                     (_func_void_uchar_ptr_uchar_ptr *)outptr);
  return CVar2;
}



undefined4 FUN_00078b40(void)

{
  int iVar1;
  undefined4 uVar2;
  int in_stack_00000018;
  
  FUN_0002eb2c();
  iVar1 = *(int *)(in_stack_00000018 + 0xc);
  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {
    uVar2 = FUN_00077840();
    return uVar2;
  }
  return 1;
}


PUSH EBP
PUSH EDI
CALL 0x0002eb2c
ADD EDI,0x3dc99
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x3c]
MOV EBX,dword ptr [ESP + 0x48]
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV ECX,dword ptr [ESP + 0x38]
MOV EBP,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x4],ESI
MOV ESI,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],EBX
MOV dword ptr [ESP + 0x8],ESI
MOV ESI,dword ptr [ESP + 0x44]
MOV EBX,dword ptr [ESI + 0xc]
TEST EBX,EBX
JS 0x00078bd0
CMP EBX,0x1
JLE 0x00078be0
CMP EBX,0x5
JG 0x00078bd0
LEA EBX,[EDI + 0xfffb89d0]
MOV dword ptr [ESP + 0x48],EBX
LEA EBX,[EDI + 0xfffc0fa0]
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x44],EBX
MOV dword ptr [ESP + 0x40],EBP
MOV dword ptr [ESP + 0x3c],EDI
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x38],ESI
MOV dword ptr [ESP + 0x34],EDI
MOV EDI,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x30],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00077840
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EBX,[EDI + 0xfff952e0]
MOV dword ptr [ESP + 0x48],EBX
LEA EBX,[EDI + 0xfffc1000]
JMP 0x00078b9f
(translation_unit "undefined4 FUN_00078b40(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00078b40(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00078b40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_stack_00000018;" primitive_type identifier ;) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(in_stack_00000018 + 0xc);" (assignment_expression "iVar1 = *(int *)(in_stack_00000018 + 0xc)" identifier = (pointer_expression "*(int *)(in_stack_00000018 + 0xc)" * (cast_expression "(int *)(in_stack_00000018 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000018 + 0xc)" ( (binary_expression "in_stack_00000018 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" if (parenthesized_expression "((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6))))" ( (binary_expression "(-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "((iVar1 < 2 || (iVar1 < 6)))" ( (parenthesized_expression "(iVar1 < 2 || (iVar1 < 6))" ( (binary_expression "iVar1 < 2 || (iVar1 < 6)" (binary_expression "iVar1 < 2" identifier < number_literal) || (parenthesized_expression "(iVar1 < 6)" ( (binary_expression "iVar1 < 6" identifier < number_literal) ))) )) ))) )) (compound_statement "{\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00077840();" (assignment_expression "uVar2 = FUN_00077840()" identifier = (call_expression "FUN_00077840()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_auth_create_digest_http_message\n                   (Curl_easy *data,char *userp,char *passwdp,uchar *request,uchar *uripath,\n                   digestdata *digest,char **outptr,size_t *outlen)\n\n{\n  int iVar1;\n  char **outptr_00;\n  CURLcode CVar2;\n  _func_void_uchar_ptr_uchar_ptr *convert_to_ascii;\n  int unaff_EDI;\n  \n  outptr_00 = outptr;\n  __x86_get_pc_thunk_di();\n  iVar1 = digest->algo;\n  if (iVar1 < 0) {\n    return CURLE_UNSUPPORTED_PROTOCOL;\n  }\n  if (iVar1 < 2) {\n    outptr = (char **)(unaff_EDI + -0x2d087);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);\n  }\n  else {\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }\n  CVar2 = _Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr);\n  return CVar2;\n}\n\n" comment (function_definition "CURLcode Curl_auth_create_digest_http_message\n                   (Curl_easy *data,char *userp,char *passwdp,uchar *request,uchar *uripath,\n                   digestdata *digest,char **outptr,size_t *outlen)\n\n{\n  int iVar1;\n  char **outptr_00;\n  CURLcode CVar2;\n  _func_void_uchar_ptr_uchar_ptr *convert_to_ascii;\n  int unaff_EDI;\n  \n  outptr_00 = outptr;\n  __x86_get_pc_thunk_di();\n  iVar1 = digest->algo;\n  if (iVar1 < 0) {\n    return CURLE_UNSUPPORTED_PROTOCOL;\n  }\n  if (iVar1 < 2) {\n    outptr = (char **)(unaff_EDI + -0x2d087);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);\n  }\n  else {\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }\n  CVar2 = _Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr);\n  return CVar2;\n}" type_identifier (function_declarator "Curl_auth_create_digest_http_message\n                   (Curl_easy *data,char *userp,char *passwdp,uchar *request,uchar *uripath,\n                   digestdata *digest,char **outptr,size_t *outlen)" identifier (parameter_list "(Curl_easy *data,char *userp,char *passwdp,uchar *request,uchar *uripath,\n                   digestdata *digest,char **outptr,size_t *outlen)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "char *userp" primitive_type (pointer_declarator "*userp" * identifier)) , (parameter_declaration "char *passwdp" primitive_type (pointer_declarator "*passwdp" * identifier)) , (parameter_declaration "uchar *request" type_identifier (pointer_declarator "*request" * identifier)) , (parameter_declaration "uchar *uripath" type_identifier (pointer_declarator "*uripath" * identifier)) , (parameter_declaration "digestdata *digest" type_identifier (pointer_declarator "*digest" * identifier)) , (parameter_declaration "char **outptr" primitive_type (pointer_declarator "**outptr" * (pointer_declarator "*outptr" * identifier))) , (parameter_declaration "size_t *outlen" primitive_type (pointer_declarator "*outlen" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char **outptr_00;\n  CURLcode CVar2;\n  _func_void_uchar_ptr_uchar_ptr *convert_to_ascii;\n  int unaff_EDI;\n  \n  outptr_00 = outptr;\n  __x86_get_pc_thunk_di();\n  iVar1 = digest->algo;\n  if (iVar1 < 0) {\n    return CURLE_UNSUPPORTED_PROTOCOL;\n  }\n  if (iVar1 < 2) {\n    outptr = (char **)(unaff_EDI + -0x2d087);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);\n  }\n  else {\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }\n  CVar2 = _Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr);\n  return CVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **outptr_00;" primitive_type (pointer_declarator "**outptr_00" * (pointer_declarator "*outptr_00" * identifier)) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "_func_void_uchar_ptr_uchar_ptr *convert_to_ascii;" type_identifier (pointer_declarator "*convert_to_ascii" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "outptr_00 = outptr;" (assignment_expression "outptr_00 = outptr" identifier = identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = digest->algo;" (assignment_expression "iVar1 = digest->algo" identifier = (field_expression "digest->algo" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < 0) {\n    return CURLE_UNSUPPORTED_PROTOCOL;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    return CURLE_UNSUPPORTED_PROTOCOL;\n  }" { (return_statement "return CURLE_UNSUPPORTED_PROTOCOL;" return identifier ;) })) (if_statement "if (iVar1 < 2) {\n    outptr = (char **)(unaff_EDI + -0x2d087);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);\n  }\n  else {\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }" if (parenthesized_expression "(iVar1 < 2)" ( (binary_expression "iVar1 < 2" identifier < number_literal) )) (compound_statement "{\n    outptr = (char **)(unaff_EDI + -0x2d087);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);\n  }" { (expression_statement "outptr = (char **)(unaff_EDI + -0x2d087);" (assignment_expression "outptr = (char **)(unaff_EDI + -0x2d087)" identifier = (cast_expression "(char **)(unaff_EDI + -0x2d087)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + -0x2d087)" ( (binary_expression "unaff_EDI + -0x2d087" identifier + number_literal) )))) ;) (expression_statement "convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367);" (assignment_expression "convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367)" identifier = (cast_expression "(_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x1367)" ( (type_descriptor "_func_void_uchar_ptr_uchar_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0x1367)" ( (binary_expression "unaff_EDI + -0x1367" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }" else (compound_statement "{\n    if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }\n    outptr = (char **)(unaff_EDI + -0x9997);\n    convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);\n  }" { (if_statement "if (5 < iVar1) {\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }" if (parenthesized_expression "(5 < iVar1)" ( (binary_expression "5 < iVar1" number_literal < identifier) )) (compound_statement "{\n      return CURLE_UNSUPPORTED_PROTOCOL;\n    }" { (return_statement "return CURLE_UNSUPPORTED_PROTOCOL;" return identifier ;) })) (expression_statement "outptr = (char **)(unaff_EDI + -0x9997);" (assignment_expression "outptr = (char **)(unaff_EDI + -0x9997)" identifier = (cast_expression "(char **)(unaff_EDI + -0x9997)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + -0x9997)" ( (binary_expression "unaff_EDI + -0x9997" identifier + number_literal) )))) ;) (expression_statement "convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7);" (assignment_expression "convert_to_ascii = (_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7)" identifier = (cast_expression "(_func_void_uchar_ptr_uchar_ptr *)(unaff_EDI + -0x13c7)" ( (type_descriptor "_func_void_uchar_ptr_uchar_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + -0x13c7)" ( (binary_expression "unaff_EDI + -0x13c7" identifier + number_literal) )))) ;) }))) (expression_statement "CVar2 = _Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr);" (assignment_expression "CVar2 = _Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr)" identifier = (call_expression "_Curl_auth_create_digest_http_message\n                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr)" identifier (argument_list "(data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,\n                     (_func_void_uchar_ptr_uchar_ptr *)outptr)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , (cast_expression "(_func_void_uchar_ptr_uchar_ptr *)outptr" ( (type_descriptor "_func_void_uchar_ptr_uchar_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00078b40(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00078b40(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00078b40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_stack_00000018;" primitive_type identifier ;) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(in_stack_00000018 + 0xc);" (assignment_expression "iVar1 = *(int *)(in_stack_00000018 + 0xc)" identifier = (pointer_expression "*(int *)(in_stack_00000018 + 0xc)" * (cast_expression "(int *)(in_stack_00000018 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000018 + 0xc)" ( (binary_expression "in_stack_00000018 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" if (parenthesized_expression "((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6))))" ( (binary_expression "(-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))" (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) && (parenthesized_expression "((iVar1 < 2 || (iVar1 < 6)))" ( (parenthesized_expression "(iVar1 < 2 || (iVar1 < 6))" ( (binary_expression "iVar1 < 2 || (iVar1 < 6)" (binary_expression "iVar1 < 2" identifier < number_literal) || (parenthesized_expression "(iVar1 < 6)" ( (binary_expression "iVar1 < 6" identifier < number_literal) ))) )) ))) )) (compound_statement "{\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00077840();" (assignment_expression "uVar2 = FUN_00077840()" identifier = (call_expression "FUN_00077840()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT < LIT) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00078b40(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00078b40(void)" (identifier "FUN_00078b40") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_stack_00000018;\n  \n  FUN_0002eb2c();\n  iVar1 = *(int *)(in_stack_00000018 + 0xc);\n  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_stack_00000018;" (primitive_type "int") (identifier "in_stack_00000018") (; ";")) (expression_statement "FUN_0002eb2c();" (call_expression "FUN_0002eb2c()" (identifier "FUN_0002eb2c") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(in_stack_00000018 + 0xc);" (assignment_expression "iVar1 = *(int *)(in_stack_00000018 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_stack_00000018 + 0xc)" (* "*") (cast_expression "(int *)(in_stack_00000018 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000018 + 0xc)" (( "(") (binary_expression "in_stack_00000018 + 0xc" (identifier "in_stack_00000018") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6))))" (( "(") (binary_expression "(-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))" (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (&& "&&") (parenthesized_expression "((iVar1 < 2 || (iVar1 < 6)))" (( "(") (parenthesized_expression "(iVar1 < 2 || (iVar1 < 6))" (( "(") (binary_expression "iVar1 < 2 || (iVar1 < 6)" (binary_expression "iVar1 < 2" (identifier "iVar1") (< "<") (number_literal "2")) (|| "||") (parenthesized_expression "(iVar1 < 6)" (( "(") (binary_expression "iVar1 < 6" (identifier "iVar1") (< "<") (number_literal "6")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = FUN_00077840();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00077840();" (assignment_expression "uVar2 = FUN_00077840()" (identifier "uVar2") (= "=") (call_expression "FUN_00077840()" (identifier "FUN_00077840") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1
                   (type_2 *data,char *userp,char *passwdp,type_3 *request,type_3 *uripath,
                   type_4 *digest,char **outptr,size_t *outlen)

{
  int var_2;
  char **outptr_00;
  type_1 CVar2;
  type_5 *convert_to_ascii;
  int var_3;
  
  outptr_00 = outptr;
  var_1();
  var_2 = digest->algo;
  if (var_2 < 0) {
    return CURLE_UNSUPPORTED_PROTOCOL;
  }
  if (var_2 < 2) {
    outptr = (char **)(var_3 + -0x2d087);
    convert_to_ascii = (type_5 *)(var_3 + -0x1367);
  }
  else {
    if (5 < var_2) {
      return CURLE_UNSUPPORTED_PROTOCOL;
    }
    outptr = (char **)(var_3 + -0x9997);
    convert_to_ascii = (type_5 *)(var_3 + -0x13c7);
  }
  CVar2 = var_4
                    (data,userp,passwdp,request,uripath,digest,outptr_00,outlen,convert_to_ascii,
                     (type_5 *)outptr);
  return CVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  int in_stack_00000018;
  
  FUN_0002eb2c();
  iVar1 = *(int *)(in_stack_00000018 + 0xc);
  if ((-1 < iVar1) && ((iVar1 < 2 || (iVar1 < 6)))) {
    uVar2 = FUN_00077840();
    return uVar2;
  }
  return 1;
}

