
/* WARNING: Switch with 1 destination removed at 0x001033d0 */

char * MHD_get_reason_phrase_for(uint code)

{
  ulong uVar1;
  char *pcVar2;
  ulong uVar3;
  
  pcVar2 = "Unknown";
  if (code - 100 < 500) {
    uVar1 = (ulong)code / 100;
    uVar3 = (ulong)(code + (int)uVar1 * -100);
    pcVar2 = "Unknown";
    if (uVar3 < reasons[uVar1].max) {
      pcVar2 = reasons[uVar1].data[uVar3];
    }
  }
  return pcVar2;
}



/* WARNING: Switch with 1 destination removed at 0x001033d0 */

char * MHD_get_reason_phrase_for(uint param_1)

{
  ulong uVar1;
  char *pcVar2;
  ulong uVar3;
  
  pcVar2 = "Unknown";
  if (param_1 - 100 < 500) {
    uVar1 = (ulong)param_1 / 100;
    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);
    pcVar2 = "Unknown";
    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {
      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);
    }
  }
  return pcVar2;
}


JMP qword ptr [0x0031c1b8]
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x001033d0 */\n\nchar * MHD_get_reason_phrase_for(uint param_1)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}\n\n" comment (function_definition "char * MHD_get_reason_phrase_for(uint param_1)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* MHD_get_reason_phrase_for(uint param_1)" * (function_declarator "MHD_get_reason_phrase_for(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" if (parenthesized_expression "(param_1 - 100 < 500)" ( (binary_expression "param_1 - 100 < 500" (binary_expression "param_1 - 100" identifier - number_literal) < number_literal) )) (compound_statement "{\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" { (expression_statement "uVar1 = (ulong)param_1 / 100;" (assignment_expression "uVar1 = (ulong)param_1 / 100" identifier = (binary_expression "(ulong)param_1 / 100" (cast_expression "(ulong)param_1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal)) ;) (expression_statement "uVar3 = (ulong)(param_1 + (int)uVar1 * -100);" (assignment_expression "uVar3 = (ulong)(param_1 + (int)uVar1 * -100)" identifier = (call_expression "(ulong)(param_1 + (int)uVar1 * -100)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + (int)uVar1 * -100)" ( (binary_expression "param_1 + (int)uVar1 * -100" identifier + (binary_expression "(int)uVar1 * -100" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" if (parenthesized_expression "(uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10))" ( (binary_expression "uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" identifier < (pointer_expression "*(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" * (cast_expression "(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0031ba20 + uVar1 * 0x10)" ( (binary_expression "&DAT_0031ba20 + uVar1 * 0x10" (pointer_expression "&DAT_0031ba20" & identifier) + (binary_expression "uVar1 * 0x10" identifier * number_literal)) ))))) )) (compound_statement "{\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" { (expression_statement "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);" (assignment_expression "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" identifier = (pointer_expression "*(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" * (cast_expression "(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" ( (binary_expression "(&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8" (subscript_expression "(&PTR_DAT_0031ba28)[uVar1 * 2]" (parenthesized_expression "(&PTR_DAT_0031ba28)" ( (pointer_expression "&PTR_DAT_0031ba28" & identifier) )) [ (binary_expression "uVar1 * 2" identifier * number_literal) ]) + (binary_expression "uVar3 * 8" identifier * number_literal)) ))))) ;) })) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x001033d0 */\n\nchar * MHD_get_reason_phrase_for(uint code)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (code - 100 < 500) {\n    uVar1 = (ulong)code / 100;\n    uVar3 = (ulong)(code + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }\n  }\n  return pcVar2;\n}\n\n" comment (function_definition "char * MHD_get_reason_phrase_for(uint code)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (code - 100 < 500) {\n    uVar1 = (ulong)code / 100;\n    uVar3 = (ulong)(code + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* MHD_get_reason_phrase_for(uint code)" * (function_declarator "MHD_get_reason_phrase_for(uint code)" identifier (parameter_list "(uint code)" ( (parameter_declaration "uint code" type_identifier identifier) )))) (compound_statement "{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (code - 100 < 500) {\n    uVar1 = (ulong)code / 100;\n    uVar3 = (ulong)(code + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }\n  }\n  return pcVar2;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (code - 100 < 500) {\n    uVar1 = (ulong)code / 100;\n    uVar3 = (ulong)(code + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }\n  }" if (parenthesized_expression "(code - 100 < 500)" ( (binary_expression "code - 100 < 500" (binary_expression "code - 100" identifier - number_literal) < number_literal) )) (compound_statement "{\n    uVar1 = (ulong)code / 100;\n    uVar3 = (ulong)(code + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }\n  }" { (expression_statement "uVar1 = (ulong)code / 100;" (assignment_expression "uVar1 = (ulong)code / 100" identifier = (binary_expression "(ulong)code / 100" (cast_expression "(ulong)code" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal)) ;) (expression_statement "uVar3 = (ulong)(code + (int)uVar1 * -100);" (assignment_expression "uVar3 = (ulong)(code + (int)uVar1 * -100)" identifier = (call_expression "(ulong)(code + (int)uVar1 * -100)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(code + (int)uVar1 * -100)" ( (binary_expression "code + (int)uVar1 * -100" identifier + (binary_expression "(int)uVar1 * -100" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (uVar3 < reasons[uVar1].max) {\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }" if (parenthesized_expression "(uVar3 < reasons[uVar1].max)" ( (binary_expression "uVar3 < reasons[uVar1].max" identifier < (field_expression "reasons[uVar1].max" (subscript_expression "reasons[uVar1]" identifier [ identifier ]) . field_identifier)) )) (compound_statement "{\n      pcVar2 = reasons[uVar1].data[uVar3];\n    }" { (expression_statement "pcVar2 = reasons[uVar1].data[uVar3];" (assignment_expression "pcVar2 = reasons[uVar1].data[uVar3]" identifier = (subscript_expression "reasons[uVar1].data[uVar3]" (field_expression "reasons[uVar1].data" (subscript_expression "reasons[uVar1]" identifier [ identifier ]) . field_identifier) [ identifier ])) ;) })) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * MHD_get_reason_phrase_for(uint param_1)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * MHD_get_reason_phrase_for(uint param_1)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* MHD_get_reason_phrase_for(uint param_1)" * (function_declarator "MHD_get_reason_phrase_for(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) )))) (compound_statement "{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" if (parenthesized_expression "(param_1 - 100 < 500)" ( (binary_expression "param_1 - 100 < 500" (binary_expression "param_1 - 100" identifier - number_literal) < number_literal) )) (compound_statement "{\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" { (expression_statement "uVar1 = (ulong)param_1 / 100;" (assignment_expression "uVar1 = (ulong)param_1 / 100" identifier = (binary_expression "(ulong)param_1 / 100" (cast_expression "(ulong)param_1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal)) ;) (expression_statement "uVar3 = (ulong)(param_1 + (int)uVar1 * -100);" (assignment_expression "uVar3 = (ulong)(param_1 + (int)uVar1 * -100)" identifier = (call_expression "(ulong)(param_1 + (int)uVar1 * -100)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + (int)uVar1 * -100)" ( (binary_expression "param_1 + (int)uVar1 * -100" identifier + (binary_expression "(int)uVar1 * -100" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" identifier = (string_literal ""Unknown"" " string_content ")) ;) (if_statement "if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" if (parenthesized_expression "(uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10))" ( (binary_expression "uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" identifier < (pointer_expression "*(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" * (cast_expression "(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_0031ba20 + uVar1 * 0x10)" ( (binary_expression "&DAT_0031ba20 + uVar1 * 0x10" (pointer_expression "&DAT_0031ba20" & identifier) + (binary_expression "uVar1 * 0x10" identifier * number_literal)) ))))) )) (compound_statement "{\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" { (expression_statement "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);" (assignment_expression "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" identifier = (pointer_expression "*(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" * (cast_expression "(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" ( (binary_expression "(&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8" (subscript_expression "(&PTR_DAT_0031ba28)[uVar1 * 2]" (parenthesized_expression "(&PTR_DAT_0031ba28)" ( (pointer_expression "&PTR_DAT_0031ba28" & identifier) )) [ (binary_expression "uVar1 * 2" identifier * number_literal) ]) + (binary_expression "uVar3 * 8" identifier * number_literal)) ))))) ;) })) })) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) + (binary_expression IDENT * LIT)) ))))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "char * MHD_get_reason_phrase_for(uint param_1)\n\n{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* MHD_get_reason_phrase_for(uint param_1)" (* "*") (function_declarator "MHD_get_reason_phrase_for(uint param_1)" (identifier "MHD_get_reason_phrase_for") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")")))) (compound_statement "{\n  ulong uVar1;\n  char *pcVar2;\n  ulong uVar3;\n  \n  pcVar2 = "Unknown";\n  if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }\n  return pcVar2;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "ulong uVar3;" (type_identifier "ulong") (identifier "uVar3") (; ";")) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" (identifier "pcVar2") (= "=") (string_literal ""Unknown"" (" """) (string_content "Unknown") (" """))) (; ";")) (if_statement "if (param_1 - 100 < 500) {\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 - 100 < 500)" (( "(") (binary_expression "param_1 - 100 < 500" (binary_expression "param_1 - 100" (identifier "param_1") (- "-") (number_literal "100")) (< "<") (number_literal "500")) () ")")) (compound_statement "{\n    uVar1 = (ulong)param_1 / 100;\n    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);\n    pcVar2 = "Unknown";\n    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }\n  }" ({ "{") (expression_statement "uVar1 = (ulong)param_1 / 100;" (assignment_expression "uVar1 = (ulong)param_1 / 100" (identifier "uVar1") (= "=") (binary_expression "(ulong)param_1 / 100" (cast_expression "(ulong)param_1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_1")) (/ "/") (number_literal "100"))) (; ";")) (expression_statement "uVar3 = (ulong)(param_1 + (int)uVar1 * -100);" (assignment_expression "uVar3 = (ulong)(param_1 + (int)uVar1 * -100)" (identifier "uVar3") (= "=") (call_expression "(ulong)(param_1 + (int)uVar1 * -100)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1 + (int)uVar1 * -100)" (( "(") (binary_expression "param_1 + (int)uVar1 * -100" (identifier "param_1") (+ "+") (binary_expression "(int)uVar1 * -100" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (* "*") (number_literal "-100"))) () ")")))) (; ";")) (expression_statement "pcVar2 = "Unknown";" (assignment_expression "pcVar2 = "Unknown"" (identifier "pcVar2") (= "=") (string_literal ""Unknown"" (" """) (string_content "Unknown") (" """))) (; ";")) (if_statement "if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" (if "if") (parenthesized_expression "(uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10))" (( "(") (binary_expression "uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" (identifier "uVar3") (< "<") (pointer_expression "*(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" (* "*") (cast_expression "(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_0031ba20 + uVar1 * 0x10)" (( "(") (binary_expression "&DAT_0031ba20 + uVar1 * 0x10" (pointer_expression "&DAT_0031ba20" (& "&") (identifier "DAT_0031ba20")) (+ "+") (binary_expression "uVar1 * 0x10" (identifier "uVar1") (* "*") (number_literal "0x10"))) () ")"))))) () ")")) (compound_statement "{\n      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);\n    }" ({ "{") (expression_statement "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);" (assignment_expression "pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" (identifier "pcVar2") (= "=") (pointer_expression "*(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" (* "*") (cast_expression "(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8)" (( "(") (binary_expression "(&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8" (subscript_expression "(&PTR_DAT_0031ba28)[uVar1 * 2]" (parenthesized_expression "(&PTR_DAT_0031ba28)" (( "(") (pointer_expression "&PTR_DAT_0031ba28" (& "&") (identifier "PTR_DAT_0031ba28")) () ")")) ([ "[") (binary_expression "uVar1 * 2" (identifier "uVar1") (* "*") (number_literal "2")) (] "]")) (+ "+") (binary_expression "uVar3 * 8" (identifier "uVar3") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

/* WARNING: Switch with 1 destination removed at 0x001033d0 */

char * function_1(type_1 var_1)

{
  type_2 uVar1;
  char *pcVar2;
  type_2 var_2;
  
  pcVar2 = "Unknown";
  if (var_1 - 100 < 500) {
    uVar1 = (type_2)var_1 / 100;
    var_2 = (type_2)(var_1 + (int)uVar1 * -100);
    pcVar2 = "Unknown";
    if (var_2 < reasons[uVar1].max) {
      pcVar2 = reasons[uVar1].data[var_2];
    }
  }
  return pcVar2;
}


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

/* WARNING: Switch with 1 destination removed at 0x001033d0 */

char * MASKED(uint param_1)

{
  ulong uVar1;
  char *pcVar2;
  ulong uVar3;
  
  pcVar2 = "Unknown";
  if (param_1 - 100 < 500) {
    uVar1 = (ulong)param_1 / 100;
    uVar3 = (ulong)(param_1 + (int)uVar1 * -100);
    pcVar2 = "Unknown";
    if (uVar3 < *(ulong *)(&DAT_0031ba20 + uVar1 * 0x10)) {
      pcVar2 = *(char **)((&PTR_DAT_0031ba28)[uVar1 * 2] + uVar3 * 8);
    }
  }
  return pcVar2;
}

