
void __regparm3 unw_print_brmask(char *cp,uint mask)

{
  bool bVar1;
  int iVar2;
  char *pcVar3;
  
  if (mask != 0) {
    iVar2 = 0;
    bVar1 = false;
    pcVar3 = cp;
    do {
      cp = pcVar3;
      if ((mask & 1) != 0) {
        if (bVar1) {
          *pcVar3 = ',';
          pcVar3 = pcVar3 + 1;
        }
        *pcVar3 = 'b';
        cp = pcVar3 + 2;
        bVar1 = true;
        pcVar3[1] = (char)iVar2 + '1';
      }
      iVar2 = iVar2 + 1;
      mask = mask >> 1;
    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));
  }
  *cp = '\0';
  return;
}



void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)

{
  bool bVar1;
  int iVar2;
  undefined1 *puVar3;
  
  if (param_2 != 0) {
    iVar2 = 0;
    bVar1 = false;
    puVar3 = param_1;
    do {
      param_1 = puVar3;
      if ((param_2 & 1) != 0) {
        if (bVar1) {
          *puVar3 = 0x2c;
          puVar3 = puVar3 + 1;
        }
        *puVar3 = 0x62;
        param_1 = puVar3 + 2;
        bVar1 = true;
        puVar3[1] = (char)iVar2 + '1';
      }
      iVar2 = iVar2 + 1;
      param_2 = param_2 >> 1;
    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));
  }
  *param_1 = 0;
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
TEST EDX,EDX
JZ 0x0004ac40
XOR ECX,ECX
XOR ESI,ESI
JMP 0x0004ac15
CMP ECX,0x4
JG 0x0004ac40
TEST DL,0x1
JZ 0x0004ac39
MOV EBX,EDI
TEST ESI,ESI
JZ 0x0004ac26
MOV byte ptr [EDI],0x2c
ADD EBX,0x1
LEA ESI,[ECX + 0x31]
MOV byte ptr [EBX],0x62
LEA EDI,[EBX + 0x2]
MOV EAX,ESI
MOV ESI,0x1
MOV byte ptr [EBX + 0x1],AL
ADD ECX,0x1
SHR EDX,0x1
JNZ 0x0004ac10
MOV byte ptr [EDI],0x0
POP EBX
POP ESI
POP EDI
RET
(translation_unit "void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004ac00(undefined1 *param_1,uint param_2)" identifier (parameter_list "(undefined1 *param_1,uint param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));" do (compound_statement "{\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    }" { (expression_statement "param_1 = puVar3;" (assignment_expression "param_1 = puVar3" identifier = identifier) ;) (if_statement "if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" { (if_statement "if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" { (expression_statement "*puVar3 = 0x2c;" (assignment_expression "*puVar3 = 0x2c" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*puVar3 = 0x62;" (assignment_expression "*puVar3 = 0x62" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "param_1 = puVar3 + 2;" (assignment_expression "param_1 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "puVar3[1] = (char)iVar2 + '1';" (assignment_expression "puVar3[1] = (char)iVar2 + '1'" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "(char)iVar2 + '1'" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'1'" ' character '))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 >> 1;" (assignment_expression "param_2 = param_2 >> 1" identifier = (binary_expression "param_2 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "((param_2 != 0) && (puVar3 = param_1, iVar2 < 5))" ( (binary_expression "(param_2 != 0) && (puVar3 = param_1, iVar2 < 5)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar3 = param_1, iVar2 < 5)" ( (comma_expression "puVar3 = param_1, iVar2 < 5" (assignment_expression "puVar3 = param_1" identifier = identifier) , (binary_expression "iVar2 < 5" identifier < number_literal)) ))) )) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 unw_print_brmask(char *cp,uint mask)\n\n{\n  bool bVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (mask != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    pcVar3 = cp;\n    do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));\n  }\n  *cp = '\0';\n  return;\n}\n\n" (function_definition "void __regparm3 unw_print_brmask(char *cp,uint mask)\n\n{\n  bool bVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (mask != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    pcVar3 = cp;\n    do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));\n  }\n  *cp = '\0';\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "unw_print_brmask(char *cp,uint mask)" identifier (parameter_list "(char *cp,uint mask)" ( (parameter_declaration "char *cp" primitive_type (pointer_declarator "*cp" * identifier)) , (parameter_declaration "uint mask" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if (mask != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    pcVar3 = cp;\n    do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));\n  }\n  *cp = '\0';\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (mask != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    pcVar3 = cp;\n    do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));\n  }" if (parenthesized_expression "(mask != 0)" ( (binary_expression "mask != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    bVar1 = false;\n    pcVar3 = cp;\n    do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar3 = cp;" (assignment_expression "pcVar3 = cp" identifier = identifier) ;) (do_statement "do {\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    } while ((mask != 0) && (pcVar3 = cp, iVar2 < 5));" do (compound_statement "{\n      cp = pcVar3;\n      if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      mask = mask >> 1;\n    }" { (expression_statement "cp = pcVar3;" (assignment_expression "cp = pcVar3" identifier = identifier) ;) (if_statement "if ((mask & 1) != 0) {\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }" if (parenthesized_expression "((mask & 1) != 0)" ( (binary_expression "(mask & 1) != 0" (parenthesized_expression "(mask & 1)" ( (binary_expression "mask & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }\n        *pcVar3 = 'b';\n        cp = pcVar3 + 2;\n        bVar1 = true;\n        pcVar3[1] = (char)iVar2 + '1';\n      }" { (if_statement "if (bVar1) {\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *pcVar3 = ',';\n          pcVar3 = pcVar3 + 1;\n        }" { (expression_statement "*pcVar3 = ',';" (assignment_expression "*pcVar3 = ','" (pointer_expression "*pcVar3" * identifier) = (char_literal "','" ' character ')) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*pcVar3 = 'b';" (assignment_expression "*pcVar3 = 'b'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'b'" ' character ')) ;) (expression_statement "cp = pcVar3 + 2;" (assignment_expression "cp = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "pcVar3[1] = (char)iVar2 + '1';" (assignment_expression "pcVar3[1] = (char)iVar2 + '1'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (binary_expression "(char)iVar2 + '1'" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'1'" ' character '))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "mask = mask >> 1;" (assignment_expression "mask = mask >> 1" identifier = (binary_expression "mask >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "((mask != 0) && (pcVar3 = cp, iVar2 < 5))" ( (binary_expression "(mask != 0) && (pcVar3 = cp, iVar2 < 5)" (parenthesized_expression "(mask != 0)" ( (binary_expression "mask != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar3 = cp, iVar2 < 5)" ( (comma_expression "pcVar3 = cp, iVar2 < 5" (assignment_expression "pcVar3 = cp" identifier = identifier) , (binary_expression "iVar2 < 5" identifier < number_literal)) ))) )) ;) })) (expression_statement "*cp = '\0';" (assignment_expression "*cp = '\0'" (pointer_expression "*cp" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004ac00(undefined1 *param_1,uint param_2)" identifier (parameter_list "(undefined1 *param_1,uint param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" identifier = identifier) ;) (do_statement "do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));" do (compound_statement "{\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    }" { (expression_statement "param_1 = puVar3;" (assignment_expression "param_1 = puVar3" identifier = identifier) ;) (if_statement "if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" { (if_statement "if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" { (expression_statement "*puVar3 = 0x2c;" (assignment_expression "*puVar3 = 0x2c" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) })) (expression_statement "*puVar3 = 0x62;" (assignment_expression "*puVar3 = 0x62" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "param_1 = puVar3 + 2;" (assignment_expression "param_1 = puVar3 + 2" identifier = (binary_expression "puVar3 + 2" identifier + number_literal)) ;) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "puVar3[1] = (char)iVar2 + '1';" (assignment_expression "puVar3[1] = (char)iVar2 + '1'" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = (binary_expression "(char)iVar2 + '1'" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'1'" ' character '))) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 >> 1;" (assignment_expression "param_2 = param_2 >> 1" identifier = (binary_expression "param_2 >> 1" identifier >> number_literal)) ;) }) while (parenthesized_expression "((param_2 != 0) && (puVar3 = param_1, iVar2 < 5))" ( (binary_expression "(param_2 != 0) && (puVar3 = param_1, iVar2 < 5)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar3 = param_1, iVar2 < 5)" ( (comma_expression "puVar3 = param_1, iVar2 < 5" (assignment_expression "puVar3 = param_1" identifier = identifier) , (binary_expression "iVar2 < 5" identifier < number_literal)) ))) )) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (char_literal ' character '))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT < LIT)) ))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0004ac00(undefined1 *param_1,uint param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004ac00(undefined1 *param_1,uint param_2)" (identifier "FUN_0004ac00") (parameter_list "(undefined1 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  \n  if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }\n  *param_1 = 0;\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (param_2 != 0) {\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    bVar1 = false;\n    puVar3 = param_1;\n    do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" (identifier "puVar3") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));" (do "do") (compound_statement "{\n      param_1 = puVar3;\n      if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }\n      iVar2 = iVar2 + 1;\n      param_2 = param_2 >> 1;\n    }" ({ "{") (expression_statement "param_1 = puVar3;" (assignment_expression "param_1 = puVar3" (identifier "param_1") (= "=") (identifier "puVar3")) (; ";")) (if_statement "if ((param_2 & 1) != 0) {\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" (if "if") (parenthesized_expression "((param_2 & 1) != 0)" (( "(") (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }\n        *puVar3 = 0x62;\n        param_1 = puVar3 + 2;\n        bVar1 = true;\n        puVar3[1] = (char)iVar2 + '1';\n      }" ({ "{") (if_statement "if (bVar1) {\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n          *puVar3 = 0x2c;\n          puVar3 = puVar3 + 1;\n        }" ({ "{") (expression_statement "*puVar3 = 0x2c;" (assignment_expression "*puVar3 = 0x2c" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x2c")) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*puVar3 = 0x62;" (assignment_expression "*puVar3 = 0x62" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x62")) (; ";")) (expression_statement "param_1 = puVar3 + 2;" (assignment_expression "param_1 = puVar3 + 2" (identifier "param_1") (= "=") (binary_expression "puVar3 + 2" (identifier "puVar3") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "puVar3[1] = (char)iVar2 + '1';" (assignment_expression "puVar3[1] = (char)iVar2 + '1'" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(char)iVar2 + '1'" (cast_expression "(char)iVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar2")) (+ "+") (char_literal "'1'" (' "'") (character "1") (' "'")))) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = param_2 >> 1;" (assignment_expression "param_2 = param_2 >> 1" (identifier "param_2") (= "=") (binary_expression "param_2 >> 1" (identifier "param_2") (>> ">>") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((param_2 != 0) && (puVar3 = param_1, iVar2 < 5))" (( "(") (binary_expression "(param_2 != 0) && (puVar3 = param_1, iVar2 < 5)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar3 = param_1, iVar2 < 5)" (( "(") (comma_expression "puVar3 = param_1, iVar2 < 5" (assignment_expression "puVar3 = param_1" (identifier "puVar3") (= "=") (identifier "param_1")) (, ",") (binary_expression "iVar2 < 5" (identifier "iVar2") (< "<") (number_literal "5"))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(char *cp,type_1 var_1)

{
  bool bVar1;
  int var_3;
  char *var_2;
  
  if (var_1 != 0) {
    var_3 = 0;
    bVar1 = false;
    var_2 = cp;
    do {
      cp = var_2;
      if ((var_1 & 1) != 0) {
        if (bVar1) {
          *var_2 = ',';
          var_2 = var_2 + 1;
        }
        *var_2 = 'b';
        cp = var_2 + 2;
        bVar1 = true;
        var_2[1] = (char)var_3 + '1';
      }
      var_3 = var_3 + 1;
      var_1 = var_1 >> 1;
    } while ((var_1 != 0) && (var_2 = cp, var_3 < 5));
  }
  *cp = '\0';
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (character))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

void __regparm3 MASKED(undefined1 *param_1,uint param_2)

{
  bool bVar1;
  int iVar2;
  undefined1 *puVar3;
  
  if (param_2 != 0) {
    iVar2 = 0;
    bVar1 = false;
    puVar3 = param_1;
    do {
      param_1 = puVar3;
      if ((param_2 & 1) != 0) {
        if (bVar1) {
          *puVar3 = 0x2c;
          puVar3 = puVar3 + 1;
        }
        *puVar3 = 0x62;
        param_1 = puVar3 + 2;
        bVar1 = true;
        puVar3[1] = (char)iVar2 + '1';
      }
      iVar2 = iVar2 + 1;
      param_2 = param_2 >> 1;
    } while ((param_2 != 0) && (puVar3 = param_1, iVar2 < 5));
  }
  *param_1 = 0;
  return;
}

