
/* WARNING: Unknown calling convention */

void bc_clear_args(buildcmd_control *ctl,buildcmd_state *state)

{
  size_t sVar1;
  
  sVar1 = ctl->initial_argc;
  state->todo = 0;
  state->dir_fd = -1;
  state->cmd_argc = sVar1;
  state->cmd_argv_chars = state->cmd_initial_argv_chars;
  return;
}



void FUN_00015b40(int param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  
  uVar1 = *(undefined4 *)(param_1 + 0x1c);
  param_2[7] = 0;
  param_2[8] = 0xffffffff;
  *param_2 = uVar1;
  param_2[4] = param_2[5];
  return;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EDX + 0x1c]
MOV dword ptr [EAX + 0x1c],0x0
MOV dword ptr [EAX + 0x20],0xffffffff
MOV dword ptr [EAX],EDX
MOV EDX,dword ptr [EAX + 0x14]
MOV dword ptr [EAX + 0x10],EDX
RET
(translation_unit "void FUN_00015b40(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}\n\n" (function_definition "void FUN_00015b40(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" primitive_type (function_declarator "FUN_00015b40(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[8] = 0xffffffff;" (assignment_expression "param_2[8] = 0xffffffff" (subscript_expression "param_2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[4] = param_2[5];" (assignment_expression "param_2[4] = param_2[5]" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid bc_clear_args(buildcmd_control *ctl,buildcmd_state *state)\n\n{\n  size_t sVar1;\n  \n  sVar1 = ctl->initial_argc;\n  state->todo = 0;\n  state->dir_fd = -1;\n  state->cmd_argc = sVar1;\n  state->cmd_argv_chars = state->cmd_initial_argv_chars;\n  return;\n}\n\n" comment (function_definition "void bc_clear_args(buildcmd_control *ctl,buildcmd_state *state)\n\n{\n  size_t sVar1;\n  \n  sVar1 = ctl->initial_argc;\n  state->todo = 0;\n  state->dir_fd = -1;\n  state->cmd_argc = sVar1;\n  state->cmd_argv_chars = state->cmd_initial_argv_chars;\n  return;\n}" primitive_type (function_declarator "bc_clear_args(buildcmd_control *ctl,buildcmd_state *state)" identifier (parameter_list "(buildcmd_control *ctl,buildcmd_state *state)" ( (parameter_declaration "buildcmd_control *ctl" type_identifier (pointer_declarator "*ctl" * identifier)) , (parameter_declaration "buildcmd_state *state" type_identifier (pointer_declarator "*state" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = ctl->initial_argc;\n  state->todo = 0;\n  state->dir_fd = -1;\n  state->cmd_argc = sVar1;\n  state->cmd_argv_chars = state->cmd_initial_argv_chars;\n  return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = ctl->initial_argc;" (assignment_expression "sVar1 = ctl->initial_argc" identifier = (field_expression "ctl->initial_argc" identifier -> field_identifier)) ;) (expression_statement "state->todo = 0;" (assignment_expression "state->todo = 0" (field_expression "state->todo" identifier -> field_identifier) = number_literal) ;) (expression_statement "state->dir_fd = -1;" (assignment_expression "state->dir_fd = -1" (field_expression "state->dir_fd" identifier -> field_identifier) = number_literal) ;) (expression_statement "state->cmd_argc = sVar1;" (assignment_expression "state->cmd_argc = sVar1" (field_expression "state->cmd_argc" identifier -> field_identifier) = identifier) ;) (expression_statement "state->cmd_argv_chars = state->cmd_initial_argv_chars;" (assignment_expression "state->cmd_argv_chars = state->cmd_initial_argv_chars" (field_expression "state->cmd_argv_chars" identifier -> field_identifier) = (field_expression "state->cmd_initial_argv_chars" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00015b40(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}\n\n" (function_definition "void FUN_00015b40(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" primitive_type (function_declarator "FUN_00015b40(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[8] = 0xffffffff;" (assignment_expression "param_2[8] = 0xffffffff" (subscript_expression "param_2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[4] = param_2[5];" (assignment_expression "param_2[4] = param_2[5]" (subscript_expression "param_2[4]" identifier [ number_literal ]) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (return_statement "return;" return ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (return_statement return ;) })))
(function_definition "void FUN_00015b40(int param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00015b40(int param_1,undefined4 *param_2)" (identifier "FUN_00015b40") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x1c);\n  param_2[7] = 0;\n  param_2[8] = 0xffffffff;\n  *param_2 = uVar1;\n  param_2[4] = param_2[5];\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x1c)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[8] = 0xffffffff;" (assignment_expression "param_2[8] = 0xffffffff" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "param_2[4] = param_2[5];" (assignment_expression "param_2[4] = param_2[5]" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *ctl,type_2 *state)

{
  size_t sVar1;
  
  sVar1 = ctl->initial_argc;
  state->todo = 0;
  state->dir_fd = -1;
  state->cmd_argc = sVar1;
  state->cmd_argv_chars = state->cmd_initial_argv_chars;
  return;
}


(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: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (return_statement))))

void MASKED(int param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  
  uVar1 = *(undefined4 *)(param_1 + 0x1c);
  param_2[7] = 0;
  param_2[8] = 0xffffffff;
  *param_2 = uVar1;
  param_2[4] = param_2[5];
  return;
}

