
char * build_row(char *p,uint *dp)

{
  uint uVar1;
  uint *puVar2;
  char *pcVar4;
  uint *puVar3;
  
  memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15));
  puVar2 = dp;
  do {
    puVar3 = puVar2 + 1;
    uVar1 = *puVar2;
    if (uVar1 == 0xffffffff) {
      p = p + (option_mask32 + 3);
    }
    else {
      pcVar4 = p;
      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {
        p[1] = '0';
        *p = (char)((ulong)uVar1 / 100) + '0';
        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;
      }
      if (9 < uVar1) {
        *pcVar4 = (char)(uVar1 / 10) + '0';
      }
      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';
      p = pcVar4 + 3;
    }
    puVar2 = puVar3;
  } while (puVar3 != dp + 7);
  return p;
}



char * FUN_00157ea1(char *param_1,uint *param_2)

{
  uint uVar1;
  uint *puVar2;
  char *pcVar4;
  uint *puVar3;
  
  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));
  puVar2 = param_2;
  do {
    puVar3 = puVar2 + 1;
    uVar1 = *puVar2;
    if (uVar1 == 0xffffffff) {
      param_1 = param_1 + (DAT_001c6a08 + 3);
    }
    else {
      pcVar4 = param_1;
      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {
        param_1[1] = '0';
        *param_1 = (char)((ulong)uVar1 / 100) + '0';
        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;
      }
      if (9 < uVar1) {
        *pcVar4 = (char)(uVar1 / 10) + '0';
      }
      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';
      param_1 = pcVar4 + 3;
    }
    puVar2 = puVar3;
  } while (puVar3 != param_2 + 7);
  return param_1;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RDI
MOV RBP,RSI
MOV EDX,dword ptr [0x001c6a08]
LEA EAX,[RDX*0x8]
SUB EAX,EDX
LEA EDX,[RAX + 0x15]
MOV ESI,0x20
CALL 0x0010b710
LEA R9,[RBP + 0x1c]
MOV EDI,0xcccccccd
MOV R8D,0x51eb851f
ADD RBP,0x4
MOV ECX,dword ptr [RBP + -0x4]
CMP ECX,-0x1
JZ 0x00157f47
MOV RSI,RBX
CMP dword ptr [0x001c6a08],0x0
JZ 0x00157f0f
LEA RSI,[RBX + 0x1]
CMP ECX,0x63
JBE 0x00157f0f
MOV byte ptr [RBX + 0x1],0x30
MOV EAX,ECX
MUL R8D
SHR EDX,0x5
LEA EAX,[RDX + 0x30]
MOV byte ptr [RBX],AL
IMUL EDX,EDX,0x64
SUB ECX,EDX
CMP ECX,0x9
JBE 0x00157f20
MOV EAX,ECX
MUL EDI
SHR EDX,0x3
ADD EDX,0x30
MOV byte ptr [RSI],DL
MOV EAX,ECX
MUL EDI
SHR EDX,0x3
LEA EAX,[RDX + RDX*0x4]
ADD EAX,EAX
SUB ECX,EAX
ADD ECX,0x30
MOV byte ptr [RSI + 0x1],CL
LEA RBX,[RSI + 0x3]
CMP RBP,R9
JNZ 0x00157ed8
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV EAX,dword ptr [0x001c6a08]
LEA EAX,[RAX + 0x3]
ADD RBX,RAX
JMP 0x00157f38
(translation_unit "char * FUN_00157ea1(char *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}\n\n" (function_definition "char * FUN_00157ea1(char *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00157ea1(char *param_1,uint *param_2)" * (function_declarator "FUN_00157ea1(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));" (call_expression "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" identifier (argument_list "(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" ( identifier , number_literal , (call_expression "(ulong)(DAT_001c6a08 * 7 + 0x15)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(DAT_001c6a08 * 7 + 0x15)" ( (binary_expression "DAT_001c6a08 * 7 + 0x15" (binary_expression "DAT_001c6a08 * 7" identifier * number_literal) + number_literal) ))) ))) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);" do (compound_statement "{\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  }" { (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }" { (expression_statement "param_1 = param_1 + (DAT_001c6a08 + 3);" (assignment_expression "param_1 = param_1 + (DAT_001c6a08 + 3)" identifier = (binary_expression "param_1 + (DAT_001c6a08 + 3)" identifier + (parenthesized_expression "(DAT_001c6a08 + 3)" ( (binary_expression "DAT_001c6a08 + 3" identifier + number_literal) )))) ;) }) (else_clause "else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" else (compound_statement "{\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" { (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (if_statement "if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" if (parenthesized_expression "((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1))" ( (binary_expression "(DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)" (parenthesized_expression "(DAT_001c6a08 != 0)" ( (binary_expression "DAT_001c6a08 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar4 = param_1 + 1, 99 < uVar1)" ( (comma_expression "pcVar4 = param_1 + 1, 99 < uVar1" (assignment_expression "pcVar4 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) , (binary_expression "99 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" { (expression_statement "param_1[1] = '0';" (assignment_expression "param_1[1] = '0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) (expression_statement "*param_1 = (char)((ulong)uVar1 / 100) + '0';" (assignment_expression "*param_1 = (char)((ulong)uVar1 / 100) + '0'" (pointer_expression "*param_1" * identifier) = (binary_expression "(char)((ulong)uVar1 / 100) + '0'" (cast_expression "(char)((ulong)uVar1 / 100)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;" (assignment_expression "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier = (binary_expression "uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier + (binary_expression "(int)((ulong)uVar1 / 100) * -100" (cast_expression "(int)((ulong)uVar1 / 100)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal))) ;) })) (if_statement "if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" if (parenthesized_expression "(9 < uVar1)" ( (binary_expression "9 < uVar1" number_literal < identifier) )) (compound_statement "{\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" { (expression_statement "*pcVar4 = (char)(uVar1 / 10) + '0';" (assignment_expression "*pcVar4 = (char)(uVar1 / 10) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(char)(uVar1 / 10) + '0'" (cast_expression "(char)(uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar1 / 10)" ( (binary_expression "uVar1 / 10" identifier / number_literal) ))) + (char_literal "'0'" ' character '))) ;) })) (expression_statement "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';" (assignment_expression "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)((ulong)uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 10)" ( (binary_expression "(ulong)uVar1 / 10" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = pcVar4 + 3;" (assignment_expression "param_1 = pcVar4 + 3" identifier = (binary_expression "pcVar4 + 3" identifier + number_literal)) ;) }))) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != param_2 + 7)" ( (binary_expression "puVar3 != param_2 + 7" identifier != (binary_expression "param_2 + 7" identifier + number_literal)) )) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * build_row(char *p,uint *dp)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15));\n  puVar2 = dp;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != dp + 7);\n  return p;\n}\n\n" (function_definition "char * build_row(char *p,uint *dp)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15));\n  puVar2 = dp;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != dp + 7);\n  return p;\n}" primitive_type (pointer_declarator "* build_row(char *p,uint *dp)" * (function_declarator "build_row(char *p,uint *dp)" identifier (parameter_list "(char *p,uint *dp)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "uint *dp" type_identifier (pointer_declarator "*dp" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15));\n  puVar2 = dp;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != dp + 7);\n  return p;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15));" (call_expression "memset(p,0x20,(ulong)(option_mask32 * 7 + 0x15))" identifier (argument_list "(p,0x20,(ulong)(option_mask32 * 7 + 0x15))" ( identifier , number_literal , (call_expression "(ulong)(option_mask32 * 7 + 0x15)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(option_mask32 * 7 + 0x15)" ( (binary_expression "option_mask32 * 7 + 0x15" (binary_expression "option_mask32 * 7" identifier * number_literal) + number_literal) ))) ))) ;) (expression_statement "puVar2 = dp;" (assignment_expression "puVar2 = dp" identifier = identifier) ;) (do_statement "do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != dp + 7);" do (compound_statement "{\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  }" { (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      p = p + (option_mask32 + 3);\n    }\n    else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      p = p + (option_mask32 + 3);\n    }" { (expression_statement "p = p + (option_mask32 + 3);" (assignment_expression "p = p + (option_mask32 + 3)" identifier = (binary_expression "p + (option_mask32 + 3)" identifier + (parenthesized_expression "(option_mask32 + 3)" ( (binary_expression "option_mask32 + 3" identifier + number_literal) )))) ;) }) (else_clause "else {\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }" else (compound_statement "{\n      pcVar4 = p;\n      if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      p = pcVar4 + 3;\n    }" { (expression_statement "pcVar4 = p;" (assignment_expression "pcVar4 = p" identifier = identifier) ;) (if_statement "if ((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)) {\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" if (parenthesized_expression "((option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1))" ( (binary_expression "(option_mask32 != 0) && (pcVar4 = p + 1, 99 < uVar1)" (parenthesized_expression "(option_mask32 != 0)" ( (binary_expression "option_mask32 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar4 = p + 1, 99 < uVar1)" ( (comma_expression "pcVar4 = p + 1, 99 < uVar1" (assignment_expression "pcVar4 = p + 1" identifier = (binary_expression "p + 1" identifier + number_literal)) , (binary_expression "99 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n        p[1] = '0';\n        *p = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" { (expression_statement "p[1] = '0';" (assignment_expression "p[1] = '0'" (subscript_expression "p[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) (expression_statement "*p = (char)((ulong)uVar1 / 100) + '0';" (assignment_expression "*p = (char)((ulong)uVar1 / 100) + '0'" (pointer_expression "*p" * identifier) = (binary_expression "(char)((ulong)uVar1 / 100) + '0'" (cast_expression "(char)((ulong)uVar1 / 100)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;" (assignment_expression "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier = (binary_expression "uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier + (binary_expression "(int)((ulong)uVar1 / 100) * -100" (cast_expression "(int)((ulong)uVar1 / 100)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal))) ;) })) (if_statement "if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" if (parenthesized_expression "(9 < uVar1)" ( (binary_expression "9 < uVar1" number_literal < identifier) )) (compound_statement "{\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" { (expression_statement "*pcVar4 = (char)(uVar1 / 10) + '0';" (assignment_expression "*pcVar4 = (char)(uVar1 / 10) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(char)(uVar1 / 10) + '0'" (cast_expression "(char)(uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar1 / 10)" ( (binary_expression "uVar1 / 10" identifier / number_literal) ))) + (char_literal "'0'" ' character '))) ;) })) (expression_statement "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';" (assignment_expression "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)((ulong)uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 10)" ( (binary_expression "(ulong)uVar1 / 10" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "p = pcVar4 + 3;" (assignment_expression "p = pcVar4 + 3" identifier = (binary_expression "pcVar4 + 3" identifier + number_literal)) ;) }))) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != dp + 7)" ( (binary_expression "puVar3 != dp + 7" identifier != (binary_expression "dp + 7" identifier + number_literal)) )) ;) (return_statement "return p;" return identifier ;) })))
(translation_unit "char * FUN_00157ea1(char *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}\n\n" (function_definition "char * FUN_00157ea1(char *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00157ea1(char *param_1,uint *param_2)" * (function_declarator "FUN_00157ea1(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));" (call_expression "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" identifier (argument_list "(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" ( identifier , number_literal , (call_expression "(ulong)(DAT_001c6a08 * 7 + 0x15)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(DAT_001c6a08 * 7 + 0x15)" ( (binary_expression "DAT_001c6a08 * 7 + 0x15" (binary_expression "DAT_001c6a08 * 7" identifier * number_literal) + number_literal) ))) ))) ;) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);" do (compound_statement "{\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  }" { (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }" { (expression_statement "param_1 = param_1 + (DAT_001c6a08 + 3);" (assignment_expression "param_1 = param_1 + (DAT_001c6a08 + 3)" identifier = (binary_expression "param_1 + (DAT_001c6a08 + 3)" identifier + (parenthesized_expression "(DAT_001c6a08 + 3)" ( (binary_expression "DAT_001c6a08 + 3" identifier + number_literal) )))) ;) }) (else_clause "else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" else (compound_statement "{\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" { (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" identifier = identifier) ;) (if_statement "if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" if (parenthesized_expression "((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1))" ( (binary_expression "(DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)" (parenthesized_expression "(DAT_001c6a08 != 0)" ( (binary_expression "DAT_001c6a08 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar4 = param_1 + 1, 99 < uVar1)" ( (comma_expression "pcVar4 = param_1 + 1, 99 < uVar1" (assignment_expression "pcVar4 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) , (binary_expression "99 < uVar1" number_literal < identifier)) ))) )) (compound_statement "{\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" { (expression_statement "param_1[1] = '0';" (assignment_expression "param_1[1] = '0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) (expression_statement "*param_1 = (char)((ulong)uVar1 / 100) + '0';" (assignment_expression "*param_1 = (char)((ulong)uVar1 / 100) + '0'" (pointer_expression "*param_1" * identifier) = (binary_expression "(char)((ulong)uVar1 / 100) + '0'" (cast_expression "(char)((ulong)uVar1 / 100)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;" (assignment_expression "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier = (binary_expression "uVar1 + (int)((ulong)uVar1 / 100) * -100" identifier + (binary_expression "(int)((ulong)uVar1 / 100) * -100" (cast_expression "(int)((ulong)uVar1 / 100)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 100)" ( (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal))) ;) })) (if_statement "if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" if (parenthesized_expression "(9 < uVar1)" ( (binary_expression "9 < uVar1" number_literal < identifier) )) (compound_statement "{\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" { (expression_statement "*pcVar4 = (char)(uVar1 / 10) + '0';" (assignment_expression "*pcVar4 = (char)(uVar1 / 10) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(char)(uVar1 / 10) + '0'" (cast_expression "(char)(uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(uVar1 / 10)" ( (binary_expression "uVar1 / 10" identifier / number_literal) ))) + (char_literal "'0'" ' character '))) ;) })) (expression_statement "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';" (assignment_expression "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)((ulong)uVar1 / 10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)uVar1 / 10)" ( (binary_expression "(ulong)uVar1 / 10" (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) / number_literal) ))) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = pcVar4 + 3;" (assignment_expression "param_1 = pcVar4 + 3" identifier = (binary_expression "pcVar4 + 3" identifier + number_literal)) ;) }))) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" identifier = identifier) ;) }) while (parenthesized_expression "(puVar3 != param_2 + 7)" ( (binary_expression "puVar3 != param_2 + 7" identifier != (binary_expression "param_2 + 7" identifier + number_literal)) )) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT * LIT) + LIT) ))) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) ))) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) ))) * LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT / LIT) ))) + (char_literal ' character '))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) ))) * LIT)) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00157ea1(char *param_1,uint *param_2)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" (primitive_type "char") (pointer_declarator "* FUN_00157ea1(char *param_1,uint *param_2)" (* "*") (function_declarator "FUN_00157ea1(char *param_1,uint *param_2)" (identifier "FUN_00157ea1") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  char *pcVar4;\n  uint *puVar3;\n  \n  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));\n  puVar2 = param_2;\n  do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);\n  return param_1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));" (call_expression "memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" (identifier "memset") (argument_list "(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15))" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (call_expression "(ulong)(DAT_001c6a08 * 7 + 0x15)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(DAT_001c6a08 * 7 + 0x15)" (( "(") (binary_expression "DAT_001c6a08 * 7 + 0x15" (binary_expression "DAT_001c6a08 * 7" (identifier "DAT_001c6a08") (* "*") (number_literal "7")) (+ "+") (number_literal "0x15")) () ")"))) () ")"))) (; ";")) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  } while (puVar3 != param_2 + 7);" (do "do") (compound_statement "{\n    puVar3 = puVar2 + 1;\n    uVar1 = *puVar2;\n    if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }\n    puVar2 = puVar3;\n  }" ({ "{") (expression_statement "puVar3 = puVar2 + 1;" (assignment_expression "puVar3 = puVar2 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar1 = *puVar2;" (assignment_expression "uVar1 = *puVar2" (identifier "uVar1") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (if_statement "if (uVar1 == 0xffffffff) {\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }\n    else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n      param_1 = param_1 + (DAT_001c6a08 + 3);\n    }" ({ "{") (expression_statement "param_1 = param_1 + (DAT_001c6a08 + 3);" (assignment_expression "param_1 = param_1 + (DAT_001c6a08 + 3)" (identifier "param_1") (= "=") (binary_expression "param_1 + (DAT_001c6a08 + 3)" (identifier "param_1") (+ "+") (parenthesized_expression "(DAT_001c6a08 + 3)" (( "(") (binary_expression "DAT_001c6a08 + 3" (identifier "DAT_001c6a08") (+ "+") (number_literal "3")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" (else "else") (compound_statement "{\n      pcVar4 = param_1;\n      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }\n      if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }\n      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';\n      param_1 = pcVar4 + 3;\n    }" ({ "{") (expression_statement "pcVar4 = param_1;" (assignment_expression "pcVar4 = param_1" (identifier "pcVar4") (= "=") (identifier "param_1")) (; ";")) (if_statement "if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" (if "if") (parenthesized_expression "((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1))" (( "(") (binary_expression "(DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)" (parenthesized_expression "(DAT_001c6a08 != 0)" (( "(") (binary_expression "DAT_001c6a08 != 0" (identifier "DAT_001c6a08") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(pcVar4 = param_1 + 1, 99 < uVar1)" (( "(") (comma_expression "pcVar4 = param_1 + 1, 99 < uVar1" (assignment_expression "pcVar4 = param_1 + 1" (identifier "pcVar4") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (, ",") (binary_expression "99 < uVar1" (number_literal "99") (< "<") (identifier "uVar1"))) () ")"))) () ")")) (compound_statement "{\n        param_1[1] = '0';\n        *param_1 = (char)((ulong)uVar1 / 100) + '0';\n        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;\n      }" ({ "{") (expression_statement "param_1[1] = '0';" (assignment_expression "param_1[1] = '0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'0'" (' "'") (character "0") (' "'"))) (; ";")) (expression_statement "*param_1 = (char)((ulong)uVar1 / 100) + '0';" (assignment_expression "*param_1 = (char)((ulong)uVar1 / 100) + '0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "(char)((ulong)uVar1 / 100) + '0'" (cast_expression "(char)((ulong)uVar1 / 100)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((ulong)uVar1 / 100)" (( "(") (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1")) (/ "/") (number_literal "100")) () ")"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;" (assignment_expression "uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100" (identifier "uVar1") (= "=") (binary_expression "uVar1 + (int)((ulong)uVar1 / 100) * -100" (identifier "uVar1") (+ "+") (binary_expression "(int)((ulong)uVar1 / 100) * -100" (cast_expression "(int)((ulong)uVar1 / 100)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulong)uVar1 / 100)" (( "(") (binary_expression "(ulong)uVar1 / 100" (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1")) (/ "/") (number_literal "100")) () ")"))) (* "*") (number_literal "-100")))) (; ";")) (} "}"))) (if_statement "if (9 < uVar1) {\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" (if "if") (parenthesized_expression "(9 < uVar1)" (( "(") (binary_expression "9 < uVar1" (number_literal "9") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        *pcVar4 = (char)(uVar1 / 10) + '0';\n      }" ({ "{") (expression_statement "*pcVar4 = (char)(uVar1 / 10) + '0';" (assignment_expression "*pcVar4 = (char)(uVar1 / 10) + '0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (binary_expression "(char)(uVar1 / 10) + '0'" (cast_expression "(char)(uVar1 / 10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(uVar1 / 10)" (( "(") (binary_expression "uVar1 / 10" (identifier "uVar1") (/ "/") (number_literal "10")) () ")"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (} "}"))) (expression_statement "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';" (assignment_expression "pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0'" (binary_expression "(char)uVar1 + (char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (+ "+") (binary_expression "(char)((ulong)uVar1 / 10) * -10" (cast_expression "(char)((ulong)uVar1 / 10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((ulong)uVar1 / 10)" (( "(") (binary_expression "(ulong)uVar1 / 10" (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1")) (/ "/") (number_literal "10")) () ")"))) (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "param_1 = pcVar4 + 3;" (assignment_expression "param_1 = pcVar4 + 3" (identifier "param_1") (= "=") (binary_expression "pcVar4 + 3" (identifier "pcVar4") (+ "+") (number_literal "3"))) (; ";")) (} "}")))) (expression_statement "puVar2 = puVar3;" (assignment_expression "puVar2 = puVar3" (identifier "puVar2") (= "=") (identifier "puVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != param_2 + 7)" (( "(") (binary_expression "puVar3 != param_2 + 7" (identifier "puVar3") (!= "!=") (binary_expression "param_2 + 7" (identifier "param_2") (+ "+") (number_literal "7"))) () ")")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

char * function_1(char *var_5,type_1 *var_8)

{
  type_1 var_4;
  type_1 *var_3;
  char *var_6;
  type_1 *var_7;
  
  var_1(var_5,0x20,(type_2)(var_2 * 7 + 0x15));
  var_3 = var_8;
  do {
    var_7 = var_3 + 1;
    var_4 = *var_3;
    if (var_4 == 0xffffffff) {
      var_5 = var_5 + (var_2 + 3);
    }
    else {
      var_6 = var_5;
      if ((var_2 != 0) && (var_6 = var_5 + 1, 99 < var_4)) {
        var_5[1] = '0';
        *var_5 = (char)((type_2)var_4 / 100) + '0';
        var_4 = var_4 + (int)((type_2)var_4 / 100) * -100;
      }
      if (9 < var_4) {
        *var_6 = (char)(var_4 / 10) + '0';
      }
      var_6[1] = (char)var_4 + (char)((type_2)var_4 / 10) * -10 + '0';
      var_5 = var_6 + 3;
    }
    var_3 = var_7;
  } while (var_7 != var_8 + 7);
  return var_5;
}


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

char * MASKED(char *param_1,uint *param_2)

{
  uint uVar1;
  uint *puVar2;
  char *pcVar4;
  uint *puVar3;
  
  memset(param_1,0x20,(ulong)(DAT_001c6a08 * 7 + 0x15));
  puVar2 = param_2;
  do {
    puVar3 = puVar2 + 1;
    uVar1 = *puVar2;
    if (uVar1 == 0xffffffff) {
      param_1 = param_1 + (DAT_001c6a08 + 3);
    }
    else {
      pcVar4 = param_1;
      if ((DAT_001c6a08 != 0) && (pcVar4 = param_1 + 1, 99 < uVar1)) {
        param_1[1] = '0';
        *param_1 = (char)((ulong)uVar1 / 100) + '0';
        uVar1 = uVar1 + (int)((ulong)uVar1 / 100) * -100;
      }
      if (9 < uVar1) {
        *pcVar4 = (char)(uVar1 / 10) + '0';
      }
      pcVar4[1] = (char)uVar1 + (char)((ulong)uVar1 / 10) * -10 + '0';
      param_1 = pcVar4 + 3;
    }
    puVar2 = puVar3;
  } while (puVar3 != param_2 + 7);
  return param_1;
}

