
void convert_efi_target(char *efi)

{
  int iVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  efi[0] = 'p';
  efi[1] = 'e';
  lVar2 = 5;
  efi[2] = 'i';
  pbVar3 = (byte *)(efi + 4);
  pbVar4 = &DAT_0011e004;
  do {
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    in_CF = *pbVar3 < *pbVar4;
    in_ZF = *pbVar3 == *pbVar4;
    pbVar3 = pbVar3 + 1;
    pbVar4 = pbVar4 + 1;
  } while ((bool)in_ZF);
  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {
    efi[5] = '3';
    efi[6] = '8';
    efi[7] = '6';
  }
  else {
    iVar1 = strcmp(efi + 4,"x86_64");
    if (iVar1 == 0) {
      efi[7] = '-';
      return;
    }
  }
  return;
}



void FUN_00107290(undefined2 *param_1)

{
  int iVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  *param_1 = 0x6570;
  lVar2 = 5;
  *(undefined1 *)(param_1 + 1) = 0x69;
  pbVar3 = (byte *)(param_1 + 2);
  pbVar4 = &DAT_0011e004;
  do {
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    in_CF = *pbVar3 < *pbVar4;
    in_ZF = *pbVar3 == *pbVar4;
    pbVar3 = pbVar3 + 1;
    pbVar4 = pbVar4 + 1;
  } while ((bool)in_ZF);
  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {
    *(undefined2 *)((long)param_1 + 5) = 0x3833;
    *(undefined1 *)((long)param_1 + 7) = 0x36;
  }
  else {
    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");
    if (iVar1 == 0) {
      *(undefined1 *)((long)param_1 + 7) = 0x2d;
      return;
    }
  }
  return;
}


MOV EAX,0x6570
PUSH RBX
LEA R8,[RDI + 0x4]
MOV RBX,RDI
MOV word ptr [RDI],AX
MOV ECX,0x5
MOV RSI,R8
MOV byte ptr [RDI + 0x2],0x69
LEA RDI,[0x11e004]
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JNZ 0x001072cb
MOV word ptr [RBX + 0x5],0x3833
MOV byte ptr [RBX + 0x7],0x36
POP RBX
RET
LEA RSI,[0x11e009]
MOV RDI,R8
CALL 0x00104460
TEST EAX,EAX
JNZ 0x001072c9
MOV byte ptr [RBX + 0x7],0x2d
POP RBX
RET
(translation_unit "void FUN_00107290(undefined2 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00107290(undefined2 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00107290(undefined2 *param_1)" identifier (parameter_list "(undefined2 *param_1)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "*param_1 = 0x6570;" (assignment_expression "*param_1 = 0x6570" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "lVar2 = 5;" (assignment_expression "lVar2 = 5" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0x69;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0x69" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pbVar3 = (byte *)(param_1 + 2);" (assignment_expression "pbVar3 = (byte *)(param_1 + 2)" identifier = (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pbVar4 = &DAT_0011e004;" (assignment_expression "pbVar4 = &DAT_0011e004" identifier = (pointer_expression "&DAT_0011e004" & identifier)) ;) (do_statement "do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar3 < *pbVar4;" (assignment_expression "in_CF = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "in_ZF = *pbVar3 == *pbVar4;" (assignment_expression "in_ZF = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" if (parenthesized_expression "((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF)" ( (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)) )) (compound_statement "{\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }" { (expression_statement "*(undefined2 *)((long)param_1 + 5) = 0x3833;" (assignment_expression "*(undefined2 *)((long)param_1 + 5) = 0x3833" (pointer_expression "*(undefined2 *)((long)param_1 + 5)" * (cast_expression "(undefined2 *)((long)param_1 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x36;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x36" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" * (cast_expression "(undefined1 *)((long)param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 7)" ( (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" { (expression_statement "iVar1 = strcmp((char *)(param_1 + 2),"x86_64");" (assignment_expression "iVar1 = strcmp((char *)(param_1 + 2),"x86_64")" identifier = (call_expression "strcmp((char *)(param_1 + 2),"x86_64")" identifier (argument_list "((char *)(param_1 + 2),"x86_64")" ( (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , (string_literal ""x86_64"" " string_content ") )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" { (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x2d;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x2d" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" * (cast_expression "(undefined1 *)((long)param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 7)" ( (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void convert_efi_target(char *efi)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  efi[0] = 'p';\n  efi[1] = 'e';\n  lVar2 = 5;\n  efi[2] = 'i';\n  pbVar3 = (byte *)(efi + 4);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    efi[5] = '3';\n    efi[6] = '8';\n    efi[7] = '6';\n  }\n  else {\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void convert_efi_target(char *efi)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  efi[0] = 'p';\n  efi[1] = 'e';\n  lVar2 = 5;\n  efi[2] = 'i';\n  pbVar3 = (byte *)(efi + 4);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    efi[5] = '3';\n    efi[6] = '8';\n    efi[7] = '6';\n  }\n  else {\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "convert_efi_target(char *efi)" identifier (parameter_list "(char *efi)" ( (parameter_declaration "char *efi" primitive_type (pointer_declarator "*efi" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  efi[0] = 'p';\n  efi[1] = 'e';\n  lVar2 = 5;\n  efi[2] = 'i';\n  pbVar3 = (byte *)(efi + 4);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    efi[5] = '3';\n    efi[6] = '8';\n    efi[7] = '6';\n  }\n  else {\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "efi[0] = 'p';" (assignment_expression "efi[0] = 'p'" (subscript_expression "efi[0]" identifier [ number_literal ]) = (char_literal "'p'" ' character ')) ;) (expression_statement "efi[1] = 'e';" (assignment_expression "efi[1] = 'e'" (subscript_expression "efi[1]" identifier [ number_literal ]) = (char_literal "'e'" ' character ')) ;) (expression_statement "lVar2 = 5;" (assignment_expression "lVar2 = 5" identifier = number_literal) ;) (expression_statement "efi[2] = 'i';" (assignment_expression "efi[2] = 'i'" (subscript_expression "efi[2]" identifier [ number_literal ]) = (char_literal "'i'" ' character ')) ;) (expression_statement "pbVar3 = (byte *)(efi + 4);" (assignment_expression "pbVar3 = (byte *)(efi + 4)" identifier = (cast_expression "(byte *)(efi + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(efi + 4)" ( (binary_expression "efi + 4" identifier + number_literal) )))) ;) (expression_statement "pbVar4 = &DAT_0011e004;" (assignment_expression "pbVar4 = &DAT_0011e004" identifier = (pointer_expression "&DAT_0011e004" & identifier)) ;) (do_statement "do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar3 < *pbVar4;" (assignment_expression "in_CF = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "in_ZF = *pbVar3 == *pbVar4;" (assignment_expression "in_ZF = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    efi[5] = '3';\n    efi[6] = '8';\n    efi[7] = '6';\n  }\n  else {\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }" if (parenthesized_expression "((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF)" ( (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)) )) (compound_statement "{\n    efi[5] = '3';\n    efi[6] = '8';\n    efi[7] = '6';\n  }" { (expression_statement "efi[5] = '3';" (assignment_expression "efi[5] = '3'" (subscript_expression "efi[5]" identifier [ number_literal ]) = (char_literal "'3'" ' character ')) ;) (expression_statement "efi[6] = '8';" (assignment_expression "efi[6] = '8'" (subscript_expression "efi[6]" identifier [ number_literal ]) = (char_literal "'8'" ' character ')) ;) (expression_statement "efi[7] = '6';" (assignment_expression "efi[7] = '6'" (subscript_expression "efi[7]" identifier [ number_literal ]) = (char_literal "'6'" ' character ')) ;) }) (else_clause "else {\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = strcmp(efi + 4,"x86_64");\n    if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }\n  }" { (expression_statement "iVar1 = strcmp(efi + 4,"x86_64");" (assignment_expression "iVar1 = strcmp(efi + 4,"x86_64")" identifier = (call_expression "strcmp(efi + 4,"x86_64")" identifier (argument_list "(efi + 4,"x86_64")" ( (binary_expression "efi + 4" identifier + number_literal) , (string_literal ""x86_64"" " string_content ") )))) ;) (if_statement "if (iVar1 == 0) {\n      efi[7] = '-';\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      efi[7] = '-';\n      return;\n    }" { (expression_statement "efi[7] = '-';" (assignment_expression "efi[7] = '-'" (subscript_expression "efi[7]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) (return_statement "return;" return ;) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00107290(undefined2 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00107290(undefined2 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00107290(undefined2 *param_1)" identifier (parameter_list "(undefined2 *param_1)" ( (parameter_declaration "undefined2 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "undefined1 in_CF;" type_identifier identifier ;) (declaration "undefined1 in_ZF;" type_identifier identifier ;) (expression_statement "*param_1 = 0x6570;" (assignment_expression "*param_1 = 0x6570" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "lVar2 = 5;" (assignment_expression "lVar2 = 5" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 1) = 0x69;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0x69" (pointer_expression "*(undefined1 *)(param_1 + 1)" * (cast_expression "(undefined1 *)(param_1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pbVar3 = (byte *)(param_1 + 2);" (assignment_expression "pbVar3 = (byte *)(param_1 + 2)" identifier = (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (expression_statement "pbVar4 = &DAT_0011e004;" (assignment_expression "pbVar4 = &DAT_0011e004" identifier = (pointer_expression "&DAT_0011e004" & identifier)) ;) (do_statement "do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);" do (compound_statement "{\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  }" { (if_statement "if (lVar2 == 0) break;" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" identifier = (binary_expression "lVar2 + -1" identifier + number_literal)) ;) (expression_statement "in_CF = *pbVar3 < *pbVar4;" (assignment_expression "in_CF = *pbVar3 < *pbVar4" identifier = (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" * identifier) < (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "in_ZF = *pbVar3 == *pbVar4;" (assignment_expression "in_ZF = *pbVar3 == *pbVar4" identifier = (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" * identifier) == (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((bool)in_ZF)" ( (cast_expression "(bool)in_ZF" ( (type_descriptor "bool" primitive_type) ) identifier) )) ;) (if_statement "if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" if (parenthesized_expression "((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF)" ( (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)) )) (compound_statement "{\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }" { (expression_statement "*(undefined2 *)((long)param_1 + 5) = 0x3833;" (assignment_expression "*(undefined2 *)((long)param_1 + 5) = 0x3833" (pointer_expression "*(undefined2 *)((long)param_1 + 5)" * (cast_expression "(undefined2 *)((long)param_1 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 5)" ( (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x36;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x36" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" * (cast_expression "(undefined1 *)((long)param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 7)" ( (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" else (compound_statement "{\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" { (expression_statement "iVar1 = strcmp((char *)(param_1 + 2),"x86_64");" (assignment_expression "iVar1 = strcmp((char *)(param_1 + 2),"x86_64")" identifier = (call_expression "strcmp((char *)(param_1 + 2),"x86_64")" identifier (argument_list "((char *)(param_1 + 2),"x86_64")" ( (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , (string_literal ""x86_64"" " string_content ") )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" { (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x2d;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x2d" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" * (cast_expression "(undefined1 *)((long)param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 7)" ( (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) }))) (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 (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (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) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE) ) IDENT) )) ;) (if_statement if (parenthesized_expression ( (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)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })) }))) (return_statement return ;) })))
(function_definition "void FUN_00107290(undefined2 *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00107290(undefined2 *param_1)" (identifier "FUN_00107290") (parameter_list "(undefined2 *param_1)" (( "(") (parameter_declaration "undefined2 *param_1" (type_identifier "undefined2") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  undefined1 in_CF;\n  undefined1 in_ZF;\n  \n  *param_1 = 0x6570;\n  lVar2 = 5;\n  *(undefined1 *)(param_1 + 1) = 0x69;\n  pbVar3 = (byte *)(param_1 + 2);\n  pbVar4 = &DAT_0011e004;\n  do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);\n  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "undefined1 in_CF;" (type_identifier "undefined1") (identifier "in_CF") (; ";")) (declaration "undefined1 in_ZF;" (type_identifier "undefined1") (identifier "in_ZF") (; ";")) (expression_statement "*param_1 = 0x6570;" (assignment_expression "*param_1 = 0x6570" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x6570")) (; ";")) (expression_statement "lVar2 = 5;" (assignment_expression "lVar2 = 5" (identifier "lVar2") (= "=") (number_literal "5")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 1) = 0x69;" (assignment_expression "*(undefined1 *)(param_1 + 1) = 0x69" (pointer_expression "*(undefined1 *)(param_1 + 1)" (* "*") (cast_expression "(undefined1 *)(param_1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0x69")) (; ";")) (expression_statement "pbVar3 = (byte *)(param_1 + 2);" (assignment_expression "pbVar3 = (byte *)(param_1 + 2)" (identifier "pbVar3") (= "=") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "pbVar4 = &DAT_0011e004;" (assignment_expression "pbVar4 = &DAT_0011e004" (identifier "pbVar4") (= "=") (pointer_expression "&DAT_0011e004" (& "&") (identifier "DAT_0011e004"))) (; ";")) (do_statement "do {\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  } while ((bool)in_ZF);" (do "do") (compound_statement "{\n    if (lVar2 == 0) break;\n    lVar2 = lVar2 + -1;\n    in_CF = *pbVar3 < *pbVar4;\n    in_ZF = *pbVar3 == *pbVar4;\n    pbVar3 = pbVar3 + 1;\n    pbVar4 = pbVar4 + 1;\n  }" ({ "{") (if_statement "if (lVar2 == 0) break;" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar2 = lVar2 + -1;" (assignment_expression "lVar2 = lVar2 + -1" (identifier "lVar2") (= "=") (binary_expression "lVar2 + -1" (identifier "lVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "in_CF = *pbVar3 < *pbVar4;" (assignment_expression "in_CF = *pbVar3 < *pbVar4" (identifier "in_CF") (= "=") (binary_expression "*pbVar3 < *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (< "<") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "in_ZF = *pbVar3 == *pbVar4;" (assignment_expression "in_ZF = *pbVar3 == *pbVar4" (identifier "in_ZF") (= "=") (binary_expression "*pbVar3 == *pbVar4" (pointer_expression "*pbVar3" (* "*") (identifier "pbVar3")) (== "==") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 1" (identifier "pbVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bool)in_ZF)" (( "(") (cast_expression "(bool)in_ZF" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (identifier "in_ZF")) () ")")) (; ";")) (if_statement "if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }\n  else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF)" (( "(") (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"))) () ")")) (compound_statement "{\n    *(undefined2 *)((long)param_1 + 5) = 0x3833;\n    *(undefined1 *)((long)param_1 + 7) = 0x36;\n  }" ({ "{") (expression_statement "*(undefined2 *)((long)param_1 + 5) = 0x3833;" (assignment_expression "*(undefined2 *)((long)param_1 + 5) = 0x3833" (pointer_expression "*(undefined2 *)((long)param_1 + 5)" (* "*") (cast_expression "(undefined2 *)((long)param_1 + 5)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 5)" (( "(") (binary_expression "(long)param_1 + 5" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0x3833")) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x36;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x36" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 7)" (( "(") (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "0x36")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");\n    if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar1 = strcmp((char *)(param_1 + 2),"x86_64");" (assignment_expression "iVar1 = strcmp((char *)(param_1 + 2),"x86_64")" (identifier "iVar1") (= "=") (call_expression "strcmp((char *)(param_1 + 2),"x86_64")" (identifier "strcmp") (argument_list "((char *)(param_1 + 2),"x86_64")" (( "(") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (, ",") (string_literal ""x86_64"" (" """) (string_content "x86_64") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)((long)param_1 + 7) = 0x2d;\n      return;\n    }" ({ "{") (expression_statement "*(undefined1 *)((long)param_1 + 7) = 0x2d;" (assignment_expression "*(undefined1 *)((long)param_1 + 7) = 0x2d" (pointer_expression "*(undefined1 *)((long)param_1 + 7)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 7)" (( "(") (binary_expression "(long)param_1 + 7" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "0x2d")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *var_1)

{
  int var_6;
  long var_2;
  type_1 *var_3;
  type_1 *var_4;
  type_2 in_CF;
  type_2 in_ZF;
  
  var_1[0] = 'p';
  var_1[1] = 'e';
  var_2 = 5;
  var_1[2] = 'i';
  var_3 = (type_1 *)(var_1 + 4);
  var_4 = &DAT_0011e004;
  do {
    if (var_2 == 0) break;
    var_2 = var_2 + -1;
    in_CF = *var_3 < *var_4;
    in_ZF = *var_3 == *var_4;
    var_3 = var_3 + 1;
    var_4 = var_4 + 1;
  } while ((bool)in_ZF);
  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {
    var_1[5] = '3';
    var_1[6] = '8';
    var_1[7] = '6';
  }
  else {
    var_6 = var_5(var_1 + 4,"x86_64");
    if (var_6 == 0) {
      var_1[7] = '-';
      return;
    }
  }
  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: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_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))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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)))) (do_statement body: (compound_statement (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: (pointer_expression argument: (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)))) (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)))) (if_statement condition: (parenthesized_expression (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)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (return_statement)))))) (return_statement))))

void MASKED(undefined2 *param_1)

{
  int iVar1;
  long lVar2;
  byte *pbVar3;
  byte *pbVar4;
  undefined1 in_CF;
  undefined1 in_ZF;
  
  *param_1 = 0x6570;
  lVar2 = 5;
  *(undefined1 *)(param_1 + 1) = 0x69;
  pbVar3 = (byte *)(param_1 + 2);
  pbVar4 = &DAT_0011e004;
  do {
    if (lVar2 == 0) break;
    lVar2 = lVar2 + -1;
    in_CF = *pbVar3 < *pbVar4;
    in_ZF = *pbVar3 == *pbVar4;
    pbVar3 = pbVar3 + 1;
    pbVar4 = pbVar4 + 1;
  } while ((bool)in_ZF);
  if ((!(bool)in_CF && !(bool)in_ZF) == (bool)in_CF) {
    *(undefined2 *)((long)param_1 + 5) = 0x3833;
    *(undefined1 *)((long)param_1 + 7) = 0x36;
  }
  else {
    iVar1 = strcmp((char *)(param_1 + 2),"x86_64");
    if (iVar1 == 0) {
      *(undefined1 *)((long)param_1 + 7) = 0x2d;
      return;
    }
  }
  return;
}

