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

YY_BUFFER_STATE yy_create_buffer(FILE *file,int size)

{
  int iVar1;
  YY_BUFFER_STATE *ppyVar2;
  YY_BUFFER_STATE pyVar3;
  char *pcVar4;
  int *piVar5;
  uint uVar6;
  int iVar7;
  
  pyVar3 = (YY_BUFFER_STATE)malloc(0x30);
  if (pyVar3 != (YY_BUFFER_STATE)0x0) {
    pyVar3->yy_buf_size = size;
    pcVar4 = (char *)malloc(size + 2);
    pyVar3->yy_ch_buf = pcVar4;
    if (pcVar4 != (char *)0x0) {
      pyVar3->yy_is_our_buffer = 1;
      piVar5 = __errno_location();
      pyVar3->yy_n_chars = 0;
      iVar1 = *piVar5;
      pyVar3->yy_buf_pos = pcVar4;
      pcVar4[0] = '\0';
      ppyVar2 = yy_buffer_stack;
      pcVar4[1] = '\0';
      pyVar3->yy_at_bol = 1;
      pyVar3->yy_buffer_status = 0;
      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {
        pyVar3->yy_fill_buffer = 1;
        pyVar3->yy_bs_lineno = 1;
        pyVar3->yy_input_file = file;
        pyVar3->yy_bs_column = 0;
      }
      else {
        yy_n_chars = 0;
        yyin = pyVar3->yy_input_file;
        yy_hold_char = '\0';
        yy_c_buf_p = pcVar4;
        yytext = pcVar4;
        pyVar3->yy_fill_buffer = 1;
        pyVar3->yy_input_file = file;
      }
      uVar6 = 0;
      if (file != (FILE *)0x0) {
        iVar7 = fileno((FILE *)file);
        iVar7 = isatty(iVar7);
        uVar6 = (uint)(0 < iVar7);
      }
      pyVar3->yy_is_interactive = uVar6;
      *piVar5 = iVar1;
      return pyVar3;
    }
  }
                    /* WARNING: Subroutine does not return */
  yy_fatal_error("out of dynamic memory in yy_create_buffer()");
}



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

undefined4 * FUN_00012d30(FILE *param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined2 *puVar3;
  int *piVar4;
  uint uVar5;
  int iVar6;
  
  puVar2 = (undefined4 *)malloc(0x30);
  if (puVar2 != (undefined4 *)0x0) {
    puVar2[3] = param_2;
    puVar3 = (undefined2 *)malloc(param_2 + 2);
    puVar2[1] = puVar3;
    if (puVar3 != (undefined2 *)0x0) {
      puVar2[5] = 1;
      piVar4 = __errno_location();
      puVar2[4] = 0;
      iVar1 = *piVar4;
      puVar2[2] = puVar3;
      *puVar3 = 0;
      iVar6 = DAT_0003b87c;
      puVar2[7] = 1;
      puVar2[0xb] = 0;
      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {
        puVar2[10] = 1;
        puVar2[8] = 1;
        *puVar2 = param_1;
        puVar2[9] = 0;
      }
      else {
        DAT_0003b874 = 0;
        DAT_0003b84c = *puVar2;
        DAT_0003b878 = 0;
        DAT_0003b870 = puVar3;
        DAT_0003baa4 = puVar3;
        puVar2[10] = 1;
        *puVar2 = param_1;
      }
      uVar5 = 0;
      if (param_1 != (FILE *)0x0) {
        iVar6 = fileno(param_1);
        iVar6 = isatty(iVar6);
        uVar5 = (uint)(0 < iVar6);
      }
      puVar2[6] = uVar5;
      *piVar4 = iVar1;
      return puVar2;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00012b10();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012830
ADD EBX,0x28137
SUB ESP,0x28
MOV EDI,dword ptr [ESP + 0x40]
PUSH 0x30
CALL 0x00012200
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00012e56
MOV dword ptr [EAX + 0xc],EDI
SUB ESP,0xc
ADD EDI,0x2
MOV ESI,EAX
PUSH EDI
CALL 0x00012200
ADD ESP,0x10
MOV EDI,EAX
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JZ 0x00012e56
MOV dword ptr [ESI + 0x14],0x1
CALL 0x000122f0
MOV dword ptr [ESI + 0x10],0x0
MOV EBP,EAX
MOV EDX,dword ptr [EAX]
XOR EAX,EAX
MOV dword ptr [ESI + 0x8],EDI
MOV word ptr [EDI],AX
MOV EAX,dword ptr [EBX + 0xa0c]
MOV dword ptr [ESI + 0x1c],0x1
MOV dword ptr [ESI + 0x2c],0x0
TEST EAX,EAX
JZ 0x00012dbb
MOV ECX,dword ptr [EBX + 0xa14]
CMP ESI,dword ptr [EAX + ECX*0x4]
JZ 0x00012e20
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI + 0x28],0x1
MOV dword ptr [ESI + 0x20],0x1
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x24],0x0
MOV ECX,dword ptr [ESP + 0x30]
XOR EAX,EAX
TEST ECX,ECX
JZ 0x00012e07
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
CALL 0x00012300
MOV dword ptr [ESP],EAX
CALL 0x00012420
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
SETG AL
MOVZX EAX,AL
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,ESI
MOV dword ptr [EBP],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xc34]
MOV dword ptr [EBX + 0xa00],EDI
MOV dword ptr [EBX + 0xa04],0x0
MOV dword ptr [EAX],EDI
MOV EAX,dword ptr [ESI]
MOV byte ptr [EBX + 0xa08],0x0
MOV dword ptr [EBX + 0x9dc],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI + 0x28],0x1
MOV dword ptr [ESI],EAX
JMP 0x00012dd6
LEA EAX,[EBX + 0xffff33b8]
CALL 0x00012b10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00012d30(FILE *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012b10();\n}\n\n" comment (function_definition "undefined4 * FUN_00012d30(FILE *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012b10();\n}" type_identifier (pointer_declarator "* FUN_00012d30(FILE *param_1,int param_2)" * (function_declarator "FUN_00012d30(FILE *param_1,int param_2)" identifier (parameter_list "(FILE *param_1,int param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00012b10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar2 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x30)" identifier = (cast_expression "(undefined4 *)malloc(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" { (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined2 *)malloc(param_2 + 2);" (assignment_expression "puVar3 = (undefined2 *)malloc(param_2 + 2)" identifier = (cast_expression "(undefined2 *)malloc(param_2 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(param_2 + 2)" identifier (argument_list "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" if (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" ( (binary_expression "puVar3 != (undefined2 *)0x0" identifier != (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" { (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "puVar2[2] = puVar3;" (assignment_expression "puVar2[2] = puVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "iVar6 = DAT_0003b87c;" (assignment_expression "iVar6 = DAT_0003b87c" identifier = identifier) ;) (expression_statement "puVar2[7] = 1;" (assignment_expression "puVar2[7] = 1" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" if (parenthesized_expression "((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)))" ( (binary_expression "(iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" ( (binary_expression "puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)" identifier != (pointer_expression "*(undefined4 **)(iVar6 + DAT_0003b884 * 4)" * (cast_expression "(undefined4 **)(iVar6 + DAT_0003b884 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + DAT_0003b884 * 4)" ( (binary_expression "iVar6 + DAT_0003b884 * 4" identifier + (binary_expression "DAT_0003b884 * 4" identifier * number_literal)) ))))) ))) )) (compound_statement "{\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }" { (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" else (compound_statement "{\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" { (expression_statement "DAT_0003b874 = 0;" (assignment_expression "DAT_0003b874 = 0" identifier = number_literal) ;) (expression_statement "DAT_0003b84c = *puVar2;" (assignment_expression "DAT_0003b84c = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "DAT_0003b878 = 0;" (assignment_expression "DAT_0003b878 = 0" identifier = number_literal) ;) (expression_statement "DAT_0003b870 = puVar3;" (assignment_expression "DAT_0003b870 = puVar3" identifier = identifier) ;) (expression_statement "DAT_0003baa4 = puVar3;" (assignment_expression "DAT_0003baa4 = puVar3" identifier = identifier) ;) (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) }))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" { (expression_statement "iVar6 = fileno(param_1);" (assignment_expression "iVar6 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar6 = isatty(iVar6);" (assignment_expression "iVar6 = isatty(iVar6)" identifier = (call_expression "isatty(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "uVar5 = (uint)(0 < iVar6);" (assignment_expression "uVar5 = (uint)(0 < iVar6)" identifier = (call_expression "(uint)(0 < iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )))) ;) })) (expression_statement "puVar2[6] = uVar5;" (assignment_expression "puVar2[6] = uVar5" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) })) comment (expression_statement "FUN_00012b10();" (call_expression "FUN_00012b10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nYY_BUFFER_STATE yy_create_buffer(FILE *file,int size)\n\n{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  \n  pyVar3 = (YY_BUFFER_STATE)malloc(0x30);\n  if (pyVar3 != (YY_BUFFER_STATE)0x0) {\n    pyVar3->yy_buf_size = size;\n    pcVar4 = (char *)malloc(size + 2);\n    pyVar3->yy_ch_buf = pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("out of dynamic memory in yy_create_buffer()");\n}\n\n" comment comment (function_definition "YY_BUFFER_STATE yy_create_buffer(FILE *file,int size)\n\n{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  \n  pyVar3 = (YY_BUFFER_STATE)malloc(0x30);\n  if (pyVar3 != (YY_BUFFER_STATE)0x0) {\n    pyVar3->yy_buf_size = size;\n    pcVar4 = (char *)malloc(size + 2);\n    pyVar3->yy_ch_buf = pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("out of dynamic memory in yy_create_buffer()");\n}" type_identifier (function_declarator "yy_create_buffer(FILE *file,int size)" identifier (parameter_list "(FILE *file,int size)" ( (parameter_declaration "FILE *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "int size" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  YY_BUFFER_STATE *ppyVar2;\n  YY_BUFFER_STATE pyVar3;\n  char *pcVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  \n  pyVar3 = (YY_BUFFER_STATE)malloc(0x30);\n  if (pyVar3 != (YY_BUFFER_STATE)0x0) {\n    pyVar3->yy_buf_size = size;\n    pcVar4 = (char *)malloc(size + 2);\n    pyVar3->yy_ch_buf = pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("out of dynamic memory in yy_create_buffer()");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "YY_BUFFER_STATE *ppyVar2;" type_identifier (pointer_declarator "*ppyVar2" * identifier) ;) (declaration "YY_BUFFER_STATE pyVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "pyVar3 = (YY_BUFFER_STATE)malloc(0x30);" (assignment_expression "pyVar3 = (YY_BUFFER_STATE)malloc(0x30)" identifier = (cast_expression "(YY_BUFFER_STATE)malloc(0x30)" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (pyVar3 != (YY_BUFFER_STATE)0x0) {\n    pyVar3->yy_buf_size = size;\n    pcVar4 = (char *)malloc(size + 2);\n    pyVar3->yy_ch_buf = pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }\n  }" if (parenthesized_expression "(pyVar3 != (YY_BUFFER_STATE)0x0)" ( (binary_expression "pyVar3 != (YY_BUFFER_STATE)0x0" identifier != (cast_expression "(YY_BUFFER_STATE)0x0" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) number_literal)) )) (compound_statement "{\n    pyVar3->yy_buf_size = size;\n    pcVar4 = (char *)malloc(size + 2);\n    pyVar3->yy_ch_buf = pcVar4;\n    if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }\n  }" { (expression_statement "pyVar3->yy_buf_size = size;" (assignment_expression "pyVar3->yy_buf_size = size" (field_expression "pyVar3->yy_buf_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4 = (char *)malloc(size + 2);" (assignment_expression "pcVar4 = (char *)malloc(size + 2)" identifier = (cast_expression "(char *)malloc(size + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(size + 2)" identifier (argument_list "(size + 2)" ( (binary_expression "size + 2" identifier + number_literal) ))))) ;) (expression_statement "pyVar3->yy_ch_buf = pcVar4;" (assignment_expression "pyVar3->yy_ch_buf = pcVar4" (field_expression "pyVar3->yy_ch_buf" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pyVar3->yy_is_our_buffer = 1;\n      piVar5 = __errno_location();\n      pyVar3->yy_n_chars = 0;\n      iVar1 = *piVar5;\n      pyVar3->yy_buf_pos = pcVar4;\n      pcVar4[0] = '\0';\n      ppyVar2 = yy_buffer_stack;\n      pcVar4[1] = '\0';\n      pyVar3->yy_at_bol = 1;\n      pyVar3->yy_buffer_status = 0;\n      if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }\n      uVar6 = 0;\n      if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }\n      pyVar3->yy_is_interactive = uVar6;\n      *piVar5 = iVar1;\n      return pyVar3;\n    }" { (expression_statement "pyVar3->yy_is_our_buffer = 1;" (assignment_expression "pyVar3->yy_is_our_buffer = 1" (field_expression "pyVar3->yy_is_our_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pyVar3->yy_n_chars = 0;" (assignment_expression "pyVar3->yy_n_chars = 0" (field_expression "pyVar3->yy_n_chars" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "pyVar3->yy_buf_pos = pcVar4;" (assignment_expression "pyVar3->yy_buf_pos = pcVar4" (field_expression "pyVar3->yy_buf_pos" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar4[0] = '\0';" (assignment_expression "pcVar4[0] = '\0'" (subscript_expression "pcVar4[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "ppyVar2 = yy_buffer_stack;" (assignment_expression "ppyVar2 = yy_buffer_stack" identifier = identifier) ;) (expression_statement "pcVar4[1] = '\0';" (assignment_expression "pcVar4[1] = '\0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pyVar3->yy_at_bol = 1;" (assignment_expression "pyVar3->yy_at_bol = 1" (field_expression "pyVar3->yy_at_bol" identifier -> field_identifier) = number_literal) ;) (expression_statement "pyVar3->yy_buffer_status = 0;" (assignment_expression "pyVar3->yy_buffer_status = 0" (field_expression "pyVar3->yy_buffer_status" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top])) {\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }\n      else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }" if (parenthesized_expression "((ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != ppyVar2[yy_buffer_stack_top]))" ( (binary_expression "(ppyVar2 == (YY_BUFFER_STATE *)0x0) || (pyVar3 != 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 "(pyVar3 != ppyVar2[yy_buffer_stack_top])" ( (binary_expression "pyVar3 != ppyVar2[yy_buffer_stack_top]" identifier != (subscript_expression "ppyVar2[yy_buffer_stack_top]" identifier [ identifier ])) ))) )) (compound_statement "{\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_bs_lineno = 1;\n        pyVar3->yy_input_file = file;\n        pyVar3->yy_bs_column = 0;\n      }" { (expression_statement "pyVar3->yy_fill_buffer = 1;" (assignment_expression "pyVar3->yy_fill_buffer = 1" (field_expression "pyVar3->yy_fill_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "pyVar3->yy_bs_lineno = 1;" (assignment_expression "pyVar3->yy_bs_lineno = 1" (field_expression "pyVar3->yy_bs_lineno" identifier -> field_identifier) = number_literal) ;) (expression_statement "pyVar3->yy_input_file = file;" (assignment_expression "pyVar3->yy_input_file = file" (field_expression "pyVar3->yy_input_file" identifier -> field_identifier) = identifier) ;) (expression_statement "pyVar3->yy_bs_column = 0;" (assignment_expression "pyVar3->yy_bs_column = 0" (field_expression "pyVar3->yy_bs_column" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }" else (compound_statement "{\n        yy_n_chars = 0;\n        yyin = pyVar3->yy_input_file;\n        yy_hold_char = '\0';\n        yy_c_buf_p = pcVar4;\n        yytext = pcVar4;\n        pyVar3->yy_fill_buffer = 1;\n        pyVar3->yy_input_file = file;\n      }" { (expression_statement "yy_n_chars = 0;" (assignment_expression "yy_n_chars = 0" identifier = number_literal) ;) (expression_statement "yyin = pyVar3->yy_input_file;" (assignment_expression "yyin = pyVar3->yy_input_file" identifier = (field_expression "pyVar3->yy_input_file" identifier -> field_identifier)) ;) (expression_statement "yy_hold_char = '\0';" (assignment_expression "yy_hold_char = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "yy_c_buf_p = pcVar4;" (assignment_expression "yy_c_buf_p = pcVar4" identifier = identifier) ;) (expression_statement "yytext = pcVar4;" (assignment_expression "yytext = pcVar4" identifier = identifier) ;) (expression_statement "pyVar3->yy_fill_buffer = 1;" (assignment_expression "pyVar3->yy_fill_buffer = 1" (field_expression "pyVar3->yy_fill_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "pyVar3->yy_input_file = file;" (assignment_expression "pyVar3->yy_input_file = file" (field_expression "pyVar3->yy_input_file" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (file != (FILE *)0x0) {\n        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\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        iVar7 = fileno((FILE *)file);\n        iVar7 = isatty(iVar7);\n        uVar6 = (uint)(0 < iVar7);\n      }" { (expression_statement "iVar7 = fileno((FILE *)file);" (assignment_expression "iVar7 = 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 "iVar7 = isatty(iVar7);" (assignment_expression "iVar7 = isatty(iVar7)" identifier = (call_expression "isatty(iVar7)" identifier (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "uVar6 = (uint)(0 < iVar7);" (assignment_expression "uVar6 = (uint)(0 < iVar7)" identifier = (call_expression "(uint)(0 < iVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )))) ;) })) (expression_statement "pyVar3->yy_is_interactive = uVar6;" (assignment_expression "pyVar3->yy_is_interactive = uVar6" (field_expression "pyVar3->yy_is_interactive" identifier -> field_identifier) = identifier) ;) (expression_statement "*piVar5 = iVar1;" (assignment_expression "*piVar5 = iVar1" (pointer_expression "*piVar5" * identifier) = identifier) ;) (return_statement "return pyVar3;" return identifier ;) })) })) comment (expression_statement "yy_fatal_error("out of dynamic memory in yy_create_buffer()");" (call_expression "yy_fatal_error("out of dynamic memory in yy_create_buffer()")" identifier (argument_list "("out of dynamic memory in yy_create_buffer()")" ( (string_literal ""out of dynamic memory in yy_create_buffer()"" " string_content ") ))) ;) })))
(translation_unit "undefined4 * FUN_00012d30(FILE *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    \n  FUN_00012b10();\n}\n\n" (function_definition "undefined4 * FUN_00012d30(FILE *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    \n  FUN_00012b10();\n}" type_identifier (pointer_declarator "* FUN_00012d30(FILE *param_1,int param_2)" * (function_declarator "FUN_00012d30(FILE *param_1,int param_2)" identifier (parameter_list "(FILE *param_1,int param_2)" ( (parameter_declaration "FILE *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    \n  FUN_00012b10();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar2 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x30)" identifier = (cast_expression "(undefined4 *)malloc(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" { (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined2 *)malloc(param_2 + 2);" (assignment_expression "puVar3 = (undefined2 *)malloc(param_2 + 2)" identifier = (cast_expression "(undefined2 *)malloc(param_2 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(param_2 + 2)" identifier (argument_list "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))))) ;) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" if (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" ( (binary_expression "puVar3 != (undefined2 *)0x0" identifier != (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" { (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "puVar2[2] = puVar3;" (assignment_expression "puVar2[2] = puVar3" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "iVar6 = DAT_0003b87c;" (assignment_expression "iVar6 = DAT_0003b87c" identifier = identifier) ;) (expression_statement "puVar2[7] = 1;" (assignment_expression "puVar2[7] = 1" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" if (parenthesized_expression "((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)))" ( (binary_expression "(iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" ( (binary_expression "puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)" identifier != (pointer_expression "*(undefined4 **)(iVar6 + DAT_0003b884 * 4)" * (cast_expression "(undefined4 **)(iVar6 + DAT_0003b884 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + DAT_0003b884 * 4)" ( (binary_expression "iVar6 + DAT_0003b884 * 4" identifier + (binary_expression "DAT_0003b884 * 4" identifier * number_literal)) ))))) ))) )) (compound_statement "{\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }" { (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" else (compound_statement "{\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" { (expression_statement "DAT_0003b874 = 0;" (assignment_expression "DAT_0003b874 = 0" identifier = number_literal) ;) (expression_statement "DAT_0003b84c = *puVar2;" (assignment_expression "DAT_0003b84c = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "DAT_0003b878 = 0;" (assignment_expression "DAT_0003b878 = 0" identifier = number_literal) ;) (expression_statement "DAT_0003b870 = puVar3;" (assignment_expression "DAT_0003b870 = puVar3" identifier = identifier) ;) (expression_statement "DAT_0003baa4 = puVar3;" (assignment_expression "DAT_0003baa4 = puVar3" identifier = identifier) ;) (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" * identifier) = identifier) ;) }))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" if (parenthesized_expression "(param_1 != (FILE *)0x0)" ( (binary_expression "param_1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" { (expression_statement "iVar6 = fileno(param_1);" (assignment_expression "iVar6 = fileno(param_1)" identifier = (call_expression "fileno(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar6 = isatty(iVar6);" (assignment_expression "iVar6 = isatty(iVar6)" identifier = (call_expression "isatty(iVar6)" identifier (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "uVar5 = (uint)(0 < iVar6);" (assignment_expression "uVar5 = (uint)(0 < iVar6)" identifier = (call_expression "(uint)(0 < iVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )))) ;) })) (expression_statement "puVar2[6] = uVar5;" (assignment_expression "puVar2[6] = uVar5" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" * identifier) = identifier) ;) (return_statement "return puVar2;" return identifier ;) })) })) (expression_statement "FUN_00012b10();" (call_expression "FUN_00012b10()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (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 IDENT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 * FUN_00012d30(FILE *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    \n  FUN_00012b10();\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00012d30(FILE *param_1,int param_2)" (* "*") (function_declarator "FUN_00012d30(FILE *param_1,int param_2)" (identifier "FUN_00012d30") (parameter_list "(FILE *param_1,int param_2)" (( "(") (parameter_declaration "FILE *param_1" (type_identifier "FILE") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined2 *puVar3;\n  int *piVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar2 = (undefined4 *)malloc(0x30);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }\n                    \n  FUN_00012b10();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar2 = (undefined4 *)malloc(0x30);" (assignment_expression "puVar2 = (undefined4 *)malloc(0x30)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)malloc(0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x30)" (identifier "malloc") (argument_list "(0x30)" (( "(") (number_literal "0x30") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar2[3] = param_2;\n    puVar3 = (undefined2 *)malloc(param_2 + 2);\n    puVar2[1] = puVar3;\n    if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }\n  }" ({ "{") (expression_statement "puVar2[3] = param_2;" (assignment_expression "puVar2[3] = param_2" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3 = (undefined2 *)malloc(param_2 + 2);" (assignment_expression "puVar3 = (undefined2 *)malloc(param_2 + 2)" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)malloc(param_2 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(param_2 + 2)" (identifier "malloc") (argument_list "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "puVar2[1] = puVar3;" (assignment_expression "puVar2[1] = puVar3" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined2 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined2 *)0x0" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar2[5] = 1;\n      piVar4 = __errno_location();\n      puVar2[4] = 0;\n      iVar1 = *piVar4;\n      puVar2[2] = puVar3;\n      *puVar3 = 0;\n      iVar6 = DAT_0003b87c;\n      puVar2[7] = 1;\n      puVar2[0xb] = 0;\n      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }\n      uVar5 = 0;\n      if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }\n      puVar2[6] = uVar5;\n      *piVar4 = iVar1;\n      return puVar2;\n    }" ({ "{") (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *piVar4;" (assignment_expression "iVar1 = *piVar4" (identifier "iVar1") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "puVar2[2] = puVar3;" (assignment_expression "puVar2[2] = puVar3" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = DAT_0003b87c;" (assignment_expression "iVar6 = DAT_0003b87c" (identifier "iVar6") (= "=") (identifier "DAT_0003b87c")) (; ";")) (expression_statement "puVar2[7] = 1;" (assignment_expression "puVar2[7] = 1" (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar2[0xb] = 0;" (assignment_expression "puVar2[0xb] = 0" (subscript_expression "puVar2[0xb]" (identifier "puVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }\n      else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" (if "if") (parenthesized_expression "((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)))" (( "(") (binary_expression "(iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))" (( "(") (binary_expression "puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4)" (identifier "puVar2") (!= "!=") (pointer_expression "*(undefined4 **)(iVar6 + DAT_0003b884 * 4)" (* "*") (cast_expression "(undefined4 **)(iVar6 + DAT_0003b884 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + DAT_0003b884 * 4)" (( "(") (binary_expression "iVar6 + DAT_0003b884 * 4" (identifier "iVar6") (+ "+") (binary_expression "DAT_0003b884 * 4" (identifier "DAT_0003b884") (* "*") (number_literal "4"))) () ")"))))) () ")"))) () ")")) (compound_statement "{\n        puVar2[10] = 1;\n        puVar2[8] = 1;\n        *puVar2 = param_1;\n        puVar2[9] = 0;\n      }" ({ "{") (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" (identifier "puVar2") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar2[8] = 1;" (assignment_expression "puVar2[8] = 1" (subscript_expression "puVar2[8]" (identifier "puVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar2[9] = 0;" (assignment_expression "puVar2[9] = 0" (subscript_expression "puVar2[9]" (identifier "puVar2") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" (else "else") (compound_statement "{\n        DAT_0003b874 = 0;\n        DAT_0003b84c = *puVar2;\n        DAT_0003b878 = 0;\n        DAT_0003b870 = puVar3;\n        DAT_0003baa4 = puVar3;\n        puVar2[10] = 1;\n        *puVar2 = param_1;\n      }" ({ "{") (expression_statement "DAT_0003b874 = 0;" (assignment_expression "DAT_0003b874 = 0" (identifier "DAT_0003b874") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0003b84c = *puVar2;" (assignment_expression "DAT_0003b84c = *puVar2" (identifier "DAT_0003b84c") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "DAT_0003b878 = 0;" (assignment_expression "DAT_0003b878 = 0" (identifier "DAT_0003b878") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0003b870 = puVar3;" (assignment_expression "DAT_0003b870 = puVar3" (identifier "DAT_0003b870") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "DAT_0003baa4 = puVar3;" (assignment_expression "DAT_0003baa4 = puVar3" (identifier "DAT_0003baa4") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar2[10] = 1;" (assignment_expression "puVar2[10] = 1" (subscript_expression "puVar2[10]" (identifier "puVar2") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar2 = param_1;" (assignment_expression "*puVar2 = param_1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != (FILE *)0x0) {\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" (if "if") (parenthesized_expression "(param_1 != (FILE *)0x0)" (( "(") (binary_expression "param_1 != (FILE *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar6 = fileno(param_1);\n        iVar6 = isatty(iVar6);\n        uVar5 = (uint)(0 < iVar6);\n      }" ({ "{") (expression_statement "iVar6 = fileno(param_1);" (assignment_expression "iVar6 = fileno(param_1)" (identifier "iVar6") (= "=") (call_expression "fileno(param_1)" (identifier "fileno") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar6 = isatty(iVar6);" (assignment_expression "iVar6 = isatty(iVar6)" (identifier "iVar6") (= "=") (call_expression "isatty(iVar6)" (identifier "isatty") (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "uVar5 = (uint)(0 < iVar6);" (assignment_expression "uVar5 = (uint)(0 < iVar6)" (identifier "uVar5") (= "=") (call_expression "(uint)(0 < iVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")))) (; ";")) (} "}"))) (expression_statement "puVar2[6] = uVar5;" (assignment_expression "puVar2[6] = uVar5" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*piVar4 = iVar1;" (assignment_expression "*piVar4 = iVar1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_00012b10();" (call_expression "FUN_00012b10()" (identifier "FUN_00012b10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_7,int var_3)

{
  int iVar1;
  type_1 *var_6;
  type_1 var_2;
  char *var_4;
  int *piVar5;
  type_3 uVar6;
  int var_10;
  
  var_2 = (type_1)var_1(0x30);
  if (var_2 != (type_1)0x0) {
    var_2->yy_buf_size = var_3;
    var_4 = (char *)var_1(var_3 + 2);
    var_2->yy_ch_buf = var_4;
    if (var_4 != (char *)0x0) {
      var_2->yy_is_our_buffer = 1;
      piVar5 = var_5();
      var_2->yy_n_chars = 0;
      iVar1 = *piVar5;
      var_2->yy_buf_pos = var_4;
      var_4[0] = '\0';
      var_6 = yy_buffer_stack;
      var_4[1] = '\0';
      var_2->yy_at_bol = 1;
      var_2->yy_buffer_status = 0;
      if ((var_6 == (type_1 *)0x0) || (var_2 != var_6[yy_buffer_stack_top])) {
        var_2->yy_fill_buffer = 1;
        var_2->yy_bs_lineno = 1;
        var_2->yy_input_file = var_7;
        var_2->yy_bs_column = 0;
      }
      else {
        yy_n_chars = 0;
        yyin = var_2->yy_input_file;
        yy_hold_char = '\0';
        yy_c_buf_p = var_4;
        yytext = var_4;
        var_2->yy_fill_buffer = 1;
        var_2->yy_input_file = var_7;
      }
      uVar6 = 0;
      if (var_7 != (type_2 *)0x0) {
        var_10 = var_8((type_2 *)var_7);
        var_10 = var_9(var_10);
        uVar6 = (type_3)(0 < var_10);
      }
      var_2->yy_is_interactive = uVar6;
      *piVar5 = iVar1;
      return var_2;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_11("out of dynamic memory in yy_create_buffer()");
}


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

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

undefined4 * MASKED(FILE *param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  undefined2 *puVar3;
  int *piVar4;
  uint uVar5;
  int iVar6;
  
  puVar2 = (undefined4 *)malloc(0x30);
  if (puVar2 != (undefined4 *)0x0) {
    puVar2[3] = param_2;
    puVar3 = (undefined2 *)malloc(param_2 + 2);
    puVar2[1] = puVar3;
    if (puVar3 != (undefined2 *)0x0) {
      puVar2[5] = 1;
      piVar4 = __errno_location();
      puVar2[4] = 0;
      iVar1 = *piVar4;
      puVar2[2] = puVar3;
      *puVar3 = 0;
      iVar6 = DAT_0003b87c;
      puVar2[7] = 1;
      puVar2[0xb] = 0;
      if ((iVar6 == 0) || (puVar2 != *(undefined4 **)(iVar6 + DAT_0003b884 * 4))) {
        puVar2[10] = 1;
        puVar2[8] = 1;
        *puVar2 = param_1;
        puVar2[9] = 0;
      }
      else {
        DAT_0003b874 = 0;
        DAT_0003b84c = *puVar2;
        DAT_0003b878 = 0;
        DAT_0003b870 = puVar3;
        DAT_0003baa4 = puVar3;
        puVar2[10] = 1;
        *puVar2 = param_1;
      }
      uVar5 = 0;
      if (param_1 != (FILE *)0x0) {
        iVar6 = fileno(param_1);
        iVar6 = isatty(iVar6);
        uVar5 = (uint)(0 < iVar6);
      }
      puVar2[6] = uVar5;
      *piVar4 = iVar1;
      return puVar2;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_00012b10();
}

