
YY_BUFFER_STATE yy_create_buffer(FILE *file,int size)

{
  YY_BUFFER_STATE b;
  char *pcVar1;
  
  b = (YY_BUFFER_STATE)malloc(0x40);
  if (b != (YY_BUFFER_STATE)0x0) {
    b->yy_buf_size = size;
    pcVar1 = (char *)malloc((long)(size + 2));
    b->yy_ch_buf = pcVar1;
    if (pcVar1 != (char *)0x0) {
      b->yy_is_our_buffer = 1;
      yy_init_buffer(b,file);
      return b;
    }
  }
                    /* WARNING: Subroutine does not return */
  yy_fatal_error("out of dynamic memory in yy_create_buffer()");
}



void * FUN_001053c0(undefined8 param_1,int param_2)

{
  void *pvVar1;
  void *pvVar2;
  
  pvVar1 = malloc(0x40);
  if (pvVar1 != (void *)0x0) {
    *(int *)((long)pvVar1 + 0x18) = param_2;
    pvVar2 = malloc((long)(param_2 + 2));
    *(void **)((long)pvVar1 + 8) = pvVar2;
    if (pvVar2 != (void *)0x0) {
      *(undefined4 *)((long)pvVar1 + 0x20) = 1;
      FUN_00105340(pvVar1,param_1);
      return pvVar1;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_001050b0("out of dynamic memory in yy_create_buffer()");
}


PUSH R12
MOV R12,RDI
MOV EDI,0x40
PUSH RBP
MOV EBP,ESI
PUSH RBX
CALL 0x001023f0
TEST RAX,RAX
JZ 0x0010540c
MOV dword ptr [RAX + 0x18],EBP
LEA EDI,[RBP + 0x2]
MOV RBX,RAX
MOVSXD RDI,EDI
CALL 0x001023f0
MOV qword ptr [RBX + 0x8],RAX
TEST RAX,RAX
JZ 0x0010540c
MOV dword ptr [RBX + 0x20],0x1
MOV RSI,R12
MOV RDI,RBX
CALL 0x00105340
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
LEA RDI,[0x10b4a8]
CALL 0x001050b0
(translation_unit "void * FUN_001053c0(undefined8 param_1,int param_2)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}\n\n" (function_definition "void * FUN_001053c0(undefined8 param_1,int param_2)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" primitive_type (pointer_declarator "* FUN_001053c0(undefined8 param_1,int param_2)" * (function_declarator "FUN_001053c0(undefined8 param_1,int param_2)" identifier (parameter_list "(undefined8 param_1,int param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (expression_statement "pvVar1 = malloc(0x40);" (assignment_expression "pvVar1 = malloc(0x40)" identifier = (call_expression "malloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" { (expression_statement "*(int *)((long)pvVar1 + 0x18) = param_2;" (assignment_expression "*(int *)((long)pvVar1 + 0x18) = param_2" (pointer_expression "*(int *)((long)pvVar1 + 0x18)" * (cast_expression "(int *)((long)pvVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 0x18)" ( (binary_expression "(long)pvVar1 + 0x18" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "pvVar2 = malloc((long)(param_2 + 2));" (assignment_expression "pvVar2 = malloc((long)(param_2 + 2))" identifier = (call_expression "malloc((long)(param_2 + 2))" identifier (argument_list "((long)(param_2 + 2))" ( (cast_expression "(long)(param_2 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))) )))) ;) (expression_statement "*(void **)((long)pvVar1 + 8) = pvVar2;" (assignment_expression "*(void **)((long)pvVar1 + 8) = pvVar2" (pointer_expression "*(void **)((long)pvVar1 + 8)" * (cast_expression "(void **)((long)pvVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar1 + 8)" ( (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" { (expression_statement "*(undefined4 *)((long)pvVar1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 0x20) = 1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 0x20)" * (cast_expression "(undefined4 *)((long)pvVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 0x20)" ( (binary_expression "(long)pvVar1 + 0x20" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00105340(pvVar1,param_1);" (call_expression "FUN_00105340(pvVar1,param_1)" identifier (argument_list "(pvVar1,param_1)" ( identifier , identifier ))) ;) (return_statement "return pvVar1;" return identifier ;) })) })) comment (expression_statement "FUN_001050b0("out of dynamic memory in yy_create_buffer()");" (call_expression "FUN_001050b0("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 "YY_BUFFER_STATE yy_create_buffer(FILE *file,int size)\n\n{\n  YY_BUFFER_STATE b;\n  char *pcVar1;\n  \n  b = (YY_BUFFER_STATE)malloc(0x40);\n  if (b != (YY_BUFFER_STATE)0x0) {\n    b->yy_buf_size = size;\n    pcVar1 = (char *)malloc((long)(size + 2));\n    b->yy_ch_buf = pcVar1;\n    if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("out of dynamic memory in yy_create_buffer()");\n}\n\n" (function_definition "YY_BUFFER_STATE yy_create_buffer(FILE *file,int size)\n\n{\n  YY_BUFFER_STATE b;\n  char *pcVar1;\n  \n  b = (YY_BUFFER_STATE)malloc(0x40);\n  if (b != (YY_BUFFER_STATE)0x0) {\n    b->yy_buf_size = size;\n    pcVar1 = (char *)malloc((long)(size + 2));\n    b->yy_ch_buf = pcVar1;\n    if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\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  YY_BUFFER_STATE b;\n  char *pcVar1;\n  \n  b = (YY_BUFFER_STATE)malloc(0x40);\n  if (b != (YY_BUFFER_STATE)0x0) {\n    b->yy_buf_size = size;\n    pcVar1 = (char *)malloc((long)(size + 2));\n    b->yy_ch_buf = pcVar1;\n    if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  yy_fatal_error("out of dynamic memory in yy_create_buffer()");\n}" { (declaration "YY_BUFFER_STATE b;" type_identifier identifier ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "b = (YY_BUFFER_STATE)malloc(0x40);" (assignment_expression "b = (YY_BUFFER_STATE)malloc(0x40)" identifier = (cast_expression "(YY_BUFFER_STATE)malloc(0x40)" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) (call_expression "malloc(0x40)" identifier (argument_list "(0x40)" ( number_literal ))))) ;) (if_statement "if (b != (YY_BUFFER_STATE)0x0) {\n    b->yy_buf_size = size;\n    pcVar1 = (char *)malloc((long)(size + 2));\n    b->yy_ch_buf = pcVar1;\n    if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }\n  }" if (parenthesized_expression "(b != (YY_BUFFER_STATE)0x0)" ( (binary_expression "b != (YY_BUFFER_STATE)0x0" identifier != (cast_expression "(YY_BUFFER_STATE)0x0" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) number_literal)) )) (compound_statement "{\n    b->yy_buf_size = size;\n    pcVar1 = (char *)malloc((long)(size + 2));\n    b->yy_ch_buf = pcVar1;\n    if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }\n  }" { (expression_statement "b->yy_buf_size = size;" (assignment_expression "b->yy_buf_size = size" (field_expression "b->yy_buf_size" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar1 = (char *)malloc((long)(size + 2));" (assignment_expression "pcVar1 = (char *)malloc((long)(size + 2))" identifier = (cast_expression "(char *)malloc((long)(size + 2))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc((long)(size + 2))" identifier (argument_list "((long)(size + 2))" ( (cast_expression "(long)(size + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(size + 2)" ( (binary_expression "size + 2" identifier + number_literal) ))) ))))) ;) (expression_statement "b->yy_ch_buf = pcVar1;" (assignment_expression "b->yy_ch_buf = pcVar1" (field_expression "b->yy_ch_buf" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar1 != (char *)0x0) {\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }" if (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      b->yy_is_our_buffer = 1;\n      yy_init_buffer(b,file);\n      return b;\n    }" { (expression_statement "b->yy_is_our_buffer = 1;" (assignment_expression "b->yy_is_our_buffer = 1" (field_expression "b->yy_is_our_buffer" identifier -> field_identifier) = number_literal) ;) (expression_statement "yy_init_buffer(b,file);" (call_expression "yy_init_buffer(b,file)" identifier (argument_list "(b,file)" ( identifier , identifier ))) ;) (return_statement "return b;" 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 "void * FUN_001053c0(undefined8 param_1,int param_2)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    \n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}\n\n" (function_definition "void * FUN_001053c0(undefined8 param_1,int param_2)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    \n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" primitive_type (pointer_declarator "* FUN_001053c0(undefined8 param_1,int param_2)" * (function_declarator "FUN_001053c0(undefined8 param_1,int param_2)" identifier (parameter_list "(undefined8 param_1,int param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    \n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (expression_statement "pvVar1 = malloc(0x40);" (assignment_expression "pvVar1 = malloc(0x40)" identifier = (call_expression "malloc(0x40)" identifier (argument_list "(0x40)" ( number_literal )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" { (expression_statement "*(int *)((long)pvVar1 + 0x18) = param_2;" (assignment_expression "*(int *)((long)pvVar1 + 0x18) = param_2" (pointer_expression "*(int *)((long)pvVar1 + 0x18)" * (cast_expression "(int *)((long)pvVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 0x18)" ( (binary_expression "(long)pvVar1 + 0x18" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "pvVar2 = malloc((long)(param_2 + 2));" (assignment_expression "pvVar2 = malloc((long)(param_2 + 2))" identifier = (call_expression "malloc((long)(param_2 + 2))" identifier (argument_list "((long)(param_2 + 2))" ( (cast_expression "(long)(param_2 + 2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_2 + 2)" ( (binary_expression "param_2 + 2" identifier + number_literal) ))) )))) ;) (expression_statement "*(void **)((long)pvVar1 + 8) = pvVar2;" (assignment_expression "*(void **)((long)pvVar1 + 8) = pvVar2" (pointer_expression "*(void **)((long)pvVar1 + 8)" * (cast_expression "(void **)((long)pvVar1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar1 + 8)" ( (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" { (expression_statement "*(undefined4 *)((long)pvVar1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 0x20) = 1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 0x20)" * (cast_expression "(undefined4 *)((long)pvVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar1 + 0x20)" ( (binary_expression "(long)pvVar1 + 0x20" (cast_expression "(long)pvVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "FUN_00105340(pvVar1,param_1);" (call_expression "FUN_00105340(pvVar1,param_1)" identifier (argument_list "(pvVar1,param_1)" ( identifier , identifier ))) ;) (return_statement "return pvVar1;" return identifier ;) })) })) (expression_statement "FUN_001050b0("out of dynamic memory in yy_create_buffer()");" (call_expression "FUN_001050b0("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 (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void * FUN_001053c0(undefined8 param_1,int param_2)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    \n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" (primitive_type "void") (pointer_declarator "* FUN_001053c0(undefined8 param_1,int param_2)" (* "*") (function_declarator "FUN_001053c0(undefined8 param_1,int param_2)" (identifier "FUN_001053c0") (parameter_list "(undefined8 param_1,int param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  \n  pvVar1 = malloc(0x40);\n  if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }\n                    \n  FUN_001050b0("out of dynamic memory in yy_create_buffer()");\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (expression_statement "pvVar1 = malloc(0x40);" (assignment_expression "pvVar1 = malloc(0x40)" (identifier "pvVar1") (= "=") (call_expression "malloc(0x40)" (identifier "malloc") (argument_list "(0x40)" (( "(") (number_literal "0x40") () ")")))) (; ";")) (if_statement "if (pvVar1 != (void *)0x0) {\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" (if "if") (parenthesized_expression "(pvVar1 != (void *)0x0)" (( "(") (binary_expression "pvVar1 != (void *)0x0" (identifier "pvVar1") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(int *)((long)pvVar1 + 0x18) = param_2;\n    pvVar2 = malloc((long)(param_2 + 2));\n    *(void **)((long)pvVar1 + 8) = pvVar2;\n    if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }\n  }" ({ "{") (expression_statement "*(int *)((long)pvVar1 + 0x18) = param_2;" (assignment_expression "*(int *)((long)pvVar1 + 0x18) = param_2" (pointer_expression "*(int *)((long)pvVar1 + 0x18)" (* "*") (cast_expression "(int *)((long)pvVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar1 + 0x18)" (( "(") (binary_expression "(long)pvVar1 + 0x18" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "pvVar2 = malloc((long)(param_2 + 2));" (assignment_expression "pvVar2 = malloc((long)(param_2 + 2))" (identifier "pvVar2") (= "=") (call_expression "malloc((long)(param_2 + 2))" (identifier "malloc") (argument_list "((long)(param_2 + 2))" (( "(") (cast_expression "(long)(param_2 + 2)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_2 + 2)" (( "(") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2")) () ")"))) () ")")))) (; ";")) (expression_statement "*(void **)((long)pvVar1 + 8) = pvVar2;" (assignment_expression "*(void **)((long)pvVar1 + 8) = pvVar2" (pointer_expression "*(void **)((long)pvVar1 + 8)" (* "*") (cast_expression "(void **)((long)pvVar1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)pvVar1 + 8)" (( "(") (binary_expression "(long)pvVar1 + 8" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "pvVar2")) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(undefined4 *)((long)pvVar1 + 0x20) = 1;\n      FUN_00105340(pvVar1,param_1);\n      return pvVar1;\n    }" ({ "{") (expression_statement "*(undefined4 *)((long)pvVar1 + 0x20) = 1;" (assignment_expression "*(undefined4 *)((long)pvVar1 + 0x20) = 1" (pointer_expression "*(undefined4 *)((long)pvVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)((long)pvVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar1 + 0x20)" (( "(") (binary_expression "(long)pvVar1 + 0x20" (cast_expression "(long)pvVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar1")) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_00105340(pvVar1,param_1);" (call_expression "FUN_00105340(pvVar1,param_1)" (identifier "FUN_00105340") (argument_list "(pvVar1,param_1)" (( "(") (identifier "pvVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return pvVar1;" (return "return") (identifier "pvVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_001050b0("out of dynamic memory in yy_create_buffer()");" (call_expression "FUN_001050b0("out of dynamic memory in yy_create_buffer()")" (identifier "FUN_001050b0") (argument_list "("out of dynamic memory in yy_create_buffer()")" (( "(") (string_literal ""out of dynamic memory in yy_create_buffer()"" (" """) (string_content "out of dynamic memory in yy_create_buffer()") (" """)) () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 *file,int var_3)

{
  type_1 var_2;
  char *var_4;
  
  var_2 = (type_1)var_1(0x40);
  if (var_2 != (type_1)0x0) {
    var_2->yy_buf_size = var_3;
    var_4 = (char *)var_1((long)(var_3 + 2));
    var_2->yy_ch_buf = var_4;
    if (var_4 != (char *)0x0) {
      var_2->yy_is_our_buffer = 1;
      var_5(var_2,file);
      return var_2;
    }
  }
                    /* WARNING: Subroutine does not return */
  var_6("out of dynamic memory in yy_create_buffer()");
}


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

void * MASKED(undefined8 param_1,int param_2)

{
  void *pvVar1;
  void *pvVar2;
  
  pvVar1 = malloc(0x40);
  if (pvVar1 != (void *)0x0) {
    *(int *)((long)pvVar1 + 0x18) = param_2;
    pvVar2 = malloc((long)(param_2 + 2));
    *(void **)((long)pvVar1 + 8) = pvVar2;
    if (pvVar2 != (void *)0x0) {
      *(undefined4 *)((long)pvVar1 + 0x20) = 1;
      FUN_00105340(pvVar1,param_1);
      return pvVar1;
    }
  }
                    /* WARNING: Subroutine does not return */
  FUN_001050b0("out of dynamic memory in yy_create_buffer()");
}

