
int sftp_cmd_lcd(sftp_command *cmd)

{
  void *pvVar1;
  int iVar2;
  
  if (cmd->nwords < 2) {
    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);
    iVar2 = 0;
  }
  else {
    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);
    if (pvVar1 == (void *)0x0) {
      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);
      safefree(pvVar1);
      iVar2 = 1;
    }
    else {
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);
      safefree(pvVar1);
      iVar2 = 0;
    }
  }
  return iVar2;
}



undefined4 FUN_00028dc0(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1[1] < 2) {
    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);
    uVar2 = 0;
  }
  else {
    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));
    if (iVar1 == 0) {
      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);
      safefree(uVar2);
      uVar2 = 1;
    }
    else {
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);
      safefree(iVar1);
      uVar2 = 0;
    }
  }
  return uVar2;
}


lui gp,0xa
addiu gp,gp,-0x2a50
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,0x4(a0)
slti v0,v0,0x2
bne v0,zero,0x00028e50
_lw t9,-0x7d90(gp)
lw v0,0x0(a0)
lw a0,0x4(v0)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00028e70
_or s0,v0,zero
or a2,v0,zero
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x4c18
li a0,0x1
lw t9,-0x7564(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7fac(gp)
bal 0x000222f8
_nop
lw gp,0x10(sp)
or v0,zero,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x4c3c
lw t9,-0x74c0(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00028e40
_or v0,zero,zero
lw t9,-0x7d94(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a2,v0,zero
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x4bf0
li a0,0x1
lw t9,-0x7564(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7fac(gp)
bal 0x000222f8
_nop
lw gp,0x10(sp)
b 0x00028e40
_li v0,0x1
(translation_unit "undefined4 FUN_00028dc0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00028dc0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00028dc0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" if (parenthesized_expression "(param_1[1] < 2)" ( (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }" { (expression_statement "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);" (call_expression "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c)" (parenthesized_expression "(*(code *)PTR_puts_000beeb0)" ( (pointer_expression "*(code *)PTR_puts_000beeb0" * (cast_expression "(code *)PTR_puts_000beeb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_1_0_000be3a8 + -0x4c3c)" ( (binary_expression "PTR_s_1_0_000be3a8 + -0x4c3c" identifier + number_literal) ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));" (assignment_expression "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" identifier = (call_expression "(*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_psftp_lcd_000be5e0)" ( (pointer_expression "*(code *)PTR_psftp_lcd_000be5e0" * (cast_expression "(code *)PTR_psftp_lcd_000be5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*param_1 + 4))" ( (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();" (assignment_expression "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)()" identifier = (call_expression "(*(code *)PTR_psftp_getcwd_000be5dc)()" (parenthesized_expression "(*(code *)PTR_psftp_getcwd_000be5dc)" ( (pointer_expression "*(code *)PTR_psftp_getcwd_000be5dc" * (cast_expression "(code *)PTR_psftp_getcwd_000be5dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4bf0" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(uVar2);" (call_expression "safefree(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" else (compound_statement "{\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" { (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4c18" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int sftp_cmd_lcd(sftp_command *cmd)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  if (cmd->nwords < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    iVar2 = 0;\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int sftp_cmd_lcd(sftp_command *cmd)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  if (cmd->nwords < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    iVar2 = 0;\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "sftp_cmd_lcd(sftp_command *cmd)" identifier (parameter_list "(sftp_command *cmd)" ( (parameter_declaration "sftp_command *cmd" type_identifier (pointer_declarator "*cmd" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  int iVar2;\n  \n  if (cmd->nwords < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    iVar2 = 0;\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }\n  return iVar2;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (cmd->nwords < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    iVar2 = 0;\n  }\n  else {\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }" if (parenthesized_expression "(cmd->nwords < 2)" ( (binary_expression "cmd->nwords < 2" (field_expression "cmd->nwords" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    iVar2 = 0;\n  }" { (expression_statement "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);" (call_expression "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c)" (parenthesized_expression "(*(code *)PTR_puts_000beeb0)" ( (pointer_expression "*(code *)PTR_puts_000beeb0" * (cast_expression "(code *)PTR_puts_000beeb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_1_0_000be3a8 + -0x4c3c)" ( (binary_expression "PTR_s_1_0_000be3a8 + -0x4c3c" identifier + number_literal) ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }" else (compound_statement "{\n    pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);\n    if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }\n  }" { (expression_statement "pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1])" identifier = (cast_expression "(void *)(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1])" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_psftp_lcd_000be5e0)(cmd->words[1])" (parenthesized_expression "(*(code *)PTR_psftp_lcd_000be5e0)" ( (pointer_expression "*(code *)PTR_psftp_lcd_000be5e0" * (cast_expression "(code *)PTR_psftp_lcd_000be5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cmd->words[1])" ( (subscript_expression "cmd->words[1]" (field_expression "cmd->words" identifier -> field_identifier) [ number_literal ]) ))))) ;) (if_statement "if (pvVar1 == (void *)0x0) {\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }" if (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 1;\n    }" { (expression_statement "pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)();" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_psftp_getcwd_000be5dc)()" identifier = (cast_expression "(void *)(*(code *)PTR_psftp_getcwd_000be5dc)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_psftp_getcwd_000be5dc)()" (parenthesized_expression "(*(code *)PTR_psftp_getcwd_000be5dc)" ( (pointer_expression "*(code *)PTR_psftp_getcwd_000be5dc" * (cast_expression "(code *)PTR_psftp_getcwd_000be5dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4bf0,pvVar1)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4bf0" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(pvVar1);" (call_expression "safefree(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }" else (compound_statement "{\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);\n      safefree(pvVar1);\n      iVar2 = 0;\n    }" { (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4c18,pvVar1)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4c18" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(pvVar1);" (call_expression "safefree(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00028dc0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00028dc0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_00028dc0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" if (parenthesized_expression "(param_1[1] < 2)" ( (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }" { (expression_statement "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);" (call_expression "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c)" (parenthesized_expression "(*(code *)PTR_puts_000beeb0)" ( (pointer_expression "*(code *)PTR_puts_000beeb0" * (cast_expression "(code *)PTR_puts_000beeb0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_1_0_000be3a8 + -0x4c3c)" ( (binary_expression "PTR_s_1_0_000be3a8 + -0x4c3c" identifier + number_literal) ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" { (expression_statement "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));" (assignment_expression "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" identifier = (call_expression "(*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_psftp_lcd_000be5e0)" ( (pointer_expression "*(code *)PTR_psftp_lcd_000be5e0" * (cast_expression "(code *)PTR_psftp_lcd_000be5e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(*param_1 + 4))" ( (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }" { (expression_statement "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();" (assignment_expression "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)()" identifier = (call_expression "(*(code *)PTR_psftp_getcwd_000be5dc)()" (parenthesized_expression "(*(code *)PTR_psftp_getcwd_000be5dc)" ( (pointer_expression "*(code *)PTR_psftp_getcwd_000be5dc" * (cast_expression "(code *)PTR_psftp_getcwd_000be5dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4bf0" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(uVar2);" (call_expression "safefree(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" else (compound_statement "{\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" { (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" ( (pointer_expression "*(code *)PTR___printf_chk_000bee0c" * (cast_expression "(code *)PTR___printf_chk_000bee0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" ( number_literal , (binary_expression "PTR_s_1_0_000be3a8 + -0x4c18" identifier + number_literal) , identifier ))) ;) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00028dc0(int *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_00028dc0(int *param_1)" (identifier "FUN_00028dc0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1[1] < 2) {\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }\n  else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1[1] < 2)" (( "(") (binary_expression "param_1[1] < 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);" (call_expression "(*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c)" (parenthesized_expression "(*(code *)PTR_puts_000beeb0)" (( "(") (pointer_expression "*(code *)PTR_puts_000beeb0" (* "*") (cast_expression "(code *)PTR_puts_000beeb0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_puts_000beeb0"))) () ")")) (argument_list "(PTR_s_1_0_000be3a8 + -0x4c3c)" (( "(") (binary_expression "PTR_s_1_0_000be3a8 + -0x4c3c" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x4c3c")) () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));\n    if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));" (assignment_expression "iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_psftp_lcd_000be5e0)" (( "(") (pointer_expression "*(code *)PTR_psftp_lcd_000be5e0" (* "*") (cast_expression "(code *)PTR_psftp_lcd_000be5e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_psftp_lcd_000be5e0"))) () ")")) (argument_list "(*(undefined4 *)(*param_1 + 4))" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }\n    else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);\n      safefree(uVar2);\n      uVar2 = 1;\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();" (assignment_expression "uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_psftp_getcwd_000be5dc)()" (parenthesized_expression "(*(code *)PTR_psftp_getcwd_000be5dc)" (( "(") (pointer_expression "*(code *)PTR_psftp_getcwd_000be5dc" (* "*") (cast_expression "(code *)PTR_psftp_getcwd_000be5dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_psftp_getcwd_000be5dc"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000bee0c" (* "*") (cast_expression "(code *)PTR___printf_chk_000bee0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000bee0c"))) () ")")) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_1_0_000be3a8 + -0x4bf0" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x4bf0")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "safefree(uVar2);" (call_expression "safefree(uVar2)" (identifier "safefree") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);\n      safefree(iVar1);\n      uVar2 = 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);" (call_expression "(*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" (parenthesized_expression "(*(code *)PTR___printf_chk_000bee0c)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000bee0c" (* "*") (cast_expression "(code *)PTR___printf_chk_000bee0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000bee0c"))) () ")")) (argument_list "(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1)" (( "(") (number_literal "1") (, ",") (binary_expression "PTR_s_1_0_000be3a8 + -0x4c18" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x4c18")) (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "safefree(iVar1);" (call_expression "safefree(iVar1)" (identifier "safefree") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(type_1 *cmd)

{
  void *var_2;
  int iVar2;
  
  if (cmd->nwords < 2) {
    (*(type_2 *)PTR_puts_000beeb0)(var_1 + -0x4c3c);
    iVar2 = 0;
  }
  else {
    var_2 = (void *)(*(type_2 *)PTR_psftp_lcd_000be5e0)(cmd->words[1]);
    if (var_2 == (void *)0x0) {
      var_2 = (void *)(*(type_2 *)PTR_psftp_getcwd_000be5dc)();
      (*(type_2 *)PTR___printf_chk_000bee0c)(1,var_1 + -0x4bf0,var_2);
      var_3(var_2);
      iVar2 = 1;
    }
    else {
      (*(type_2 *)PTR___printf_chk_000bee0c)(1,var_1 + -0x4c18,var_2);
      var_3(var_2);
      iVar2 = 0;
    }
  }
  return iVar2;
}


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

undefined4 MASKED(int *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1[1] < 2) {
    (*(code *)PTR_puts_000beeb0)(PTR_s_1_0_000be3a8 + -0x4c3c);
    uVar2 = 0;
  }
  else {
    iVar1 = (*(code *)PTR_psftp_lcd_000be5e0)(*(undefined4 *)(*param_1 + 4));
    if (iVar1 == 0) {
      uVar2 = (*(code *)PTR_psftp_getcwd_000be5dc)();
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4bf0,uVar2);
      safefree(uVar2);
      uVar2 = 1;
    }
    else {
      (*(code *)PTR___printf_chk_000bee0c)(1,PTR_s_1_0_000be3a8 + -0x4c18,iVar1);
      safefree(iVar1);
      uVar2 = 0;
    }
  }
  return uVar2;
}

