
void unw_print_abreg(char *cp,uint abreg)

{
  uint uVar1;
  
  uVar1 = abreg >> 5 & 3;
  if (uVar1 == 2) {
    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));
    return;
  }
  if (uVar1 != 3) {
    if (uVar1 != 1) {
      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));
      return;
    }
    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));
    return;
  }
  strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8));
  return;
}



void FUN_0013bae0(char *param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = param_2 >> 5 & 3;
  if (uVar1 == 2) {
    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));
    return;
  }
  if (uVar1 != 3) {
    if (uVar1 != 1) {
      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));
      return;
    }
    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));
    return;
  }
  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);
  return;
}


MOV EAX,ESI
SHR EAX,0x5
AND EAX,0x3
CMP EAX,0x2
JZ 0x0013bb10
CMP EAX,0x3
JZ 0x0013bb40
MOV EDX,ESI
AND EDX,0x1f
CMP EAX,0x1
JZ 0x0013bb28
LEA RSI,[0x17c89a]
XOR EAX,EAX
JMP 0x001073c0
MOV EDX,ESI
XOR EAX,EAX
LEA RSI,[0x17c8a2]
AND EDX,0x1f
JMP 0x001073c0
LEA RSI,[0x17c89e]
XOR EAX,EAX
JMP 0x001073c0
AND ESI,0xf
LEA RAX,[0x18e840]
MOV RSI,qword ptr [RAX + RSI*0x8]
JMP 0x00107090
(translation_unit "void FUN_0013bae0(char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}\n\n" (function_definition "void FUN_0013bae0(char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" primitive_type (function_declarator "FUN_0013bae0(char *param_1,uint param_2)" identifier (parameter_list "(char *param_1,uint param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_2 >> 5 & 3;" (assignment_expression "uVar1 = param_2 >> 5 & 3" identifier = (binary_expression "param_2 >> 5 & 3" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal)) ;) (if_statement "if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 == 2)" ( (binary_expression "uVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" { (expression_statement "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"b%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""b%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" { (if_statement "if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" { (expression_statement "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"r%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""r%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"f%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""f%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);" (call_expression "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" identifier (argument_list "(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" ( identifier , (subscript_expression "(&PTR_s_pr_0018e840)[param_2 & 0xf]" (parenthesized_expression "(&PTR_s_pr_0018e840)" ( (pointer_expression "&PTR_s_pr_0018e840" & identifier) )) [ (binary_expression "param_2 & 0xf" identifier & number_literal) ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void unw_print_abreg(char *cp,uint abreg)\n\n{\n  uint uVar1;\n  \n  uVar1 = abreg >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }\n    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8));\n  return;\n}\n\n" (function_definition "void unw_print_abreg(char *cp,uint abreg)\n\n{\n  uint uVar1;\n  \n  uVar1 = abreg >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }\n    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8));\n  return;\n}" primitive_type (function_declarator "unw_print_abreg(char *cp,uint abreg)" identifier (parameter_list "(char *cp,uint abreg)" ( (parameter_declaration "char *cp" primitive_type (pointer_declarator "*cp" * identifier)) , (parameter_declaration "uint abreg" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = abreg >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }\n    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));\n    return;\n  }\n  strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8));\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = abreg >> 5 & 3;" (assignment_expression "uVar1 = abreg >> 5 & 3" identifier = (binary_expression "abreg >> 5 & 3" (binary_expression "abreg >> 5" identifier >> number_literal) & number_literal)) ;) (if_statement "if (uVar1 == 2) {\n    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 == 2)" ( (binary_expression "uVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    sprintf(cp,"b%u",(ulong)(abreg & 0x1f));\n    return;\n  }" { (expression_statement "sprintf(cp,"b%u",(ulong)(abreg & 0x1f));" (call_expression "sprintf(cp,"b%u",(ulong)(abreg & 0x1f))" identifier (argument_list "(cp,"b%u",(ulong)(abreg & 0x1f))" ( identifier , (string_literal ""b%u"" " string_content ") , (call_expression "(ulong)(abreg & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(abreg & 0x1f)" ( (binary_expression "abreg & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }\n    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }\n    sprintf(cp,"f%u",(ulong)(abreg & 0x1f));\n    return;\n  }" { (if_statement "if (uVar1 != 1) {\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      sprintf(cp,"r%u",(ulong)(abreg & 0x1f));\n      return;\n    }" { (expression_statement "sprintf(cp,"r%u",(ulong)(abreg & 0x1f));" (call_expression "sprintf(cp,"r%u",(ulong)(abreg & 0x1f))" identifier (argument_list "(cp,"r%u",(ulong)(abreg & 0x1f))" ( identifier , (string_literal ""r%u"" " string_content ") , (call_expression "(ulong)(abreg & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(abreg & 0x1f)" ( (binary_expression "abreg & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sprintf(cp,"f%u",(ulong)(abreg & 0x1f));" (call_expression "sprintf(cp,"f%u",(ulong)(abreg & 0x1f))" identifier (argument_list "(cp,"f%u",(ulong)(abreg & 0x1f))" ( identifier , (string_literal ""f%u"" " string_content ") , (call_expression "(ulong)(abreg & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(abreg & 0x1f)" ( (binary_expression "abreg & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8));" (call_expression "strcpy(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8))" identifier (argument_list "(cp,*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8))" ( identifier , (pointer_expression "*(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8)" * (cast_expression "(char **)(special_reg_7502 + (ulong)(abreg & 0xf) * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(special_reg_7502 + (ulong)(abreg & 0xf) * 8)" ( (binary_expression "special_reg_7502 + (ulong)(abreg & 0xf) * 8" identifier + (binary_expression "(ulong)(abreg & 0xf) * 8" (call_expression "(ulong)(abreg & 0xf)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(abreg & 0xf)" ( (binary_expression "abreg & 0xf" identifier & number_literal) ))) * number_literal)) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013bae0(char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}\n\n" (function_definition "void FUN_0013bae0(char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" primitive_type (function_declarator "FUN_0013bae0(char *param_1,uint param_2)" identifier (parameter_list "(char *param_1,uint param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = param_2 >> 5 & 3;" (assignment_expression "uVar1 = param_2 >> 5 & 3" identifier = (binary_expression "param_2 >> 5 & 3" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal)) ;) (if_statement "if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 == 2)" ( (binary_expression "uVar1 == 2" identifier == number_literal) )) (compound_statement "{\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" { (expression_statement "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"b%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""b%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" if (parenthesized_expression "(uVar1 != 3)" ( (binary_expression "uVar1 != 3" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" { (if_statement "if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" { (expression_statement "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"r%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""r%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f))" identifier (argument_list "(param_1,"f%u",(ulong)(param_2 & 0x1f))" ( identifier , (string_literal ""f%u"" " string_content ") , (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);" (call_expression "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" identifier (argument_list "(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" ( identifier , (subscript_expression "(&PTR_s_pr_0018e840)[param_2 & 0xf]" (parenthesized_expression "(&PTR_s_pr_0018e840)" ( (pointer_expression "&PTR_s_pr_0018e840" & identifier) )) [ (binary_expression "param_2 & 0xf" identifier & number_literal) ]) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT & LIT) ]) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0013bae0(char *param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013bae0(char *param_1,uint param_2)" (identifier "FUN_0013bae0") (parameter_list "(char *param_1,uint param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = param_2 >> 5 & 3;\n  if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }\n  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = param_2 >> 5 & 3;" (assignment_expression "uVar1 = param_2 >> 5 & 3" (identifier "uVar1") (= "=") (binary_expression "param_2 >> 5 & 3" (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) (& "&") (number_literal "3"))) (; ";")) (if_statement "if (uVar1 == 2) {\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 == 2)" (( "(") (binary_expression "uVar1 == 2" (identifier "uVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" ({ "{") (expression_statement "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f))" (identifier "sprintf") (argument_list "(param_1,"b%u",(ulong)(param_2 & 0x1f))" (( "(") (identifier "param_1") (, ",") (string_literal ""b%u"" (" """) (string_content "b%u") (" """)) (, ",") (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (uVar1 != 3) {\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" (if "if") (parenthesized_expression "(uVar1 != 3)" (( "(") (binary_expression "uVar1 != 3" (identifier "uVar1") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }\n    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));\n    return;\n  }" ({ "{") (if_statement "if (uVar1 != 1) {\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" (if "if") (parenthesized_expression "(uVar1 != 1)" (( "(") (binary_expression "uVar1 != 1" (identifier "uVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));\n      return;\n    }" ({ "{") (expression_statement "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f))" (identifier "sprintf") (argument_list "(param_1,"r%u",(ulong)(param_2 & 0x1f))" (( "(") (identifier "param_1") (, ",") (string_literal ""r%u"" (" """) (string_content "r%u") (" """)) (, ",") (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));" (call_expression "sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f))" (identifier "sprintf") (argument_list "(param_1,"f%u",(ulong)(param_2 & 0x1f))" (( "(") (identifier "param_1") (, ",") (string_literal ""f%u"" (" """) (string_content "f%u") (" """)) (, ",") (call_expression "(ulong)(param_2 & 0x1f)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);" (call_expression "strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" (identifier "strcpy") (argument_list "(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf])" (( "(") (identifier "param_1") (, ",") (subscript_expression "(&PTR_s_pr_0018e840)[param_2 & 0xf]" (parenthesized_expression "(&PTR_s_pr_0018e840)" (( "(") (pointer_expression "&PTR_s_pr_0018e840" (& "&") (identifier "PTR_s_pr_0018e840")) () ")")) ([ "[") (binary_expression "param_2 & 0xf" (identifier "param_2") (& "&") (number_literal "0xf")) (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char *cp,type_1 var_1)

{
  type_1 var_2;
  
  var_2 = var_1 >> 5 & 3;
  if (var_2 == 2) {
    var_3(cp,"b%u",(ulong)(var_1 & 0x1f));
    return;
  }
  if (var_2 != 3) {
    if (var_2 != 1) {
      var_3(cp,"r%u",(ulong)(var_1 & 0x1f));
      return;
    }
    var_3(cp,"f%u",(ulong)(var_1 & 0x1f));
    return;
  }
  var_4(cp,*(char **)(var_5 + (ulong)(var_1 & 0xf) * 8));
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void MASKED(char *param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = param_2 >> 5 & 3;
  if (uVar1 == 2) {
    sprintf(param_1,"b%u",(ulong)(param_2 & 0x1f));
    return;
  }
  if (uVar1 != 3) {
    if (uVar1 != 1) {
      sprintf(param_1,"r%u",(ulong)(param_2 & 0x1f));
      return;
    }
    sprintf(param_1,"f%u",(ulong)(param_2 & 0x1f));
    return;
  }
  strcpy(param_1,(&PTR_s_pr_0018e840)[param_2 & 0xf]);
  return;
}

