
sftp_request * fxp_opendir_send(char *path)

{
  sftp_request *psVar1;
  sftp_packet *pkt;
  
  psVar1 = sftp_alloc_request();
  pkt = sftp_pkt_init(0xb);
  sftp_pkt_adduint32(pkt,psVar1->id);
  sftp_pkt_addstring(pkt,path);
  sftp_send(pkt);
  return psVar1;
}



undefined4 * fxp_opendir_send(undefined4 param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0003398c();
  uVar2 = FUN_0003378c(0xb);
  FUN_000335e8(uVar2,*puVar1);
  FUN_00033bc8(uVar2,param_1);
  sftp_send(uVar2);
  return puVar1;
}


lui gp,0x8
addiu gp,gp,0x5854
addu gp,gp,t9
lw t9,-0x7c10(gp)
addiu sp,sp,-0x28
addiu t9,t9,0x398c
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
bal 0x0003398c
_or s2,a0,zero
li a0,0xb
lw gp,0x10(sp)
lw t9,-0x7c10(gp)
addiu t9,t9,0x378c
bal 0x0003378c
_or s1,v0,zero
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x0(s1)
lw t9,-0x7c10(gp)
addiu t9,t9,0x35e8
bal 0x000335e8
_or s0,v0,zero
or a1,s2,zero
lw gp,0x10(sp)
lw t9,-0x7c10(gp)
addiu t9,t9,0x3bc8
bal 0x00033bc8
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7b1c(gp)
bal 0x000340b8
_or a0,s0,zero
or v0,s1,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 * fxp_opendir_send(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}\n\n" (function_definition "undefined4 * fxp_opendir_send(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" type_identifier (pointer_declarator "* fxp_opendir_send(undefined4 param_1)" * (function_declarator "fxp_opendir_send(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003398c();" (assignment_expression "puVar1 = (undefined4 *)FUN_0003398c()" identifier = (cast_expression "(undefined4 *)FUN_0003398c()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003398c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = FUN_0003378c(0xb);" (assignment_expression "uVar2 = FUN_0003378c(0xb)" identifier = (call_expression "FUN_0003378c(0xb)" identifier (argument_list "(0xb)" ( number_literal )))) ;) (expression_statement "FUN_000335e8(uVar2,*puVar1);" (call_expression "FUN_000335e8(uVar2,*puVar1)" identifier (argument_list "(uVar2,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "FUN_00033bc8(uVar2,param_1);" (call_expression "FUN_00033bc8(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (expression_statement "sftp_send(uVar2);" (call_expression "sftp_send(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "sftp_request * fxp_opendir_send(char *path)\n\n{\n  sftp_request *psVar1;\n  sftp_packet *pkt;\n  \n  psVar1 = sftp_alloc_request();\n  pkt = sftp_pkt_init(0xb);\n  sftp_pkt_adduint32(pkt,psVar1->id);\n  sftp_pkt_addstring(pkt,path);\n  sftp_send(pkt);\n  return psVar1;\n}\n\n" (function_definition "sftp_request * fxp_opendir_send(char *path)\n\n{\n  sftp_request *psVar1;\n  sftp_packet *pkt;\n  \n  psVar1 = sftp_alloc_request();\n  pkt = sftp_pkt_init(0xb);\n  sftp_pkt_adduint32(pkt,psVar1->id);\n  sftp_pkt_addstring(pkt,path);\n  sftp_send(pkt);\n  return psVar1;\n}" type_identifier (pointer_declarator "* fxp_opendir_send(char *path)" * (function_declarator "fxp_opendir_send(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  sftp_request *psVar1;\n  sftp_packet *pkt;\n  \n  psVar1 = sftp_alloc_request();\n  pkt = sftp_pkt_init(0xb);\n  sftp_pkt_adduint32(pkt,psVar1->id);\n  sftp_pkt_addstring(pkt,path);\n  sftp_send(pkt);\n  return psVar1;\n}" { (declaration "sftp_request *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "sftp_packet *pkt;" type_identifier (pointer_declarator "*pkt" * identifier) ;) (expression_statement "psVar1 = sftp_alloc_request();" (assignment_expression "psVar1 = sftp_alloc_request()" identifier = (call_expression "sftp_alloc_request()" identifier (argument_list "()" ( )))) ;) (expression_statement "pkt = sftp_pkt_init(0xb);" (assignment_expression "pkt = sftp_pkt_init(0xb)" identifier = (call_expression "sftp_pkt_init(0xb)" identifier (argument_list "(0xb)" ( number_literal )))) ;) (expression_statement "sftp_pkt_adduint32(pkt,psVar1->id);" (call_expression "sftp_pkt_adduint32(pkt,psVar1->id)" identifier (argument_list "(pkt,psVar1->id)" ( identifier , (field_expression "psVar1->id" identifier -> field_identifier) ))) ;) (expression_statement "sftp_pkt_addstring(pkt,path);" (call_expression "sftp_pkt_addstring(pkt,path)" identifier (argument_list "(pkt,path)" ( identifier , identifier ))) ;) (expression_statement "sftp_send(pkt);" (call_expression "sftp_send(pkt)" identifier (argument_list "(pkt)" ( identifier ))) ;) (return_statement "return psVar1;" return identifier ;) })))
(translation_unit "undefined4 * fxp_opendir_send(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}\n\n" (function_definition "undefined4 * fxp_opendir_send(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" type_identifier (pointer_declarator "* fxp_opendir_send(undefined4 param_1)" * (function_declarator "fxp_opendir_send(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)FUN_0003398c();" (assignment_expression "puVar1 = (undefined4 *)FUN_0003398c()" identifier = (cast_expression "(undefined4 *)FUN_0003398c()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003398c()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar2 = FUN_0003378c(0xb);" (assignment_expression "uVar2 = FUN_0003378c(0xb)" identifier = (call_expression "FUN_0003378c(0xb)" identifier (argument_list "(0xb)" ( number_literal )))) ;) (expression_statement "FUN_000335e8(uVar2,*puVar1);" (call_expression "FUN_000335e8(uVar2,*puVar1)" identifier (argument_list "(uVar2,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "FUN_00033bc8(uVar2,param_1);" (call_expression "FUN_00033bc8(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) (expression_statement "sftp_send(uVar2);" (call_expression "sftp_send(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * fxp_opendir_send(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* fxp_opendir_send(undefined4 param_1)" (* "*") (function_declarator "fxp_opendir_send(undefined4 param_1)" (identifier "fxp_opendir_send") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)FUN_0003398c();\n  uVar2 = FUN_0003378c(0xb);\n  FUN_000335e8(uVar2,*puVar1);\n  FUN_00033bc8(uVar2,param_1);\n  sftp_send(uVar2);\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)FUN_0003398c();" (assignment_expression "puVar1 = (undefined4 *)FUN_0003398c()" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)FUN_0003398c()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003398c()" (identifier "FUN_0003398c") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar2 = FUN_0003378c(0xb);" (assignment_expression "uVar2 = FUN_0003378c(0xb)" (identifier "uVar2") (= "=") (call_expression "FUN_0003378c(0xb)" (identifier "FUN_0003378c") (argument_list "(0xb)" (( "(") (number_literal "0xb") () ")")))) (; ";")) (expression_statement "FUN_000335e8(uVar2,*puVar1);" (call_expression "FUN_000335e8(uVar2,*puVar1)" (identifier "FUN_000335e8") (argument_list "(uVar2,*puVar1)" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (expression_statement "FUN_00033bc8(uVar2,param_1);" (call_expression "FUN_00033bc8(uVar2,param_1)" (identifier "FUN_00033bc8") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "sftp_send(uVar2);" (call_expression "sftp_send(uVar2)" (identifier "sftp_send") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

type_1 * function_1(char *path)

{
  type_1 *psVar1;
  type_2 *pkt;
  
  psVar1 = var_1();
  pkt = var_2(0xb);
  var_3(pkt,psVar1->id);
  var_4(pkt,path);
  var_5(pkt);
  return psVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

undefined4 * MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)FUN_0003398c();
  uVar2 = FUN_0003378c(0xb);
  FUN_000335e8(uVar2,*puVar1);
  FUN_00033bc8(uVar2,param_1);
  sftp_send(uVar2);
  return puVar1;
}

