
/* WARNING: Unknown calling convention */

int _qsort_helper(void *a,void *b)

{
  uint uVar1;
  int iVar2;
  ltc_asn1_list *B;
  ltc_asn1_list *A;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  uVar1 = *b;
  if (*a < 0x15) {
    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);
    if (uVar1 < 0x15) goto LAB_001754a4;
    iVar2 = iVar2 + 1;
  }
  else {
    if (0x14 < uVar1) goto LAB_0017548d;
    iVar2 = -1;
LAB_001754a4:
    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);
  }
  if (iVar2 != 0) {
    return iVar2;
  }
LAB_0017548d:
  return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);
}



int FUN_00175460(uint *param_1,uint *param_2)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = *param_2;
  if (*param_1 < 0x15) {
    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);
    if (uVar1 < 0x15) goto LAB_001754a4;
    iVar2 = iVar2 + 1;
  }
  else {
    if (0x14 < uVar1) goto LAB_0017548d;
    iVar2 = -1;
LAB_001754a4:
    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);
  }
  if (iVar2 != 0) {
    return iVar2;
  }
LAB_0017548d:
  return param_1[6] - param_2[6];
}


MOV EAX,dword ptr [RDI]
MOV EDX,dword ptr [RSI]
CMP EAX,0x14
JA 0x00175488
LEA R8,[0x1c3bc0]
MOV ECX,0xffffffff
MOV EAX,dword ptr [R8 + RAX*0x4]
CMP EDX,0x14
JBE 0x001754a4
SUB EAX,ECX
JZ 0x0017548d
RET
CMP EDX,0x14
JBE 0x00175498
MOV EAX,dword ptr [RDI + 0x18]
SUB EAX,dword ptr [RSI + 0x18]
RET
MOV EAX,0xffffffff
LEA R8,[0x1c3bc0]
MOV ECX,dword ptr [R8 + RDX*0x4]
SUB EAX,ECX
JNZ 0x00175482
JMP 0x0017548d
(translation_unit "int FUN_00175460(uint *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}\n\n" (function_definition "int FUN_00175460(uint *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" primitive_type (function_declarator "FUN_00175460(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" if (parenthesized_expression "(*param_1 < 0x15)" ( (binary_expression "*param_1 < 0x15" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" * (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001c3bc0 + (ulong)*param_1 * 4)" ( (binary_expression "&DAT_001c3bc0 + (ulong)*param_1 * 4" (pointer_expression "&DAT_001c3bc0" & identifier) + (binary_expression "(ulong)*param_1 * 4" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal)) ))))) ;) (if_statement "if (uVar1 < 0x15) goto LAB_001754a4;" if (parenthesized_expression "(uVar1 < 0x15)" ( (binary_expression "uVar1 < 0x15" identifier < number_literal) )) (goto_statement "goto LAB_001754a4;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" else (compound_statement "{\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" { (if_statement "if (0x14 < uVar1) goto LAB_0017548d;" if (parenthesized_expression "(0x14 < uVar1)" ( (binary_expression "0x14 < uVar1" number_literal < identifier) )) (goto_statement "goto LAB_0017548d;" goto statement_identifier ;)) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (labeled_statement "LAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" statement_identifier : (expression_statement "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" (assignment_expression "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" identifier = (binary_expression "iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" identifier - (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" * (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001c3bc0 + (ulong)uVar1 * 4)" ( (binary_expression "&DAT_001c3bc0 + (ulong)uVar1 * 4" (pointer_expression "&DAT_001c3bc0" & identifier) + (binary_expression "(ulong)uVar1 * 4" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))))) ;)) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (labeled_statement "LAB_0017548d:\n  return param_1[6] - param_2[6];" statement_identifier : (return_statement "return param_1[6] - param_2[6];" return (binary_expression "param_1[6] - param_2[6]" (subscript_expression "param_1[6]" identifier [ number_literal ]) - (subscript_expression "param_2[6]" identifier [ number_literal ])) ;)) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint _qsort_helper(void *a,void *b)\n\n{\n  uint uVar1;\n  int iVar2;\n  ltc_asn1_list *B;\n  ltc_asn1_list *A;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *b;\n  if (*a < 0x15) {\n    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);\n}\n\n" comment (function_definition "int _qsort_helper(void *a,void *b)\n\n{\n  uint uVar1;\n  int iVar2;\n  ltc_asn1_list *B;\n  ltc_asn1_list *A;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *b;\n  if (*a < 0x15) {\n    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);\n}" primitive_type (function_declarator "_qsort_helper(void *a,void *b)" identifier (parameter_list "(void *a,void *b)" ( (parameter_declaration "void *a" primitive_type (pointer_declarator "*a" * identifier)) , (parameter_declaration "void *b" primitive_type (pointer_declarator "*b" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  ltc_asn1_list *B;\n  ltc_asn1_list *A;\n  \n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n  uVar1 = *b;\n  if (*a < 0x15) {\n    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ltc_asn1_list *B;" type_identifier (pointer_declarator "*B" * identifier) ;) (declaration "ltc_asn1_list *A;" type_identifier (pointer_declarator "*A" * identifier) ;) comment comment (expression_statement "uVar1 = *b;" (assignment_expression "uVar1 = *b" identifier = (pointer_expression "*b" * identifier)) ;) (if_statement "if (*a < 0x15) {\n    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }" if (parenthesized_expression "(*a < 0x15)" ( (binary_expression "*a < 0x15" (pointer_expression "*a" * identifier) < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4);" (assignment_expression "iVar2 = *(int *)(CSWTCH_0 + (ulong)*a * 4)" identifier = (pointer_expression "*(int *)(CSWTCH_0 + (ulong)*a * 4)" * (cast_expression "(int *)(CSWTCH_0 + (ulong)*a * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_0 + (ulong)*a * 4)" ( (binary_expression "CSWTCH_0 + (ulong)*a * 4" identifier + (binary_expression "(ulong)*a * 4" (binary_expression "(ulong)*a" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal)) ))))) ;) (if_statement "if (uVar1 < 0x15) goto LAB_001754a4;" if (parenthesized_expression "(uVar1 < 0x15)" ( (binary_expression "uVar1 < 0x15" identifier < number_literal) )) (goto_statement "goto LAB_001754a4;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }" else (compound_statement "{\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);\n  }" { (if_statement "if (0x14 < uVar1) goto LAB_0017548d;" if (parenthesized_expression "(0x14 < uVar1)" ( (binary_expression "0x14 < uVar1" number_literal < identifier) )) (goto_statement "goto LAB_0017548d;" goto statement_identifier ;)) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (labeled_statement "LAB_001754a4:\n    iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);" statement_identifier : (expression_statement "iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4);" (assignment_expression "iVar2 = iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4)" identifier = (binary_expression "iVar2 - *(int *)(CSWTCH_0 + (ulong)uVar1 * 4)" identifier - (pointer_expression "*(int *)(CSWTCH_0 + (ulong)uVar1 * 4)" * (cast_expression "(int *)(CSWTCH_0 + (ulong)uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(CSWTCH_0 + (ulong)uVar1 * 4)" ( (binary_expression "CSWTCH_0 + (ulong)uVar1 * 4" identifier + (binary_expression "(ulong)uVar1 * 4" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))))) ;)) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (labeled_statement "LAB_0017548d:\n  return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);" statement_identifier : (return_statement "return *(int *)((long)a + 0x18) - *(int *)((long)b + 0x18);" return (binary_expression "*(int *)((long)a + 0x18) - *(int *)((long)b + 0x18)" (pointer_expression "*(int *)((long)a + 0x18)" * (cast_expression "(int *)((long)a + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)a + 0x18)" ( (binary_expression "(long)a + 0x18" (cast_expression "(long)a" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) - (pointer_expression "*(int *)((long)b + 0x18)" * (cast_expression "(int *)((long)b + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)b + 0x18)" ( (binary_expression "(long)b + 0x18" (cast_expression "(long)b" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;)) })))
(translation_unit "int FUN_00175460(uint *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}\n\n" (function_definition "int FUN_00175460(uint *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" primitive_type (function_declarator "FUN_00175460(uint *param_1,uint *param_2)" identifier (parameter_list "(uint *param_1,uint *param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" if (parenthesized_expression "(*param_1 < 0x15)" ( (binary_expression "*param_1 < 0x15" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }" { (expression_statement "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" identifier = (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" * (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001c3bc0 + (ulong)*param_1 * 4)" ( (binary_expression "&DAT_001c3bc0 + (ulong)*param_1 * 4" (pointer_expression "&DAT_001c3bc0" & identifier) + (binary_expression "(ulong)*param_1 * 4" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) * number_literal)) ))))) ;) (if_statement "if (uVar1 < 0x15) goto LAB_001754a4;" if (parenthesized_expression "(uVar1 < 0x15)" ( (binary_expression "uVar1 < 0x15" identifier < number_literal) )) (goto_statement "goto LAB_001754a4;" goto statement_identifier ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" else (compound_statement "{\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" { (if_statement "if (0x14 < uVar1) goto LAB_0017548d;" if (parenthesized_expression "(0x14 < uVar1)" ( (binary_expression "0x14 < uVar1" number_literal < identifier) )) (goto_statement "goto LAB_0017548d;" goto statement_identifier ;)) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) (labeled_statement "LAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" statement_identifier : (expression_statement "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" (assignment_expression "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" identifier = (binary_expression "iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" identifier - (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" * (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001c3bc0 + (ulong)uVar1 * 4)" ( (binary_expression "&DAT_001c3bc0 + (ulong)uVar1 * 4" (pointer_expression "&DAT_001c3bc0" & identifier) + (binary_expression "(ulong)uVar1 * 4" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))))) ;)) }))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) })) (labeled_statement "LAB_0017548d:\n  return param_1[6] - param_2[6];" statement_identifier : (return_statement "return param_1[6] - param_2[6];" return (binary_expression "param_1[6] - param_2[6]" (subscript_expression "param_1[6]" identifier [ number_literal ]) - (subscript_expression "param_2[6]" identifier [ number_literal ])) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (return_statement return (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) ;)) })))
(function_definition "int FUN_00175460(uint *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" (primitive_type "int") (function_declarator "FUN_00175460(uint *param_1,uint *param_2)" (identifier "FUN_00175460") (parameter_list "(uint *param_1,uint *param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *param_2;\n  if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }\n  if (iVar2 != 0) {\n    return iVar2;\n  }\nLAB_0017548d:\n  return param_1[6] - param_2[6];\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (*param_1 < 0x15) {\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }\n  else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" (if "if") (parenthesized_expression "(*param_1 < 0x15)" (( "(") (binary_expression "*param_1 < 0x15" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "0x15")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);\n    if (uVar1 < 0x15) goto LAB_001754a4;\n    iVar2 = iVar2 + 1;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);" (assignment_expression "iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" (* "*") (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001c3bc0 + (ulong)*param_1 * 4)" (( "(") (binary_expression "&DAT_001c3bc0 + (ulong)*param_1 * 4" (pointer_expression "&DAT_001c3bc0" (& "&") (identifier "DAT_001c3bc0")) (+ "+") (binary_expression "(ulong)*param_1 * 4" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar1 < 0x15) goto LAB_001754a4;" (if "if") (parenthesized_expression "(uVar1 < 0x15)" (( "(") (binary_expression "uVar1 < 0x15" (identifier "uVar1") (< "<") (number_literal "0x15")) () ")")) (goto_statement "goto LAB_001754a4;" (goto "goto") (statement_identifier "LAB_001754a4") (; ";"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" (else "else") (compound_statement "{\n    if (0x14 < uVar1) goto LAB_0017548d;\n    iVar2 = -1;\nLAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);\n  }" ({ "{") (if_statement "if (0x14 < uVar1) goto LAB_0017548d;" (if "if") (parenthesized_expression "(0x14 < uVar1)" (( "(") (binary_expression "0x14 < uVar1" (number_literal "0x14") (< "<") (identifier "uVar1")) () ")")) (goto_statement "goto LAB_0017548d;" (goto "goto") (statement_identifier "LAB_0017548d") (; ";"))) (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" (identifier "iVar2") (= "=") (number_literal "-1")) (; ";")) (labeled_statement "LAB_001754a4:\n    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" (statement_identifier "LAB_001754a4") (: ":") (expression_statement "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);" (assignment_expression "iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" (identifier "iVar2") (= "=") (binary_expression "iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" (identifier "iVar2") (- "-") (pointer_expression "*(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" (* "*") (cast_expression "(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001c3bc0 + (ulong)uVar1 * 4)" (( "(") (binary_expression "&DAT_001c3bc0 + (ulong)uVar1 * 4" (pointer_expression "&DAT_001c3bc0" (& "&") (identifier "DAT_001c3bc0")) (+ "+") (binary_expression "(ulong)uVar1 * 4" (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1")) (* "*") (number_literal "4"))) () ")")))))) (; ";"))) (} "}")))) (if_statement "if (iVar2 != 0) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (labeled_statement "LAB_0017548d:\n  return param_1[6] - param_2[6];" (statement_identifier "LAB_0017548d") (: ":") (return_statement "return param_1[6] - param_2[6];" (return "return") (binary_expression "param_1[6] - param_2[6]" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (- "-") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";"))) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void *var_2,void *b)

{
  type_1 var_3;
  int var_4;
  type_2 *B;
  type_2 *A;
  
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
  var_3 = *b;
  if (*var_2 < 0x15) {
    var_4 = *(int *)(var_1 + (type_3)*var_2 * 4);
    if (var_3 < 0x15) goto LAB_001754a4;
    var_4 = var_4 + 1;
  }
  else {
    if (0x14 < var_3) goto LAB_0017548d;
    var_4 = -1;
LAB_001754a4:
    var_4 = var_4 - *(int *)(var_1 + (type_3)var_3 * 4);
  }
  if (var_4 != 0) {
    return var_4;
  }
LAB_0017548d:
  return *(int *)((long)var_2 + 0x18) - *(int *)((long)b + 0x18);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (labeled_statement label: (statement_identifier) (return_statement (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))

int MASKED(uint *param_1,uint *param_2)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = *param_2;
  if (*param_1 < 0x15) {
    iVar2 = *(int *)(&DAT_001c3bc0 + (ulong)*param_1 * 4);
    if (uVar1 < 0x15) goto LAB_001754a4;
    iVar2 = iVar2 + 1;
  }
  else {
    if (0x14 < uVar1) goto LAB_0017548d;
    iVar2 = -1;
LAB_001754a4:
    iVar2 = iVar2 - *(int *)(&DAT_001c3bc0 + (ulong)uVar1 * 4);
  }
  if (iVar2 != 0) {
    return iVar2;
  }
LAB_0017548d:
  return param_1[6] - param_2[6];
}

