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

void __regparm3 free_token(re_token_t *node)

{
  uint uVar1;
  
  uVar1 = *(uint *)&node->field_0x4 & 0x400ff;
  if (uVar1 == 6) {
    free_charset((node->opr).mbcset);
    return;
  }
  if (uVar1 != 3) {
    return;
  }
  free((node->opr).sbcset);
  return;
}



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

void __regparm3 FUN_000606b0(undefined4 *param_1)

{
  if ((param_1[1] & 0x400ff) == 6) {
    FUN_00060660();
    return;
  }
  if ((param_1[1] & 0x400ff) != 3) {
    return;
  }
  free((void *)*param_1);
  return;
}


PUSH EBX
CALL 0x00019070
ADD EBX,0x4051a
SUB ESP,0x8
MOV EDX,dword ptr [EAX + 0x4]
AND EDX,0x400ff
CMP EDX,0x6
JZ 0x000606e0
CMP EDX,0x3
JZ 0x000606f0
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EAX]
ADD ESP,0x8
POP EBX
JMP 0x00060660
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00016670
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000606b0(undefined4 *param_1)\n\n{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000606b0(undefined4 *param_1)\n\n{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000606b0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" { (if_statement "if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }" if (parenthesized_expression "((param_1[1] & 0x400ff) == 6)" ( (binary_expression "(param_1[1] & 0x400ff) == 6" (parenthesized_expression "(param_1[1] & 0x400ff)" ( (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_00060660();\n    return;\n  }" { (expression_statement "FUN_00060660();" (call_expression "FUN_00060660()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }" if (parenthesized_expression "((param_1[1] & 0x400ff) != 3)" ( (binary_expression "(param_1[1] & 0x400ff) != 3" (parenthesized_expression "(param_1[1] & 0x400ff)" ( (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 free_token(re_token_t *node)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)&node->field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    free_charset((node->opr).mbcset);\n    return;\n  }\n  if (uVar1 != 3) {\n    return;\n  }\n  free((node->opr).sbcset);\n  return;\n}\n\n" comment (function_definition "void __regparm3 free_token(re_token_t *node)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)&node->field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    free_charset((node->opr).mbcset);\n    return;\n  }\n  if (uVar1 != 3) {\n    return;\n  }\n  free((node->opr).sbcset);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "free_token(re_token_t *node)" identifier (parameter_list "(re_token_t *node)" ( (parameter_declaration "re_token_t *node" type_identifier (pointer_declarator "*node" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)&node->field_0x4 & 0x400ff;\n  if (uVar1 == 6) {\n    free_charset((node->opr).mbcset);\n    return;\n  }\n  if (uVar1 != 3) {\n    return;\n  }\n  free((node->opr).sbcset);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)&node->field_0x4 & 0x400ff;" (assignment_expression "uVar1 = *(uint *)&node->field_0x4 & 0x400ff" identifier = (binary_expression "*(uint *)&node->field_0x4 & 0x400ff" (pointer_expression "*(uint *)&node->field_0x4" * (cast_expression "(uint *)&node->field_0x4" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&node->field_0x4" & (field_expression "node->field_0x4" identifier -> field_identifier)))) & number_literal)) ;) (if_statement "if (uVar1 == 6) {\n    free_charset((node->opr).mbcset);\n    return;\n  }" if (parenthesized_expression "(uVar1 == 6)" ( (binary_expression "uVar1 == 6" identifier == number_literal) )) (compound_statement "{\n    free_charset((node->opr).mbcset);\n    return;\n  }" { (expression_statement "free_charset((node->opr).mbcset);" (call_expression "free_charset((node->opr).mbcset)" identifier (argument_list "((node->opr).mbcset)" ( (field_expression "(node->opr).mbcset" (parenthesized_expression "(node->opr)" ( (field_expression "node->opr" identifier -> field_identifier) )) . field_identifier) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 != 3) {\n    return;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((node->opr).sbcset);" (call_expression "free((node->opr).sbcset)" identifier (argument_list "((node->opr).sbcset)" ( (field_expression "(node->opr).sbcset" (parenthesized_expression "(node->opr)" ( (field_expression "node->opr" identifier -> field_identifier) )) . field_identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000606b0(undefined4 *param_1)\n\n{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000606b0(undefined4 *param_1)\n\n{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000606b0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" { (if_statement "if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }" if (parenthesized_expression "((param_1[1] & 0x400ff) == 6)" ( (binary_expression "(param_1[1] & 0x400ff) == 6" (parenthesized_expression "(param_1[1] & 0x400ff)" ( (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    FUN_00060660();\n    return;\n  }" { (expression_statement "FUN_00060660();" (call_expression "FUN_00060660()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }" if (parenthesized_expression "((param_1[1] & 0x400ff) != 3)" ( (binary_expression "(param_1[1] & 0x400ff) != 3" (parenthesized_expression "(param_1[1] & 0x400ff)" ( (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000606b0(undefined4 *param_1)\n\n{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000606b0(undefined4 *param_1)" (identifier "FUN_000606b0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }\n  if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }\n  free((void *)*param_1);\n  return;\n}" ({ "{") (if_statement "if ((param_1[1] & 0x400ff) == 6) {\n    FUN_00060660();\n    return;\n  }" (if "if") (parenthesized_expression "((param_1[1] & 0x400ff) == 6)" (( "(") (binary_expression "(param_1[1] & 0x400ff) == 6" (parenthesized_expression "(param_1[1] & 0x400ff)" (( "(") (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x400ff")) () ")")) (== "==") (number_literal "6")) () ")")) (compound_statement "{\n    FUN_00060660();\n    return;\n  }" ({ "{") (expression_statement "FUN_00060660();" (call_expression "FUN_00060660()" (identifier "FUN_00060660") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((param_1[1] & 0x400ff) != 3) {\n    return;\n  }" (if "if") (parenthesized_expression "((param_1[1] & 0x400ff) != 3)" (( "(") (binary_expression "(param_1[1] & 0x400ff) != 3" (parenthesized_expression "(param_1[1] & 0x400ff)" (( "(") (binary_expression "param_1[1] & 0x400ff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0x400ff")) () ")")) (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" (identifier "free") (argument_list "((void *)*param_1)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *node)

{
  type_2 var_1;
  
  var_1 = *(type_2 *)&node->field_0x4 & 0x400ff;
  if (var_1 == 6) {
    var_2((node->opr).mbcset);
    return;
  }
  if (var_1 != 3) {
    return;
  }
  var_3((node->opr).sbcset);
  return;
}


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

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

void __regparm3 MASKED(undefined4 *param_1)

{
  if ((param_1[1] & 0x400ff) == 6) {
    FUN_00060660();
    return;
  }
  if ((param_1[1] & 0x400ff) != 3) {
    return;
  }
  free((void *)*param_1);
  return;
}

