
/* DWARF original prototype: bool do_is_defined_by_abi(Target_tilegx<64,_false> * this, Symbol *
   sym) */

bool __thiscall
anon_unknown.dwarf_ca7751::Target_tilegx<64,_false>::do_is_defined_by_abi
          (Target_tilegx<64,_false> *this,Symbol *sym)

{
  long lVar1;
  byte *pbVar2;
  char *pcVar3;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  lVar1 = 0xf;
  pcVar3 = "___tls_get_addr";
  pbVar2 = (byte *)sym->name_;
  do {
    pcVar3 = (char *)((byte *)pcVar3 + 1);
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < (byte)*pcVar3;
    in_ZF = *pbVar2 == *pcVar3;
    pbVar2 = pbVar2 + 1;
  } while ((bool)in_ZF);
  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
}



bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)

{
  long lVar1;
  byte *pbVar2;
  char *pcVar3;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  lVar1 = 0xf;
  pcVar3 = "___tls_get_addr";
  pbVar2 = (byte *)*param_2;
  do {
    pcVar3 = (char *)((byte *)pcVar3 + 1);
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < (byte)*pcVar3;
    in_ZF = *pbVar2 == *pcVar3;
    pbVar2 = pbVar2 + 1;
  } while ((bool)in_ZF);
  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
}


MOV RSI,qword ptr [RSI]
MOV ECX,0xf
LEA RDI,[0x5333d3]
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
SETZ AL
RET
(translation_unit "bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}\n\n" (function_definition "bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" primitive_type (function_declarator "FUN_00271a70(undefined8 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "lVar1 = 0xf;" (assignment_expression "lVar1 = 0xf" identifier = number_literal) ;) (expression_statement "pcVar3 = "___tls_get_addr";" (assignment_expression "pcVar3 = "___tls_get_addr"" identifier = (string_literal ""___tls_get_addr"" " string_content ")) ;) (expression_statement "pbVar2 = (byte *)*param_2;" (assignment_expression "pbVar2 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (do_statement "do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "pcVar3 = (char *)((byte *)pcVar3 + 1);" (assignment_expression "pcVar3 = (char *)((byte *)pcVar3 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar3 + 1)" ( (binary_expression "(byte *)pcVar3 + 1" (cast_expression "(byte *)pcVar3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < (byte)*pcVar3;" (assignment_expression "in_CF = *pbVar2 < (byte)*pcVar3" identifier = (binary_expression "*pbVar2 < (byte)*pcVar3" (pointer_expression "*pbVar2" * identifier) < (binary_expression "(byte)*pcVar3" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pcVar3;" (assignment_expression "in_ZF = *pbVar2 == *pcVar3" identifier = (binary_expression "*pbVar2 == *pcVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pcVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (return_statement "return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" return (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) ;) })))
(translation_unit "/* DWARF original prototype: bool do_is_defined_by_abi(Target_tilegx<64,_false> * this, Symbol *\n   sym) */\n\nbool __thiscall\nanon_unknown.dwarf_ca7751::Target_tilegx<64,_false>::do_is_defined_by_abi\n          (Target_tilegx<64,_false> *this,Symbol *sym)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)sym->name_;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}\n\n" comment (declaration "bool __thiscall\nanon_unknown.dwarf_ca7751::Target_tilegx<64,_false>::do_is_defined_by_abi\n          (Target_tilegx<64,_false> *this,Symbol *sym)\n\n{\n  long lVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_ca7751::" identifier . identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::do_is_defined_by_abi\n          (Target_tilegx<64,_false> *this,Symbol *sym)\n\n{\n  long" identifier > : : (function_declarator "do_is_defined_by_abi\n          (Target_tilegx<64,_false> *this,Symbol *sym)" identifier (parameter_list "(Target_tilegx<64,_false> *this,Symbol *sym)" ( (parameter_declaration "Target_tilegx" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *sym" type_identifier (pointer_declarator "*sym" * identifier)) ))) { long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "lVar1 = 0xf;" (assignment_expression "lVar1 = 0xf" identifier = number_literal) ;) (expression_statement "pcVar3 = "___tls_get_addr";" (assignment_expression "pcVar3 = "___tls_get_addr"" identifier = (string_literal ""___tls_get_addr"" " string_content ")) ;) (expression_statement "pbVar2 = (byte *)sym->name_;" (assignment_expression "pbVar2 = (byte *)sym->name_" identifier = (cast_expression "(byte *)sym->name_" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "sym->name_" identifier -> field_identifier))) ;) (do_statement "do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "pcVar3 = (char *)((byte *)pcVar3 + 1);" (assignment_expression "pcVar3 = (char *)((byte *)pcVar3 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar3 + 1)" ( (binary_expression "(byte *)pcVar3 + 1" (cast_expression "(byte *)pcVar3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < (byte)*pcVar3;" (assignment_expression "in_CF = *pbVar2 < (byte)*pcVar3" identifier = (binary_expression "*pbVar2 < (byte)*pcVar3" (pointer_expression "*pbVar2" * identifier) < (binary_expression "(byte)*pcVar3" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pcVar3;" (assignment_expression "in_ZF = *pbVar2 == *pcVar3" identifier = (binary_expression "*pbVar2 == *pcVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pcVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (return_statement "return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" return (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) ;) (ERROR "}" }))
(translation_unit "bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}\n\n" (function_definition "bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" primitive_type (function_declarator "FUN_00271a70(undefined8 param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "lVar1 = 0xf;" (assignment_expression "lVar1 = 0xf" identifier = number_literal) ;) (expression_statement "pcVar3 = "___tls_get_addr";" (assignment_expression "pcVar3 = "___tls_get_addr"" identifier = (string_literal ""___tls_get_addr"" " string_content ")) ;) (expression_statement "pbVar2 = (byte *)*param_2;" (assignment_expression "pbVar2 = (byte *)*param_2" identifier = (cast_expression "(byte *)*param_2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (do_statement "do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  }" { (expression_statement "pcVar3 = (char *)((byte *)pcVar3 + 1);" (assignment_expression "pcVar3 = (char *)((byte *)pcVar3 + 1)" identifier = (cast_expression "(char *)((byte *)pcVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pcVar3 + 1)" ( (binary_expression "(byte *)pcVar3 + 1" (cast_expression "(byte *)pcVar3" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (if_statement "if (lVar1 == 0) break;" if (parenthesized_expression "(lVar1 == 0)" ( (binary_expression "lVar1 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" identifier = (binary_expression "lVar1 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar2 < (byte)*pcVar3;" (assignment_expression "in_CF = *pbVar2 < (byte)*pcVar3" identifier = (binary_expression "*pbVar2 < (byte)*pcVar3" (pointer_expression "*pbVar2" * identifier) < (binary_expression "(byte)*pcVar3" (parenthesized_expression "(byte)" ( identifier )) * identifier))) ;) (expression_statement "in_ZF = *pbVar2 == *pcVar3;" (assignment_expression "in_ZF = *pbVar2 == *pcVar3" identifier = (binary_expression "*pbVar2 == *pcVar3" (pointer_expression "*pbVar2" * identifier) == (pointer_expression "*pcVar3" * identifier))) ;) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (return_statement "return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" return (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" ( (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" ! (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) && (unary_expression "!(bool)in_ZF" ! (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier))) )) == (cast_expression "(bool)in_CF" ( (type_descriptor "bool" primitive_type) ) identifier)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (binary_expression (parenthesized_expression ( IDENT )) * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (unary_expression ! (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) == (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))
(function_definition "bool FUN_00271a70(undefined8 param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" (primitive_type "bool") (function_declarator "FUN_00271a70(undefined8 param_1,undefined8 *param_2)" (identifier "FUN_00271a70") (parameter_list "(undefined8 param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  lVar1 = 0xf;\n  pcVar3 = "___tls_get_addr";\n  pbVar2 = (byte *)*param_2;\n  do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);\n  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined1 in_CF;" (type_identifier "undefined1") (identifier "in_CF") (; ";")) (declaration "undefined1 in_ZF;" (type_identifier "undefined1") (identifier "in_ZF") (; ";")) (expression_statement "lVar1 = 0xf;" (assignment_expression "lVar1 = 0xf" (identifier "lVar1") (= "=") (number_literal "0xf")) (; ";")) (expression_statement "pcVar3 = "___tls_get_addr";" (assignment_expression "pcVar3 = "___tls_get_addr"" (identifier "pcVar3") (= "=") (string_literal ""___tls_get_addr"" (" """) (string_content "___tls_get_addr") (" """))) (; ";")) (expression_statement "pbVar2 = (byte *)*param_2;" (assignment_expression "pbVar2 = (byte *)*param_2" (identifier "pbVar2") (= "=") (cast_expression "(byte *)*param_2" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (do_statement "do {\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  } while ((bool)in_ZF);" (do "do") (compound_statement "{\n    pcVar3 = (char *)((byte *)pcVar3 + 1);\n    if (lVar1 == 0) break;\n    lVar1 = lVar1 + -1;\n    in_CF = *pbVar2 < (byte)*pcVar3;\n    in_ZF = *pbVar2 == *pcVar3;\n    pbVar2 = pbVar2 + 1;\n  }" ({ "{") (expression_statement "pcVar3 = (char *)((byte *)pcVar3 + 1);" (assignment_expression "pcVar3 = (char *)((byte *)pcVar3 + 1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)((byte *)pcVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((byte *)pcVar3 + 1)" (( "(") (binary_expression "(byte *)pcVar3 + 1" (cast_expression "(byte *)pcVar3" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "pcVar3")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (lVar1 == 0) break;" (if "if") (parenthesized_expression "(lVar1 == 0)" (( "(") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar1 = lVar1 + -1;" (assignment_expression "lVar1 = lVar1 + -1" (identifier "lVar1") (= "=") (binary_expression "lVar1 + -1" (identifier "lVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "in_CF = *pbVar2 < (byte)*pcVar3;" (assignment_expression "in_CF = *pbVar2 < (byte)*pcVar3" (identifier "in_CF") (= "=") (binary_expression "*pbVar2 < (byte)*pcVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (< "<") (binary_expression "(byte)*pcVar3" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (* "*") (identifier "pcVar3")))) (; ";")) (expression_statement "in_ZF = *pbVar2 == *pcVar3;" (assignment_expression "in_ZF = *pbVar2 == *pcVar3" (identifier "in_ZF") (= "=") (binary_expression "*pbVar2 == *pcVar3" (pointer_expression "*pbVar2" (* "*") (identifier "pbVar2")) (== "==") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")))) (; ";")) (expression_statement "pbVar2 = pbVar2 + 1;" (assignment_expression "pbVar2 = pbVar2 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bool)in_ZF)" (( "(") (cast_expression "(bool)in_ZF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_ZF")) () ")")) (; ";")) (return_statement "return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;" (return "return") (binary_expression "(!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF" (parenthesized_expression "(!(bool)in_CF && !(bool)in_ZF)" (( "(") (binary_expression "!(bool)in_CF && !(bool)in_ZF" (unary_expression "!(bool)in_CF" (! "!") (cast_expression "(bool)in_CF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_CF"))) (&& "&&") (unary_expression "!(bool)in_ZF" (! "!") (cast_expression "(bool)in_ZF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_ZF")))) () ")")) (== "==") (cast_expression "(bool)in_CF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_CF"))) (; ";")) (} "}")))

/* DWARF original prototype: bool do_is_defined_by_abi(Target_tilegx<64,_false> * this, Symbol *
   sym) */

bool __thiscall
anon_unknown.dwarf_ca7751::Target_tilegx<64,_false>::do_is_defined_by_abi
          (Target_tilegx<64,_false> *this,Symbol *sym)

{
  long var_1;
  type_1 *var_3;
  char *var_2;
  type_2 in_CF;
  type_2 in_ZF;
  
  var_1 = 0xf;
  var_2 = "___tls_get_addr";
  var_3 = (type_1 *)sym->name_;
  do {
    var_2 = (char *)((type_1 *)var_2 + 1);
    if (var_1 == 0) break;
    var_1 = var_1 + -1;
    in_CF = *var_3 < (type_1)*var_2;
    in_ZF = *var_3 == *var_2;
    var_3 = var_3 + 1;
  } while ((bool)in_ZF);
  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (unary_expression argument: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))

bool MASKED(undefined8 param_1,undefined8 *param_2)

{
  long lVar1;
  byte *pbVar2;
  char *pcVar3;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  lVar1 = 0xf;
  pcVar3 = "___tls_get_addr";
  pbVar2 = (byte *)*param_2;
  do {
    pcVar3 = (char *)((byte *)pcVar3 + 1);
    if (lVar1 == 0) break;
    lVar1 = lVar1 + -1;
    in_CF = *pbVar2 < (byte)*pcVar3;
    in_ZF = *pbVar2 == *pcVar3;
    pbVar2 = pbVar2 + 1;
  } while ((bool)in_ZF);
  return (!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF;
}

