
void yy_delete_buffer(YY_BUFFER_STATE b)

{
  int iVar1;
  
  if (b == (YY_BUFFER_STATE)0x0) {
    return;
  }
  if ((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])) {
    iVar1 = b->yy_is_our_buffer;
  }
  else {
    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;
    iVar1 = b->yy_is_our_buffer;
  }
  if (iVar1 == 0) {
    free(b);
    return;
  }
  free(b->yy_ch_buf);
  free(b);
  return;
}



void FUN_0010d360(void *param_1)

{
  long *plVar1;
  int iVar2;
  
  if (param_1 == (void *)0x0) {
    return;
  }
  if ((DAT_001811f8 == 0) ||
     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {
    iVar2 = *(int *)((long)param_1 + 0x20);
  }
  else {
    *plVar1 = 0;
    iVar2 = *(int *)((long)param_1 + 0x20);
  }
  if (iVar2 == 0) {
    free(param_1);
    return;
  }
  free(*(void **)((long)param_1 + 8));
  free(param_1);
  return;
}


TEST RDI,RDI
JZ 0x0010d3c0
MOV RAX,qword ptr [0x001811f8]
PUSH RBX
TEST RAX,RAX
JZ 0x0010d382
MOV RDX,qword ptr [0x00181208]
LEA RAX,[RAX + RDX*0x8]
CMP RDI,qword ptr [RAX]
JZ 0x0010d398
MOV EAX,dword ptr [RDI + 0x20]
MOV RBX,RDI
TEST EAX,EAX
JNZ 0x0010d3a9
MOV RDI,RBX
POP RBX
JMP 0x00109cb0
MOV qword ptr [RAX],0x0
MOV EAX,dword ptr [RDI + 0x20]
MOV RBX,RDI
TEST EAX,EAX
JZ 0x0010d38c
MOV RDI,qword ptr [RDI + 0x8]
CALL 0x00109cb0
MOV RDI,RBX
POP RBX
JMP 0x00109cb0
RET
(translation_unit "void FUN_0010d360(void *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0010d360(void *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0010d360(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" if (parenthesized_expression "((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1))" ( (binary_expression "(DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" (parenthesized_expression "(DAT_001811f8 == 0)" ( (binary_expression "DAT_001811f8 == 0" identifier == number_literal) )) || (parenthesized_expression "(plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" ( (comma_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1" (assignment_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8)" identifier = (cast_expression "(long *)(DAT_001811f8 + DAT_00181208 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001811f8 + DAT_00181208 * 8)" ( (binary_expression "DAT_001811f8 + DAT_00181208 * 8" identifier + (binary_expression "DAT_00181208 * 8" identifier * number_literal)) )))) , (binary_expression "param_1 != (void *)*plVar1" identifier != (cast_expression "(void *)*plVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar1" * identifier)))) ))) )) (compound_statement "{\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" { (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x20)" * (cast_expression "(int *)((long)param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x20)" ( (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" else (compound_statement "{\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" { (expression_statement "*plVar1 = 0;" (assignment_expression "*plVar1 = 0" (pointer_expression "*plVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x20)" * (cast_expression "(int *)((long)param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x20)" ( (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    free(param_1);\n    return;\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "free(*(void **)((long)param_1 + 8));" (call_expression "free(*(void **)((long)param_1 + 8))" identifier (argument_list "(*(void **)((long)param_1 + 8))" ( (pointer_expression "*(void **)((long)param_1 + 8)" * (cast_expression "(void **)((long)param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + 8)" ( (binary_expression "(long)param_1 + 8" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void yy_delete_buffer(YY_BUFFER_STATE b)\n\n{\n  int iVar1;\n  \n  if (b == (YY_BUFFER_STATE)0x0) {\n    return;\n  }\n  if ((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])) {\n    iVar1 = b->yy_is_our_buffer;\n  }\n  else {\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }\n  if (iVar1 == 0) {\n    free(b);\n    return;\n  }\n  free(b->yy_ch_buf);\n  free(b);\n  return;\n}\n\n" (function_definition "void yy_delete_buffer(YY_BUFFER_STATE b)\n\n{\n  int iVar1;\n  \n  if (b == (YY_BUFFER_STATE)0x0) {\n    return;\n  }\n  if ((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])) {\n    iVar1 = b->yy_is_our_buffer;\n  }\n  else {\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }\n  if (iVar1 == 0) {\n    free(b);\n    return;\n  }\n  free(b->yy_ch_buf);\n  free(b);\n  return;\n}" primitive_type (function_declarator "yy_delete_buffer(YY_BUFFER_STATE b)" identifier (parameter_list "(YY_BUFFER_STATE b)" ( (parameter_declaration "YY_BUFFER_STATE b" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (b == (YY_BUFFER_STATE)0x0) {\n    return;\n  }\n  if ((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])) {\n    iVar1 = b->yy_is_our_buffer;\n  }\n  else {\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }\n  if (iVar1 == 0) {\n    free(b);\n    return;\n  }\n  free(b->yy_ch_buf);\n  free(b);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (b == (YY_BUFFER_STATE)0x0) {\n    return;\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    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])) {\n    iVar1 = b->yy_is_our_buffer;\n  }\n  else {\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }" if (parenthesized_expression "((yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top]))" ( (binary_expression "(yy_buffer_stack == (YY_BUFFER_STATE *)0x0) || (b != yy_buffer_stack[yy_buffer_stack_top])" (parenthesized_expression "(yy_buffer_stack == (YY_BUFFER_STATE *)0x0)" ( (binary_expression "yy_buffer_stack == (YY_BUFFER_STATE *)0x0" identifier == (cast_expression "(YY_BUFFER_STATE *)0x0" ( (type_descriptor "YY_BUFFER_STATE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(b != yy_buffer_stack[yy_buffer_stack_top])" ( (binary_expression "b != yy_buffer_stack[yy_buffer_stack_top]" identifier != (subscript_expression "yy_buffer_stack[yy_buffer_stack_top]" identifier [ identifier ])) ))) )) (compound_statement "{\n    iVar1 = b->yy_is_our_buffer;\n  }" { (expression_statement "iVar1 = b->yy_is_our_buffer;" (assignment_expression "iVar1 = b->yy_is_our_buffer" identifier = (field_expression "b->yy_is_our_buffer" identifier -> field_identifier)) ;) }) (else_clause "else {\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }" else (compound_statement "{\n    yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;\n    iVar1 = b->yy_is_our_buffer;\n  }" { (expression_statement "yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0;" (assignment_expression "yy_buffer_stack[yy_buffer_stack_top] = (YY_BUFFER_STATE)0x0" (subscript_expression "yy_buffer_stack[yy_buffer_stack_top]" identifier [ identifier ]) = (cast_expression "(YY_BUFFER_STATE)0x0" ( (type_descriptor "YY_BUFFER_STATE" type_identifier) ) number_literal)) ;) (expression_statement "iVar1 = b->yy_is_our_buffer;" (assignment_expression "iVar1 = b->yy_is_our_buffer" identifier = (field_expression "b->yy_is_our_buffer" identifier -> field_identifier)) ;) }))) (if_statement "if (iVar1 == 0) {\n    free(b);\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    free(b);\n    return;\n  }" { (expression_statement "free(b);" (call_expression "free(b)" identifier (argument_list "(b)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "free(b->yy_ch_buf);" (call_expression "free(b->yy_ch_buf)" identifier (argument_list "(b->yy_ch_buf)" ( (field_expression "b->yy_ch_buf" identifier -> field_identifier) ))) ;) (expression_statement "free(b);" (call_expression "free(b)" identifier (argument_list "(b)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0010d360(void *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0010d360(void *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0010d360(void *param_1)" identifier (parameter_list "(void *param_1)" ( (parameter_declaration "void *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == (void *)0x0)" ( (binary_expression "param_1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" if (parenthesized_expression "((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1))" ( (binary_expression "(DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" (parenthesized_expression "(DAT_001811f8 == 0)" ( (binary_expression "DAT_001811f8 == 0" identifier == number_literal) )) || (parenthesized_expression "(plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" ( (comma_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1" (assignment_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8)" identifier = (cast_expression "(long *)(DAT_001811f8 + DAT_00181208 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001811f8 + DAT_00181208 * 8)" ( (binary_expression "DAT_001811f8 + DAT_00181208 * 8" identifier + (binary_expression "DAT_00181208 * 8" identifier * number_literal)) )))) , (binary_expression "param_1 != (void *)*plVar1" identifier != (cast_expression "(void *)*plVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar1" * identifier)))) ))) )) (compound_statement "{\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" { (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x20)" * (cast_expression "(int *)((long)param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x20)" ( (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" else (compound_statement "{\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" { (expression_statement "*plVar1 = 0;" (assignment_expression "*plVar1 = 0" (pointer_expression "*plVar1" * identifier) = number_literal) ;) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x20)" * (cast_expression "(int *)((long)param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x20)" ( (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }))) (if_statement "if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    free(param_1);\n    return;\n  }" { (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "free(*(void **)((long)param_1 + 8));" (call_expression "free(*(void **)((long)param_1 + 8))" identifier (argument_list "(*(void **)((long)param_1 + 8))" ( (pointer_expression "*(void **)((long)param_1 + 8)" * (cast_expression "(void **)((long)param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + 8)" ( (binary_expression "(long)param_1 + 8" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (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) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0010d360(void *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0010d360(void *param_1)" (identifier "FUN_0010d360") (parameter_list "(void *param_1)" (( "(") (parameter_declaration "void *param_1" (primitive_type "void") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  \n  if (param_1 == (void *)0x0) {\n    return;\n  }\n  if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }\n  free(*(void **)((long)param_1 + 8));\n  free(param_1);\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 == (void *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == (void *)0x0)" (( "(") (binary_expression "param_1 == (void *)0x0" (identifier "param_1") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }\n  else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" (if "if") (parenthesized_expression "((DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1))" (( "(") (binary_expression "(DAT_001811f8 == 0) ||\n     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" (parenthesized_expression "(DAT_001811f8 == 0)" (( "(") (binary_expression "DAT_001811f8 == 0" (identifier "DAT_001811f8") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)" (( "(") (comma_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1" (assignment_expression "plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8)" (identifier "plVar1") (= "=") (cast_expression "(long *)(DAT_001811f8 + DAT_00181208 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001811f8 + DAT_00181208 * 8)" (( "(") (binary_expression "DAT_001811f8 + DAT_00181208 * 8" (identifier "DAT_001811f8") (+ "+") (binary_expression "DAT_00181208 * 8" (identifier "DAT_00181208") (* "*") (number_literal "8"))) () ")")))) (, ",") (binary_expression "param_1 != (void *)*plVar1" (identifier "param_1") (!= "!=") (cast_expression "(void *)*plVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" ({ "{") (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((long)param_1 + 0x20)" (* "*") (cast_expression "(int *)((long)param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x20)" (( "(") (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" (else "else") (compound_statement "{\n    *plVar1 = 0;\n    iVar2 = *(int *)((long)param_1 + 0x20);\n  }" ({ "{") (expression_statement "*plVar1 = 0;" (assignment_expression "*plVar1 = 0" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x20);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x20)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((long)param_1 + 0x20)" (* "*") (cast_expression "(int *)((long)param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x20)" (( "(") (binary_expression "(long)param_1 + 0x20" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar2 == 0) {\n    free(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    free(param_1);\n    return;\n  }" ({ "{") (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "free(*(void **)((long)param_1 + 8));" (call_expression "free(*(void **)((long)param_1 + 8))" (identifier "free") (argument_list "(*(void **)((long)param_1 + 8))" (( "(") (pointer_expression "*(void **)((long)param_1 + 8)" (* "*") (cast_expression "(void **)((long)param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + 8)" (( "(") (binary_expression "(long)param_1 + 8" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_1)

{
  int var_3;
  
  if (var_1 == (type_1)0x0) {
    return;
  }
  if ((var_2 == (type_1 *)0x0) || (var_1 != var_2[yy_buffer_stack_top])) {
    var_3 = var_1->yy_is_our_buffer;
  }
  else {
    var_2[yy_buffer_stack_top] = (type_1)0x0;
    var_3 = var_1->yy_is_our_buffer;
  }
  if (var_3 == 0) {
    var_4(var_1);
    return;
  }
  var_4(var_1->yy_ch_buf);
  var_4(var_1);
  return;
}


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

void MASKED(void *param_1)

{
  long *plVar1;
  int iVar2;
  
  if (param_1 == (void *)0x0) {
    return;
  }
  if ((DAT_001811f8 == 0) ||
     (plVar1 = (long *)(DAT_001811f8 + DAT_00181208 * 8), param_1 != (void *)*plVar1)) {
    iVar2 = *(int *)((long)param_1 + 0x20);
  }
  else {
    *plVar1 = 0;
    iVar2 = *(int *)((long)param_1 + 0x20);
  }
  if (iVar2 == 0) {
    free(param_1);
    return;
  }
  free(*(void **)((long)param_1 + 8));
  free(param_1);
  return;
}

