
void S_SET_WEAKREFR(symbolS *s)

{
  undefined1 *puVar1;
  symbol_flags sVar2;
  byte bVar3;
  symbolS *psVar4;
  
  bVar3 = *(byte *)&s->sy_flags;
  if ((bVar3 & 1) != 0) {
    if ((segT)s->bsym != reg_section) {
      psVar4 = local_symbol_convert((local_symbol *)s);
      sVar2 = psVar4->sy_flags;
      puVar1 = &(psVar4->sy_flags).field_0x1;
      *puVar1 = *puVar1 | 2;
      if (((uint)sVar2 & 0x20) == 0) {
        return;
      }
      symbol_mark_used((psVar4->sy_value).X_add_symbol);
      return;
    }
    s = (s->sy_value).X_op_symbol;
    bVar3 = *(byte *)&s->sy_flags;
  }
  puVar1 = &(s->sy_flags).field_0x1;
  *puVar1 = *puVar1 | 2;
  if ((bVar3 & 0x20) == 0) {
    return;
  }
  symbol_mark_used((s->sy_value).X_add_symbol);
  return;
}



void FUN_0012a060(byte *param_1)

{
  byte bVar1;
  byte *pbVar2;
  
  bVar1 = *param_1;
  if ((bVar1 & 1) != 0) {
    if (*(long *)(param_1 + 8) != DAT_0016eee0) {
      pbVar2 = (byte *)FUN_00127af0();
      pbVar2[1] = pbVar2[1] | 2;
      if ((*pbVar2 & 0x20) == 0) {
        return;
      }
      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));
      return;
    }
    param_1 = *(byte **)(param_1 + 0x18);
    bVar1 = *param_1;
  }
  param_1[1] = param_1[1] | 2;
  if ((bVar1 & 0x20) == 0) {
    return;
  }
  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));
  return;
}


MOVZX EAX,byte ptr [RDI]
TEST AL,0x1
JNZ 0x0012a070
OR byte ptr [RDI + 0x1],0x2
TEST AL,0x20
JNZ 0x0012a0b0
RET
MOV RAX,qword ptr [0x0016eee0]
CMP qword ptr [RDI + 0x8],RAX
JZ 0x0012a0c0
SUB RSP,0x8
CALL 0x00127af0
MOV RDI,RAX
MOVZX EAX,byte ptr [RAX]
OR byte ptr [RDI + 0x1],0x2
TEST AL,0x20
JNZ 0x0012a0a0
ADD RSP,0x8
RET
MOV RDI,qword ptr [RDI + 0x10]
ADD RSP,0x8
JMP 0x0012a010
MOV RDI,qword ptr [RDI + 0x10]
JMP 0x0012a010
MOV RDI,qword ptr [RDI + 0x18]
MOVZX EAX,byte ptr [RDI]
JMP 0x0012a067
(translation_unit "void FUN_0012a060(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}\n\n" (function_definition "void FUN_0012a060(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" primitive_type (function_declarator "FUN_0012a060(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" if (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" { (if_statement "if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_0016eee0)" ( (binary_expression "*(long *)(param_1 + 8) != DAT_0016eee0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" { (expression_statement "pbVar2 = (byte *)FUN_00127af0();" (assignment_expression "pbVar2 = (byte *)FUN_00127af0()" identifier = (cast_expression "(byte *)FUN_00127af0()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00127af0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pbVar2[1] = pbVar2[1] | 2;" (assignment_expression "pbVar2[1] = pbVar2[1] | 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) = (binary_expression "pbVar2[1] | 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }" if (parenthesized_expression "((*pbVar2 & 0x20) == 0)" ( (binary_expression "(*pbVar2 & 0x20) == 0" (parenthesized_expression "(*pbVar2 & 0x20)" ( (binary_expression "*pbVar2 & 0x20" (pointer_expression "*pbVar2" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10))" identifier (argument_list "(*(undefined8 *)(pbVar2 + 0x10))" ( (pointer_expression "*(undefined8 *)(pbVar2 + 0x10)" * (cast_expression "(undefined8 *)(pbVar2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x10)" ( (binary_expression "pbVar2 + 0x10" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "param_1[1] = param_1[1] | 2;" (assignment_expression "param_1[1] = param_1[1] | 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] | 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if ((bVar1 & 0x20) == 0) {\n    return;\n  }" if (parenthesized_expression "((bVar1 & 0x20) == 0)" ( (binary_expression "(bVar1 & 0x20) == 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0012a010(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void S_SET_WEAKREFR(symbolS *s)\n\n{\n  undefined1 *puVar1;\n  symbol_flags sVar2;\n  byte bVar3;\n  symbolS *psVar4;\n  \n  bVar3 = *(byte *)&s->sy_flags;\n  if ((bVar3 & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    bVar3 = *(byte *)&s->sy_flags;\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 | 2;\n  if ((bVar3 & 0x20) == 0) {\n    return;\n  }\n  symbol_mark_used((s->sy_value).X_add_symbol);\n  return;\n}\n\n" (function_definition "void S_SET_WEAKREFR(symbolS *s)\n\n{\n  undefined1 *puVar1;\n  symbol_flags sVar2;\n  byte bVar3;\n  symbolS *psVar4;\n  \n  bVar3 = *(byte *)&s->sy_flags;\n  if ((bVar3 & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    bVar3 = *(byte *)&s->sy_flags;\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 | 2;\n  if ((bVar3 & 0x20) == 0) {\n    return;\n  }\n  symbol_mark_used((s->sy_value).X_add_symbol);\n  return;\n}" primitive_type (function_declarator "S_SET_WEAKREFR(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  undefined1 *puVar1;\n  symbol_flags sVar2;\n  byte bVar3;\n  symbolS *psVar4;\n  \n  bVar3 = *(byte *)&s->sy_flags;\n  if ((bVar3 & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    bVar3 = *(byte *)&s->sy_flags;\n  }\n  puVar1 = &(s->sy_flags).field_0x1;\n  *puVar1 = *puVar1 | 2;\n  if ((bVar3 & 0x20) == 0) {\n    return;\n  }\n  symbol_mark_used((s->sy_value).X_add_symbol);\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "symbol_flags sVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "symbolS *psVar4;" type_identifier (pointer_declarator "*psVar4" * identifier) ;) (expression_statement "bVar3 = *(byte *)&s->sy_flags;" (assignment_expression "bVar3 = *(byte *)&s->sy_flags" identifier = (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier))))) ;) (if_statement "if ((bVar3 & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    bVar3 = *(byte *)&s->sy_flags;\n  }" if (parenthesized_expression "((bVar3 & 1) != 0)" ( (binary_expression "(bVar3 & 1) != 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }\n    s = (s->sy_value).X_op_symbol;\n    bVar3 = *(byte *)&s->sy_flags;\n  }" { (if_statement "if ((segT)s->bsym != reg_section) {\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }" if (parenthesized_expression "((segT)s->bsym != reg_section)" ( (binary_expression "(segT)s->bsym != reg_section" (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n      psVar4 = local_symbol_convert((local_symbol *)s);\n      sVar2 = psVar4->sy_flags;\n      puVar1 = &(psVar4->sy_flags).field_0x1;\n      *puVar1 = *puVar1 | 2;\n      if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }\n      symbol_mark_used((psVar4->sy_value).X_add_symbol);\n      return;\n    }" { (expression_statement "psVar4 = local_symbol_convert((local_symbol *)s);" (assignment_expression "psVar4 = local_symbol_convert((local_symbol *)s)" identifier = (call_expression "local_symbol_convert((local_symbol *)s)" identifier (argument_list "((local_symbol *)s)" ( (cast_expression "(local_symbol *)s" ( (type_descriptor "local_symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "sVar2 = psVar4->sy_flags;" (assignment_expression "sVar2 = psVar4->sy_flags" identifier = (field_expression "psVar4->sy_flags" identifier -> field_identifier)) ;) (expression_statement "puVar1 = &(psVar4->sy_flags).field_0x1;" (assignment_expression "puVar1 = &(psVar4->sy_flags).field_0x1" identifier = (pointer_expression "&(psVar4->sy_flags).field_0x1" & (field_expression "(psVar4->sy_flags).field_0x1" (parenthesized_expression "(psVar4->sy_flags)" ( (field_expression "psVar4->sy_flags" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 2;" (assignment_expression "*puVar1 = *puVar1 | 2" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 2" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if (((uint)sVar2 & 0x20) == 0) {\n        return;\n      }" if (parenthesized_expression "(((uint)sVar2 & 0x20) == 0)" ( (binary_expression "((uint)sVar2 & 0x20) == 0" (parenthesized_expression "((uint)sVar2 & 0x20)" ( (binary_expression "(uint)sVar2 & 0x20" (cast_expression "(uint)sVar2" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "symbol_mark_used((psVar4->sy_value).X_add_symbol);" (call_expression "symbol_mark_used((psVar4->sy_value).X_add_symbol)" identifier (argument_list "((psVar4->sy_value).X_add_symbol)" ( (field_expression "(psVar4->sy_value).X_add_symbol" (parenthesized_expression "(psVar4->sy_value)" ( (field_expression "psVar4->sy_value" identifier -> field_identifier) )) . field_identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "bVar3 = *(byte *)&s->sy_flags;" (assignment_expression "bVar3 = *(byte *)&s->sy_flags" identifier = (pointer_expression "*(byte *)&s->sy_flags" * (cast_expression "(byte *)&s->sy_flags" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s->sy_flags" & (field_expression "s->sy_flags" identifier -> field_identifier))))) ;) })) (expression_statement "puVar1 = &(s->sy_flags).field_0x1;" (assignment_expression "puVar1 = &(s->sy_flags).field_0x1" identifier = (pointer_expression "&(s->sy_flags).field_0x1" & (field_expression "(s->sy_flags).field_0x1" (parenthesized_expression "(s->sy_flags)" ( (field_expression "s->sy_flags" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 2;" (assignment_expression "*puVar1 = *puVar1 | 2" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 2" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (if_statement "if ((bVar3 & 0x20) == 0) {\n    return;\n  }" if (parenthesized_expression "((bVar3 & 0x20) == 0)" ( (binary_expression "(bVar3 & 0x20) == 0" (parenthesized_expression "(bVar3 & 0x20)" ( (binary_expression "bVar3 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "symbol_mark_used((s->sy_value).X_add_symbol);" (call_expression "symbol_mark_used((s->sy_value).X_add_symbol)" identifier (argument_list "((s->sy_value).X_add_symbol)" ( (field_expression "(s->sy_value).X_add_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012a060(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}\n\n" (function_definition "void FUN_0012a060(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" primitive_type (function_declarator "FUN_0012a060(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" if (parenthesized_expression "((bVar1 & 1) != 0)" ( (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" ( (binary_expression "bVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" { (if_statement "if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_0016eee0)" ( (binary_expression "*(long *)(param_1 + 8) != DAT_0016eee0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" { (expression_statement "pbVar2 = (byte *)FUN_00127af0();" (assignment_expression "pbVar2 = (byte *)FUN_00127af0()" identifier = (cast_expression "(byte *)FUN_00127af0()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00127af0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "pbVar2[1] = pbVar2[1] | 2;" (assignment_expression "pbVar2[1] = pbVar2[1] | 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) = (binary_expression "pbVar2[1] | 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }" if (parenthesized_expression "((*pbVar2 & 0x20) == 0)" ( (binary_expression "(*pbVar2 & 0x20) == 0" (parenthesized_expression "(*pbVar2 & 0x20)" ( (binary_expression "*pbVar2 & 0x20" (pointer_expression "*pbVar2" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10))" identifier (argument_list "(*(undefined8 *)(pbVar2 + 0x10))" ( (pointer_expression "*(undefined8 *)(pbVar2 + 0x10)" * (cast_expression "(undefined8 *)(pbVar2 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + 0x10)" ( (binary_expression "pbVar2 + 0x10" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "param_1[1] = param_1[1] | 2;" (assignment_expression "param_1[1] = param_1[1] | 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] | 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if ((bVar1 & 0x20) == 0) {\n    return;\n  }" if (parenthesized_expression "((bVar1 & 0x20) == 0)" ( (binary_expression "(bVar1 & 0x20) == 0" (parenthesized_expression "(bVar1 & 0x20)" ( (binary_expression "bVar1 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0012a010(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(param_1 + 0x10))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x10))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0012a060(byte *param_1)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012a060(byte *param_1)" (identifier "FUN_0012a060") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  bVar1 = *param_1;\n  if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }\n  param_1[1] = param_1[1] | 2;\n  if ((bVar1 & 0x20) == 0) {\n    return;\n  }\n  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((bVar1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" (if "if") (parenthesized_expression "((bVar1 & 1) != 0)" (( "(") (binary_expression "(bVar1 & 1) != 0" (parenthesized_expression "(bVar1 & 1)" (( "(") (binary_expression "bVar1 & 1" (identifier "bVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n    bVar1 = *param_1;\n  }" ({ "{") (if_statement "if (*(long *)(param_1 + 8) != DAT_0016eee0) {\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_0016eee0)" (( "(") (binary_expression "*(long *)(param_1 + 8) != DAT_0016eee0" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "DAT_0016eee0")) () ")")) (compound_statement "{\n      pbVar2 = (byte *)FUN_00127af0();\n      pbVar2[1] = pbVar2[1] | 2;\n      if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }\n      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));\n      return;\n    }" ({ "{") (expression_statement "pbVar2 = (byte *)FUN_00127af0();" (assignment_expression "pbVar2 = (byte *)FUN_00127af0()" (identifier "pbVar2") (= "=") (cast_expression "(byte *)FUN_00127af0()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00127af0()" (identifier "FUN_00127af0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pbVar2[1] = pbVar2[1] | 2;" (assignment_expression "pbVar2[1] = pbVar2[1] | 2" (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "pbVar2[1] | 2" (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]")) (| "|") (number_literal "2"))) (; ";")) (if_statement "if ((*pbVar2 & 0x20) == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "((*pbVar2 & 0x20) == 0)" (( "(") (binary_expression "(*pbVar2 & 0x20) == 0" (parenthesized_expression "(*pbVar2 & 0x20)" (( "(") (binary_expression "*pbVar2 & 0x20" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10))" (identifier "FUN_0012a010") (argument_list "(*(undefined8 *)(pbVar2 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(pbVar2 + 0x10)" (* "*") (cast_expression "(undefined8 *)(pbVar2 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar2 + 0x10)" (( "(") (binary_expression "pbVar2 + 0x10" (identifier "pbVar2") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 0x18)" (* "*") (cast_expression "(byte **)(param_1 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = param_1[1] | 2;" (assignment_expression "param_1[1] = param_1[1] | 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] | 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (| "|") (number_literal "2"))) (; ";")) (if_statement "if ((bVar1 & 0x20) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((bVar1 & 0x20) == 0)" (( "(") (binary_expression "(bVar1 & 0x20) == 0" (parenthesized_expression "(bVar1 & 0x20)" (( "(") (binary_expression "bVar1 & 0x20" (identifier "bVar1") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0012a010(*(undefined8 *)(param_1 + 0x10));" (call_expression "FUN_0012a010(*(undefined8 *)(param_1 + 0x10))" (identifier "FUN_0012a010") (argument_list "(*(undefined8 *)(param_1 + 0x10))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *s)

{
  type_2 *puVar1;
  type_3 sVar2;
  type_4 var_1;
  type_1 *psVar4;
  
  var_1 = *(type_4 *)&s->sy_flags;
  if ((var_1 & 1) != 0) {
    if ((type_5)s->bsym != var_2) {
      psVar4 = var_3((type_6 *)s);
      sVar2 = psVar4->sy_flags;
      puVar1 = &(psVar4->sy_flags).field_0x1;
      *puVar1 = *puVar1 | 2;
      if (((type_7)sVar2 & 0x20) == 0) {
        return;
      }
      var_4((psVar4->sy_value).X_add_symbol);
      return;
    }
    s = (s->sy_value).X_op_symbol;
    var_1 = *(type_4 *)&s->sy_flags;
  }
  puVar1 = &(s->sy_flags).field_0x1;
  *puVar1 = *puVar1 | 2;
  if ((var_1 & 0x20) == 0) {
    return;
  }
  var_4((s->sy_value).X_add_symbol);
  return;
}


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

void MASKED(byte *param_1)

{
  byte bVar1;
  byte *pbVar2;
  
  bVar1 = *param_1;
  if ((bVar1 & 1) != 0) {
    if (*(long *)(param_1 + 8) != DAT_0016eee0) {
      pbVar2 = (byte *)FUN_00127af0();
      pbVar2[1] = pbVar2[1] | 2;
      if ((*pbVar2 & 0x20) == 0) {
        return;
      }
      FUN_0012a010(*(undefined8 *)(pbVar2 + 0x10));
      return;
    }
    param_1 = *(byte **)(param_1 + 0x18);
    bVar1 = *param_1;
  }
  param_1[1] = param_1[1] | 2;
  if ((bVar1 & 0x20) == 0) {
    return;
  }
  FUN_0012a010(*(undefined8 *)(param_1 + 0x10));
  return;
}

