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

int __regparm3 mime_part_rewind(curl_mimepart *part)

{
  int iVar1;
  mimestate mVar2;
  
  mVar2 = part->flags;
  (part->encstate).pos = 0;
  (part->encstate).bufbeg = 0;
  mVar2 = mVar2 & MIMESTATE_USERHEADERS;
  (part->encstate).bufend = 0;
  if (mVar2 != MIMESTATE_BEGIN) {
    mVar2 = MIMESTATE_BODY;
  }
  if (mVar2 < (part->state).state) {
    if ((part->seekfunc == (curl_seek_callback)0x0) ||
       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {
      return 2;
    }
    if ((iVar1 < -1) || (2 < iVar1)) {
      return 1;
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  (part->state).state = mVar2;
  (part->state).ptr = (void *)0x0;
  (part->state).offset = 0;
  return 0;
}



int __regparm3 FUN_00066a20(int param_1)

{
  int iVar1;
  uint uVar2;
  
  *(undefined4 *)(param_1 + 0x58) = 0;
  *(undefined4 *)(param_1 + 0x5c) = 0;
  uVar2 = *(uint *)(param_1 + 0x44) & 2;
  *(undefined4 *)(param_1 + 0x60) = 0;
  if (uVar2 != 0) {
    uVar2 = 4;
  }
  if (uVar2 < *(uint *)(param_1 + 0x48)) {
    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||
       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))
    {
      return 2;
    }
    if ((iVar1 < -1) || (2 < iVar1)) {
      return 1;
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  *(uint *)(param_1 + 0x48) = uVar2;
  *(undefined4 *)(param_1 + 0x4c) = 0;
  *(undefined4 *)(param_1 + 0x50) = 0;
  return 0;
}


PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x4
MOV ESI,dword ptr [EAX + 0x44]
MOV EAX,0x4
MOV dword ptr [EBX + 0x58],0x0
MOV dword ptr [EBX + 0x5c],0x0
AND ESI,0x2
MOV dword ptr [EBX + 0x60],0x0
CMOVNZ ESI,EAX
CMP dword ptr [EBX + 0x48],ESI
JBE 0x00066a78
MOV EAX,dword ptr [EBX + 0x18]
TEST EAX,EAX
JZ 0x00066a98
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBX + 0x20]
CALL EAX
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00066a98
JL 0x00066aa8
CMP EAX,0x2
JG 0x00066aa8
TEST EAX,EAX
JNZ 0x00066a8b
LEA ESI,[ESI]
MOV dword ptr [EBX + 0x48],ESI
XOR EAX,EAX
MOV dword ptr [EBX + 0x4c],0x0
MOV dword ptr [EBX + 0x50],0x0
ADD ESP,0x4
POP EBX
POP ESI
RET
ADD ESP,0x4
MOV EAX,0x2
POP EBX
POP ESI
RET
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
(translation_unit "int __regparm3 FUN_00066a20(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_00066a20(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00066a20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x44) & 2;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x44) & 2" identifier = (binary_expression "*(uint *)(param_1 + 0x44) & 2" (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar2 != 0) {\n    uVar2 = 4;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 4;\n  }" { (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) })) (if_statement "if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x48))" ( (binary_expression "uVar2 < *(uint *)(param_1 + 0x48)" identifier < (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) )) (compound_statement "{\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (if_statement "if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }" if (parenthesized_expression "((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))" ( (binary_expression "(*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" (parenthesized_expression "(*(code **)(param_1 + 0x18) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x18) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x18)" * (cast_expression "(code **)(param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" ( (comma_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" identifier = (call_expression "(**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" (parenthesized_expression "(**(code **)(param_1 + 0x18))" ( (pointer_expression "**(code **)(param_1 + 0x18)" * (pointer_expression "*(code **)(param_1 + 0x18)" * (cast_expression "(code **)(param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x20),0,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , number_literal , number_literal , number_literal )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) (if_statement "if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 < -1) || (2 < iVar1))" ( (binary_expression "(iVar1 < -1) || (2 < iVar1)" (parenthesized_expression "(iVar1 < -1)" ( (binary_expression "iVar1 < -1" identifier < number_literal) )) || (parenthesized_expression "(2 < iVar1)" ( (binary_expression "2 < iVar1" number_literal < identifier) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*(uint *)(param_1 + 0x48) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint __regparm3 mime_part_rewind(curl_mimepart *part)\n\n{\n  int iVar1;\n  mimestate mVar2;\n  \n  mVar2 = part->flags;\n  (part->encstate).pos = 0;\n  (part->encstate).bufbeg = 0;\n  mVar2 = mVar2 & MIMESTATE_USERHEADERS;\n  (part->encstate).bufend = 0;\n  if (mVar2 != MIMESTATE_BEGIN) {\n    mVar2 = MIMESTATE_BODY;\n  }\n  if (mVar2 < (part->state).state) {\n    if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  (part->state).state = mVar2;\n  (part->state).ptr = (void *)0x0;\n  (part->state).offset = 0;\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 mime_part_rewind(curl_mimepart *part)\n\n{\n  int iVar1;\n  mimestate mVar2;\n  \n  mVar2 = part->flags;\n  (part->encstate).pos = 0;\n  (part->encstate).bufbeg = 0;\n  mVar2 = mVar2 & MIMESTATE_USERHEADERS;\n  (part->encstate).bufend = 0;\n  if (mVar2 != MIMESTATE_BEGIN) {\n    mVar2 = MIMESTATE_BODY;\n  }\n  if (mVar2 < (part->state).state) {\n    if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  (part->state).state = mVar2;\n  (part->state).ptr = (void *)0x0;\n  (part->state).offset = 0;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "mime_part_rewind(curl_mimepart *part)" identifier (parameter_list "(curl_mimepart *part)" ( (parameter_declaration "curl_mimepart *part" type_identifier (pointer_declarator "*part" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  mimestate mVar2;\n  \n  mVar2 = part->flags;\n  (part->encstate).pos = 0;\n  (part->encstate).bufbeg = 0;\n  mVar2 = mVar2 & MIMESTATE_USERHEADERS;\n  (part->encstate).bufend = 0;\n  if (mVar2 != MIMESTATE_BEGIN) {\n    mVar2 = MIMESTATE_BODY;\n  }\n  if (mVar2 < (part->state).state) {\n    if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  (part->state).state = mVar2;\n  (part->state).ptr = (void *)0x0;\n  (part->state).offset = 0;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "mimestate mVar2;" type_identifier identifier ;) (expression_statement "mVar2 = part->flags;" (assignment_expression "mVar2 = part->flags" identifier = (field_expression "part->flags" identifier -> field_identifier)) ;) (expression_statement "(part->encstate).pos = 0;" (assignment_expression "(part->encstate).pos = 0" (field_expression "(part->encstate).pos" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(part->encstate).bufbeg = 0;" (assignment_expression "(part->encstate).bufbeg = 0" (field_expression "(part->encstate).bufbeg" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "mVar2 = mVar2 & MIMESTATE_USERHEADERS;" (assignment_expression "mVar2 = mVar2 & MIMESTATE_USERHEADERS" identifier = (binary_expression "mVar2 & MIMESTATE_USERHEADERS" identifier & identifier)) ;) (expression_statement "(part->encstate).bufend = 0;" (assignment_expression "(part->encstate).bufend = 0" (field_expression "(part->encstate).bufend" (parenthesized_expression "(part->encstate)" ( (field_expression "part->encstate" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (if_statement "if (mVar2 != MIMESTATE_BEGIN) {\n    mVar2 = MIMESTATE_BODY;\n  }" if (parenthesized_expression "(mVar2 != MIMESTATE_BEGIN)" ( (binary_expression "mVar2 != MIMESTATE_BEGIN" identifier != identifier) )) (compound_statement "{\n    mVar2 = MIMESTATE_BODY;\n  }" { (expression_statement "mVar2 = MIMESTATE_BODY;" (assignment_expression "mVar2 = MIMESTATE_BODY" identifier = identifier) ;) })) (if_statement "if (mVar2 < (part->state).state) {\n    if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(mVar2 < (part->state).state)" ( (binary_expression "mVar2 < (part->state).state" identifier < (field_expression "(part->state).state" (parenthesized_expression "(part->state)" ( (field_expression "part->state" identifier -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n    if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (if_statement "if ((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)) {\n      return 2;\n    }" if (parenthesized_expression "((part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1))" ( (binary_expression "(part->seekfunc == (curl_seek_callback)0x0) ||\n       (iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)" (parenthesized_expression "(part->seekfunc == (curl_seek_callback)0x0)" ( (binary_expression "part->seekfunc == (curl_seek_callback)0x0" (field_expression "part->seekfunc" identifier -> field_identifier) == (cast_expression "(curl_seek_callback)0x0" ( (type_descriptor "curl_seek_callback" type_identifier) ) number_literal)) )) || (parenthesized_expression "(iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1)" ( (comma_expression "iVar1 = (*part->seekfunc)(part->arg,0,0), iVar1 == -1" (assignment_expression "iVar1 = (*part->seekfunc)(part->arg,0,0)" identifier = (call_expression "(*part->seekfunc)(part->arg,0,0)" (parenthesized_expression "(*part->seekfunc)" ( (pointer_expression "*part->seekfunc" * (field_expression "part->seekfunc" identifier -> field_identifier)) )) (argument_list "(part->arg,0,0)" ( (field_expression "part->arg" identifier -> field_identifier) , number_literal , number_literal )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) (if_statement "if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 < -1) || (2 < iVar1))" ( (binary_expression "(iVar1 < -1) || (2 < iVar1)" (parenthesized_expression "(iVar1 < -1)" ( (binary_expression "iVar1 < -1" identifier < number_literal) )) || (parenthesized_expression "(2 < iVar1)" ( (binary_expression "2 < iVar1" number_literal < identifier) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "(part->state).state = mVar2;" (assignment_expression "(part->state).state = mVar2" (field_expression "(part->state).state" (parenthesized_expression "(part->state)" ( (field_expression "part->state" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(part->state).ptr = (void *)0x0;" (assignment_expression "(part->state).ptr = (void *)0x0" (field_expression "(part->state).ptr" (parenthesized_expression "(part->state)" ( (field_expression "part->state" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(part->state).offset = 0;" (assignment_expression "(part->state).offset = 0" (field_expression "(part->state).offset" (parenthesized_expression "(part->state)" ( (field_expression "part->state" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_00066a20(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_00066a20(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00066a20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x44) & 2;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x44) & 2" identifier = (binary_expression "*(uint *)(param_1 + 0x44) & 2" (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar2 != 0) {\n    uVar2 = 4;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 4;\n  }" { (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" identifier = number_literal) ;) })) (if_statement "if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x48))" ( (binary_expression "uVar2 < *(uint *)(param_1 + 0x48)" identifier < (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) )) (compound_statement "{\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (if_statement "if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }" if (parenthesized_expression "((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))" ( (binary_expression "(*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" (parenthesized_expression "(*(code **)(param_1 + 0x18) == (code *)0x0)" ( (binary_expression "*(code **)(param_1 + 0x18) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x18)" * (cast_expression "(code **)(param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" ( (comma_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" identifier = (call_expression "(**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" (parenthesized_expression "(**(code **)(param_1 + 0x18))" ( (pointer_expression "**(code **)(param_1 + 0x18)" * (pointer_expression "*(code **)(param_1 + 0x18)" * (cast_expression "(code **)(param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x20),0,0,0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , number_literal , number_literal , number_literal )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n      return 2;\n    }" { (return_statement "return 2;" return number_literal ;) })) (if_statement "if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 < -1) || (2 < iVar1))" ( (binary_expression "(iVar1 < -1) || (2 < iVar1)" (parenthesized_expression "(iVar1 < -1)" ( (binary_expression "iVar1 < -1" identifier < number_literal) )) || (parenthesized_expression "(2 < iVar1)" ( (binary_expression "2 < iVar1" number_literal < identifier) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*(uint *)(param_1 + 0x48) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_00066a20(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00066a20(int param_1)" (identifier "FUN_00066a20") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  *(undefined4 *)(param_1 + 0x58) = 0;\n  *(undefined4 *)(param_1 + 0x5c) = 0;\n  uVar2 = *(uint *)(param_1 + 0x44) & 2;\n  *(undefined4 *)(param_1 + 0x60) = 0;\n  if (uVar2 != 0) {\n    uVar2 = 4;\n  }\n  if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *(uint *)(param_1 + 0x48) = uVar2;\n  *(undefined4 *)(param_1 + 0x4c) = 0;\n  *(undefined4 *)(param_1 + 0x50) = 0;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x5c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x5c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x44) & 2;" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x44) & 2" (identifier "uVar2") (= "=") (binary_expression "*(uint *)(param_1 + 0x44) & 2" (pointer_expression "*(uint *)(param_1 + 0x44)" (* "*") (cast_expression "(uint *)(param_1 + 0x44)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (& "&") (number_literal "2"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar2 != 0) {\n    uVar2 = 4;\n  }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 4;\n  }" ({ "{") (expression_statement "uVar2 = 4;" (assignment_expression "uVar2 = 4" (identifier "uVar2") (= "=") (number_literal "4")) (; ";")) (} "}"))) (if_statement "if (uVar2 < *(uint *)(param_1 + 0x48)) {\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "(uVar2 < *(uint *)(param_1 + 0x48))" (( "(") (binary_expression "uVar2 < *(uint *)(param_1 + 0x48)" (identifier "uVar2") (< "<") (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (compound_statement "{\n    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }\n    if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" ({ "{") (if_statement "if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))\n    {\n      return 2;\n    }" (if "if") (parenthesized_expression "((*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))" (( "(") (binary_expression "(*(code **)(param_1 + 0x18) == (code *)0x0) ||\n       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" (parenthesized_expression "(*(code **)(param_1 + 0x18) == (code *)0x0)" (( "(") (binary_expression "*(code **)(param_1 + 0x18) == (code *)0x0" (pointer_expression "*(code **)(param_1 + 0x18)" (* "*") (cast_expression "(code **)(param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1)" (( "(") (comma_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1" (assignment_expression "iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0)" (parenthesized_expression "(**(code **)(param_1 + 0x18))" (( "(") (pointer_expression "**(code **)(param_1 + 0x18)" (* "*") (pointer_expression "*(code **)(param_1 + 0x18)" (* "*") (cast_expression "(code **)(param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x20),0,0,0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n      return 2;\n    }" ({ "{") (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (if_statement "if ((iVar1 < -1) || (2 < iVar1)) {\n      return 1;\n    }" (if "if") (parenthesized_expression "((iVar1 < -1) || (2 < iVar1))" (( "(") (binary_expression "(iVar1 < -1) || (2 < iVar1)" (parenthesized_expression "(iVar1 < -1)" (( "(") (binary_expression "iVar1 < -1" (identifier "iVar1") (< "<") (number_literal "-1")) () ")")) (|| "||") (parenthesized_expression "(2 < iVar1)" (( "(") (binary_expression "2 < iVar1" (number_literal "2") (< "<") (identifier "iVar1")) () ")"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x48) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x48) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *part)

{
  int var_4;
  type_2 var_1;
  
  var_1 = part->flags;
  (part->encstate).pos = 0;
  (part->encstate).bufbeg = 0;
  var_1 = var_1 & var_2;
  (part->encstate).bufend = 0;
  if (var_1 != var_3) {
    var_1 = MIMESTATE_BODY;
  }
  if (var_1 < (part->state).state) {
    if ((part->seekfunc == (type_3)0x0) ||
       (var_4 = (*part->seekfunc)(part->arg,0,0), var_4 == -1)) {
      return 2;
    }
    if ((var_4 < -1) || (2 < var_4)) {
      return 1;
    }
    if (var_4 != 0) {
      return var_4;
    }
  }
  (part->state).state = var_1;
  (part->state).ptr = (void *)0x0;
  (part->state).offset = 0;
  return 0;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (number_literal) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))))

int __regparm3 MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  
  *(undefined4 *)(param_1 + 0x58) = 0;
  *(undefined4 *)(param_1 + 0x5c) = 0;
  uVar2 = *(uint *)(param_1 + 0x44) & 2;
  *(undefined4 *)(param_1 + 0x60) = 0;
  if (uVar2 != 0) {
    uVar2 = 4;
  }
  if (uVar2 < *(uint *)(param_1 + 0x48)) {
    if ((*(code **)(param_1 + 0x18) == (code *)0x0) ||
       (iVar1 = (**(code **)(param_1 + 0x18))(*(undefined4 *)(param_1 + 0x20),0,0,0), iVar1 == -1))
    {
      return 2;
    }
    if ((iVar1 < -1) || (2 < iVar1)) {
      return 1;
    }
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  *(uint *)(param_1 + 0x48) = uVar2;
  *(undefined4 *)(param_1 + 0x4c) = 0;
  *(undefined4 *)(param_1 + 0x50) = 0;
  return 0;
}

