
INSTRUCTION * make_braced_statements(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)

{
  exp_instruction *peVar1;
  NODE *pNVar2;
  
  if (stmts == (INSTRUCTION *)0x0) {
    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');
    stmts = bcalloc(Op_list,L'\x01',L'\0');
    stmts->nexti = (exp_instruction *)pNVar2;
    (stmts->d).dn = pNVar2;
  }
  if (lbrace != (INSTRUCTION *)0x0) {
    peVar1 = lbrace->comment;
    if (peVar1 != (exp_instruction *)0x0) {
      peVar1->nexti = stmts->nexti;
      stmts->nexti = peVar1;
      lbrace->comment = (exp_instruction *)0x0;
    }
    lbrace->nexti = stmts->nexti;
    stmts->nexti = lbrace;
  }
  return stmts;
}



void FUN_0010c402(long *param_1,long *param_2)

{
  long *plVar1;
  long lVar2;
  
  if (param_2 == (long *)0x0) {
    lVar2 = FUN_0016190d(0x54,1,0);
    param_2 = (long *)FUN_0016190d(0x6d,1,0);
    *param_2 = lVar2;
    param_2[1] = lVar2;
  }
  if (param_1 != (long *)0x0) {
    plVar1 = (long *)param_1[3];
    if (plVar1 != (long *)0x0) {
      *plVar1 = *param_2;
      *param_2 = (long)plVar1;
      param_1[3] = 0;
    }
    *param_1 = *param_2;
    *param_2 = (long)param_1;
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RAX,RSI
TEST RSI,RSI
JZ 0x0010c442
TEST RBX,RBX
JZ 0x0010c43b
MOV RDX,qword ptr [RBX + 0x18]
TEST RDX,RDX
JZ 0x0010c432
MOV RCX,qword ptr [RAX]
MOV qword ptr [RDX],RCX
MOV qword ptr [RAX],RDX
MOV qword ptr [RBX + 0x18],0x0
MOV RDX,qword ptr [RAX]
MOV qword ptr [RBX],RDX
MOV qword ptr [RAX],RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV EDX,0x0
MOV ESI,0x1
MOV EDI,0x54
CALL 0x0016190d
MOV RBP,RAX
MOV EDX,0x0
MOV ESI,0x1
MOV EDI,0x6d
CALL 0x0016190d
MOV qword ptr [RAX],RBP
MOV qword ptr [RAX + 0x8],RBP
JMP 0x0010c413
(translation_unit "void FUN_0010c402(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010c402(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010c402(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" if (parenthesized_expression "(param_2 == (long *)0x0)" ( (binary_expression "param_2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" { (expression_statement "lVar2 = FUN_0016190d(0x54,1,0);" (assignment_expression "lVar2 = FUN_0016190d(0x54,1,0)" identifier = (call_expression "FUN_0016190d(0x54,1,0)" identifier (argument_list "(0x54,1,0)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "param_2 = (long *)FUN_0016190d(0x6d,1,0);" (assignment_expression "param_2 = (long *)FUN_0016190d(0x6d,1,0)" identifier = (cast_expression "(long *)FUN_0016190d(0x6d,1,0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0016190d(0x6d,1,0)" identifier (argument_list "(0x6d,1,0)" ( number_literal , number_literal , number_literal ))))) ;) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = lVar2;" (assignment_expression "param_2[1] = lVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" if (parenthesized_expression "(param_1 != (long *)0x0)" ( (binary_expression "param_1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" { (expression_statement "plVar1 = (long *)param_1[3];" (assignment_expression "plVar1 = (long *)param_1[3]" identifier = (cast_expression "(long *)param_1[3]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" if (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" { (expression_statement "*plVar1 = *param_2;" (assignment_expression "*plVar1 = *param_2" (pointer_expression "*plVar1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (long)plVar1;" (assignment_expression "*param_2 = (long)plVar1" (pointer_expression "*param_2" * identifier) = (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (long)param_1;" (assignment_expression "*param_2 = (long)param_1" (pointer_expression "*param_2" * identifier) = (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "INSTRUCTION * make_braced_statements(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)\n\n{\n  exp_instruction *peVar1;\n  NODE *pNVar2;\n  \n  if (stmts == (INSTRUCTION *)0x0) {\n    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');\n    stmts = bcalloc(Op_list,L'\x01',L'\0');\n    stmts->nexti = (exp_instruction *)pNVar2;\n    (stmts->d).dn = pNVar2;\n  }\n  if (lbrace != (INSTRUCTION *)0x0) {\n    peVar1 = lbrace->comment;\n    if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }\n    lbrace->nexti = stmts->nexti;\n    stmts->nexti = lbrace;\n  }\n  return stmts;\n}\n\n" (function_definition "INSTRUCTION * make_braced_statements(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)\n\n{\n  exp_instruction *peVar1;\n  NODE *pNVar2;\n  \n  if (stmts == (INSTRUCTION *)0x0) {\n    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');\n    stmts = bcalloc(Op_list,L'\x01',L'\0');\n    stmts->nexti = (exp_instruction *)pNVar2;\n    (stmts->d).dn = pNVar2;\n  }\n  if (lbrace != (INSTRUCTION *)0x0) {\n    peVar1 = lbrace->comment;\n    if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }\n    lbrace->nexti = stmts->nexti;\n    stmts->nexti = lbrace;\n  }\n  return stmts;\n}" type_identifier (pointer_declarator "* make_braced_statements(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)" * (function_declarator "make_braced_statements(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)" identifier (parameter_list "(INSTRUCTION *lbrace,INSTRUCTION *stmts,INSTRUCTION *rbrace)" ( (parameter_declaration "INSTRUCTION *lbrace" type_identifier (pointer_declarator "*lbrace" * identifier)) , (parameter_declaration "INSTRUCTION *stmts" type_identifier (pointer_declarator "*stmts" * identifier)) , (parameter_declaration "INSTRUCTION *rbrace" type_identifier (pointer_declarator "*rbrace" * identifier)) )))) (compound_statement "{\n  exp_instruction *peVar1;\n  NODE *pNVar2;\n  \n  if (stmts == (INSTRUCTION *)0x0) {\n    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');\n    stmts = bcalloc(Op_list,L'\x01',L'\0');\n    stmts->nexti = (exp_instruction *)pNVar2;\n    (stmts->d).dn = pNVar2;\n  }\n  if (lbrace != (INSTRUCTION *)0x0) {\n    peVar1 = lbrace->comment;\n    if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }\n    lbrace->nexti = stmts->nexti;\n    stmts->nexti = lbrace;\n  }\n  return stmts;\n}" { (declaration "exp_instruction *peVar1;" type_identifier (pointer_declarator "*peVar1" * identifier) ;) (declaration "NODE *pNVar2;" type_identifier (pointer_declarator "*pNVar2" * identifier) ;) (if_statement "if (stmts == (INSTRUCTION *)0x0) {\n    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');\n    stmts = bcalloc(Op_list,L'\x01',L'\0');\n    stmts->nexti = (exp_instruction *)pNVar2;\n    (stmts->d).dn = pNVar2;\n  }" if (parenthesized_expression "(stmts == (INSTRUCTION *)0x0)" ( (binary_expression "stmts == (INSTRUCTION *)0x0" identifier == (cast_expression "(INSTRUCTION *)0x0" ( (type_descriptor "INSTRUCTION *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');\n    stmts = bcalloc(Op_list,L'\x01',L'\0');\n    stmts->nexti = (exp_instruction *)pNVar2;\n    (stmts->d).dn = pNVar2;\n  }" { (expression_statement "pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0');" (assignment_expression "pNVar2 = (NODE *)bcalloc(Op_no_op,L'\x01',L'\0')" identifier = (cast_expression "(NODE *)bcalloc(Op_no_op,L'\x01',L'\0')" ( (type_descriptor "NODE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bcalloc(Op_no_op,L'\x01',L'\0')" identifier (argument_list "(Op_no_op,L'\x01',L'\0')" ( identifier , (char_literal "L'\x01'" L' escape_sequence ') , (char_literal "L'\0'" L' escape_sequence ') ))))) ;) (expression_statement "stmts = bcalloc(Op_list,L'\x01',L'\0');" (assignment_expression "stmts = bcalloc(Op_list,L'\x01',L'\0')" identifier = (call_expression "bcalloc(Op_list,L'\x01',L'\0')" identifier (argument_list "(Op_list,L'\x01',L'\0')" ( identifier , (char_literal "L'\x01'" L' escape_sequence ') , (char_literal "L'\0'" L' escape_sequence ') )))) ;) (expression_statement "stmts->nexti = (exp_instruction *)pNVar2;" (assignment_expression "stmts->nexti = (exp_instruction *)pNVar2" (field_expression "stmts->nexti" identifier -> field_identifier) = (cast_expression "(exp_instruction *)pNVar2" ( (type_descriptor "exp_instruction *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(stmts->d).dn = pNVar2;" (assignment_expression "(stmts->d).dn = pNVar2" (field_expression "(stmts->d).dn" (parenthesized_expression "(stmts->d)" ( (field_expression "stmts->d" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (if_statement "if (lbrace != (INSTRUCTION *)0x0) {\n    peVar1 = lbrace->comment;\n    if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }\n    lbrace->nexti = stmts->nexti;\n    stmts->nexti = lbrace;\n  }" if (parenthesized_expression "(lbrace != (INSTRUCTION *)0x0)" ( (binary_expression "lbrace != (INSTRUCTION *)0x0" identifier != (cast_expression "(INSTRUCTION *)0x0" ( (type_descriptor "INSTRUCTION *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    peVar1 = lbrace->comment;\n    if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }\n    lbrace->nexti = stmts->nexti;\n    stmts->nexti = lbrace;\n  }" { (expression_statement "peVar1 = lbrace->comment;" (assignment_expression "peVar1 = lbrace->comment" identifier = (field_expression "lbrace->comment" identifier -> field_identifier)) ;) (if_statement "if (peVar1 != (exp_instruction *)0x0) {\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }" if (parenthesized_expression "(peVar1 != (exp_instruction *)0x0)" ( (binary_expression "peVar1 != (exp_instruction *)0x0" identifier != (cast_expression "(exp_instruction *)0x0" ( (type_descriptor "exp_instruction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      peVar1->nexti = stmts->nexti;\n      stmts->nexti = peVar1;\n      lbrace->comment = (exp_instruction *)0x0;\n    }" { (expression_statement "peVar1->nexti = stmts->nexti;" (assignment_expression "peVar1->nexti = stmts->nexti" (field_expression "peVar1->nexti" identifier -> field_identifier) = (field_expression "stmts->nexti" identifier -> field_identifier)) ;) (expression_statement "stmts->nexti = peVar1;" (assignment_expression "stmts->nexti = peVar1" (field_expression "stmts->nexti" identifier -> field_identifier) = identifier) ;) (expression_statement "lbrace->comment = (exp_instruction *)0x0;" (assignment_expression "lbrace->comment = (exp_instruction *)0x0" (field_expression "lbrace->comment" identifier -> field_identifier) = (cast_expression "(exp_instruction *)0x0" ( (type_descriptor "exp_instruction *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "lbrace->nexti = stmts->nexti;" (assignment_expression "lbrace->nexti = stmts->nexti" (field_expression "lbrace->nexti" identifier -> field_identifier) = (field_expression "stmts->nexti" identifier -> field_identifier)) ;) (expression_statement "stmts->nexti = lbrace;" (assignment_expression "stmts->nexti = lbrace" (field_expression "stmts->nexti" identifier -> field_identifier) = identifier) ;) })) (return_statement "return stmts;" return identifier ;) })))
(translation_unit "void FUN_0010c402(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0010c402(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0010c402(long *param_1,long *param_2)" identifier (parameter_list "(long *param_1,long *param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" if (parenthesized_expression "(param_2 == (long *)0x0)" ( (binary_expression "param_2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" { (expression_statement "lVar2 = FUN_0016190d(0x54,1,0);" (assignment_expression "lVar2 = FUN_0016190d(0x54,1,0)" identifier = (call_expression "FUN_0016190d(0x54,1,0)" identifier (argument_list "(0x54,1,0)" ( number_literal , number_literal , number_literal )))) ;) (expression_statement "param_2 = (long *)FUN_0016190d(0x6d,1,0);" (assignment_expression "param_2 = (long *)FUN_0016190d(0x6d,1,0)" identifier = (cast_expression "(long *)FUN_0016190d(0x6d,1,0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0016190d(0x6d,1,0)" identifier (argument_list "(0x6d,1,0)" ( number_literal , number_literal , number_literal ))))) ;) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = lVar2;" (assignment_expression "param_2[1] = lVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })) (if_statement "if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" if (parenthesized_expression "(param_1 != (long *)0x0)" ( (binary_expression "param_1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" { (expression_statement "plVar1 = (long *)param_1[3];" (assignment_expression "plVar1 = (long *)param_1[3]" identifier = (cast_expression "(long *)param_1[3]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" if (parenthesized_expression "(plVar1 != (long *)0x0)" ( (binary_expression "plVar1 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" { (expression_statement "*plVar1 = *param_2;" (assignment_expression "*plVar1 = *param_2" (pointer_expression "*plVar1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (long)plVar1;" (assignment_expression "*param_2 = (long)plVar1" (pointer_expression "*param_2" * identifier) = (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = (long)param_1;" (assignment_expression "*param_2 = (long)param_1" (pointer_expression "*param_2" * identifier) = (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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 (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0010c402(long *param_1,long *param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010c402(long *param_1,long *param_2)" (identifier "FUN_0010c402") (parameter_list "(long *param_1,long *param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  \n  if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }\n  if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (if_statement "if (param_2 == (long *)0x0) {\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" (if "if") (parenthesized_expression "(param_2 == (long *)0x0)" (( "(") (binary_expression "param_2 == (long *)0x0" (identifier "param_2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    lVar2 = FUN_0016190d(0x54,1,0);\n    param_2 = (long *)FUN_0016190d(0x6d,1,0);\n    *param_2 = lVar2;\n    param_2[1] = lVar2;\n  }" ({ "{") (expression_statement "lVar2 = FUN_0016190d(0x54,1,0);" (assignment_expression "lVar2 = FUN_0016190d(0x54,1,0)" (identifier "lVar2") (= "=") (call_expression "FUN_0016190d(0x54,1,0)" (identifier "FUN_0016190d") (argument_list "(0x54,1,0)" (( "(") (number_literal "0x54") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "param_2 = (long *)FUN_0016190d(0x6d,1,0);" (assignment_expression "param_2 = (long *)FUN_0016190d(0x6d,1,0)" (identifier "param_2") (= "=") (cast_expression "(long *)FUN_0016190d(0x6d,1,0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0016190d(0x6d,1,0)" (identifier "FUN_0016190d") (argument_list "(0x6d,1,0)" (( "(") (number_literal "0x6d") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*param_2 = lVar2;" (assignment_expression "*param_2 = lVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "param_2[1] = lVar2;" (assignment_expression "param_2[1] = lVar2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar2")) (; ";")) (} "}"))) (if_statement "if (param_1 != (long *)0x0) {\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" (if "if") (parenthesized_expression "(param_1 != (long *)0x0)" (( "(") (binary_expression "param_1 != (long *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    plVar1 = (long *)param_1[3];\n    if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }\n    *param_1 = *param_2;\n    *param_2 = (long)param_1;\n  }" ({ "{") (expression_statement "plVar1 = (long *)param_1[3];" (assignment_expression "plVar1 = (long *)param_1[3]" (identifier "plVar1") (= "=") (cast_expression "(long *)param_1[3]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if (plVar1 != (long *)0x0) {\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" (if "if") (parenthesized_expression "(plVar1 != (long *)0x0)" (( "(") (binary_expression "plVar1 != (long *)0x0" (identifier "plVar1") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *plVar1 = *param_2;\n      *param_2 = (long)plVar1;\n      param_1[3] = 0;\n    }" ({ "{") (expression_statement "*plVar1 = *param_2;" (assignment_expression "*plVar1 = *param_2" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = (long)plVar1;" (assignment_expression "*param_2 = (long)plVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(long)plVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar1"))) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*param_1 = *param_2;" (assignment_expression "*param_1 = *param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = (long)param_1;" (assignment_expression "*param_2 = (long)param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_1 * function_1(type_1 *var_3,type_1 *var_1,type_1 *rbrace)

{
  type_2 *var_4;
  type_3 *pNVar2;
  
  if (var_1 == (type_1 *)0x0) {
    pNVar2 = (type_3 *)var_2(Op_no_op,L'\x01',L'\0');
    var_1 = var_2(Op_list,L'\x01',L'\0');
    var_1->nexti = (type_2 *)pNVar2;
    (var_1->d).dn = pNVar2;
  }
  if (var_3 != (type_1 *)0x0) {
    var_4 = var_3->comment;
    if (var_4 != (type_2 *)0x0) {
      var_4->nexti = var_1->nexti;
      var_1->nexti = var_4;
      var_3->comment = (type_2 *)0x0;
    }
    var_3->nexti = var_1->nexti;
    var_1->nexti = var_3;
  }
  return var_1;
}


(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: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) (return_statement))))

void MASKED(long *param_1,long *param_2)

{
  long *plVar1;
  long lVar2;
  
  if (param_2 == (long *)0x0) {
    lVar2 = FUN_0016190d(0x54,1,0);
    param_2 = (long *)FUN_0016190d(0x6d,1,0);
    *param_2 = lVar2;
    param_2[1] = lVar2;
  }
  if (param_1 != (long *)0x0) {
    plVar1 = (long *)param_1[3];
    if (plVar1 != (long *)0x0) {
      *plVar1 = *param_2;
      *param_2 = (long)plVar1;
      param_1[3] = 0;
    }
    *param_1 = *param_2;
    *param_2 = (long)param_1;
  }
  return;
}

