
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

CURLcode __regparm3 libcurl_generate_slist(curl_slist *slist,int *slistno)

{
  int iVar1;
  CURLcode CVar2;
  char *__ptr;
  
  __ptr = (char *)0x0;
  iVar1 = easysrc_slist_count + 1;
  easysrc_slist_count = iVar1;
  *slistno = iVar1;
  CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);
  if ((((CVar2 == CURLE_OK) &&
       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&
      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),
      CVar2 == CURLE_OK)) &&
     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&
      (slist != (curl_slist *)0x0)))) {
    do {
      free(__ptr);
      __ptr = c_escape(slist->data,0xffffffff);
      if (__ptr == (char *)0x0) {
        return CURLE_OUT_OF_MEMORY;
      }
      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,
                           *slistno,__ptr);
    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));
  }
  free(__ptr);
  return CVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00025170(int param_1,int *param_2)

{
  int iVar1;
  void *__ptr;
  
  __ptr = (void *)0x0;
  iVar1 = DAT_0004a034 + 1;
  DAT_0004a034 = iVar1;
  *param_2 = iVar1;
  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);
  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)
       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),
            iVar1 == 0)) &&
     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))
     )) {
    do {
      free(__ptr);
      __ptr = (void *)FUN_00025000();
      if (__ptr == (void *)0x0) {
        return 0x1b;
      }
      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,
                           *param_2,__ptr);
    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));
  }
  free(__ptr);
  return iVar1;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014a30
ADD EBX,0x24c3b
SUB ESP,0x20
MOV dword ptr [ESP + 0xc],EAX
LEA EDX,[EBX + 0x27c]
MOV ECX,dword ptr [EDX]
LEA EAX,[ECX + 0x1]
MOV dword ptr [EDX],EAX
PUSH EAX
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xffff4d0a]
PUSH EAX
PUSH dword ptr [EBX + 0x220]
CALL 0x00016c40
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000251d0
SUB ESP,0xc
PUSH EDI
CALL 0x000144b0
ADD ESP,0x10
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH dword ptr [ESI]
LEA ECX,[EBX + 0xffff4d26]
MOV dword ptr [ESP + 0xc],ECX
PUSH ECX
LEA ECX,[EBX + 0x290]
MOV dword ptr [ESP + 0xc],ECX
PUSH ECX
CALL 0x00016c40
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x000251b5
LEA EDX,[EBX + 0x284]
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4d36]
PUSH dword ptr [ESI]
PUSH EAX
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x00016c40
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x000251b5
SUB ESP,0x4
PUSH dword ptr [ESI]
PUSH dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x18]
PUSH EDX
CALL 0x00016c40
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JNZ 0x000251b5
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x000251b5
LEA EDX,[EBX + 0xffff5374]
MOV EBP,EAX
MOV dword ptr [ESP + 0x4],EDX
JMP 0x00025283
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH EDI
PUSH EAX
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH dword ptr [ESP + 0x1c]
CALL 0x00016c40
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x000252b0
MOV EBP,dword ptr [EBP + 0x4]
TEST EBP,EBP
JZ 0x000252b0
SUB ESP,0xc
PUSH EDI
CALL 0x000144b0
MOV EAX,dword ptr [EBP]
MOV EDX,0xffffffff
CALL 0x00025000
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x00025260
MOV EBP,0x1b
JMP 0x000251c1
MOV EBP,EAX
JMP 0x000251b5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00025170(int param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_00025170(int param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025170(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = DAT_0004a034 + 1;" (assignment_expression "iVar1 = DAT_0004a034 + 1" identifier = (binary_expression "DAT_0004a034 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0004a034 = iVar1;" (assignment_expression "DAT_0004a034 = iVar1" identifier = identifier) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);" (assignment_expression "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier = (call_expression "FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier (argument_list "(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" ( identifier , (string_literal ""struct curl_slist *slist%d;"" " string_content ") , identifier )))) ;) (if_statement "if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" if (parenthesized_expression "((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     ))" ( (binary_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" (parenthesized_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0))" ( (binary_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       )" ( (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" identifier (argument_list "(&DAT_0004a048,"slist%d = NULL;",*param_2)" ( (pointer_expression "&DAT_0004a048" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" identifier (argument_list "(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" ( (pointer_expression "&DAT_0004a03c" & identifier) , (string_literal ""curl_slist_free_all(slist%d);"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" ( (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0)" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" identifier (argument_list "(&DAT_0004a03c,"slist%d = NULL;",*param_2)" ( (pointer_expression "&DAT_0004a03c" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0 && (param_1 != 0)" (binary_expression "iVar1 == 0" identifier == number_literal) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) )) ))) )) (compound_statement "{\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" { (do_statement "do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));" do (compound_statement "{\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)FUN_00025000();" (assignment_expression "__ptr = (void *)FUN_00025000()" identifier = (cast_expression "(void *)FUN_00025000()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025000()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0x1b;\n      }" { (return_statement "return 0x1b;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" identifier = (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" identifier (argument_list "(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" ( (pointer_expression "&DAT_0004a048" & identifier) , (string_literal ""slist%d = curl_slist_append(slist%d, \"%s\");"" " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_2" * identifier) , identifier )))) ;) }) while (parenthesized_expression "((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0))" ( (binary_expression "(iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 = *(int *)(param_1 + 4), param_1 != 0)" ( (comma_expression "param_1 = *(int *)(param_1 + 4), param_1 != 0" (assignment_expression "param_1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) , (binary_expression "param_1 != 0" identifier != number_literal)) ))) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nCURLcode __regparm3 libcurl_generate_slist(curl_slist *slist,int *slistno)\n\n{\n  int iVar1;\n  CURLcode CVar2;\n  char *__ptr;\n  \n  __ptr = (char *)0x0;\n  iVar1 = easysrc_slist_count + 1;\n  easysrc_slist_count = iVar1;\n  *slistno = iVar1;\n  CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))) {\n    do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));\n  }\n  free(__ptr);\n  return CVar2;\n}\n\n" comment (function_definition "CURLcode __regparm3 libcurl_generate_slist(curl_slist *slist,int *slistno)\n\n{\n  int iVar1;\n  CURLcode CVar2;\n  char *__ptr;\n  \n  __ptr = (char *)0x0;\n  iVar1 = easysrc_slist_count + 1;\n  easysrc_slist_count = iVar1;\n  *slistno = iVar1;\n  CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))) {\n    do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));\n  }\n  free(__ptr);\n  return CVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "libcurl_generate_slist(curl_slist *slist,int *slistno)" identifier (parameter_list "(curl_slist *slist,int *slistno)" ( (parameter_declaration "curl_slist *slist" type_identifier (pointer_declarator "*slist" * identifier)) , (parameter_declaration "int *slistno" primitive_type (pointer_declarator "*slistno" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  CURLcode CVar2;\n  char *__ptr;\n  \n  __ptr = (char *)0x0;\n  iVar1 = easysrc_slist_count + 1;\n  easysrc_slist_count = iVar1;\n  *slistno = iVar1;\n  CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))) {\n    do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));\n  }\n  free(__ptr);\n  return CVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = easysrc_slist_count + 1;" (assignment_expression "iVar1 = easysrc_slist_count + 1" identifier = (binary_expression "easysrc_slist_count + 1" identifier + number_literal)) ;) (expression_statement "easysrc_slist_count = iVar1;" (assignment_expression "easysrc_slist_count = iVar1" identifier = identifier) ;) (expression_statement "*slistno = iVar1;" (assignment_expression "*slistno = iVar1" (pointer_expression "*slistno" * identifier) = identifier) ;) (expression_statement "CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);" (assignment_expression "CVar2 = easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier = (call_expression "easysrc_addf((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier (argument_list "((slist_wc **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1)" ( (cast_expression "(slist_wc **)PTR_easysrc_decl_00049fd8" ( (type_descriptor "slist_wc **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (string_literal ""struct curl_slist *slist%d;"" " string_content ") , identifier )))) ;) (if_statement "if ((((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))) {\n    do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));\n  }" if (parenthesized_expression "((((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0))))" ( (binary_expression "(((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)) &&\n     ((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))" (parenthesized_expression "(((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK))" ( (binary_expression "((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)) &&\n      (CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)" (parenthesized_expression "((CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK))" ( (binary_expression "(CVar2 == CURLE_OK) &&\n       (CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)" (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) )) && (parenthesized_expression "(CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK)" ( (comma_expression "CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK" (assignment_expression "CVar2 = easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno)" identifier = (call_expression "easysrc_addf(&easysrc_data,"slist%d = NULL;",*slistno)" identifier (argument_list "(&easysrc_data,"slist%d = NULL;",*slistno)" ( (pointer_expression "&easysrc_data" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*slistno" * identifier) )))) , (binary_expression "CVar2 == CURLE_OK" identifier == identifier)) ))) )) && (parenthesized_expression "(CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK)" ( (comma_expression "CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),\n      CVar2 == CURLE_OK" (assignment_expression "CVar2 = easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno)" identifier = (call_expression "easysrc_addf(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno)" identifier (argument_list "(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno)" ( (pointer_expression "&easysrc_clean" & identifier) , (string_literal ""curl_slist_free_all(slist%d);"" " string_content ") , (pointer_expression "*slistno" * identifier) )))) , (binary_expression "CVar2 == CURLE_OK" identifier == identifier)) ))) )) && (parenthesized_expression "((CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)))" ( (parenthesized_expression "(CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0))" ( (comma_expression "CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno), CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)" (assignment_expression "CVar2 = easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno)" identifier = (call_expression "easysrc_addf(&easysrc_clean,"slist%d = NULL;",*slistno)" identifier (argument_list "(&easysrc_clean,"slist%d = NULL;",*slistno)" ( (pointer_expression "&easysrc_clean" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*slistno" * identifier) )))) , (binary_expression "CVar2 == CURLE_OK &&\n      (slist != (curl_slist *)0x0)" (binary_expression "CVar2 == CURLE_OK" identifier == identifier) && (parenthesized_expression "(slist != (curl_slist *)0x0)" ( (binary_expression "slist != (curl_slist *)0x0" identifier != (cast_expression "(curl_slist *)0x0" ( (type_descriptor "curl_slist *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )))) )) ))) )) (compound_statement "{\n    do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));\n  }" { (do_statement "do {\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    } while ((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0));" do (compound_statement "{\n      free(__ptr);\n      __ptr = c_escape(slist->data,0xffffffff);\n      if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }\n      CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = c_escape(slist->data,0xffffffff);" (assignment_expression "__ptr = c_escape(slist->data,0xffffffff)" identifier = (call_expression "c_escape(slist->data,0xffffffff)" identifier (argument_list "(slist->data,0xffffffff)" ( (field_expression "slist->data" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if (__ptr == (char *)0x0) {\n        return CURLE_OUT_OF_MEMORY;\n      }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return CURLE_OUT_OF_MEMORY;\n      }" { (return_statement "return CURLE_OUT_OF_MEMORY;" return identifier ;) })) (expression_statement "CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr);" (assignment_expression "CVar2 = easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr)" identifier = (call_expression "easysrc_addf(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr)" identifier (argument_list "(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,\n                           *slistno,__ptr)" ( (pointer_expression "&easysrc_data" & identifier) , (string_literal ""slist%d = curl_slist_append(slist%d, \"%s\");"" " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression "*slistno" * identifier) , (pointer_expression "*slistno" * identifier) , identifier )))) ;) }) while (parenthesized_expression "((CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0))" ( (binary_expression "(CVar2 == CURLE_OK) && (slist = slist->next, slist != (curl_slist *)0x0)" (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) )) && (parenthesized_expression "(slist = slist->next, slist != (curl_slist *)0x0)" ( (comma_expression "slist = slist->next, slist != (curl_slist *)0x0" (assignment_expression "slist = slist->next" identifier = (field_expression "slist->next" identifier -> field_identifier)) , (binary_expression "slist != (curl_slist *)0x0" identifier != (cast_expression "(curl_slist *)0x0" ( (type_descriptor "curl_slist *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00025170(int param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_00025170(int param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025170(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = DAT_0004a034 + 1;" (assignment_expression "iVar1 = DAT_0004a034 + 1" identifier = (binary_expression "DAT_0004a034 + 1" identifier + number_literal)) ;) (expression_statement "DAT_0004a034 = iVar1;" (assignment_expression "DAT_0004a034 = iVar1" identifier = identifier) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);" (assignment_expression "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier = (call_expression "FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" identifier (argument_list "(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" ( identifier , (string_literal ""struct curl_slist *slist%d;"" " string_content ") , identifier )))) ;) (if_statement "if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" if (parenthesized_expression "((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     ))" ( (binary_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" (parenthesized_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0))" ( (binary_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       )" ( (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" identifier (argument_list "(&DAT_0004a048,"slist%d = NULL;",*param_2)" ( (pointer_expression "&DAT_0004a048" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" identifier (argument_list "(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" ( (pointer_expression "&DAT_0004a03c" & identifier) , (string_literal ""curl_slist_free_all(slist%d);"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" ( (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))" ( (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0)" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" identifier = (call_expression "FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" identifier (argument_list "(&DAT_0004a03c,"slist%d = NULL;",*param_2)" ( (pointer_expression "&DAT_0004a03c" & identifier) , (string_literal ""slist%d = NULL;"" " string_content ") , (pointer_expression "*param_2" * identifier) )))) , (binary_expression "iVar1 == 0 && (param_1 != 0)" (binary_expression "iVar1 == 0" identifier == number_literal) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )))) )) ))) )) (compound_statement "{\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" { (do_statement "do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));" do (compound_statement "{\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr = (void *)FUN_00025000();" (assignment_expression "__ptr = (void *)FUN_00025000()" identifier = (cast_expression "(void *)FUN_00025000()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00025000()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0x1b;\n      }" { (return_statement "return 0x1b;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" identifier = (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" identifier (argument_list "(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" ( (pointer_expression "&DAT_0004a048" & identifier) , (string_literal ""slist%d = curl_slist_append(slist%d, \"%s\");"" " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_2" * identifier) , identifier )))) ;) }) while (parenthesized_expression "((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0))" ( (binary_expression "(iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 = *(int *)(param_1 + 4), param_1 != 0)" ( (comma_expression "param_1 = *(int *)(param_1 + 4), param_1 != 0" (assignment_expression "param_1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) , (binary_expression "param_1 != 0" identifier != number_literal)) ))) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , (pointer_expression * IDENT) )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , (pointer_expression * IDENT) )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content ") , (pointer_expression * IDENT) )))) , (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (binary_expression IDENT != LIT) )))) )) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (string_literal " string_content escape_sequence string_content escape_sequence string_content ") , (pointer_expression * IDENT) , (pointer_expression * IDENT) , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00025170(int param_1,int *param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00025170(int param_1,int *param_2)" (identifier "FUN_00025170") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  \n  __ptr = (void *)0x0;\n  iVar1 = DAT_0004a034 + 1;\n  DAT_0004a034 = iVar1;\n  *param_2 = iVar1;\n  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);\n  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }\n  free(__ptr);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (expression_statement "__ptr = (void *)0x0;" (assignment_expression "__ptr = (void *)0x0" (identifier "__ptr") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar1 = DAT_0004a034 + 1;" (assignment_expression "iVar1 = DAT_0004a034 + 1" (identifier "iVar1") (= "=") (binary_expression "DAT_0004a034 + 1" (identifier "DAT_0004a034") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "DAT_0004a034 = iVar1;" (assignment_expression "DAT_0004a034 = iVar1" (identifier "DAT_0004a034") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);" (assignment_expression "iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" (identifier "iVar1") (= "=") (call_expression "FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" (identifier "FUN_00016c40") (argument_list "(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1)" (( "(") (identifier "PTR_DAT_00049fd8") (, ",") (string_literal ""struct curl_slist *slist%d;"" (" """) (string_content "struct curl_slist *slist%d;") (" """)) (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )) {\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" (if "if") (parenthesized_expression "((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     ))" (( "(") (binary_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)) &&\n     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" (parenthesized_expression "(((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0))" (( "(") (binary_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" (parenthesized_expression "((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)\n       )" (( "(") (binary_expression "(iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2)" (identifier "FUN_00016c40") (argument_list "(&DAT_0004a048,"slist%d = NULL;",*param_2)" (( "(") (pointer_expression "&DAT_0004a048" (& "&") (identifier "DAT_0004a048")) (, ",") (string_literal ""slist%d = NULL;"" (" """) (string_content "slist%d = NULL;") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),\n            iVar1 == 0" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" (identifier "FUN_00016c40") (argument_list "(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2)" (( "(") (pointer_expression "&DAT_0004a03c" (& "&") (identifier "DAT_0004a03c")) (, ",") (string_literal ""curl_slist_free_all(slist%d);"" (" """) (string_content "curl_slist_free_all(slist%d);") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))\n     )" (( "(") (parenthesized_expression "(iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))" (( "(") (comma_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0)" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2)" (identifier "FUN_00016c40") (argument_list "(&DAT_0004a03c,"slist%d = NULL;",*param_2)" (( "(") (pointer_expression "&DAT_0004a03c" (& "&") (identifier "DAT_0004a03c")) (, ",") (string_literal ""slist%d = NULL;"" (" """) (string_content "slist%d = NULL;") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")))) (, ",") (binary_expression "iVar1 == 0 && (param_1 != 0)" (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));\n  }" ({ "{") (do_statement "do {\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));" (do "do") (compound_statement "{\n      free(__ptr);\n      __ptr = (void *)FUN_00025000();\n      if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }\n      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);\n    }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__ptr = (void *)FUN_00025000();" (assignment_expression "__ptr = (void *)FUN_00025000()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00025000()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00025000()" (identifier "FUN_00025000") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__ptr == (void *)0x0) {\n        return 0x1b;\n      }" (if "if") (parenthesized_expression "(__ptr == (void *)0x0)" (( "(") (binary_expression "__ptr == (void *)0x0" (identifier "__ptr") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0x1b;\n      }" ({ "{") (return_statement "return 0x1b;" (return "return") (number_literal "0x1b") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr);" (assignment_expression "iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" (identifier "iVar1") (= "=") (call_expression "FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" (identifier "FUN_00016c40") (argument_list "(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,\n                           *param_2,__ptr)" (( "(") (pointer_expression "&DAT_0004a048" (& "&") (identifier "DAT_0004a048")) (, ",") (string_literal ""slist%d = curl_slist_append(slist%d, \"%s\");"" (" """) (string_content "slist%d = curl_slist_append(slist%d, ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (string_content ");") (" """)) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (identifier "__ptr") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0))" (( "(") (binary_expression "(iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 = *(int *)(param_1 + 4), param_1 != 0)" (( "(") (comma_expression "param_1 = *(int *)(param_1 + 4), param_1 != 0" (assignment_expression "param_1 = *(int *)(param_1 + 4)" (identifier "param_1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (, ",") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(type_2 *var_5,int *slistno)

{
  int iVar1;
  type_1 var_3;
  char *var_8;
  
  var_8 = (char *)0x0;
  iVar1 = var_1 + 1;
  var_1 = iVar1;
  *slistno = iVar1;
  var_3 = var_2((type_3 **)PTR_easysrc_decl_00049fd8,"struct curl_slist *slist%d;",iVar1);
  if ((((var_3 == var_4) &&
       (var_3 = var_2(&easysrc_data,"slist%d = NULL;",*slistno), var_3 == var_4)) &&
      (var_3 = var_2(&easysrc_clean,"curl_slist_free_all(slist%d);",*slistno),
      var_3 == var_4)) &&
     ((var_3 = var_2(&easysrc_clean,"slist%d = NULL;",*slistno), var_3 == var_4 &&
      (var_5 != (type_2 *)0x0)))) {
    do {
      var_6(var_8);
      var_8 = var_7(var_5->data,0xffffffff);
      if (var_8 == (char *)0x0) {
        return CURLE_OUT_OF_MEMORY;
      }
      var_3 = var_2(&easysrc_data,"slist%d = curl_slist_append(slist%d, \"%s\");",*slistno,
                           *slistno,var_8);
    } while ((var_3 == var_4) && (var_5 = var_5->next, var_5 != (type_2 *)0x0));
  }
  var_6(var_8);
  return var_3;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (pointer_expression argument: (identifier))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence) (string_content)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (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)))))) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(int param_1,int *param_2)

{
  int iVar1;
  void *__ptr;
  
  __ptr = (void *)0x0;
  iVar1 = DAT_0004a034 + 1;
  DAT_0004a034 = iVar1;
  *param_2 = iVar1;
  iVar1 = FUN_00016c40(PTR_DAT_00049fd8,"struct curl_slist *slist%d;",iVar1);
  if ((((iVar1 == 0) && (iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = NULL;",*param_2), iVar1 == 0)
       ) && (iVar1 = FUN_00016c40(&DAT_0004a03c,"curl_slist_free_all(slist%d);",*param_2),
            iVar1 == 0)) &&
     ((iVar1 = FUN_00016c40(&DAT_0004a03c,"slist%d = NULL;",*param_2), iVar1 == 0 && (param_1 != 0))
     )) {
    do {
      free(__ptr);
      __ptr = (void *)FUN_00025000();
      if (__ptr == (void *)0x0) {
        return 0x1b;
      }
      iVar1 = FUN_00016c40(&DAT_0004a048,"slist%d = curl_slist_append(slist%d, \"%s\");",*param_2,
                           *param_2,__ptr);
    } while ((iVar1 == 0) && (param_1 = *(int *)(param_1 + 4), param_1 != 0));
  }
  free(__ptr);
  return iVar1;
}

