
void parse_dcl(Ident *ident,int maybe_knr)

{
  ident->parmcnt = -1;
  ident->name = (char *)0x0;
  putback();
  dcl(ident);
  save_stack();
  if (ident->name == (char *)0x0) {
    save_end = -1;
  }
  else {
    declare(ident,maybe_knr);
  }
  return;
}



void FUN_0010b1cd(long *param_1,undefined4 param_2)

{
  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;
  *param_1 = 0;
  FUN_00109551();
  FUN_0010ac22(param_1);
  FUN_00109c07();
  if (*param_1 == 0) {
    DAT_00123050 = 0xffffffff;
  }
  else {
    FUN_0010af30(param_1,param_2);
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV EBP,ESI
MOV dword ptr [RDI + 0xc],0xffffffff
MOV qword ptr [RDI],0x0
MOV EAX,0x0
CALL 0x00109551
MOV RDI,RBX
CALL 0x0010ac22
MOV EAX,0x0
CALL 0x00109c07
CMP qword ptr [RBX],0x0
JZ 0x0010b219
MOV ESI,EBP
MOV RDI,RBX
CALL 0x0010af30
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV dword ptr [0x00123050],0xffffffff
JMP 0x0010b212
(translation_unit "void FUN_0010b1cd(long *param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010b1cd(long *param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010b1cd(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" { (expression_statement "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" * (cast_expression "(undefined4 *)((long)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "FUN_00109551();" (call_expression "FUN_00109551()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0010ac22(param_1);" (call_expression "FUN_0010ac22(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00109c07();" (call_expression "FUN_00109c07()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    DAT_00123050 = 0xffffffff;\n  }" { (expression_statement "DAT_00123050 = 0xffffffff;" (assignment_expression "DAT_00123050 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_0010af30(param_1,param_2);\n  }" else (compound_statement "{\n    FUN_0010af30(param_1,param_2);\n  }" { (expression_statement "FUN_0010af30(param_1,param_2);" (call_expression "FUN_0010af30(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void parse_dcl(Ident *ident,int maybe_knr)\n\n{\n  ident->parmcnt = -1;\n  ident->name = (char *)0x0;\n  putback();\n  dcl(ident);\n  save_stack();\n  if (ident->name == (char *)0x0) {\n    save_end = -1;\n  }\n  else {\n    declare(ident,maybe_knr);\n  }\n  return;\n}\n\n" (function_definition "void parse_dcl(Ident *ident,int maybe_knr)\n\n{\n  ident->parmcnt = -1;\n  ident->name = (char *)0x0;\n  putback();\n  dcl(ident);\n  save_stack();\n  if (ident->name == (char *)0x0) {\n    save_end = -1;\n  }\n  else {\n    declare(ident,maybe_knr);\n  }\n  return;\n}" primitive_type (function_declarator "parse_dcl(Ident *ident,int maybe_knr)" identifier (parameter_list "(Ident *ident,int maybe_knr)" ( (parameter_declaration "Ident *ident" type_identifier (pointer_declarator "*ident" * identifier)) , (parameter_declaration "int maybe_knr" primitive_type identifier) ))) (compound_statement "{\n  ident->parmcnt = -1;\n  ident->name = (char *)0x0;\n  putback();\n  dcl(ident);\n  save_stack();\n  if (ident->name == (char *)0x0) {\n    save_end = -1;\n  }\n  else {\n    declare(ident,maybe_knr);\n  }\n  return;\n}" { (expression_statement "ident->parmcnt = -1;" (assignment_expression "ident->parmcnt = -1" (field_expression "ident->parmcnt" identifier -> field_identifier) = number_literal) ;) (expression_statement "ident->name = (char *)0x0;" (assignment_expression "ident->name = (char *)0x0" (field_expression "ident->name" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "putback();" (call_expression "putback()" identifier (argument_list "()" ( ))) ;) (expression_statement "dcl(ident);" (call_expression "dcl(ident)" identifier (argument_list "(ident)" ( identifier ))) ;) (expression_statement "save_stack();" (call_expression "save_stack()" identifier (argument_list "()" ( ))) ;) (if_statement "if (ident->name == (char *)0x0) {\n    save_end = -1;\n  }\n  else {\n    declare(ident,maybe_knr);\n  }" if (parenthesized_expression "(ident->name == (char *)0x0)" ( (binary_expression "ident->name == (char *)0x0" (field_expression "ident->name" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    save_end = -1;\n  }" { (expression_statement "save_end = -1;" (assignment_expression "save_end = -1" identifier = number_literal) ;) }) (else_clause "else {\n    declare(ident,maybe_knr);\n  }" else (compound_statement "{\n    declare(ident,maybe_knr);\n  }" { (expression_statement "declare(ident,maybe_knr);" (call_expression "declare(ident,maybe_knr)" identifier (argument_list "(ident,maybe_knr)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010b1cd(long *param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010b1cd(long *param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010b1cd(long *param_1,undefined4 param_2)" identifier (parameter_list "(long *param_1,undefined4 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" { (expression_statement "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" * (cast_expression "(undefined4 *)((long)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "FUN_00109551();" (call_expression "FUN_00109551()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0010ac22(param_1);" (call_expression "FUN_0010ac22(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00109c07();" (call_expression "FUN_00109c07()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    DAT_00123050 = 0xffffffff;\n  }" { (expression_statement "DAT_00123050 = 0xffffffff;" (assignment_expression "DAT_00123050 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    FUN_0010af30(param_1,param_2);\n  }" else (compound_statement "{\n    FUN_0010af30(param_1,param_2);\n  }" { (expression_statement "FUN_0010af30(param_1,param_2);" (call_expression "FUN_0010af30(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0010b1cd(long *param_1,undefined4 param_2)\n\n{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010b1cd(long *param_1,undefined4 param_2)" (identifier "FUN_0010b1cd") (parameter_list "(long *param_1,undefined4 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;\n  *param_1 = 0;\n  FUN_00109551();\n  FUN_0010ac22(param_1);\n  FUN_00109c07();\n  if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }\n  return;\n}" ({ "{") (expression_statement "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)param_1 + 0xc) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00109551();" (call_expression "FUN_00109551()" (identifier "FUN_00109551") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0010ac22(param_1);" (call_expression "FUN_0010ac22(param_1)" (identifier "FUN_0010ac22") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00109c07();" (call_expression "FUN_00109c07()" (identifier "FUN_00109c07") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*param_1 == 0) {\n    DAT_00123050 = 0xffffffff;\n  }\n  else {\n    FUN_0010af30(param_1,param_2);\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_00123050 = 0xffffffff;\n  }" ({ "{") (expression_statement "DAT_00123050 = 0xffffffff;" (assignment_expression "DAT_00123050 = 0xffffffff" (identifier "DAT_00123050") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    FUN_0010af30(param_1,param_2);\n  }" (else "else") (compound_statement "{\n    FUN_0010af30(param_1,param_2);\n  }" ({ "{") (expression_statement "FUN_0010af30(param_1,param_2);" (call_expression "FUN_0010af30(param_1,param_2)" (identifier "FUN_0010af30") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *ident,int maybe_knr)

{
  ident->parmcnt = -1;
  ident->name = (char *)0x0;
  var_1();
  var_2(ident);
  var_3();
  if (ident->name == (char *)0x0) {
    save_end = -1;
  }
  else {
    var_4(ident,maybe_knr);
  }
  return;
}


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

void MASKED(long *param_1,undefined4 param_2)

{
  *(undefined4 *)((long)param_1 + 0xc) = 0xffffffff;
  *param_1 = 0;
  FUN_00109551();
  FUN_0010ac22(param_1);
  FUN_00109c07();
  if (*param_1 == 0) {
    DAT_00123050 = 0xffffffff;
  }
  else {
    FUN_0010af30(param_1,param_2);
  }
  return;
}

