
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 yy_init_buffer(YY_BUFFER_STATE b,FILE *file)

{
  int iVar1;
  YY_BUFFER_STATE *ppyVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  
  piVar3 = __errno_location();
  iVar1 = *piVar3;
  yy_flush_buffer(b);
  ppyVar2 = yy_buffer_stack;
  b->yy_fill_buffer = 1;
  b->yy_input_file = file;
  if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])) {
    b->yy_bs_lineno = 1;
    b->yy_bs_column = 0;
  }
  uVar4 = 0;
  if (file != (FILE *)0x0) {
    iVar5 = fileno((FILE *)file);
    iVar5 = isatty(iVar5);
    uVar4 = (uint)(0 < iVar5);
  }
  b->yy_is_interactive = uVar4;
  *piVar3 = iVar1;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  FUN_00018940(param_1);
  iVar4 = DAT_00091764;
  param_1[10] = 1;
  *param_1 = param_2;
  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {
    param_1[8] = 1;
    param_1[9] = 0;
  }
  uVar3 = 0;
  if (param_2 != (FILE *)0x0) {
    iVar4 = fileno(param_2);
    iVar4 = isatty(iVar4);
    uVar3 = (uint)(0 < iVar4);
  }
  param_1[6] = uVar3;
  *piVar2 = iVar1;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00015a80
ADD EBX,0x78625
SUB ESP,0x1c
MOV dword ptr [ESP + 0xc],EDX
CALL 0x00014830
SUB ESP,0xc
MOV EBP,dword ptr [EAX]
PUSH ESI
MOV EDI,EAX
CALL 0x00018940
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x764]
MOV dword ptr [ESI + 0x28],0x1
MOV dword ptr [ESI],EDX
TEST EAX,EAX
JZ 0x00018a1f
MOV ECX,dword ptr [EBX + 0x76c]
CMP ESI,dword ptr [EAX + ECX*0x4]
JZ 0x00018a2d
MOV dword ptr [ESI + 0x20],0x1
MOV dword ptr [ESI + 0x24],0x0
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00018a4f
SUB ESP,0xc
PUSH EDX
CALL 0x00014860
MOV dword ptr [ESP],EAX
CALL 0x00014b60
ADD ESP,0x10
TEST EAX,EAX
SETG AL
MOVZX EAX,AL
MOV dword ptr [ESI + 0x18],EAX
MOV dword ptr [EDI],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000189d0(undefined4 *param_1,FILE *param_2)" identifier (parameter_list "(undefined4 *param_1,FILE *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "FUN_00018940(param_1);" (call_expression "FUN_00018940(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar4 = DAT_00091764;" (assignment_expression "iVar4 = DAT_00091764" identifier = identifier) ;) (expression_statement "param_1[10] = 1;" (assignment_expression "param_1[10] = 1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" if (parenthesized_expression "((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)))" ( (binary_expression "(iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" ( (binary_expression "param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)" identifier != (pointer_expression "*(undefined4 **)(iVar4 + DAT_0009176c * 4)" * (cast_expression "(undefined4 **)(iVar4 + DAT_0009176c * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + DAT_0009176c * 4)" ( (binary_expression "iVar4 + DAT_0009176c * 4" identifier + (binary_expression "DAT_0009176c * 4" identifier * number_literal)) ))))) ))) )) (compound_statement "{\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" { (expression_statement "param_1[8] = 1;" (assignment_expression "param_1[8] = 1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" if (parenthesized_expression "(param_2 != (FILE *)0x0)" ( (binary_expression "param_2 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" { (expression_statement "iVar4 = fileno(param_2);" (assignment_expression "iVar4 = fileno(param_2)" identifier = (call_expression "fileno(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = isatty(iVar4);" (assignment_expression "iVar4 = isatty(iVar4)" identifier = (call_expression "isatty(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "uVar3 = (uint)(0 < iVar4);" (assignment_expression "uVar3 = (uint)(0 < iVar4)" identifier = (call_expression "(uint)(0 < iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )))) ;) })) (expression_statement "param_1[6] = uVar3;" (assignment_expression "param_1[6] = uVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 yy_init_buffer(YY_BUFFER_STATE b,FILE *file)\n\n{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  \n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  yy_flush_buffer(b);\n  ppyVar2 = yy_buffer_stack;\n  b->yy_fill_buffer = 1;\n  b->yy_input_file = file;\n  if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])) {\n    b->yy_bs_lineno = 1;\n    b->yy_bs_column = 0;\n  }\n  uVar4 = 0;\n  if (file != (FILE *)0x0) {\n    iVar5 = fileno((FILE *)file);\n    iVar5 = isatty(iVar5);\n    uVar4 = (uint)(0 < iVar5);\n  }\n  b->yy_is_interactive = uVar4;\n  *piVar3 = iVar1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 yy_init_buffer(YY_BUFFER_STATE b,FILE *file)\n\n{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  \n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  yy_flush_buffer(b);\n  ppyVar2 = yy_buffer_stack;\n  b->yy_fill_buffer = 1;\n  b->yy_input_file = file;\n  if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])) {\n    b->yy_bs_lineno = 1;\n    b->yy_bs_column = 0;\n  }\n  uVar4 = 0;\n  if (file != (FILE *)0x0) {\n    iVar5 = fileno((FILE *)file);\n    iVar5 = isatty(iVar5);\n    uVar4 = (uint)(0 < iVar5);\n  }\n  b->yy_is_interactive = uVar4;\n  *piVar3 = iVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "yy_init_buffer(YY_BUFFER_STATE b,FILE *file)" identifier (parameter_list "(YY_BUFFER_STATE b,FILE *file)" ( (parameter_declaration "YY_BUFFER_STATE b" type_identifier identifier) , (parameter_declaration "FILE *file" type_identifier (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  \n  piVar3 = __errno_location();\n  iVar1 = *piVar3;\n  yy_flush_buffer(b);\n  ppyVar2 = yy_buffer_stack;\n  b->yy_fill_buffer = 1;\n  b->yy_input_file = file;\n  if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])) {\n    b->yy_bs_lineno = 1;\n    b->yy_bs_column = 0;\n  }\n  uVar4 = 0;\n  if (file != (FILE *)0x0) {\n    iVar5 = fileno((FILE *)file);\n    iVar5 = isatty(iVar5);\n    uVar4 = (uint)(0 < iVar5);\n  }\n  b->yy_is_interactive = uVar4;\n  *piVar3 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "YY_BUFFER_STATE *ppyVar2;" type_identifier (pointer_declarator "*ppyVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "yy_flush_buffer(b);" (call_expression "yy_flush_buffer(b)" identifier (argument_list "(b)" ( identifier ))) ;) (expression_statement "ppyVar2 = yy_buffer_stack;" (assignment_expression "ppyVar2 = yy_buffer_stack" identifier = identifier) ;) (expression_statement "b->yy_fill_buffer = 1;" (assignment_expression "b->yy_fill_buffer = 1" (field_expression "b->yy_fill_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "b->yy_input_file = file;" (assignment_expression "b->yy_input_file = file" (field_expression "b->yy_input_file" identifier -> field_identifier) = identifier) ;) (if_statement "if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])) {\n    b->yy_bs_lineno = 1;\n    b->yy_bs_column = 0;\n  }" if (parenthesized_expression "((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top]))" ( (binary_expression "(ppyVar2 == (YY_BUFFER_STATE *)0x0) || (b != ppyVar2[yy_buffer_stack_top])" (parenthesized_expression "(ppyVar2 == (YY_BUFFER_STATE *)0x0)" ( (binary_expression "ppyVar2 == (YY_BUFFER_STATE *)0x0" identifier == (cast_expression "(YY_BUFFER_STATE *)0x0" ( (type_descriptor "YY_BUFFER_STATE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(b != ppyVar2[yy_buffer_stack_top])" ( (binary_expression "b != ppyVar2[yy_buffer_stack_top]" identifier != (subscript_expression "ppyVar2[yy_buffer_stack_top]" identifier [ identifier ])) ))) )) (compound_statement "{\n    b->yy_bs_lineno = 1;\n    b->yy_bs_column = 0;\n  }" { (expression_statement "b->yy_bs_lineno = 1;" (assignment_expression "b->yy_bs_lineno = 1" (field_expression "b->yy_bs_lineno" identifier -> field_identifier) = number_literal) ;) (expression_statement "b->yy_bs_column = 0;" (assignment_expression "b->yy_bs_column = 0" (field_expression "b->yy_bs_column" identifier -> field_identifier) = number_literal) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (file != (FILE *)0x0) {\n    iVar5 = fileno((FILE *)file);\n    iVar5 = isatty(iVar5);\n    uVar4 = (uint)(0 < iVar5);\n  }" if (parenthesized_expression "(file != (FILE *)0x0)" ( (binary_expression "file != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = fileno((FILE *)file);\n    iVar5 = isatty(iVar5);\n    uVar4 = (uint)(0 < iVar5);\n  }" { (expression_statement "iVar5 = fileno((FILE *)file);" (assignment_expression "iVar5 = fileno((FILE *)file)" identifier = (call_expression "fileno((FILE *)file)" identifier (argument_list "((FILE *)file)" ( (cast_expression "(FILE *)file" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "iVar5 = isatty(iVar5);" (assignment_expression "iVar5 = isatty(iVar5)" identifier = (call_expression "isatty(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "uVar4 = (uint)(0 < iVar5);" (assignment_expression "uVar4 = (uint)(0 < iVar5)" identifier = (call_expression "(uint)(0 < iVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )))) ;) })) (expression_statement "b->yy_is_interactive = uVar4;" (assignment_expression "b->yy_is_interactive = uVar4" (field_expression "b->yy_is_interactive" identifier -> field_identifier) = identifier) ;) (expression_statement "*piVar3 = iVar1;" (assignment_expression "*piVar3 = iVar1" (pointer_expression "*piVar3" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000189d0(undefined4 *param_1,FILE *param_2)" identifier (parameter_list "(undefined4 *param_1,FILE *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "FILE *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "FUN_00018940(param_1);" (call_expression "FUN_00018940(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar4 = DAT_00091764;" (assignment_expression "iVar4 = DAT_00091764" identifier = identifier) ;) (expression_statement "param_1[10] = 1;" (assignment_expression "param_1[10] = 1" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" if (parenthesized_expression "((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)))" ( (binary_expression "(iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" ( (binary_expression "param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)" identifier != (pointer_expression "*(undefined4 **)(iVar4 + DAT_0009176c * 4)" * (cast_expression "(undefined4 **)(iVar4 + DAT_0009176c * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + DAT_0009176c * 4)" ( (binary_expression "iVar4 + DAT_0009176c * 4" identifier + (binary_expression "DAT_0009176c * 4" identifier * number_literal)) ))))) ))) )) (compound_statement "{\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" { (expression_statement "param_1[8] = 1;" (assignment_expression "param_1[8] = 1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" if (parenthesized_expression "(param_2 != (FILE *)0x0)" ( (binary_expression "param_2 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" { (expression_statement "iVar4 = fileno(param_2);" (assignment_expression "iVar4 = fileno(param_2)" identifier = (call_expression "fileno(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar4 = isatty(iVar4);" (assignment_expression "iVar4 = isatty(iVar4)" identifier = (call_expression "isatty(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "uVar3 = (uint)(0 < iVar4);" (assignment_expression "uVar3 = (uint)(0 < iVar4)" identifier = (call_expression "(uint)(0 < iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )))) ;) })) (expression_statement "param_1[6] = uVar3;" (assignment_expression "param_1[6] = uVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000189d0(undefined4 *param_1,FILE *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000189d0(undefined4 *param_1,FILE *param_2)" (identifier "FUN_000189d0") (parameter_list "(undefined4 *param_1,FILE *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "FILE *param_2" (type_identifier "FILE") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  int iVar4;\n  \n  piVar2 = __errno_location();\n  iVar1 = *piVar2;\n  FUN_00018940(param_1);\n  iVar4 = DAT_00091764;\n  param_1[10] = 1;\n  *param_1 = param_2;\n  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }\n  uVar3 = 0;\n  if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }\n  param_1[6] = uVar3;\n  *piVar2 = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "FUN_00018940(param_1);" (call_expression "FUN_00018940(param_1)" (identifier "FUN_00018940") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar4 = DAT_00091764;" (assignment_expression "iVar4 = DAT_00091764" (identifier "iVar4") (= "=") (identifier "DAT_00091764")) (; ";")) (expression_statement "param_1[10] = 1;" (assignment_expression "param_1[10] = 1" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" (if "if") (parenthesized_expression "((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)))" (( "(") (binary_expression "(iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))" (( "(") (binary_expression "param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4)" (identifier "param_1") (!= "!=") (pointer_expression "*(undefined4 **)(iVar4 + DAT_0009176c * 4)" (* "*") (cast_expression "(undefined4 **)(iVar4 + DAT_0009176c * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + DAT_0009176c * 4)" (( "(") (binary_expression "iVar4 + DAT_0009176c * 4" (identifier "iVar4") (+ "+") (binary_expression "DAT_0009176c * 4" (identifier "DAT_0009176c") (* "*") (number_literal "4"))) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    param_1[8] = 1;\n    param_1[9] = 0;\n  }" ({ "{") (expression_statement "param_1[8] = 1;" (assignment_expression "param_1[8] = 1" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != (FILE *)0x0) {\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" (if "if") (parenthesized_expression "(param_2 != (FILE *)0x0)" (( "(") (binary_expression "param_2 != (FILE *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar4 = fileno(param_2);\n    iVar4 = isatty(iVar4);\n    uVar3 = (uint)(0 < iVar4);\n  }" ({ "{") (expression_statement "iVar4 = fileno(param_2);" (assignment_expression "iVar4 = fileno(param_2)" (identifier "iVar4") (= "=") (call_expression "fileno(param_2)" (identifier "fileno") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar4 = isatty(iVar4);" (assignment_expression "iVar4 = isatty(iVar4)" (identifier "iVar4") (= "=") (call_expression "isatty(iVar4)" (identifier "isatty") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "uVar3 = (uint)(0 < iVar4);" (assignment_expression "uVar3 = (uint)(0 < iVar4)" (identifier "uVar3") (= "=") (call_expression "(uint)(0 < iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")))) (; ";")) (} "}"))) (expression_statement "param_1[6] = uVar3;" (assignment_expression "param_1[6] = uVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 var_4,type_2 *var_5)

{
  int iVar1;
  type_1 *var_3;
  int *piVar3;
  type_3 uVar4;
  int var_8;
  
  piVar3 = var_1();
  iVar1 = *piVar3;
  var_2(var_4);
  var_3 = yy_buffer_stack;
  var_4->yy_fill_buffer = 1;
  var_4->yy_input_file = var_5;
  if ((var_3 == (type_1 *)0x0) || (var_4 != var_3[yy_buffer_stack_top])) {
    var_4->yy_bs_lineno = 1;
    var_4->yy_bs_column = 0;
  }
  uVar4 = 0;
  if (var_5 != (type_2 *)0x0) {
    var_8 = var_6((type_2 *)var_5);
    var_8 = var_7(var_8);
    uVar4 = (type_3)(0 < var_8);
  }
  var_4->yy_is_interactive = uVar4;
  *piVar3 = iVar1;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(undefined4 *param_1,FILE *param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  int iVar4;
  
  piVar2 = __errno_location();
  iVar1 = *piVar2;
  FUN_00018940(param_1);
  iVar4 = DAT_00091764;
  param_1[10] = 1;
  *param_1 = param_2;
  if ((iVar4 == 0) || (param_1 != *(undefined4 **)(iVar4 + DAT_0009176c * 4))) {
    param_1[8] = 1;
    param_1[9] = 0;
  }
  uVar3 = 0;
  if (param_2 != (FILE *)0x0) {
    iVar4 = fileno(param_2);
    iVar4 = isatty(iVar4);
    uVar3 = (uint)(0 < iVar4);
  }
  param_1[6] = uVar3;
  *piVar2 = iVar1;
  return;
}

