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

CURLcode tftp_do(connectdata *conn,_Bool *done)

{
  CURLcode CVar1;
  tftp_state_data_t *state;
  
  *done = false;
  state = (conn->proto).tftpc;
  if (state == (tftp_state_data_t *)0x0) {
    CVar1 = tftp_connect(conn,done);
    if (CVar1 != CURLE_OK) {
      return CVar1;
    }
    state = (conn->proto).tftpc;
    if (state == (tftp_state_data_t *)0x0) {
      return CURLE_TFTP_ILLEGAL;
    }
  }
  *done = false;
  CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT);
  if (state->state == TFTP_STATE_FIN) {
    if (CVar1 == CURLE_OK) goto LAB_0004ae35;
  }
  else if (CVar1 == CURLE_OK) {
    tftp_multi_statemach(conn,done);
LAB_0004ae35:
    if (state->error != TFTP_ERR_NONE) {
      CVar1 = tftp_translate_code(state->error);
      return CVar1;
    }
    return CURLE_OK;
  }
  return CVar1;
}



int FUN_0004adf0(int param_1,undefined1 *param_2)

{
  int iVar1;
  int *piVar2;
  
  *param_2 = 0;
  piVar2 = *(int **)(param_1 + 0x4a4);
  if (piVar2 == (int *)0x0) {
    iVar1 = FUN_00049e50(param_1,param_2);
    if (iVar1 != 0) {
      return iVar1;
    }
    piVar2 = *(int **)(param_1 + 0x4a4);
    if (piVar2 == (int *)0x0) {
      return 0x47;
    }
  }
  *param_2 = 0;
  iVar1 = FUN_0004a240();
  if (*piVar2 == 3) {
    if (iVar1 == 0) goto LAB_0004ae35;
  }
  else if (iVar1 == 0) {
    FUN_0004a730(param_1,param_2);
LAB_0004ae35:
    if (piVar2[2] != -100) {
      iVar1 = FUN_0004a0d0();
      return iVar1;
    }
    return 0;
  }
  return iVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
MOV byte ptr [ESI],0x0
MOV EBX,dword ptr [EDI + 0x4a4]
TEST EBX,EBX
JZ 0x0004ae48
MOV byte ptr [ESI],0x0
XOR EDX,EDX
MOV EAX,EBX
CALL 0x0004a240
CMP dword ptr [EBX],0x3
JZ 0x0004ae70
TEST EAX,EAX
JZ 0x0004ae28
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x0004a730
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x8]
CMP EAX,-0x64
JZ 0x0004ae80
POP EBX
POP ESI
POP EDI
JMP 0x0004a0d0
SUB ESP,0x8
PUSH ESI
PUSH EDI
CALL 0x00049e50
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0004ae1d
MOV EBX,dword ptr [EDI + 0x4a4]
TEST EBX,EBX
JNZ 0x0004ae08
POP EBX
MOV EAX,0x47
POP ESI
POP EDI
RET
TEST EAX,EAX
JZ 0x0004ae35
JMP 0x0004ae1d
POP EBX
XOR EAX,EAX
POP ESI
POP EDI
RET
(translation_unit "int FUN_0004adf0(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0004adf0(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0004adf0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" identifier = (pointer_expression "*(int **)(param_1 + 0x4a4)" * (cast_expression "(int **)(param_1 + 0x4a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4a4)" ( (binary_expression "param_1 + 0x4a4" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" { (expression_statement "iVar1 = FUN_00049e50(param_1,param_2);" (assignment_expression "iVar1 = FUN_00049e50(param_1,param_2)" identifier = (call_expression "FUN_00049e50(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (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 "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" identifier = (pointer_expression "*(int **)(param_1 + 0x4a4)" * (cast_expression "(int **)(param_1 + 0x4a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4a4)" ( (binary_expression "param_1 + 0x4a4" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0x47;\n    }" { (return_statement "return 0x47;" return number_literal ;) })) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar1 = FUN_0004a240();" (assignment_expression "iVar1 = FUN_0004a240()" identifier = (call_expression "FUN_0004a240()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(*piVar2 == 3)" ( (binary_expression "*piVar2 == 3" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }" { (if_statement "if (iVar1 == 0) goto LAB_0004ae35;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004ae35;" goto statement_identifier ;)) }) (else_clause "else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" else (if_statement "if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" { (expression_statement "FUN_0004a730(param_1,param_2);" (call_expression "FUN_0004a730(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (labeled_statement "LAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" statement_identifier : (if_statement "if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" if (parenthesized_expression "(piVar2[2] != -100)" ( (binary_expression "piVar2[2] != -100" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_0004a0d0();" (assignment_expression "iVar1 = FUN_0004a0d0()" identifier = (call_expression "FUN_0004a0d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) }))) (return_statement "return 0;" return number_literal ;) })))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode tftp_do(connectdata *conn,_Bool *done)\n\n{\n  CURLcode CVar1;\n  tftp_state_data_t *state;\n  \n  *done = false;\n  state = (conn->proto).tftpc;\n  if (state == (tftp_state_data_t *)0x0) {\n    CVar1 = tftp_connect(conn,done);\n    if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }\n    state = (conn->proto).tftpc;\n    if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }\n  }\n  *done = false;\n  CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT);\n  if (state->state == TFTP_STATE_FIN) {\n    if (CVar1 == CURLE_OK) goto LAB_0004ae35;\n  }\n  else if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }\n  return CVar1;\n}\n\n" comment (function_definition "CURLcode tftp_do(connectdata *conn,_Bool *done)\n\n{\n  CURLcode CVar1;\n  tftp_state_data_t *state;\n  \n  *done = false;\n  state = (conn->proto).tftpc;\n  if (state == (tftp_state_data_t *)0x0) {\n    CVar1 = tftp_connect(conn,done);\n    if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }\n    state = (conn->proto).tftpc;\n    if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }\n  }\n  *done = false;\n  CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT);\n  if (state->state == TFTP_STATE_FIN) {\n    if (CVar1 == CURLE_OK) goto LAB_0004ae35;\n  }\n  else if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }\n  return CVar1;\n}" type_identifier (function_declarator "tftp_do(connectdata *conn,_Bool *done)" identifier (parameter_list "(connectdata *conn,_Bool *done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *done" type_identifier (pointer_declarator "*done" * identifier)) ))) (compound_statement "{\n  CURLcode CVar1;\n  tftp_state_data_t *state;\n  \n  *done = false;\n  state = (conn->proto).tftpc;\n  if (state == (tftp_state_data_t *)0x0) {\n    CVar1 = tftp_connect(conn,done);\n    if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }\n    state = (conn->proto).tftpc;\n    if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }\n  }\n  *done = false;\n  CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT);\n  if (state->state == TFTP_STATE_FIN) {\n    if (CVar1 == CURLE_OK) goto LAB_0004ae35;\n  }\n  else if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }\n  return CVar1;\n}" { (declaration "CURLcode CVar1;" type_identifier identifier ;) (declaration "tftp_state_data_t *state;" type_identifier (pointer_declarator "*state" * identifier) ;) (expression_statement "*done = false;" (assignment_expression "*done = false" (pointer_expression "*done" * identifier) = false) ;) (expression_statement "state = (conn->proto).tftpc;" (assignment_expression "state = (conn->proto).tftpc" identifier = (field_expression "(conn->proto).tftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (state == (tftp_state_data_t *)0x0) {\n    CVar1 = tftp_connect(conn,done);\n    if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }\n    state = (conn->proto).tftpc;\n    if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }\n  }" if (parenthesized_expression "(state == (tftp_state_data_t *)0x0)" ( (binary_expression "state == (tftp_state_data_t *)0x0" identifier == (cast_expression "(tftp_state_data_t *)0x0" ( (type_descriptor "tftp_state_data_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    CVar1 = tftp_connect(conn,done);\n    if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }\n    state = (conn->proto).tftpc;\n    if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }\n  }" { (expression_statement "CVar1 = tftp_connect(conn,done);" (assignment_expression "CVar1 = tftp_connect(conn,done)" identifier = (call_expression "tftp_connect(conn,done)" identifier (argument_list "(conn,done)" ( identifier , identifier )))) ;) (if_statement "if (CVar1 != CURLE_OK) {\n      return CVar1;\n    }" if (parenthesized_expression "(CVar1 != CURLE_OK)" ( (binary_expression "CVar1 != CURLE_OK" identifier != identifier) )) (compound_statement "{\n      return CVar1;\n    }" { (return_statement "return CVar1;" return identifier ;) })) (expression_statement "state = (conn->proto).tftpc;" (assignment_expression "state = (conn->proto).tftpc" identifier = (field_expression "(conn->proto).tftpc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (state == (tftp_state_data_t *)0x0) {\n      return CURLE_TFTP_ILLEGAL;\n    }" if (parenthesized_expression "(state == (tftp_state_data_t *)0x0)" ( (binary_expression "state == (tftp_state_data_t *)0x0" identifier == (cast_expression "(tftp_state_data_t *)0x0" ( (type_descriptor "tftp_state_data_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return CURLE_TFTP_ILLEGAL;\n    }" { (return_statement "return CURLE_TFTP_ILLEGAL;" return identifier ;) })) })) (expression_statement "*done = false;" (assignment_expression "*done = false" (pointer_expression "*done" * identifier) = false) ;) (expression_statement "CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT);" (assignment_expression "CVar1 = tftp_state_machine(state,TFTP_EVENT_INIT)" identifier = (call_expression "tftp_state_machine(state,TFTP_EVENT_INIT)" identifier (argument_list "(state,TFTP_EVENT_INIT)" ( identifier , identifier )))) ;) (if_statement "if (state->state == TFTP_STATE_FIN) {\n    if (CVar1 == CURLE_OK) goto LAB_0004ae35;\n  }\n  else if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }" if (parenthesized_expression "(state->state == TFTP_STATE_FIN)" ( (binary_expression "state->state == TFTP_STATE_FIN" (field_expression "state->state" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    if (CVar1 == CURLE_OK) goto LAB_0004ae35;\n  }" { (if_statement "if (CVar1 == CURLE_OK) goto LAB_0004ae35;" if (parenthesized_expression "(CVar1 == CURLE_OK)" ( (binary_expression "CVar1 == CURLE_OK" identifier == identifier) )) (goto_statement "goto LAB_0004ae35;" goto statement_identifier ;)) }) (else_clause "else if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }" else (if_statement "if (CVar1 == CURLE_OK) {\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }" if (parenthesized_expression "(CVar1 == CURLE_OK)" ( (binary_expression "CVar1 == CURLE_OK" identifier == identifier) )) (compound_statement "{\n    tftp_multi_statemach(conn,done);\nLAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }\n    return CURLE_OK;\n  }" { (expression_statement "tftp_multi_statemach(conn,done);" (call_expression "tftp_multi_statemach(conn,done)" identifier (argument_list "(conn,done)" ( identifier , identifier ))) ;) (labeled_statement "LAB_0004ae35:\n    if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }" statement_identifier : (if_statement "if (state->error != TFTP_ERR_NONE) {\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }" if (parenthesized_expression "(state->error != TFTP_ERR_NONE)" ( (binary_expression "state->error != TFTP_ERR_NONE" (field_expression "state->error" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      CVar1 = tftp_translate_code(state->error);\n      return CVar1;\n    }" { (expression_statement "CVar1 = tftp_translate_code(state->error);" (assignment_expression "CVar1 = tftp_translate_code(state->error)" identifier = (call_expression "tftp_translate_code(state->error)" identifier (argument_list "(state->error)" ( (field_expression "state->error" identifier -> field_identifier) )))) ;) (return_statement "return CVar1;" return identifier ;) }))) (return_statement "return CURLE_OK;" return identifier ;) })))) (return_statement "return CVar1;" return identifier ;) })))
(translation_unit "int FUN_0004adf0(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0004adf0(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0004adf0(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" identifier = (pointer_expression "*(int **)(param_1 + 0x4a4)" * (cast_expression "(int **)(param_1 + 0x4a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4a4)" ( (binary_expression "param_1 + 0x4a4" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" { (expression_statement "iVar1 = FUN_00049e50(param_1,param_2);" (assignment_expression "iVar1 = FUN_00049e50(param_1,param_2)" identifier = (call_expression "FUN_00049e50(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (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 "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" identifier = (pointer_expression "*(int **)(param_1 + 0x4a4)" * (cast_expression "(int **)(param_1 + 0x4a4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x4a4)" ( (binary_expression "param_1 + 0x4a4" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0x47;\n    }" { (return_statement "return 0x47;" return number_literal ;) })) })) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "iVar1 = FUN_0004a240();" (assignment_expression "iVar1 = FUN_0004a240()" identifier = (call_expression "FUN_0004a240()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(*piVar2 == 3)" ( (binary_expression "*piVar2 == 3" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }" { (if_statement "if (iVar1 == 0) goto LAB_0004ae35;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0004ae35;" goto statement_identifier ;)) }) (else_clause "else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" else (if_statement "if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" { (expression_statement "FUN_0004a730(param_1,param_2);" (call_expression "FUN_0004a730(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (labeled_statement "LAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" statement_identifier : (if_statement "if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" if (parenthesized_expression "(piVar2[2] != -100)" ( (binary_expression "piVar2[2] != -100" (subscript_expression "piVar2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_0004a0d0();" (assignment_expression "iVar1 = FUN_0004a0d0()" identifier = (call_expression "FUN_0004a0d0()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) }))) (return_statement "return 0;" return number_literal ;) })))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (return_statement return LIT ;) })))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0004adf0(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0004adf0(int param_1,undefined1 *param_2)" (identifier "FUN_0004adf0") (parameter_list "(int param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  *param_2 = 0;\n  piVar2 = *(int **)(param_1 + 0x4a4);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }\n  *param_2 = 0;\n  iVar1 = FUN_0004a240();\n  if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x4a4)" (* "*") (cast_expression "(int **)(param_1 + 0x4a4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4a4)" (( "(") (binary_expression "param_1 + 0x4a4" (identifier "param_1") (+ "+") (number_literal "0x4a4")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00049e50(param_1,param_2);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    piVar2 = *(int **)(param_1 + 0x4a4);\n    if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00049e50(param_1,param_2);" (assignment_expression "iVar1 = FUN_00049e50(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00049e50(param_1,param_2)" (identifier "FUN_00049e50") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (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 "piVar2 = *(int **)(param_1 + 0x4a4);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x4a4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x4a4)" (* "*") (cast_expression "(int **)(param_1 + 0x4a4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x4a4)" (( "(") (binary_expression "param_1 + 0x4a4" (identifier "param_1") (+ "+") (number_literal "0x4a4")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n      return 0x47;\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0x47;\n    }" ({ "{") (return_statement "return 0x47;" (return "return") (number_literal "0x47") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_0004a240();" (assignment_expression "iVar1 = FUN_0004a240()" (identifier "iVar1") (= "=") (call_expression "FUN_0004a240()" (identifier "FUN_0004a240") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar2 == 3) {\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }\n  else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(*piVar2 == 3)" (( "(") (binary_expression "*piVar2 == 3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    if (iVar1 == 0) goto LAB_0004ae35;\n  }" ({ "{") (if_statement "if (iVar1 == 0) goto LAB_0004ae35;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004ae35;" (goto "goto") (statement_identifier "LAB_0004ae35") (; ";"))) (} "}")) (else_clause "else if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" (else "else") (if_statement "if (iVar1 == 0) {\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0004a730(param_1,param_2);\nLAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }\n    return 0;\n  }" ({ "{") (expression_statement "FUN_0004a730(param_1,param_2);" (call_expression "FUN_0004a730(param_1,param_2)" (identifier "FUN_0004a730") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (labeled_statement "LAB_0004ae35:\n    if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" (statement_identifier "LAB_0004ae35") (: ":") (if_statement "if (piVar2[2] != -100) {\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(piVar2[2] != -100)" (( "(") (binary_expression "piVar2[2] != -100" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "-100")) () ")")) (compound_statement "{\n      iVar1 = FUN_0004a0d0();\n      return iVar1;\n    }" ({ "{") (expression_statement "iVar1 = FUN_0004a0d0();" (assignment_expression "iVar1 = FUN_0004a0d0()" (identifier "iVar1") (= "=") (call_expression "FUN_0004a0d0()" (identifier "FUN_0004a0d0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 function_1(type_2 *conn,type_3 *done)

{
  type_1 var_3;
  type_4 *var_1;
  
  *done = false;
  var_1 = (conn->proto).tftpc;
  if (var_1 == (type_4 *)0x0) {
    var_3 = var_2(conn,done);
    if (var_3 != var_4) {
      return var_3;
    }
    var_1 = (conn->proto).tftpc;
    if (var_1 == (type_4 *)0x0) {
      return CURLE_TFTP_ILLEGAL;
    }
  }
  *done = false;
  var_3 = var_5(var_1,TFTP_EVENT_INIT);
  if (var_1->var_1 == var_6) {
    if (var_3 == var_4) goto LAB_0004ae35;
  }
  else if (var_3 == var_4) {
    var_7(conn,done);
LAB_0004ae35:
    if (var_1->error != var_8) {
      var_3 = var_9(var_1->error);
      return var_3;
    }
    return var_4;
  }
  return var_3;
}


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

int MASKED(int param_1,undefined1 *param_2)

{
  int iVar1;
  int *piVar2;
  
  *param_2 = 0;
  piVar2 = *(int **)(param_1 + 0x4a4);
  if (piVar2 == (int *)0x0) {
    iVar1 = FUN_00049e50(param_1,param_2);
    if (iVar1 != 0) {
      return iVar1;
    }
    piVar2 = *(int **)(param_1 + 0x4a4);
    if (piVar2 == (int *)0x0) {
      return 0x47;
    }
  }
  *param_2 = 0;
  iVar1 = FUN_0004a240();
  if (*piVar2 == 3) {
    if (iVar1 == 0) goto LAB_0004ae35;
  }
  else if (iVar1 == 0) {
    FUN_0004a730(param_1,param_2);
LAB_0004ae35:
    if (piVar2[2] != -100) {
      iVar1 = FUN_0004a0d0();
      return iVar1;
    }
    return 0;
  }
  return iVar1;
}

