
/* WARNING: Unknown calling convention */

char * hol_entry_first_long(hol_entry *entry)

{
  char *pcVar1;
  argp_option *paVar2;
  argp_option *paVar3;
  
  paVar3 = entry->opt;
  if (entry->num == 0) {
    pcVar1 = (char *)0x0;
  }
  else {
    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;
    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {
      paVar3 = paVar3 + 1;
      if (paVar3 == paVar2) {
        return (char *)0x0;
      }
    }
  }
  return pcVar1;
}



long FUN_00103e03(long *param_1)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  
  plVar3 = (long *)*param_1;
  if ((int)param_1[1] == 0) {
    lVar1 = 0;
  }
  else {
    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;
    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {
      plVar3 = plVar3 + 6;
      if (plVar3 == plVar2) {
        return 0;
      }
    }
  }
  return lVar1;
}


MOV RDX,qword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x8]
TEST EAX,EAX
JZ 0x00103e3c
LEA EAX,[RAX + -0x1]
LEA RCX,[RAX + RAX*0x2 + 0x3]
SHL RCX,0x4
ADD RCX,RDX
JMP 0x00103e27
ADD RDX,0x30
CMP RDX,RCX
JZ 0x00103e36
MOV RAX,qword ptr [RDX]
TEST RAX,RAX
JZ 0x00103e1e
TEST byte ptr [RDX + 0x18],0x2
JNZ 0x00103e1e
RET
MOV EAX,0x0
RET
MOV EAX,0x0
JMP 0x00103e35
(translation_unit "long FUN_00103e03(long *param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_00103e03(long *param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00103e03(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (expression_statement "plVar3 = (long *)*param_1;" (assignment_expression "plVar3 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" if (parenthesized_expression "((int)param_1[1] == 0)" ( (binary_expression "(int)param_1[1] == 0" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n    lVar1 = 0;\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" else (compound_statement "{\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" { (expression_statement "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;" (assignment_expression "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" identifier = (binary_expression "plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" identifier + (binary_expression "((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" (parenthesized_expression "((ulong)((int)param_1[1] - 1) * 3 + 3)" ( (binary_expression "(ulong)((int)param_1[1] - 1) * 3 + 3" (binary_expression "(ulong)((int)param_1[1] - 1) * 3" (call_expression "(ulong)((int)param_1[1] - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)param_1[1] - 1)" ( (binary_expression "(int)param_1[1] - 1" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - number_literal) ))) * number_literal) + number_literal) )) * number_literal))) ;) (while_statement "while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)))" ( (parenthesized_expression "(lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))" ( (comma_expression "lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (assignment_expression "lVar1 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) , (binary_expression "lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (binary_expression "lVar1 == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(plVar3 + 3) & 2) != 0)" ( (binary_expression "(*(byte *)(plVar3 + 3) & 2) != 0" (parenthesized_expression "(*(byte *)(plVar3 + 3) & 2)" ( (binary_expression "*(byte *)(plVar3 + 3) & 2" (pointer_expression "*(byte *)(plVar3 + 3)" * (cast_expression "(byte *)(plVar3 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar3 + 3)" ( (binary_expression "plVar3 + 3" identifier + number_literal) )))) & number_literal) )) != number_literal) )))) )) )) (compound_statement "{\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" { (expression_statement "plVar3 = plVar3 + 6;" (assignment_expression "plVar3 = plVar3 + 6" identifier = (binary_expression "plVar3 + 6" identifier + number_literal)) ;) (if_statement "if (plVar3 == plVar2) {\n        return 0;\n      }" if (parenthesized_expression "(plVar3 == plVar2)" ( (binary_expression "plVar3 == plVar2" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) }))) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * hol_entry_first_long(hol_entry *entry)\n\n{\n  char *pcVar1;\n  argp_option *paVar2;\n  argp_option *paVar3;\n  \n  paVar3 = entry->opt;\n  if (entry->num == 0) {\n    pcVar1 = (char *)0x0;\n  }\n  else {\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * hol_entry_first_long(hol_entry *entry)\n\n{\n  char *pcVar1;\n  argp_option *paVar2;\n  argp_option *paVar3;\n  \n  paVar3 = entry->opt;\n  if (entry->num == 0) {\n    pcVar1 = (char *)0x0;\n  }\n  else {\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* hol_entry_first_long(hol_entry *entry)" * (function_declarator "hol_entry_first_long(hol_entry *entry)" identifier (parameter_list "(hol_entry *entry)" ( (parameter_declaration "hol_entry *entry" type_identifier (pointer_declarator "*entry" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  argp_option *paVar2;\n  argp_option *paVar3;\n  \n  paVar3 = entry->opt;\n  if (entry->num == 0) {\n    pcVar1 = (char *)0x0;\n  }\n  else {\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "argp_option *paVar2;" type_identifier (pointer_declarator "*paVar2" * identifier) ;) (declaration "argp_option *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (expression_statement "paVar3 = entry->opt;" (assignment_expression "paVar3 = entry->opt" identifier = (field_expression "entry->opt" identifier -> field_identifier)) ;) (if_statement "if (entry->num == 0) {\n    pcVar1 = (char *)0x0;\n  }\n  else {\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(entry->num == 0)" ( (binary_expression "entry->num == 0" (field_expression "entry->num" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    pcVar1 = (char *)0x0;\n  }" { (expression_statement "pcVar1 = (char *)0x0;" (assignment_expression "pcVar1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }" else (compound_statement "{\n    paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;\n    while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }\n  }" { (expression_statement "paVar2 = paVar3 + (ulong)(entry->num - 1) + 1;" (assignment_expression "paVar2 = paVar3 + (ulong)(entry->num - 1) + 1" identifier = (binary_expression "paVar3 + (ulong)(entry->num - 1) + 1" (binary_expression "paVar3 + (ulong)(entry->num - 1)" identifier + (call_expression "(ulong)(entry->num - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(entry->num - 1)" ( (binary_expression "entry->num - 1" (field_expression "entry->num" identifier -> field_identifier) - number_literal) )))) + number_literal)) ;) (while_statement "while ((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))) {\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }" while (parenthesized_expression "((pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0)))" ( (parenthesized_expression "(pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0))" ( (comma_expression "pcVar1 = paVar3->name, pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0)" (assignment_expression "pcVar1 = paVar3->name" identifier = (field_expression "paVar3->name" identifier -> field_identifier)) , (binary_expression "pcVar1 == (char *)0x0 || ((paVar3->flags & 2) != 0)" (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "((paVar3->flags & 2) != 0)" ( (binary_expression "(paVar3->flags & 2) != 0" (parenthesized_expression "(paVar3->flags & 2)" ( (binary_expression "paVar3->flags & 2" (field_expression "paVar3->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )))) )) )) (compound_statement "{\n      paVar3 = paVar3 + 1;\n      if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }\n    }" { (expression_statement "paVar3 = paVar3 + 1;" (assignment_expression "paVar3 = paVar3 + 1" identifier = (binary_expression "paVar3 + 1" identifier + number_literal)) ;) (if_statement "if (paVar3 == paVar2) {\n        return (char *)0x0;\n      }" if (parenthesized_expression "(paVar3 == paVar2)" ( (binary_expression "paVar3 == paVar2" identifier == identifier) )) (compound_statement "{\n        return (char *)0x0;\n      }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) }))) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "long FUN_00103e03(long *param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_00103e03(long *param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00103e03(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (expression_statement "plVar3 = (long *)*param_1;" (assignment_expression "plVar3 = (long *)*param_1" identifier = (cast_expression "(long *)*param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" if (parenthesized_expression "((int)param_1[1] == 0)" ( (binary_expression "(int)param_1[1] == 0" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == number_literal) )) (compound_statement "{\n    lVar1 = 0;\n  }" { (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" else (compound_statement "{\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" { (expression_statement "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;" (assignment_expression "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" identifier = (binary_expression "plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" identifier + (binary_expression "((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" (parenthesized_expression "((ulong)((int)param_1[1] - 1) * 3 + 3)" ( (binary_expression "(ulong)((int)param_1[1] - 1) * 3 + 3" (binary_expression "(ulong)((int)param_1[1] - 1) * 3" (call_expression "(ulong)((int)param_1[1] - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)param_1[1] - 1)" ( (binary_expression "(int)param_1[1] - 1" (cast_expression "(int)param_1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) - number_literal) ))) * number_literal) + number_literal) )) * number_literal))) ;) (while_statement "while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)))" ( (parenthesized_expression "(lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))" ( (comma_expression "lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (assignment_expression "lVar1 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) , (binary_expression "lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (binary_expression "lVar1 == 0" identifier == number_literal) || (parenthesized_expression "((*(byte *)(plVar3 + 3) & 2) != 0)" ( (binary_expression "(*(byte *)(plVar3 + 3) & 2) != 0" (parenthesized_expression "(*(byte *)(plVar3 + 3) & 2)" ( (binary_expression "*(byte *)(plVar3 + 3) & 2" (pointer_expression "*(byte *)(plVar3 + 3)" * (cast_expression "(byte *)(plVar3 + 3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar3 + 3)" ( (binary_expression "plVar3 + 3" identifier + number_literal) )))) & number_literal) )) != number_literal) )))) )) )) (compound_statement "{\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" { (expression_statement "plVar3 = plVar3 + 6;" (assignment_expression "plVar3 = plVar3 + 6" identifier = (binary_expression "plVar3 + 6" identifier + number_literal)) ;) (if_statement "if (plVar3 == plVar2) {\n        return 0;\n      }" if (parenthesized_expression "(plVar3 == plVar2)" ( (binary_expression "plVar3 == plVar2" identifier == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) }))) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) - LIT) ))) * LIT) + LIT) )) * LIT))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) }))) (return_statement return IDENT ;) })))
(function_definition "long FUN_00103e03(long *param_1)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00103e03(long *param_1)" (identifier "FUN_00103e03") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  \n  plVar3 = (long *)*param_1;\n  if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (expression_statement "plVar3 = (long *)*param_1;" (assignment_expression "plVar3 = (long *)*param_1" (identifier "plVar3") (= "=") (cast_expression "(long *)*param_1" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((int)param_1[1] == 0) {\n    lVar1 = 0;\n  }\n  else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((int)param_1[1] == 0)" (( "(") (binary_expression "(int)param_1[1] == 0" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = 0;\n  }" ({ "{") (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;\n    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }\n  }" ({ "{") (expression_statement "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;" (assignment_expression "plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" (identifier "plVar2") (= "=") (binary_expression "plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" (identifier "plVar3") (+ "+") (binary_expression "((ulong)((int)param_1[1] - 1) * 3 + 3) * 2" (parenthesized_expression "((ulong)((int)param_1[1] - 1) * 3 + 3)" (( "(") (binary_expression "(ulong)((int)param_1[1] - 1) * 3 + 3" (binary_expression "(ulong)((int)param_1[1] - 1) * 3" (call_expression "(ulong)((int)param_1[1] - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((int)param_1[1] - 1)" (( "(") (binary_expression "(int)param_1[1] - 1" (cast_expression "(int)param_1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "3")) (+ "+") (number_literal "3")) () ")")) (* "*") (number_literal "2")))) (; ";")) (while_statement "while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" (while "while") (parenthesized_expression "((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)))" (( "(") (parenthesized_expression "(lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))" (( "(") (comma_expression "lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (assignment_expression "lVar1 = *plVar3" (identifier "lVar1") (= "=") (pointer_expression "*plVar3" (* "*") (identifier "plVar3"))) (, ",") (binary_expression "lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0)" (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((*(byte *)(plVar3 + 3) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(plVar3 + 3) & 2) != 0" (parenthesized_expression "(*(byte *)(plVar3 + 3) & 2)" (( "(") (binary_expression "*(byte *)(plVar3 + 3) & 2" (pointer_expression "*(byte *)(plVar3 + 3)" (* "*") (cast_expression "(byte *)(plVar3 + 3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar3 + 3)" (( "(") (binary_expression "plVar3 + 3" (identifier "plVar3") (+ "+") (number_literal "3")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")))) () ")")) () ")")) (compound_statement "{\n      plVar3 = plVar3 + 6;\n      if (plVar3 == plVar2) {\n        return 0;\n      }\n    }" ({ "{") (expression_statement "plVar3 = plVar3 + 6;" (assignment_expression "plVar3 = plVar3 + 6" (identifier "plVar3") (= "=") (binary_expression "plVar3 + 6" (identifier "plVar3") (+ "+") (number_literal "6"))) (; ";")) (if_statement "if (plVar3 == plVar2) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(plVar3 == plVar2)" (( "(") (binary_expression "plVar3 == plVar2" (identifier "plVar3") (== "==") (identifier "plVar2")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (} "}")))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

char * function_1(type_1 *entry)

{
  char *var_2;
  type_2 *var_3;
  type_2 *var_1;
  
  var_1 = entry->opt;
  if (entry->num == 0) {
    var_2 = (char *)0x0;
  }
  else {
    var_3 = var_1 + (ulong)(entry->num - 1) + 1;
    while ((var_2 = var_1->name, var_2 == (char *)0x0 || ((var_1->flags & 2) != 0))) {
      var_1 = var_1 + 1;
      if (var_1 == var_3) {
        return (char *)0x0;
      }
    }
  }
  return var_2;
}


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

long MASKED(long *param_1)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  
  plVar3 = (long *)*param_1;
  if ((int)param_1[1] == 0) {
    lVar1 = 0;
  }
  else {
    plVar2 = plVar3 + ((ulong)((int)param_1[1] - 1) * 3 + 3) * 2;
    while ((lVar1 = *plVar3, lVar1 == 0 || ((*(byte *)(plVar3 + 3) & 2) != 0))) {
      plVar3 = plVar3 + 6;
      if (plVar3 == plVar2) {
        return 0;
      }
    }
  }
  return lVar1;
}

