
void flags_argmatch(char *opt,char **keys,int *values,int all,int *flags,char *args)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  byte *arg;
  ptrdiff_t pVar4;
  long lVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (args == (char *)0x0) {
    *flags = *flags | all;
    return;
  }
  arg = (byte *)strtok(args,",");
  do {
    bVar9 = arg == (byte *)0x0;
    if (bVar9) {
      return;
    }
    bVar8 = false;
    lVar5 = 3;
    pbVar6 = arg;
    pbVar7 = &DAT_00149684;
    do {
      if (lVar5 == 0) break;
      lVar5 = lVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;
      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);
      uVar2 = values[pVar4];
      uVar3 = all;
      uVar1 = values[pVar4];
    }
    else {
      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);
      uVar3 = values[pVar4];
      uVar2 = all;
      uVar1 = uVar3;
    }
    if (uVar1 == 0) {
      uVar3 = uVar3 | *flags;
    }
    else {
      uVar3 = ~uVar2 & *flags;
    }
    *flags = uVar3;
    arg = (byte *)strtok((char *)0x0,",");
  } while( true );
}



void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,
                 char *param_6)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  byte *pbVar4;
  long lVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (param_6 == (char *)0x0) {
    *param_5 = *param_5 | param_4;
    return;
  }
  pbVar4 = (byte *)strtok(param_6,",");
  do {
    bVar9 = pbVar4 == (byte *)0x0;
    if (bVar9) {
      return;
    }
    bVar8 = false;
    lVar5 = 3;
    pbVar6 = pbVar4;
    pbVar7 = &DAT_00149684;
    do {
      if (lVar5 == 0) break;
      lVar5 = lVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;
      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);
      uVar1 = *(uint *)(param_3 + lVar5 * 4);
      uVar3 = param_4;
      uVar2 = uVar1;
    }
    else {
      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);
      uVar3 = *(uint *)(param_3 + lVar5 * 4);
      uVar1 = param_4;
      uVar2 = uVar3;
    }
    if (uVar2 == 0) {
      uVar3 = uVar3 | *param_5;
    }
    else {
      uVar3 = ~uVar1 & *param_5;
    }
    *param_5 = uVar3;
    pbVar4 = (byte *)strtok((char *)0x0,",");
  } while( true );
}


TEST R9,R9
JZ 0x0010c1bf
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,R8
MOV R15D,ECX
MOV RBP,RDX
MOV R13,RSI
MOV R12,RDI
LEA RSI,[0x149539]
MOV RDI,R9
CALL 0x001054d0
TEST RAX,RAX
JZ 0x0010c1f8
LEA R14,[0x149684]
JMP 0x0010c180
MOV EAX,R15D
NOT EAX
AND EAX,dword ptr [RBX]
MOV dword ptr [RBX],EAX
LEA RSI,[0x149539]
MOV EDI,0x0
CALL 0x001054d0
TEST RAX,RAX
JZ 0x0010c1f8
MOV ECX,0x3
MOV RSI,RAX
MOV RDI,R14
CMPSB.REPE RDI,RSI
SETA DL
SBB DL,0x0
TEST DL,DL
JZ 0x0010c1c3
MOV R9,qword ptr [0x00162578]
MOV R8D,0x4
MOV RCX,RBP
MOV RDX,R13
MOV RSI,RAX
MOV RDI,R12
CALL 0x00135775
MOV EAX,dword ptr [RBP + RAX*0x4]
TEST EAX,EAX
JZ 0x0010c161
JMP 0x0010c1f1
OR dword ptr [R8],ECX
RET
LEA RSI,[RAX + 0x3]
MOV R9,qword ptr [0x00162578]
MOV R8D,0x4
MOV RCX,RBP
MOV RDX,R13
MOV RDI,R12
CALL 0x00135775
MOV EAX,dword ptr [RBP + RAX*0x4]
TEST EAX,EAX
JNZ 0x0010c164
MOV EAX,R15D
OR EAX,dword ptr [RBX]
JMP 0x0010c168
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}\n\n" (function_definition "void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" primitive_type (function_declarator "FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }" if (parenthesized_expression "(param_6 == (char *)0x0)" ( (binary_expression "param_6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = *param_5 | param_4;\n    return;\n  }" { (expression_statement "*param_5 = *param_5 | param_4;" (assignment_expression "*param_5 = *param_5 | param_4" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 | param_4" (pointer_expression "*param_5" * identifier) | identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar4 = (byte *)strtok(param_6,",");" (assignment_expression "pbVar4 = (byte *)strtok(param_6,",")" identifier = (cast_expression "(byte *)strtok(param_6,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok(param_6,",")" identifier (argument_list "(param_6,",")" ( identifier , (string_literal "","" " string_content ") ))))) ;) (do_statement "do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );" do (compound_statement "{\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  }" { (expression_statement "bVar9 = pbVar4 == (byte *)0x0;" (assignment_expression "bVar9 = pbVar4 == (byte *)0x0" identifier = (binary_expression "pbVar4 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar9) {\n      return;\n    }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" identifier = number_literal) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar7 = &DAT_00149684;" (assignment_expression "pbVar7 = &DAT_00149684" identifier = (pointer_expression "&DAT_00149684" & identifier)) ;) (do_statement "do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }" { (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" identifier = (call_expression "FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" identifier (argument_list "(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" ( identifier , (binary_expression "pbVar4 + 3" identifier + number_literal) , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar1 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar1 = *(uint *)(param_3 + lVar5 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" * (cast_expression "(uint *)(param_3 + lVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar5 * 4)" ( (binary_expression "param_3 + lVar5 * 4" identifier + (binary_expression "lVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = param_4;" (assignment_expression "uVar3 = param_4" identifier = identifier) ;) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" else (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" { (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" identifier = (call_expression "FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" identifier (argument_list "(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" ( identifier , identifier , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar3 = *(uint *)(param_3 + lVar5 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" * (cast_expression "(uint *)(param_3 + lVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar5 * 4)" ( (binary_expression "param_3 + lVar5 * 4" identifier + (binary_expression "lVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar1 = param_4;" (assignment_expression "uVar1 = param_4" identifier = identifier) ;) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) }))) (if_statement "if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = uVar3 | *param_5;\n    }" { (expression_statement "uVar3 = uVar3 | *param_5;" (assignment_expression "uVar3 = uVar3 | *param_5" identifier = (binary_expression "uVar3 | *param_5" identifier | (pointer_expression "*param_5" * identifier))) ;) }) (else_clause "else {\n      uVar3 = ~uVar1 & *param_5;\n    }" else (compound_statement "{\n      uVar3 = ~uVar1 & *param_5;\n    }" { (expression_statement "uVar3 = ~uVar1 & *param_5;" (assignment_expression "uVar3 = ~uVar1 & *param_5" identifier = (binary_expression "~uVar1 & *param_5" (unary_expression "~uVar1" ~ identifier) & (pointer_expression "*param_5" * identifier))) ;) }))) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "pbVar4 = (byte *)strtok((char *)0x0,",");" (assignment_expression "pbVar4 = (byte *)strtok((char *)0x0,",")" identifier = (cast_expression "(byte *)strtok((char *)0x0,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok((char *)0x0,",")" identifier (argument_list "((char *)0x0,",")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "","" " string_content ") ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void flags_argmatch(char *opt,char **keys,int *values,int all,int *flags,char *args)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *arg;\n  ptrdiff_t pVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (args == (char *)0x0) {\n    *flags = *flags | all;\n    return;\n  }\n  arg = (byte *)strtok(args,",");\n  do {\n    bVar9 = arg == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = arg;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }\n    if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }\n    *flags = uVar3;\n    arg = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}\n\n" (function_definition "void flags_argmatch(char *opt,char **keys,int *values,int all,int *flags,char *args)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *arg;\n  ptrdiff_t pVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (args == (char *)0x0) {\n    *flags = *flags | all;\n    return;\n  }\n  arg = (byte *)strtok(args,",");\n  do {\n    bVar9 = arg == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = arg;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }\n    if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }\n    *flags = uVar3;\n    arg = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" primitive_type (function_declarator "flags_argmatch(char *opt,char **keys,int *values,int all,int *flags,char *args)" identifier (parameter_list "(char *opt,char **keys,int *values,int all,int *flags,char *args)" ( (parameter_declaration "char *opt" primitive_type (pointer_declarator "*opt" * identifier)) , (parameter_declaration "char **keys" primitive_type (pointer_declarator "**keys" * (pointer_declarator "*keys" * identifier))) , (parameter_declaration "int *values" primitive_type (pointer_declarator "*values" * identifier)) , (parameter_declaration "int all" primitive_type identifier) , (parameter_declaration "int *flags" primitive_type (pointer_declarator "*flags" * identifier)) , (parameter_declaration "char *args" primitive_type (pointer_declarator "*args" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *arg;\n  ptrdiff_t pVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (args == (char *)0x0) {\n    *flags = *flags | all;\n    return;\n  }\n  arg = (byte *)strtok(args,",");\n  do {\n    bVar9 = arg == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = arg;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }\n    if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }\n    *flags = uVar3;\n    arg = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *arg;" type_identifier (pointer_declarator "*arg" * identifier) ;) (declaration "ptrdiff_t pVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (args == (char *)0x0) {\n    *flags = *flags | all;\n    return;\n  }" if (parenthesized_expression "(args == (char *)0x0)" ( (binary_expression "args == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *flags = *flags | all;\n    return;\n  }" { (expression_statement "*flags = *flags | all;" (assignment_expression "*flags = *flags | all" (pointer_expression "*flags" * identifier) = (binary_expression "*flags | all" (pointer_expression "*flags" * identifier) | identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "arg = (byte *)strtok(args,",");" (assignment_expression "arg = (byte *)strtok(args,",")" identifier = (cast_expression "(byte *)strtok(args,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok(args,",")" identifier (argument_list "(args,",")" ( identifier , (string_literal "","" " string_content ") ))))) ;) (do_statement "do {\n    bVar9 = arg == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = arg;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }\n    if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }\n    *flags = uVar3;\n    arg = (byte *)strtok((char *)0x0,",");\n  } while( true );" do (compound_statement "{\n    bVar9 = arg == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = arg;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }\n    if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }\n    *flags = uVar3;\n    arg = (byte *)strtok((char *)0x0,",");\n  }" { (expression_statement "bVar9 = arg == (byte *)0x0;" (assignment_expression "bVar9 = arg == (byte *)0x0" identifier = (binary_expression "arg == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar9) {\n      return;\n    }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" identifier = number_literal) ;) (expression_statement "pbVar6 = arg;" (assignment_expression "pbVar6 = arg" identifier = identifier) ;) (expression_statement "pbVar7 = &DAT_00149684;" (assignment_expression "pbVar7 = &DAT_00149684" identifier = (pointer_expression "&DAT_00149684" & identifier)) ;) (do_statement "do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }\n    else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);\n      uVar2 = values[pVar4];\n      uVar3 = all;\n      uVar1 = values[pVar4];\n    }" { (expression_statement "pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die);" (assignment_expression "pVar4 = __xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die)" identifier = (call_expression "__xargmatch_internal(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die)" identifier (argument_list "(opt,(char *)(arg + 3),keys,(char *)values,4,argmatch_die)" ( identifier , (cast_expression "(char *)(arg + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 3)" ( (binary_expression "arg + 3" identifier + number_literal) ))) , identifier , (cast_expression "(char *)values" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "uVar2 = values[pVar4];" (assignment_expression "uVar2 = values[pVar4]" identifier = (subscript_expression "values[pVar4]" identifier [ identifier ])) ;) (expression_statement "uVar3 = all;" (assignment_expression "uVar3 = all" identifier = identifier) ;) (expression_statement "uVar1 = values[pVar4];" (assignment_expression "uVar1 = values[pVar4]" identifier = (subscript_expression "values[pVar4]" identifier [ identifier ])) ;) }) (else_clause "else {\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }" else (compound_statement "{\n      pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);\n      uVar3 = values[pVar4];\n      uVar2 = all;\n      uVar1 = uVar3;\n    }" { (expression_statement "pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die);" (assignment_expression "pVar4 = __xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die)" identifier = (call_expression "__xargmatch_internal(opt,(char *)arg,keys,(char *)values,4,argmatch_die)" identifier (argument_list "(opt,(char *)arg,keys,(char *)values,4,argmatch_die)" ( identifier , (cast_expression "(char *)arg" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(char *)values" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "uVar3 = values[pVar4];" (assignment_expression "uVar3 = values[pVar4]" identifier = (subscript_expression "values[pVar4]" identifier [ identifier ])) ;) (expression_statement "uVar2 = all;" (assignment_expression "uVar2 = all" identifier = identifier) ;) (expression_statement "uVar1 = uVar3;" (assignment_expression "uVar1 = uVar3" identifier = identifier) ;) }))) (if_statement "if (uVar1 == 0) {\n      uVar3 = uVar3 | *flags;\n    }\n    else {\n      uVar3 = ~uVar2 & *flags;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = uVar3 | *flags;\n    }" { (expression_statement "uVar3 = uVar3 | *flags;" (assignment_expression "uVar3 = uVar3 | *flags" identifier = (binary_expression "uVar3 | *flags" identifier | (pointer_expression "*flags" * identifier))) ;) }) (else_clause "else {\n      uVar3 = ~uVar2 & *flags;\n    }" else (compound_statement "{\n      uVar3 = ~uVar2 & *flags;\n    }" { (expression_statement "uVar3 = ~uVar2 & *flags;" (assignment_expression "uVar3 = ~uVar2 & *flags" identifier = (binary_expression "~uVar2 & *flags" (unary_expression "~uVar2" ~ identifier) & (pointer_expression "*flags" * identifier))) ;) }))) (expression_statement "*flags = uVar3;" (assignment_expression "*flags = uVar3" (pointer_expression "*flags" * identifier) = identifier) ;) (expression_statement "arg = (byte *)strtok((char *)0x0,",");" (assignment_expression "arg = (byte *)strtok((char *)0x0,",")" identifier = (cast_expression "(byte *)strtok((char *)0x0,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok((char *)0x0,",")" identifier (argument_list "((char *)0x0,",")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "","" " string_content ") ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}\n\n" (function_definition "void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" primitive_type (function_declarator "FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }" if (parenthesized_expression "(param_6 == (char *)0x0)" ( (binary_expression "param_6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = *param_5 | param_4;\n    return;\n  }" { (expression_statement "*param_5 = *param_5 | param_4;" (assignment_expression "*param_5 = *param_5 | param_4" (pointer_expression "*param_5" * identifier) = (binary_expression "*param_5 | param_4" (pointer_expression "*param_5" * identifier) | identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar4 = (byte *)strtok(param_6,",");" (assignment_expression "pbVar4 = (byte *)strtok(param_6,",")" identifier = (cast_expression "(byte *)strtok(param_6,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok(param_6,",")" identifier (argument_list "(param_6,",")" ( identifier , (string_literal "","" " string_content ") ))))) ;) (do_statement "do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );" do (compound_statement "{\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  }" { (expression_statement "bVar9 = pbVar4 == (byte *)0x0;" (assignment_expression "bVar9 = pbVar4 == (byte *)0x0" identifier = (binary_expression "pbVar4 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (bVar9) {\n      return;\n    }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" identifier = number_literal) ;) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" identifier = identifier) ;) (expression_statement "pbVar7 = &DAT_00149684;" (assignment_expression "pbVar7 = &DAT_00149684" identifier = (pointer_expression "&DAT_00149684" & identifier)) ;) (do_statement "do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);" do (compound_statement "{\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    }" { (if_statement "if (lVar5 == 0) break;" if (parenthesized_expression "(lVar5 == 0)" ( (binary_expression "lVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" identifier = (binary_expression "lVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "pbVar7 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }" { (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" identifier = (call_expression "FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" identifier (argument_list "(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" ( identifier , (binary_expression "pbVar4 + 3" identifier + number_literal) , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar1 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar1 = *(uint *)(param_3 + lVar5 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" * (cast_expression "(uint *)(param_3 + lVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar5 * 4)" ( (binary_expression "param_3 + lVar5 * 4" identifier + (binary_expression "lVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar3 = param_4;" (assignment_expression "uVar3 = param_4" identifier = identifier) ;) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" identifier = identifier) ;) }) (else_clause "else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" else (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" { (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" identifier = (call_expression "FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" identifier (argument_list "(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" ( identifier , identifier , identifier , identifier , number_literal , identifier )))) ;) (expression_statement "uVar3 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar3 = *(uint *)(param_3 + lVar5 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" * (cast_expression "(uint *)(param_3 + lVar5 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar5 * 4)" ( (binary_expression "param_3 + lVar5 * 4" identifier + (binary_expression "lVar5 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar1 = param_4;" (assignment_expression "uVar1 = param_4" identifier = identifier) ;) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" identifier = identifier) ;) }))) (if_statement "if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = uVar3 | *param_5;\n    }" { (expression_statement "uVar3 = uVar3 | *param_5;" (assignment_expression "uVar3 = uVar3 | *param_5" identifier = (binary_expression "uVar3 | *param_5" identifier | (pointer_expression "*param_5" * identifier))) ;) }) (else_clause "else {\n      uVar3 = ~uVar1 & *param_5;\n    }" else (compound_statement "{\n      uVar3 = ~uVar1 & *param_5;\n    }" { (expression_statement "uVar3 = ~uVar1 & *param_5;" (assignment_expression "uVar3 = ~uVar1 & *param_5" identifier = (binary_expression "~uVar1 & *param_5" (unary_expression "~uVar1" ~ identifier) & (pointer_expression "*param_5" * identifier))) ;) }))) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "pbVar4 = (byte *)strtok((char *)0x0,",");" (assignment_expression "pbVar4 = (byte *)strtok((char *)0x0,",")" identifier = (cast_expression "(byte *)strtok((char *)0x0,",")" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strtok((char *)0x0,",")" identifier (argument_list "((char *)0x0,",")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal "","" " string_content ") ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | IDENT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) & (pointer_expression * IDENT))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , (string_literal " string_content ") ))))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_0010c11a(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" (identifier "FUN_0010c11a") (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,\n                 char *param_6)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "char *param_6" (primitive_type "char") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }\n  pbVar4 = (byte *)strtok(param_6,",");\n  do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (declaration "byte bVar10;" (type_identifier "byte") (identifier "bVar10") (; ";")) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" (identifier "bVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_6 == (char *)0x0) {\n    *param_5 = *param_5 | param_4;\n    return;\n  }" (if "if") (parenthesized_expression "(param_6 == (char *)0x0)" (( "(") (binary_expression "param_6 == (char *)0x0" (identifier "param_6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_5 = *param_5 | param_4;\n    return;\n  }" ({ "{") (expression_statement "*param_5 = *param_5 | param_4;" (assignment_expression "*param_5 = *param_5 | param_4" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (binary_expression "*param_5 | param_4" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (| "|") (identifier "param_4"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pbVar4 = (byte *)strtok(param_6,",");" (assignment_expression "pbVar4 = (byte *)strtok(param_6,",")" (identifier "pbVar4") (= "=") (cast_expression "(byte *)strtok(param_6,",")" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strtok(param_6,",")" (identifier "strtok") (argument_list "(param_6,",")" (( "(") (identifier "param_6") (, ",") (string_literal "","" (" """) (string_content ",") (" """)) () ")"))))) (; ";")) (do_statement "do {\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  } while( true );" (do "do") (compound_statement "{\n    bVar9 = pbVar4 == (byte *)0x0;\n    if (bVar9) {\n      return;\n    }\n    bVar8 = false;\n    lVar5 = 3;\n    pbVar6 = pbVar4;\n    pbVar7 = &DAT_00149684;\n    do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);\n    if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }\n    if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }\n    *param_5 = uVar3;\n    pbVar4 = (byte *)strtok((char *)0x0,",");\n  }" ({ "{") (expression_statement "bVar9 = pbVar4 == (byte *)0x0;" (assignment_expression "bVar9 = pbVar4 == (byte *)0x0" (identifier "bVar9") (= "=") (binary_expression "pbVar4 == (byte *)0x0" (identifier "pbVar4") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (bVar9) {\n      return;\n    }" (if "if") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" (identifier "lVar5") (= "=") (number_literal "3")) (; ";")) (expression_statement "pbVar6 = pbVar4;" (assignment_expression "pbVar6 = pbVar4" (identifier "pbVar6") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "pbVar7 = &DAT_00149684;" (assignment_expression "pbVar7 = &DAT_00149684" (identifier "pbVar7") (= "=") (pointer_expression "&DAT_00149684" (& "&") (identifier "DAT_00149684"))) (; ";")) (do_statement "do {\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    } while (bVar9);" (do "do") (compound_statement "{\n      if (lVar5 == 0) break;\n      lVar5 = lVar5 + -1;\n      bVar8 = *pbVar6 < *pbVar7;\n      bVar9 = *pbVar6 == *pbVar7;\n      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;\n      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;\n    }" ({ "{") (if_statement "if (lVar5 == 0) break;" (if "if") (parenthesized_expression "(lVar5 == 0)" (( "(") (binary_expression "lVar5 == 0" (identifier "lVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar5 = lVar5 + -1;" (assignment_expression "lVar5 = lVar5 + -1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + -1" (identifier "lVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" (identifier "bVar8") (= "=") (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (< "<") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" (identifier "bVar9") (= "=") (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (== "==") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar10 * -2" (identifier "pbVar6") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;" (assignment_expression "pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + (ulong)bVar10 * -2 + 1" (binary_expression "pbVar7 + (ulong)bVar10 * -2" (identifier "pbVar7") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (; ";")) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }\n    else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" (if "if") (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" (( "(") (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" (( "(") (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" (! "!") (identifier "bVar8")) (&& "&&") (unary_expression "!bVar9" (! "!") (identifier "bVar9"))) () ")")) (== "==") (identifier "bVar8")) () ")")) (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);\n      uVar1 = *(uint *)(param_3 + lVar5 * 4);\n      uVar3 = param_4;\n      uVar2 = uVar1;\n    }" ({ "{") (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" (identifier "lVar5") (= "=") (call_expression "FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" (identifier "FUN_00135775") (argument_list "(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578)" (( "(") (identifier "param_1") (, ",") (binary_expression "pbVar4 + 3" (identifier "pbVar4") (+ "+") (number_literal "3")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "4") (, ",") (identifier "PTR_FUN_00162578") () ")")))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar1 = *(uint *)(param_3 + lVar5 * 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" (* "*") (cast_expression "(uint *)(param_3 + lVar5 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + lVar5 * 4)" (( "(") (binary_expression "param_3 + lVar5 * 4" (identifier "param_3") (+ "+") (binary_expression "lVar5 * 4" (identifier "lVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar3 = param_4;" (assignment_expression "uVar3 = param_4" (identifier "uVar3") (= "=") (identifier "param_4")) (; ";")) (expression_statement "uVar2 = uVar1;" (assignment_expression "uVar2 = uVar1" (identifier "uVar2") (= "=") (identifier "uVar1")) (; ";")) (} "}")) (else_clause "else {\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" (else "else") (compound_statement "{\n      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);\n      uVar3 = *(uint *)(param_3 + lVar5 * 4);\n      uVar1 = param_4;\n      uVar2 = uVar3;\n    }" ({ "{") (expression_statement "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);" (assignment_expression "lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" (identifier "lVar5") (= "=") (call_expression "FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" (identifier "FUN_00135775") (argument_list "(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578)" (( "(") (identifier "param_1") (, ",") (identifier "pbVar4") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "4") (, ",") (identifier "PTR_FUN_00162578") () ")")))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_3 + lVar5 * 4);" (assignment_expression "uVar3 = *(uint *)(param_3 + lVar5 * 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_3 + lVar5 * 4)" (* "*") (cast_expression "(uint *)(param_3 + lVar5 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + lVar5 * 4)" (( "(") (binary_expression "param_3 + lVar5 * 4" (identifier "param_3") (+ "+") (binary_expression "lVar5 * 4" (identifier "lVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar1 = param_4;" (assignment_expression "uVar1 = param_4" (identifier "uVar1") (= "=") (identifier "param_4")) (; ";")) (expression_statement "uVar2 = uVar3;" (assignment_expression "uVar2 = uVar3" (identifier "uVar2") (= "=") (identifier "uVar3")) (; ";")) (} "}")))) (if_statement "if (uVar2 == 0) {\n      uVar3 = uVar3 | *param_5;\n    }\n    else {\n      uVar3 = ~uVar1 & *param_5;\n    }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = uVar3 | *param_5;\n    }" ({ "{") (expression_statement "uVar3 = uVar3 | *param_5;" (assignment_expression "uVar3 = uVar3 | *param_5" (identifier "uVar3") (= "=") (binary_expression "uVar3 | *param_5" (identifier "uVar3") (| "|") (pointer_expression "*param_5" (* "*") (identifier "param_5")))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = ~uVar1 & *param_5;\n    }" (else "else") (compound_statement "{\n      uVar3 = ~uVar1 & *param_5;\n    }" ({ "{") (expression_statement "uVar3 = ~uVar1 & *param_5;" (assignment_expression "uVar3 = ~uVar1 & *param_5" (identifier "uVar3") (= "=") (binary_expression "~uVar1 & *param_5" (unary_expression "~uVar1" (~ "~") (identifier "uVar1")) (& "&") (pointer_expression "*param_5" (* "*") (identifier "param_5")))) (; ";")) (} "}")))) (expression_statement "*param_5 = uVar3;" (assignment_expression "*param_5 = uVar3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "pbVar4 = (byte *)strtok((char *)0x0,",");" (assignment_expression "pbVar4 = (byte *)strtok((char *)0x0,",")" (identifier "pbVar4") (= "=") (cast_expression "(byte *)strtok((char *)0x0,",")" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strtok((char *)0x0,",")" (identifier "strtok") (argument_list "((char *)0x0,",")" (( "(") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (string_literal "","" (" """) (string_content ",") (" """)) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(char *opt,char **keys,int *values,int var_2,int *flags,char *var_1)

{
  type_1 var_10;
  type_1 uVar2;
  type_1 var_11;
  type_2 *var_4;
  ptrdiff_t pVar4;
  long var_5;
  type_2 *var_6;
  type_2 *var_7;
  bool var_8;
  bool bVar9;
  type_2 bVar10;
  
  bVar10 = 0;
  if (var_1 == (char *)0x0) {
    *flags = *flags | var_2;
    return;
  }
  var_4 = (type_2 *)var_3(var_1,",");
  do {
    bVar9 = var_4 == (type_2 *)0x0;
    if (bVar9) {
      return;
    }
    var_8 = false;
    var_5 = 3;
    var_6 = var_4;
    var_7 = &DAT_00149684;
    do {
      if (var_5 == 0) break;
      var_5 = var_5 + -1;
      var_8 = *var_6 < *var_7;
      bVar9 = *var_6 == *var_7;
      var_6 = var_6 + (type_3)bVar10 * -2 + 1;
      var_7 = var_7 + (type_3)bVar10 * -2 + 1;
    } while (bVar9);
    if ((!var_8 && !bVar9) == var_8) {
      pVar4 = var_9(opt,(char *)(var_4 + 3),keys,(char *)values,4,argmatch_die);
      uVar2 = values[pVar4];
      var_11 = var_2;
      var_10 = values[pVar4];
    }
    else {
      pVar4 = var_9(opt,(char *)var_4,keys,(char *)values,4,argmatch_die);
      var_11 = values[pVar4];
      uVar2 = var_2;
      var_10 = var_11;
    }
    if (var_10 == 0) {
      var_11 = var_11 | *flags;
    }
    else {
      var_11 = ~uVar2 & *flags;
    }
    *flags = var_11;
    var_4 = (type_2 *)var_3((char *)0x0,",");
  } while( true );
}


(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: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (unary_expression argument: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)) (string_literal (string_content)))))))) condition: (parenthesized_expression (true))))))

void MASKED(undefined8 param_1,undefined8 param_2,long param_3,uint param_4,uint *param_5,
                 char *param_6)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  byte *pbVar4;
  long lVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (param_6 == (char *)0x0) {
    *param_5 = *param_5 | param_4;
    return;
  }
  pbVar4 = (byte *)strtok(param_6,",");
  do {
    bVar9 = pbVar4 == (byte *)0x0;
    if (bVar9) {
      return;
    }
    bVar8 = false;
    lVar5 = 3;
    pbVar6 = pbVar4;
    pbVar7 = &DAT_00149684;
    do {
      if (lVar5 == 0) break;
      lVar5 = lVar5 + -1;
      bVar8 = *pbVar6 < *pbVar7;
      bVar9 = *pbVar6 == *pbVar7;
      pbVar6 = pbVar6 + (ulong)bVar10 * -2 + 1;
      pbVar7 = pbVar7 + (ulong)bVar10 * -2 + 1;
    } while (bVar9);
    if ((!bVar8 && !bVar9) == bVar8) {
      lVar5 = FUN_00135775(param_1,pbVar4 + 3,param_2,param_3,4,PTR_FUN_00162578);
      uVar1 = *(uint *)(param_3 + lVar5 * 4);
      uVar3 = param_4;
      uVar2 = uVar1;
    }
    else {
      lVar5 = FUN_00135775(param_1,pbVar4,param_2,param_3,4,PTR_FUN_00162578);
      uVar3 = *(uint *)(param_3 + lVar5 * 4);
      uVar1 = param_4;
      uVar2 = uVar3;
    }
    if (uVar2 == 0) {
      uVar3 = uVar3 | *param_5;
    }
    else {
      uVar3 = ~uVar1 & *param_5;
    }
    *param_5 = uVar3;
    pbVar4 = (byte *)strtok((char *)0x0,",");
  } while( true );
}

