
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int S_IS_WEAK(symbolS *s)

{
  segT paVar1;
  symbolS *psVar2;
  
  while( true ) {
    psVar2 = s;
    if (((uint)s->sy_flags & 1) != 0) {
      if ((segT)s->bsym != reg_section) {
        return 0;
      }
      s = (s->sy_value).X_op_symbol;
      psVar2 = s;
      if (((uint)s->sy_flags & 1) != 0) {
        paVar1 = (segT)s->bsym;
        if (reg_section != paVar1) goto LAB_00038140;
        psVar2 = (s->sy_value).X_op_symbol;
      }
    }
    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;
    s = (s->sy_value).X_add_symbol;
  }
  paVar1 = (segT)s->bsym;
LAB_00038140:
  return (uint)paVar1->prev >> 7 & 1;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint FUN_00038110(byte *param_1)

{
  int iVar1;
  byte *pbVar2;
  
  while( true ) {
    pbVar2 = param_1;
    if ((*param_1 & 1) != 0) {
      if (*(int *)(param_1 + 4) != DAT_00077d90) {
        return 0;
      }
      param_1 = *(byte **)(param_1 + 0xc);
      pbVar2 = param_1;
      if ((*param_1 & 1) != 0) {
        iVar1 = *(int *)(param_1 + 4);
        if (DAT_00077d90 != iVar1) goto LAB_00038140;
        pbVar2 = *(byte **)(param_1 + 0xc);
      }
    }
    if ((pbVar2[1] & 2) == 0) break;
    param_1 = *(byte **)(param_1 + 8);
  }
  iVar1 = *(int *)(param_1 + 4);
LAB_00038140:
  return *(uint *)(iVar1 + 0x10) >> 7 & 1;
}


CALL 0x000161c5
ADD EDX,0x36eeb
MOV EAX,dword ptr [ESP + 0x4]
LEA EDX,[EDX + 0x8d90]
MOV ECX,dword ptr [EDX]
TEST byte ptr [EAX],0x1
JZ 0x00038150
CMP dword ptr [EAX + 0x4],ECX
JNZ 0x00038160
MOV EDX,dword ptr [EAX + 0xc]
TEST byte ptr [EDX],0x1
JZ 0x00038175
MOV EAX,dword ptr [EDX + 0x4]
CMP ECX,EAX
JZ 0x00038168
MOV EAX,dword ptr [EAX + 0x10]
SHR EAX,0x7
AND EAX,0x1
RET
MOV EDX,EAX
TEST byte ptr [EAX + 0x1],0x2
JZ 0x00038170
MOV EAX,dword ptr [EDX + 0x8]
JMP 0x00038127
XOR EAX,EAX
RET
MOV EAX,dword ptr [EDX + 0xc]
JMP 0x00038152
MOV EAX,dword ptr [EDX + 0x4]
JMP 0x00038140
MOV EAX,EDX
JMP 0x00038152
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nuint FUN_00038110(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}\n\n" comment (function_definition "uint FUN_00038110(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" type_identifier (function_declarator "FUN_00038110(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (while_statement "while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" { (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" { (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (DAT_00077d90 != iVar1) goto LAB_00038140;" if (parenthesized_expression "(DAT_00077d90 != iVar1)" ( (binary_expression "DAT_00077d90 != iVar1" identifier != identifier) )) (goto_statement "goto LAB_00038140;" goto statement_identifier ;)) (expression_statement "pbVar2 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar2 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) })) (if_statement "if ((pbVar2[1] & 2) == 0) break;" if (parenthesized_expression "((pbVar2[1] & 2) == 0)" ( (binary_expression "(pbVar2[1] & 2) == 0" (parenthesized_expression "(pbVar2[1] & 2)" ( (binary_expression "pbVar2[1] & 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;" statement_identifier : (return_statement "return *(uint *)(iVar1 + 0x10) >> 7 & 1;" return (binary_expression "*(uint *)(iVar1 + 0x10) >> 7 & 1" (binary_expression "*(uint *)(iVar1 + 0x10) >> 7" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) >> number_literal) & number_literal) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint S_IS_WEAK(symbolS *s)\n\n{\n  segT paVar1;\n  symbolS *psVar2;\n  \n  while( true ) {\n    psVar2 = s;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }\n    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  paVar1 = (segT)s->bsym;\nLAB_00038140:\n  return (uint)paVar1->prev >> 7 & 1;\n}\n\n" comment (function_definition "int S_IS_WEAK(symbolS *s)\n\n{\n  segT paVar1;\n  symbolS *psVar2;\n  \n  while( true ) {\n    psVar2 = s;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }\n    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  paVar1 = (segT)s->bsym;\nLAB_00038140:\n  return (uint)paVar1->prev >> 7 & 1;\n}" primitive_type (function_declarator "S_IS_WEAK(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  segT paVar1;\n  symbolS *psVar2;\n  \n  while( true ) {\n    psVar2 = s;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }\n    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }\n  paVar1 = (segT)s->bsym;\nLAB_00038140:\n  return (uint)paVar1->prev >> 7 & 1;\n}" { (declaration "segT paVar1;" type_identifier identifier ;) (declaration "symbolS *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (while_statement "while( true ) {\n    psVar2 = s;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }\n    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    psVar2 = s;\n    if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }\n    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;\n    s = (s->sy_value).X_add_symbol;\n  }" { (expression_statement "psVar2 = s;" (assignment_expression "psVar2 = s" identifier = identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n      if ((segT)s->bsym != reg_section) {\n        return 0;\n      }\n      s = (s->sy_value).X_op_symbol;\n      psVar2 = s;\n      if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }\n    }" { (if_statement "if ((segT)s->bsym != reg_section) {\n        return 0;\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        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (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 "psVar2 = s;" (assignment_expression "psVar2 = s" identifier = identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n        paVar1 = (segT)s->bsym;\n        if (reg_section != paVar1) goto LAB_00038140;\n        psVar2 = (s->sy_value).X_op_symbol;\n      }" { (expression_statement "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) (if_statement "if (reg_section != paVar1) goto LAB_00038140;" if (parenthesized_expression "(reg_section != paVar1)" ( (binary_expression "reg_section != paVar1" identifier != identifier) )) (goto_statement "goto LAB_00038140;" goto statement_identifier ;)) (expression_statement "psVar2 = (s->sy_value).X_op_symbol;" (assignment_expression "psVar2 = (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)) ;) })) })) (if_statement "if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;" if (parenthesized_expression "(((psVar2->sy_flags).field_0x1 & 2) == 0)" ( (binary_expression "((psVar2->sy_flags).field_0x1 & 2) == 0" (parenthesized_expression "((psVar2->sy_flags).field_0x1 & 2)" ( (binary_expression "(psVar2->sy_flags).field_0x1 & 2" (field_expression "(psVar2->sy_flags).field_0x1" (parenthesized_expression "(psVar2->sy_flags)" ( (field_expression "psVar2->sy_flags" identifier -> field_identifier) )) . field_identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "s = (s->sy_value).X_add_symbol;" (assignment_expression "s = (s->sy_value).X_add_symbol" identifier = (field_expression "(s->sy_value).X_add_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) (labeled_statement "LAB_00038140:\n  return (uint)paVar1->prev >> 7 & 1;" statement_identifier : (return_statement "return (uint)paVar1->prev >> 7 & 1;" return (binary_expression "(uint)paVar1->prev >> 7 & 1" (binary_expression "(uint)paVar1->prev >> 7" (cast_expression "(uint)paVar1->prev" ( (type_descriptor "uint" type_identifier) ) (field_expression "paVar1->prev" identifier -> field_identifier)) >> number_literal) & number_literal) ;)) })))
(translation_unit "uint FUN_00038110(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}\n\n" (function_definition "uint FUN_00038110(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" type_identifier (function_declarator "FUN_00038110(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (while_statement "while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" { (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" ( (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" identifier = identifier) ;) (if_statement "if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" { (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (DAT_00077d90 != iVar1) goto LAB_00038140;" if (parenthesized_expression "(DAT_00077d90 != iVar1)" ( (binary_expression "DAT_00077d90 != iVar1" identifier != identifier) )) (goto_statement "goto LAB_00038140;" goto statement_identifier ;)) (expression_statement "pbVar2 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar2 = *(byte **)(param_1 + 0xc)" identifier = (pointer_expression "*(byte **)(param_1 + 0xc)" * (cast_expression "(byte **)(param_1 + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) })) (if_statement "if ((pbVar2[1] & 2) == 0) break;" if (parenthesized_expression "((pbVar2[1] & 2) == 0)" ( (binary_expression "(pbVar2[1] & 2) == 0" (parenthesized_expression "(pbVar2[1] & 2)" ( (binary_expression "pbVar2[1] & 2" (subscript_expression "pbVar2[1]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" identifier = (pointer_expression "*(byte **)(param_1 + 8)" * (cast_expression "(byte **)(param_1 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;" statement_identifier : (return_statement "return *(uint *)(iVar1 + 0x10) >> 7 & 1;" return (binary_expression "*(uint *)(iVar1 + 0x10) >> 7 & 1" (binary_expression "*(uint *)(iVar1 + 0x10) >> 7" (pointer_expression "*(uint *)(iVar1 + 0x10)" * (cast_expression "(uint *)(iVar1 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) >> number_literal) & number_literal) ;)) })))
(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) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (break_statement break ;)) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (return_statement return (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ;)) })))
(function_definition "uint FUN_00038110(byte *param_1)\n\n{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" (type_identifier "uint") (function_declarator "FUN_00038110(byte *param_1)" (identifier "FUN_00038110") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  byte *pbVar2;\n  \n  while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }\n  iVar1 = *(int *)(param_1 + 4);\nLAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (while_statement "while( true ) {\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    pbVar2 = param_1;\n    if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }\n    if ((pbVar2[1] & 2) == 0) break;\n    param_1 = *(byte **)(param_1 + 8);\n  }" ({ "{") (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }\n      param_1 = *(byte **)(param_1 + 0xc);\n      pbVar2 = param_1;\n      if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) != DAT_00077d90) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != DAT_00077d90)" (( "(") (binary_expression "*(int *)(param_1 + 4) != DAT_00077d90" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (identifier "DAT_00077d90")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0xc);" (assignment_expression "param_1 = *(byte **)(param_1 + 0xc)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "pbVar2 = param_1;" (assignment_expression "pbVar2 = param_1" (identifier "pbVar2") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = *(int *)(param_1 + 4);\n        if (DAT_00077d90 != iVar1) goto LAB_00038140;\n        pbVar2 = *(byte **)(param_1 + 0xc);\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (DAT_00077d90 != iVar1) goto LAB_00038140;" (if "if") (parenthesized_expression "(DAT_00077d90 != iVar1)" (( "(") (binary_expression "DAT_00077d90 != iVar1" (identifier "DAT_00077d90") (!= "!=") (identifier "iVar1")) () ")")) (goto_statement "goto LAB_00038140;" (goto "goto") (statement_identifier "LAB_00038140") (; ";"))) (expression_statement "pbVar2 = *(byte **)(param_1 + 0xc);" (assignment_expression "pbVar2 = *(byte **)(param_1 + 0xc)" (identifier "pbVar2") (= "=") (pointer_expression "*(byte **)(param_1 + 0xc)" (* "*") (cast_expression "(byte **)(param_1 + 0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (if_statement "if ((pbVar2[1] & 2) == 0) break;" (if "if") (parenthesized_expression "((pbVar2[1] & 2) == 0)" (( "(") (binary_expression "(pbVar2[1] & 2) == 0" (parenthesized_expression "(pbVar2[1] & 2)" (( "(") (binary_expression "pbVar2[1] & 2" (subscript_expression "pbVar2[1]" (identifier "pbVar2") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_1 = *(byte **)(param_1 + 8);" (assignment_expression "param_1 = *(byte **)(param_1 + 8)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 8)" (* "*") (cast_expression "(byte **)(param_1 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (labeled_statement "LAB_00038140:\n  return *(uint *)(iVar1 + 0x10) >> 7 & 1;" (statement_identifier "LAB_00038140") (: ":") (return_statement "return *(uint *)(iVar1 + 0x10) >> 7 & 1;" (return "return") (binary_expression "*(uint *)(iVar1 + 0x10) >> 7 & 1" (binary_expression "*(uint *)(iVar1 + 0x10) >> 7" (pointer_expression "*(uint *)(iVar1 + 0x10)" (* "*") (cast_expression "(uint *)(iVar1 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (>> ">>") (number_literal "7")) (& "&") (number_literal "1")) (; ";"))) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int function_1(type_1 *s)

{
  type_2 var_2;
  type_1 *psVar2;
  
  while( true ) {
    psVar2 = s;
    if (((type_3)s->sy_flags & 1) != 0) {
      if ((type_2)s->bsym != var_1) {
        return 0;
      }
      s = (s->sy_value).X_op_symbol;
      psVar2 = s;
      if (((type_3)s->sy_flags & 1) != 0) {
        var_2 = (type_2)s->bsym;
        if (var_1 != var_2) goto LAB_00038140;
        psVar2 = (s->sy_value).X_op_symbol;
      }
    }
    if (((psVar2->sy_flags).field_0x1 & 2) == 0) break;
    s = (s->sy_value).X_add_symbol;
  }
  var_2 = (type_2)s->bsym;
LAB_00038140:
  return (type_3)var_2->prev >> 7 & 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (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: (identifier))) (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 (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (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))))))))))) (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: (break_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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (return_statement (binary_expression left: (binary_expression left: (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))))) right: (number_literal)) right: (number_literal)))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint MASKED(byte *param_1)

{
  int iVar1;
  byte *pbVar2;
  
  while( true ) {
    pbVar2 = param_1;
    if ((*param_1 & 1) != 0) {
      if (*(int *)(param_1 + 4) != DAT_00077d90) {
        return 0;
      }
      param_1 = *(byte **)(param_1 + 0xc);
      pbVar2 = param_1;
      if ((*param_1 & 1) != 0) {
        iVar1 = *(int *)(param_1 + 4);
        if (DAT_00077d90 != iVar1) goto LAB_00038140;
        pbVar2 = *(byte **)(param_1 + 0xc);
      }
    }
    if ((pbVar2[1] & 2) == 0) break;
    param_1 = *(byte **)(param_1 + 8);
  }
  iVar1 = *(int *)(param_1 + 4);
LAB_00038140:
  return *(uint *)(iVar1 + 0x10) >> 7 & 1;
}

