
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

char * bignum_decimal(Bignum_conflict x)

{
  uint uVar1;
  uint uVar2;
  bool bVar3;
  int iVar4;
  char *__dest;
  void *b;
  BignumInt BVar5;
  char *__src;
  uint uVar6;
  int iVar7;
  int local_2c;
  size_t local_20;
  
  iVar4 = *x * 0x20;
  iVar7 = iVar4 + -1;
  if (iVar7 < 0) {
LAB_00047e7d:
    if (iVar4 == 0) {
      local_20 = 2;
      local_2c = 1;
      goto LAB_00047e9e;
    }
  }
  else if (-1 < (int)x[(iVar7 >> 5) + 1]) {
    do {
      iVar4 = iVar7;
      iVar7 = iVar4 + -1;
      if (iVar7 == -1) goto LAB_00047e7d;
    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);
  }
  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;
  local_20 = local_2c + 1;
LAB_00047e9e:
  __dest = (char *)safemalloc(local_20,1);
  b = safemalloc(*x,4);
  iVar7 = 0;
  BVar5 = *x;
  if (0 < (int)BVar5) {
    do {
      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];
      BVar5 = *x;
      iVar7 = iVar7 + 1;
    } while (iVar7 < (int)BVar5);
  }
  __dest[local_2c] = '\0';
  iVar7 = local_2c;
  do {
    local_2c = iVar7;
    if ((int)*x < 1) {
      __src = __dest + local_2c + -1;
      *__src = '0';
      break;
    }
    uVar6 = 0;
    bVar3 = true;
    iVar7 = 0;
    do {
      uVar2 = *(uint *)((int)b + iVar7 * 4);
      uVar1 = uVar2 % 10 + uVar6 * 6;
      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;
      *(int *)((int)b + iVar7 * 4) = iVar4;
      uVar6 = uVar1 % 10;
      if (iVar4 != 0) {
        bVar3 = false;
      }
      iVar7 = iVar7 + 1;
    } while (iVar7 < (int)*x);
    iVar7 = local_2c + -1;
    __src = __dest + iVar7;
    __dest[iVar7] = (char)uVar6 + '0';
  } while (!bVar3);
  local_2c = local_2c + -1;
  if (0 < local_2c) {
    memmove(__dest,__src,local_20 - local_2c);
  }
  smemclr(b,*x << 2);
  safefree(b);
  return __dest;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void * FUN_00047e10(int *param_1)

{
  uint uVar1;
  uint uVar2;
  bool bVar3;
  int iVar4;
  void *__dest;
  undefined1 *__src;
  uint uVar5;
  int iVar6;
  int iVar7;
  int local_2c;
  int local_20;
  
  iVar4 = *param_1 * 0x20;
  iVar6 = iVar4 + -1;
  if (iVar6 < 0) {
LAB_00047e7d:
    if (iVar4 == 0) {
      local_20 = 2;
      local_2c = 1;
      goto LAB_00047e9e;
    }
  }
  else if (-1 < param_1[(iVar6 >> 5) + 1]) {
    do {
      iVar4 = iVar6;
      iVar6 = iVar4 + -1;
      if (iVar6 == -1) goto LAB_00047e7d;
    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);
  }
  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;
  local_20 = local_2c + 1;
LAB_00047e9e:
  __dest = (void *)FUN_0001a9b0(local_20,1);
  iVar4 = FUN_0001a9b0(*param_1,4);
  iVar7 = 0;
  iVar6 = *param_1;
  if (0 < iVar6) {
    do {
      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];
      iVar6 = *param_1;
      iVar7 = iVar7 + 1;
    } while (iVar7 < iVar6);
  }
  *(undefined1 *)((int)__dest + local_2c) = 0;
  iVar6 = local_2c;
  do {
    local_2c = iVar6;
    if (*param_1 < 1) {
      __src = (undefined1 *)((int)__dest + local_2c + -1);
      *__src = 0x30;
      break;
    }
    uVar5 = 0;
    bVar3 = true;
    iVar6 = 0;
    do {
      uVar2 = *(uint *)(iVar4 + iVar6 * 4);
      uVar1 = uVar2 % 10 + uVar5 * 6;
      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;
      *(int *)(iVar4 + iVar6 * 4) = iVar7;
      uVar5 = uVar1 % 10;
      if (iVar7 != 0) {
        bVar3 = false;
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 < *param_1);
    iVar6 = local_2c + -1;
    __src = (undefined1 *)((int)__dest + iVar6);
    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';
  } while (!bVar3);
  local_2c = local_2c + -1;
  if (0 < local_2c) {
    memmove(__dest,__src,local_20 - local_2c);
  }
  FUN_0001b320(iVar4,*param_1 << 2);
  FUN_0001b240(iVar4);
  return __dest;
}


CALL 0x00014fde
ADD EAX,0x61f7b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP],EAX
SHL EAX,0x5
MOV EDX,EAX
SUB EDX,0x1
JS 0x00048025
MOV ECX,EDX
MOV EDI,dword ptr [ESP + 0x30]
SAR ECX,0x5
MOV EBX,dword ptr [EDI + ECX*0x4 + 0x4]
TEST EBX,EBX
JS 0x00047fdf
MOV EBX,dword ptr [ESP + 0x30]
JMP 0x00047e75
MOV EAX,ECX
SAR EAX,0x5
MOV EAX,dword ptr [EBX + EAX*0x4 + 0x4]
SHR EAX,CL
TEST EAX,EAX
JNZ 0x00047fe1
MOV EDX,ECX
LEA ECX,[EDX + -0x1]
CMP ECX,-0x1
JNZ 0x00047e60
TEST EDX,EDX
JNZ 0x00047fe1
MOV dword ptr [ESP + 0xc],0x2
MOV ESI,0x1
MOV EAX,0x2
MOV dword ptr [ESP],0x1
SUB ESP,0x8
PUSH 0x1
PUSH EAX
MOV EDI,dword ptr [ESP + 0x18]
MOV EBX,EDI
CALL 0x0001a9b0
MOV dword ptr [ESP + 0x14],EAX
POP EDX
POP ECX
PUSH 0x4
MOV EAX,dword ptr [ESP + 0x3c]
PUSH dword ptr [EAX]
CALL 0x0001a9b0
XOR EDX,EDX
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x40]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JLE 0x00047ef1
LEA ESI,[ESI]
NOP
SUB EAX,EDX
MOV EAX,dword ptr [ECX + EAX*0x4]
MOV dword ptr [EDI + EDX*0x4],EAX
MOV EAX,dword ptr [ECX]
ADD EDX,0x1
CMP EAX,EDX
JG 0x00047ee0
MOV EAX,dword ptr [ESP + 0x4]
MOV byte ptr [EAX + ESI*0x1],0x0
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JLE 0x00048010
XOR ECX,ECX
MOV EBP,0x1
XOR ESI,ESI
LEA ESI,[ESI]
NOP
MOV EBX,dword ptr [EDI + ESI*0x4]
MOV EAX,0xcccccccd
MUL EBX
SHR EDX,0x3
LEA EAX,[EDX + EDX*0x4]
ADD EAX,EAX
SUB EBX,EAX
MOV EAX,EBX
IMUL EBX,ECX,0x19999999
ADD EBX,EDX
LEA EDX,[ECX + ECX*0x2]
LEA ECX,[EAX + EDX*0x2]
MOV EAX,0xcccccccd
MUL ECX
SHR EDX,0x3
LEA EAX,[EDX + EDX*0x4]
ADD EBX,EDX
ADD EAX,EAX
MOV dword ptr [EDI + ESI*0x4],EBX
SUB ECX,EAX
TEST EBX,EBX
MOV EAX,0x0
CMOVNZ EBP,EAX
MOV EAX,dword ptr [ESP + 0x30]
ADD ESI,0x1
CMP dword ptr [EAX],ESI
JG 0x00047f20
MOV EDX,dword ptr [ESP + 0x4]
SUB dword ptr [ESP],0x1
ADD ECX,0x30
MOV ESI,dword ptr [ESP]
MOV EAX,EDX
ADD EAX,ESI
MOV byte ptr [EDX + ESI*0x1],CL
TEST EBP,EBP
JZ 0x00047f00
LEA ESI,[ESI]
MOV ESI,dword ptr [ESP]
TEST ESI,ESI
JLE 0x00047fb2
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x10]
SUB EDX,ESI
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00014110
ADD ESP,0x10
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x38]
MOV EAX,dword ptr [EAX]
SHL EAX,0x2
PUSH EAX
PUSH EDI
MOV ESI,dword ptr [ESP + 0x18]
MOV EBX,ESI
CALL 0x0001b320
MOV dword ptr [ESP],EDI
CALL 0x0001b240
MOV EAX,dword ptr [ESP + 0x14]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EAX
IMUL EDX,EDX,0x1c
LEA ECX,[EDX + 0x5c]
MOV EDX,0x2c0b02c1
MOV EAX,ECX
SAR ECX,0x1f
IMUL EDX
SAR EDX,0x4
SUB EDX,ECX
LEA EAX,[EDX + 0x1]
MOV ESI,EDX
MOV dword ptr [ESP],EDX
MOV dword ptr [ESP + 0xc],EAX
JMP 0x00047e9e
SUB dword ptr [ESP],0x1
MOV EAX,dword ptr [ESP + 0x4]
MOV ESI,dword ptr [ESP]
ADD EAX,ESI
MOV byte ptr [EAX],0x30
JMP 0x00047f90
MOV EDX,EAX
JMP 0x00047e7d
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid * FUN_00047e10(int *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}\n\n" comment (function_definition "void * FUN_00047e10(int *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" primitive_type (pointer_declarator "* FUN_00047e10(int *param_1)" * (function_declarator "FUN_00047e10(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar4 = *param_1 * 0x20;" (assignment_expression "iVar4 = *param_1 * 0x20" identifier = (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" * identifier) * number_literal)) ;) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }" { (labeled_statement "LAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" statement_identifier : (if_statement "if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "local_2c = 1;" (assignment_expression "local_2c = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00047e9e;" goto statement_identifier ;) }))) }) (else_clause "else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" else (if_statement "if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" if (parenthesized_expression "(-1 < param_1[(iVar6 >> 5) + 1])" ( (binary_expression "-1 < param_1[(iVar6 >> 5) + 1]" number_literal < (subscript_expression "param_1[(iVar6 >> 5) + 1]" identifier [ (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" ( (binary_expression "iVar6 >> 5" identifier >> number_literal) )) + number_literal) ])) )) (compound_statement "{\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" { (do_statement "do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);" do (compound_statement "{\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    }" { (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 == -1) goto LAB_00047e7d;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00047e7d;" goto statement_identifier ;)) }) while (parenthesized_expression "((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0)" ( (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0" (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f)" (cast_expression "(uint)param_1[(iVar6 >> 5) + 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[(iVar6 >> 5) + 1]" identifier [ (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" ( (binary_expression "iVar6 >> 5" identifier >> number_literal) )) + number_literal) ])) >> (parenthesized_expression "((byte)iVar6 & 0x1f)" ( (binary_expression "(byte)iVar6 & 0x1f" (cast_expression "(byte)iVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) == number_literal) )) ;) })))) (expression_statement "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;" (assignment_expression "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d" identifier = (binary_expression "(iVar4 * 0x1c + 0x5c) / 0x5d" (parenthesized_expression "(iVar4 * 0x1c + 0x5c)" ( (binary_expression "iVar4 * 0x1c + 0x5c" (binary_expression "iVar4 * 0x1c" identifier * number_literal) + number_literal) )) / number_literal)) ;) (expression_statement "local_20 = local_2c + 1;" (assignment_expression "local_20 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);" statement_identifier : (expression_statement "__dest = (void *)FUN_0001a9b0(local_20,1);" (assignment_expression "__dest = (void *)FUN_0001a9b0(local_20,1)" identifier = (cast_expression "(void *)FUN_0001a9b0(local_20,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(local_20,1)" identifier (argument_list "(local_20,1)" ( identifier , number_literal ))))) ;)) (expression_statement "iVar4 = FUN_0001a9b0(*param_1,4);" (assignment_expression "iVar4 = FUN_0001a9b0(*param_1,4)" identifier = (call_expression "FUN_0001a9b0(*param_1,4)" identifier (argument_list "(*param_1,4)" ( (pointer_expression "*param_1" * identifier) , number_literal )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" { (do_statement "do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);" do (compound_statement "{\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    }" { (expression_statement "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];" (assignment_expression "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7]" (pointer_expression "*(int *)(iVar4 + iVar7 * 4)" * (cast_expression "(int *)(iVar4 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar7 * 4)" ( (binary_expression "iVar4 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_1[iVar6 - iVar7]" identifier [ (binary_expression "iVar6 - iVar7" identifier - identifier) ])) ;) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < iVar6)" ( (binary_expression "iVar7 < iVar6" identifier < identifier) )) ;) })) (expression_statement "*(undefined1 *)((int)__dest + local_2c) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_2c) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_2c)" * (cast_expression "(undefined1 *)((int)__dest + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_2c)" ( (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = local_2c;" (assignment_expression "iVar6 = local_2c" identifier = identifier) ;) (do_statement "do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);" do (compound_statement "{\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  }" { (expression_statement "local_2c = iVar6;" (assignment_expression "local_2c = iVar6" identifier = identifier) ;) (if_statement "if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" if (parenthesized_expression "(*param_1 < 1)" ( (binary_expression "*param_1 < 1" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" { (expression_statement "__src = (undefined1 *)((int)__dest + local_2c + -1);" (assignment_expression "__src = (undefined1 *)((int)__dest + local_2c + -1)" identifier = (cast_expression "(undefined1 *)((int)__dest + local_2c + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_2c + -1)" ( (binary_expression "(int)__dest + local_2c + -1" (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*__src = 0x30;" (assignment_expression "*__src = 0x30" (pointer_expression "*__src" * identifier) = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);" do (compound_statement "{\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "uVar2 = *(uint *)(iVar4 + iVar6 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + iVar6 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + iVar6 * 4)" * (cast_expression "(uint *)(iVar4 + iVar6 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar1 = uVar2 % 10 + uVar5 * 6;" (assignment_expression "uVar1 = uVar2 % 10 + uVar5 * 6" identifier = (binary_expression "uVar2 % 10 + uVar5 * 6" (binary_expression "uVar2 % 10" identifier % number_literal) + (binary_expression "uVar5 * 6" identifier * number_literal))) ;) (expression_statement "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;" (assignment_expression "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" identifier = (binary_expression "uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" (binary_expression "uVar5 * 0x19999999 + uVar2 / 10" (binary_expression "uVar5 * 0x19999999" identifier * number_literal) + (binary_expression "uVar2 / 10" identifier / number_literal)) + (binary_expression "uVar1 / 10" identifier / number_literal))) ;) (expression_statement "*(int *)(iVar4 + iVar6 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar6 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" * (cast_expression "(int *)(iVar4 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar5 = uVar1 % 10;" (assignment_expression "uVar5 = uVar1 % 10" identifier = (binary_expression "uVar1 % 10" identifier % number_literal)) ;) (if_statement "if (iVar7 != 0) {\n        bVar3 = false;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar3 = false;\n      }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *param_1)" ( (binary_expression "iVar6 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) ;) (expression_statement "iVar6 = local_2c + -1;" (assignment_expression "iVar6 = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "__src = (undefined1 *)((int)__dest + iVar6);" (assignment_expression "__src = (undefined1 *)((int)__dest + iVar6)" identifier = (cast_expression "(undefined1 *)((int)__dest + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + iVar6)" ( (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0';" (assignment_expression "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0'" (pointer_expression "*(char *)((int)__dest + iVar6)" * (cast_expression "(char *)((int)__dest + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + iVar6)" ( (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "(char)uVar5 + '0'" (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) }) while (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) ;) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }" if (parenthesized_expression "(0 < local_2c)" ( (binary_expression "0 < local_2c" number_literal < identifier) )) (compound_statement "{\n    memmove(__dest,__src,local_20 - local_2c);\n  }" { (expression_statement "memmove(__dest,__src,local_20 - local_2c);" (call_expression "memmove(__dest,__src,local_20 - local_2c)" identifier (argument_list "(__dest,__src,local_20 - local_2c)" ( identifier , identifier , (binary_expression "local_20 - local_2c" identifier - identifier) ))) ;) })) (expression_statement "FUN_0001b320(iVar4,*param_1 << 2);" (call_expression "FUN_0001b320(iVar4,*param_1 << 2)" identifier (argument_list "(iVar4,*param_1 << 2)" ( identifier , (binary_expression "*param_1 << 2" (pointer_expression "*param_1" * identifier) << number_literal) ))) ;) (expression_statement "FUN_0001b240(iVar4);" (call_expression "FUN_0001b240(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return __dest;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nchar * bignum_decimal(Bignum_conflict x)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  char *__dest;\n  void *b;\n  BignumInt BVar5;\n  char *__src;\n  uint uVar6;\n  int iVar7;\n  int local_2c;\n  size_t local_20;\n  \n  iVar4 = *x * 0x20;\n  iVar7 = iVar4 + -1;\n  if (iVar7 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (char *)safemalloc(local_20,1);\n  b = safemalloc(*x,4);\n  iVar7 = 0;\n  BVar5 = *x;\n  if (0 < (int)BVar5) {\n    do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);\n  }\n  __dest[local_2c] = '\0';\n  iVar7 = local_2c;\n  do {\n    local_2c = iVar7;\n    if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }\n    uVar6 = 0;\n    bVar3 = true;\n    iVar7 = 0;\n    do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);\n    iVar7 = local_2c + -1;\n    __src = __dest + iVar7;\n    __dest[iVar7] = (char)uVar6 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  smemclr(b,*x << 2);\n  safefree(b);\n  return __dest;\n}\n\n" comment comment (function_definition "char * bignum_decimal(Bignum_conflict x)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  char *__dest;\n  void *b;\n  BignumInt BVar5;\n  char *__src;\n  uint uVar6;\n  int iVar7;\n  int local_2c;\n  size_t local_20;\n  \n  iVar4 = *x * 0x20;\n  iVar7 = iVar4 + -1;\n  if (iVar7 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (char *)safemalloc(local_20,1);\n  b = safemalloc(*x,4);\n  iVar7 = 0;\n  BVar5 = *x;\n  if (0 < (int)BVar5) {\n    do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);\n  }\n  __dest[local_2c] = '\0';\n  iVar7 = local_2c;\n  do {\n    local_2c = iVar7;\n    if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }\n    uVar6 = 0;\n    bVar3 = true;\n    iVar7 = 0;\n    do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);\n    iVar7 = local_2c + -1;\n    __src = __dest + iVar7;\n    __dest[iVar7] = (char)uVar6 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  smemclr(b,*x << 2);\n  safefree(b);\n  return __dest;\n}" primitive_type (pointer_declarator "* bignum_decimal(Bignum_conflict x)" * (function_declarator "bignum_decimal(Bignum_conflict x)" identifier (parameter_list "(Bignum_conflict x)" ( (parameter_declaration "Bignum_conflict x" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  char *__dest;\n  void *b;\n  BignumInt BVar5;\n  char *__src;\n  uint uVar6;\n  int iVar7;\n  int local_2c;\n  size_t local_20;\n  \n  iVar4 = *x * 0x20;\n  iVar7 = iVar4 + -1;\n  if (iVar7 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (char *)safemalloc(local_20,1);\n  b = safemalloc(*x,4);\n  iVar7 = 0;\n  BVar5 = *x;\n  if (0 < (int)BVar5) {\n    do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);\n  }\n  __dest[local_2c] = '\0';\n  iVar7 = local_2c;\n  do {\n    local_2c = iVar7;\n    if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }\n    uVar6 = 0;\n    bVar3 = true;\n    iVar7 = 0;\n    do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);\n    iVar7 = local_2c + -1;\n    __src = __dest + iVar7;\n    __dest[iVar7] = (char)uVar6 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  smemclr(b,*x << 2);\n  safefree(b);\n  return __dest;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "void *b;" primitive_type (pointer_declarator "*b" * identifier) ;) (declaration "BignumInt BVar5;" type_identifier identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "size_t local_20;" primitive_type identifier ;) (expression_statement "iVar4 = *x * 0x20;" (assignment_expression "iVar4 = *x * 0x20" identifier = (binary_expression "*x * 0x20" (pointer_expression "*x" * identifier) * number_literal)) ;) (expression_statement "iVar7 = iVar4 + -1;" (assignment_expression "iVar7 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }" { (labeled_statement "LAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" statement_identifier : (if_statement "if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "local_2c = 1;" (assignment_expression "local_2c = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00047e9e;" goto statement_identifier ;) }))) }) (else_clause "else if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }" else (if_statement "if (-1 < (int)x[(iVar7 >> 5) + 1]) {\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }" if (parenthesized_expression "(-1 < (int)x[(iVar7 >> 5) + 1])" ( (binary_expression "-1 < (int)x[(iVar7 >> 5) + 1]" number_literal < (cast_expression "(int)x[(iVar7 >> 5) + 1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "x[(iVar7 >> 5) + 1]" identifier [ (binary_expression "(iVar7 >> 5) + 1" (parenthesized_expression "(iVar7 >> 5)" ( (binary_expression "iVar7 >> 5" identifier >> number_literal) )) + number_literal) ]))) )) (compound_statement "{\n    do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);\n  }" { (do_statement "do {\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    } while (x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0);" do (compound_statement "{\n      iVar4 = iVar7;\n      iVar7 = iVar4 + -1;\n      if (iVar7 == -1) goto LAB_00047e7d;\n    }" { (expression_statement "iVar4 = iVar7;" (assignment_expression "iVar4 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = iVar4 + -1;" (assignment_expression "iVar7 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 == -1) goto LAB_00047e7d;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00047e7d;" goto statement_identifier ;)) }) while (parenthesized_expression "(x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0)" ( (binary_expression "x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f) == 0" (binary_expression "x[(iVar7 >> 5) + 1] >> ((byte)iVar7 & 0x1f)" (subscript_expression "x[(iVar7 >> 5) + 1]" identifier [ (binary_expression "(iVar7 >> 5) + 1" (parenthesized_expression "(iVar7 >> 5)" ( (binary_expression "iVar7 >> 5" identifier >> number_literal) )) + number_literal) ]) >> (parenthesized_expression "((byte)iVar7 & 0x1f)" ( (binary_expression "(byte)iVar7 & 0x1f" (cast_expression "(byte)iVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) == number_literal) )) ;) })))) (expression_statement "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;" (assignment_expression "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d" identifier = (binary_expression "(iVar4 * 0x1c + 0x5c) / 0x5d" (parenthesized_expression "(iVar4 * 0x1c + 0x5c)" ( (binary_expression "iVar4 * 0x1c + 0x5c" (binary_expression "iVar4 * 0x1c" identifier * number_literal) + number_literal) )) / number_literal)) ;) (expression_statement "local_20 = local_2c + 1;" (assignment_expression "local_20 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00047e9e:\n  __dest = (char *)safemalloc(local_20,1);" statement_identifier : (expression_statement "__dest = (char *)safemalloc(local_20,1);" (assignment_expression "__dest = (char *)safemalloc(local_20,1)" identifier = (cast_expression "(char *)safemalloc(local_20,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(local_20,1)" identifier (argument_list "(local_20,1)" ( identifier , number_literal ))))) ;)) (expression_statement "b = safemalloc(*x,4);" (assignment_expression "b = safemalloc(*x,4)" identifier = (call_expression "safemalloc(*x,4)" identifier (argument_list "(*x,4)" ( (pointer_expression "*x" * identifier) , number_literal )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "BVar5 = *x;" (assignment_expression "BVar5 = *x" identifier = (pointer_expression "*x" * identifier)) ;) (if_statement "if (0 < (int)BVar5) {\n    do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);\n  }" if (parenthesized_expression "(0 < (int)BVar5)" ( (binary_expression "0 < (int)BVar5" number_literal < (cast_expression "(int)BVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);\n  }" { (do_statement "do {\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)BVar5);" do (compound_statement "{\n      *(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];\n      BVar5 = *x;\n      iVar7 = iVar7 + 1;\n    }" { (expression_statement "*(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7];" (assignment_expression "*(BignumInt *)((int)b + iVar7 * 4) = x[BVar5 - iVar7]" (pointer_expression "*(BignumInt *)((int)b + iVar7 * 4)" * (cast_expression "(BignumInt *)((int)b + iVar7 * 4)" ( (type_descriptor "BignumInt *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + iVar7 * 4)" ( (binary_expression "(int)b + iVar7 * 4" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "x[BVar5 - iVar7]" identifier [ (binary_expression "BVar5 - iVar7" identifier - identifier) ])) ;) (expression_statement "BVar5 = *x;" (assignment_expression "BVar5 = *x" identifier = (pointer_expression "*x" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < (int)BVar5)" ( (binary_expression "iVar7 < (int)BVar5" identifier < (cast_expression "(int)BVar5" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (expression_statement "__dest[local_2c] = '\0';" (assignment_expression "__dest[local_2c] = '\0'" (subscript_expression "__dest[local_2c]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = local_2c;" (assignment_expression "iVar7 = local_2c" identifier = identifier) ;) (do_statement "do {\n    local_2c = iVar7;\n    if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }\n    uVar6 = 0;\n    bVar3 = true;\n    iVar7 = 0;\n    do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);\n    iVar7 = local_2c + -1;\n    __src = __dest + iVar7;\n    __dest[iVar7] = (char)uVar6 + '0';\n  } while (!bVar3);" do (compound_statement "{\n    local_2c = iVar7;\n    if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }\n    uVar6 = 0;\n    bVar3 = true;\n    iVar7 = 0;\n    do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);\n    iVar7 = local_2c + -1;\n    __src = __dest + iVar7;\n    __dest[iVar7] = (char)uVar6 + '0';\n  }" { (expression_statement "local_2c = iVar7;" (assignment_expression "local_2c = iVar7" identifier = identifier) ;) (if_statement "if ((int)*x < 1) {\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }" if (parenthesized_expression "((int)*x < 1)" ( (binary_expression "(int)*x < 1" (cast_expression "(int)*x" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*x" * identifier)) < number_literal) )) (compound_statement "{\n      __src = __dest + local_2c + -1;\n      *__src = '0';\n      break;\n    }" { (expression_statement "__src = __dest + local_2c + -1;" (assignment_expression "__src = __dest + local_2c + -1" identifier = (binary_expression "__dest + local_2c + -1" (binary_expression "__dest + local_2c" identifier + identifier) + number_literal)) ;) (expression_statement "*__src = '0';" (assignment_expression "*__src = '0'" (pointer_expression "*__src" * identifier) = (char_literal "'0'" ' character ')) ;) (break_statement "break;" break ;) })) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < (int)*x);" do (compound_statement "{\n      uVar2 = *(uint *)((int)b + iVar7 * 4);\n      uVar1 = uVar2 % 10 + uVar6 * 6;\n      iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)((int)b + iVar7 * 4) = iVar4;\n      uVar6 = uVar1 % 10;\n      if (iVar4 != 0) {\n        bVar3 = false;\n      }\n      iVar7 = iVar7 + 1;\n    }" { (expression_statement "uVar2 = *(uint *)((int)b + iVar7 * 4);" (assignment_expression "uVar2 = *(uint *)((int)b + iVar7 * 4)" identifier = (pointer_expression "*(uint *)((int)b + iVar7 * 4)" * (cast_expression "(uint *)((int)b + iVar7 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + iVar7 * 4)" ( (binary_expression "(int)b + iVar7 * 4" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar1 = uVar2 % 10 + uVar6 * 6;" (assignment_expression "uVar1 = uVar2 % 10 + uVar6 * 6" identifier = (binary_expression "uVar2 % 10 + uVar6 * 6" (binary_expression "uVar2 % 10" identifier % number_literal) + (binary_expression "uVar6 * 6" identifier * number_literal))) ;) (expression_statement "iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10;" (assignment_expression "iVar4 = uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10" identifier = (binary_expression "uVar6 * 0x19999999 + uVar2 / 10 + uVar1 / 10" (binary_expression "uVar6 * 0x19999999 + uVar2 / 10" (binary_expression "uVar6 * 0x19999999" identifier * number_literal) + (binary_expression "uVar2 / 10" identifier / number_literal)) + (binary_expression "uVar1 / 10" identifier / number_literal))) ;) (expression_statement "*(int *)((int)b + iVar7 * 4) = iVar4;" (assignment_expression "*(int *)((int)b + iVar7 * 4) = iVar4" (pointer_expression "*(int *)((int)b + iVar7 * 4)" * (cast_expression "(int *)((int)b + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)b + iVar7 * 4)" ( (binary_expression "(int)b + iVar7 * 4" (cast_expression "(int)b" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar6 = uVar1 % 10;" (assignment_expression "uVar6 = uVar1 % 10" identifier = (binary_expression "uVar1 % 10" identifier % number_literal)) ;) (if_statement "if (iVar4 != 0) {\n        bVar3 = false;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar3 = false;\n      }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < (int)*x)" ( (binary_expression "iVar7 < (int)*x" identifier < (cast_expression "(int)*x" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*x" * identifier))) )) ;) (expression_statement "iVar7 = local_2c + -1;" (assignment_expression "iVar7 = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "__src = __dest + iVar7;" (assignment_expression "__src = __dest + iVar7" identifier = (binary_expression "__dest + iVar7" identifier + identifier)) ;) (expression_statement "__dest[iVar7] = (char)uVar6 + '0';" (assignment_expression "__dest[iVar7] = (char)uVar6 + '0'" (subscript_expression "__dest[iVar7]" identifier [ identifier ]) = (binary_expression "(char)uVar6 + '0'" (cast_expression "(char)uVar6" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) }) while (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) ;) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }" if (parenthesized_expression "(0 < local_2c)" ( (binary_expression "0 < local_2c" number_literal < identifier) )) (compound_statement "{\n    memmove(__dest,__src,local_20 - local_2c);\n  }" { (expression_statement "memmove(__dest,__src,local_20 - local_2c);" (call_expression "memmove(__dest,__src,local_20 - local_2c)" identifier (argument_list "(__dest,__src,local_20 - local_2c)" ( identifier , identifier , (binary_expression "local_20 - local_2c" identifier - identifier) ))) ;) })) (expression_statement "smemclr(b,*x << 2);" (call_expression "smemclr(b,*x << 2)" identifier (argument_list "(b,*x << 2)" ( identifier , (binary_expression "*x << 2" (pointer_expression "*x" * identifier) << number_literal) ))) ;) (expression_statement "safefree(b);" (call_expression "safefree(b)" identifier (argument_list "(b)" ( identifier ))) ;) (return_statement "return __dest;" return identifier ;) })))
(translation_unit "void * FUN_00047e10(int *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}\n\n" (function_definition "void * FUN_00047e10(int *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" primitive_type (pointer_declarator "* FUN_00047e10(int *param_1)" * (function_declarator "FUN_00047e10(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "iVar4 = *param_1 * 0x20;" (assignment_expression "iVar4 = *param_1 * 0x20" identifier = (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" * identifier) * number_literal)) ;) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }" { (labeled_statement "LAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" statement_identifier : (if_statement "if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" { (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" identifier = number_literal) ;) (expression_statement "local_2c = 1;" (assignment_expression "local_2c = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00047e9e;" goto statement_identifier ;) }))) }) (else_clause "else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" else (if_statement "if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" if (parenthesized_expression "(-1 < param_1[(iVar6 >> 5) + 1])" ( (binary_expression "-1 < param_1[(iVar6 >> 5) + 1]" number_literal < (subscript_expression "param_1[(iVar6 >> 5) + 1]" identifier [ (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" ( (binary_expression "iVar6 >> 5" identifier >> number_literal) )) + number_literal) ])) )) (compound_statement "{\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" { (do_statement "do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);" do (compound_statement "{\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    }" { (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" identifier = identifier) ;) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar6 == -1) goto LAB_00047e7d;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00047e7d;" goto statement_identifier ;)) }) while (parenthesized_expression "((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0)" ( (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0" (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f)" (cast_expression "(uint)param_1[(iVar6 >> 5) + 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[(iVar6 >> 5) + 1]" identifier [ (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" ( (binary_expression "iVar6 >> 5" identifier >> number_literal) )) + number_literal) ])) >> (parenthesized_expression "((byte)iVar6 & 0x1f)" ( (binary_expression "(byte)iVar6 & 0x1f" (cast_expression "(byte)iVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) == number_literal) )) ;) })))) (expression_statement "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;" (assignment_expression "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d" identifier = (binary_expression "(iVar4 * 0x1c + 0x5c) / 0x5d" (parenthesized_expression "(iVar4 * 0x1c + 0x5c)" ( (binary_expression "iVar4 * 0x1c + 0x5c" (binary_expression "iVar4 * 0x1c" identifier * number_literal) + number_literal) )) / number_literal)) ;) (expression_statement "local_20 = local_2c + 1;" (assignment_expression "local_20 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (labeled_statement "LAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);" statement_identifier : (expression_statement "__dest = (void *)FUN_0001a9b0(local_20,1);" (assignment_expression "__dest = (void *)FUN_0001a9b0(local_20,1)" identifier = (cast_expression "(void *)FUN_0001a9b0(local_20,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9b0(local_20,1)" identifier (argument_list "(local_20,1)" ( identifier , number_literal ))))) ;)) (expression_statement "iVar4 = FUN_0001a9b0(*param_1,4);" (assignment_expression "iVar4 = FUN_0001a9b0(*param_1,4)" identifier = (call_expression "FUN_0001a9b0(*param_1,4)" identifier (argument_list "(*param_1,4)" ( (pointer_expression "*param_1" * identifier) , number_literal )))) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" { (do_statement "do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);" do (compound_statement "{\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    }" { (expression_statement "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];" (assignment_expression "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7]" (pointer_expression "*(int *)(iVar4 + iVar7 * 4)" * (cast_expression "(int *)(iVar4 + iVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar7 * 4)" ( (binary_expression "iVar4 + iVar7 * 4" identifier + (binary_expression "iVar7 * 4" identifier * number_literal)) )))) = (subscript_expression "param_1[iVar6 - iVar7]" identifier [ (binary_expression "iVar6 - iVar7" identifier - identifier) ])) ;) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 < iVar6)" ( (binary_expression "iVar7 < iVar6" identifier < identifier) )) ;) })) (expression_statement "*(undefined1 *)((int)__dest + local_2c) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_2c) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_2c)" * (cast_expression "(undefined1 *)((int)__dest + local_2c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_2c)" ( (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = local_2c;" (assignment_expression "iVar6 = local_2c" identifier = identifier) ;) (do_statement "do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);" do (compound_statement "{\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  }" { (expression_statement "local_2c = iVar6;" (assignment_expression "local_2c = iVar6" identifier = identifier) ;) (if_statement "if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" if (parenthesized_expression "(*param_1 < 1)" ( (binary_expression "*param_1 < 1" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" { (expression_statement "__src = (undefined1 *)((int)__dest + local_2c + -1);" (assignment_expression "__src = (undefined1 *)((int)__dest + local_2c + -1)" identifier = (cast_expression "(undefined1 *)((int)__dest + local_2c + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + local_2c + -1)" ( (binary_expression "(int)__dest + local_2c + -1" (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*__src = 0x30;" (assignment_expression "*__src = 0x30" (pointer_expression "*__src" * identifier) = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);" do (compound_statement "{\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    }" { (expression_statement "uVar2 = *(uint *)(iVar4 + iVar6 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + iVar6 * 4)" identifier = (pointer_expression "*(uint *)(iVar4 + iVar6 * 4)" * (cast_expression "(uint *)(iVar4 + iVar6 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar1 = uVar2 % 10 + uVar5 * 6;" (assignment_expression "uVar1 = uVar2 % 10 + uVar5 * 6" identifier = (binary_expression "uVar2 % 10 + uVar5 * 6" (binary_expression "uVar2 % 10" identifier % number_literal) + (binary_expression "uVar5 * 6" identifier * number_literal))) ;) (expression_statement "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;" (assignment_expression "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" identifier = (binary_expression "uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" (binary_expression "uVar5 * 0x19999999 + uVar2 / 10" (binary_expression "uVar5 * 0x19999999" identifier * number_literal) + (binary_expression "uVar2 / 10" identifier / number_literal)) + (binary_expression "uVar1 / 10" identifier / number_literal))) ;) (expression_statement "*(int *)(iVar4 + iVar6 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar6 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" * (cast_expression "(int *)(iVar4 + iVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "uVar5 = uVar1 % 10;" (assignment_expression "uVar5 = uVar1 % 10" identifier = (binary_expression "uVar1 % 10" identifier % number_literal)) ;) (if_statement "if (iVar7 != 0) {\n        bVar3 = false;\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        bVar3 = false;\n      }" { (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *param_1)" ( (binary_expression "iVar6 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) ;) (expression_statement "iVar6 = local_2c + -1;" (assignment_expression "iVar6 = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "__src = (undefined1 *)((int)__dest + iVar6);" (assignment_expression "__src = (undefined1 *)((int)__dest + iVar6)" identifier = (cast_expression "(undefined1 *)((int)__dest + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + iVar6)" ( (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0';" (assignment_expression "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0'" (pointer_expression "*(char *)((int)__dest + iVar6)" * (cast_expression "(char *)((int)__dest + iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__dest + iVar6)" ( (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (binary_expression "(char)uVar5 + '0'" (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) }) while (parenthesized_expression "(!bVar3)" ( (unary_expression "!bVar3" ! identifier) )) ;) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (if_statement "if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }" if (parenthesized_expression "(0 < local_2c)" ( (binary_expression "0 < local_2c" number_literal < identifier) )) (compound_statement "{\n    memmove(__dest,__src,local_20 - local_2c);\n  }" { (expression_statement "memmove(__dest,__src,local_20 - local_2c);" (call_expression "memmove(__dest,__src,local_20 - local_2c)" identifier (argument_list "(__dest,__src,local_20 - local_2c)" ( identifier , identifier , (binary_expression "local_20 - local_2c" identifier - identifier) ))) ;) })) (expression_statement "FUN_0001b320(iVar4,*param_1 << 2);" (call_expression "FUN_0001b320(iVar4,*param_1 << 2)" identifier (argument_list "(iVar4,*param_1 << 2)" ( identifier , (binary_expression "*param_1 << 2" (pointer_expression "*param_1" * identifier) << number_literal) ))) ;) (expression_statement "FUN_0001b240(iVar4);" (call_expression "FUN_0001b240(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return __dest;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ])) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) while (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ])) >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) == LIT) )) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + LIT) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (subscript_expression IDENT [ (binary_expression IDENT - IDENT) ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT % LIT) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) + (binary_expression IDENT / LIT)) + (binary_expression IDENT / LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (char_literal ' character '))) ;) }) while (parenthesized_expression ( (unary_expression ! IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT - IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * IDENT) << LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "void * FUN_00047e10(int *param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" (primitive_type "void") (pointer_declarator "* FUN_00047e10(int *param_1)" (* "*") (function_declarator "FUN_00047e10(int *param_1)" (identifier "FUN_00047e10") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  bool bVar3;\n  int iVar4;\n  void *__dest;\n  undefined1 *__src;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  int local_2c;\n  int local_20;\n  \n  iVar4 = *param_1 * 0x20;\n  iVar6 = iVar4 + -1;\n  if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }\n  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;\n  local_20 = local_2c + 1;\nLAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);\n  iVar4 = FUN_0001a9b0(*param_1,4);\n  iVar7 = 0;\n  iVar6 = *param_1;\n  if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }\n  *(undefined1 *)((int)__dest + local_2c) = 0;\n  iVar6 = local_2c;\n  do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);\n  local_2c = local_2c + -1;\n  if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }\n  FUN_0001b320(iVar4,*param_1 << 2);\n  FUN_0001b240(iVar4);\n  return __dest;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined1 *__src;" (type_identifier "undefined1") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "iVar4 = *param_1 * 0x20;" (assignment_expression "iVar4 = *param_1 * 0x20" (identifier "iVar4") (= "=") (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "0x20"))) (; ";")) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar6 < 0) {\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }\n  else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }\n  }" ({ "{") (labeled_statement "LAB_00047e7d:\n    if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" (statement_identifier "LAB_00047e7d") (: ":") (if_statement "if (iVar4 == 0) {\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_20 = 2;\n      local_2c = 1;\n      goto LAB_00047e9e;\n    }" ({ "{") (expression_statement "local_20 = 2;" (assignment_expression "local_20 = 2" (identifier "local_20") (= "=") (number_literal "2")) (; ";")) (expression_statement "local_2c = 1;" (assignment_expression "local_2c = 1" (identifier "local_2c") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00047e9e;" (goto "goto") (statement_identifier "LAB_00047e9e") (; ";")) (} "}")))) (} "}")) (else_clause "else if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" (else "else") (if_statement "if (-1 < param_1[(iVar6 >> 5) + 1]) {\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" (if "if") (parenthesized_expression "(-1 < param_1[(iVar6 >> 5) + 1])" (( "(") (binary_expression "-1 < param_1[(iVar6 >> 5) + 1]" (number_literal "-1") (< "<") (subscript_expression "param_1[(iVar6 >> 5) + 1]" (identifier "param_1") ([ "[") (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" (( "(") (binary_expression "iVar6 >> 5" (identifier "iVar6") (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) (] "]"))) () ")")) (compound_statement "{\n    do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);\n  }" ({ "{") (do_statement "do {\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);" (do "do") (compound_statement "{\n      iVar4 = iVar6;\n      iVar6 = iVar4 + -1;\n      if (iVar6 == -1) goto LAB_00047e7d;\n    }" ({ "{") (expression_statement "iVar4 = iVar6;" (assignment_expression "iVar4 = iVar6" (identifier "iVar4") (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar6 = iVar4 + -1;" (assignment_expression "iVar6 = iVar4 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar6 == -1) goto LAB_00047e7d;" (if "if") (parenthesized_expression "(iVar6 == -1)" (( "(") (binary_expression "iVar6 == -1" (identifier "iVar6") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00047e7d;" (goto "goto") (statement_identifier "LAB_00047e7d") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0)" (( "(") (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0" (binary_expression "(uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f)" (cast_expression "(uint)param_1[(iVar6 >> 5) + 1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[(iVar6 >> 5) + 1]" (identifier "param_1") ([ "[") (binary_expression "(iVar6 >> 5) + 1" (parenthesized_expression "(iVar6 >> 5)" (( "(") (binary_expression "iVar6 >> 5" (identifier "iVar6") (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) (] "]"))) (>> ">>") (parenthesized_expression "((byte)iVar6 & 0x1f)" (( "(") (binary_expression "(byte)iVar6 & 0x1f" (cast_expression "(byte)iVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar6")) (& "&") (number_literal "0x1f")) () ")"))) (== "==") (number_literal "0")) () ")")) (; ";")) (} "}"))))) (expression_statement "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;" (assignment_expression "local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d" (identifier "local_2c") (= "=") (binary_expression "(iVar4 * 0x1c + 0x5c) / 0x5d" (parenthesized_expression "(iVar4 * 0x1c + 0x5c)" (( "(") (binary_expression "iVar4 * 0x1c + 0x5c" (binary_expression "iVar4 * 0x1c" (identifier "iVar4") (* "*") (number_literal "0x1c")) (+ "+") (number_literal "0x5c")) () ")")) (/ "/") (number_literal "0x5d"))) (; ";")) (expression_statement "local_20 = local_2c + 1;" (assignment_expression "local_20 = local_2c + 1" (identifier "local_20") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (labeled_statement "LAB_00047e9e:\n  __dest = (void *)FUN_0001a9b0(local_20,1);" (statement_identifier "LAB_00047e9e") (: ":") (expression_statement "__dest = (void *)FUN_0001a9b0(local_20,1);" (assignment_expression "__dest = (void *)FUN_0001a9b0(local_20,1)" (identifier "__dest") (= "=") (cast_expression "(void *)FUN_0001a9b0(local_20,1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9b0(local_20,1)" (identifier "FUN_0001a9b0") (argument_list "(local_20,1)" (( "(") (identifier "local_20") (, ",") (number_literal "1") () ")"))))) (; ";"))) (expression_statement "iVar4 = FUN_0001a9b0(*param_1,4);" (assignment_expression "iVar4 = FUN_0001a9b0(*param_1,4)" (identifier "iVar4") (= "=") (call_expression "FUN_0001a9b0(*param_1,4)" (identifier "FUN_0001a9b0") (argument_list "(*param_1,4)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" (identifier "iVar6") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (0 < iVar6) {\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n    do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);\n  }" ({ "{") (do_statement "do {\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    } while (iVar7 < iVar6);" (do "do") (compound_statement "{\n      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];\n      iVar6 = *param_1;\n      iVar7 = iVar7 + 1;\n    }" ({ "{") (expression_statement "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];" (assignment_expression "*(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7]" (pointer_expression "*(int *)(iVar4 + iVar7 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar7 * 4)" (( "(") (binary_expression "iVar4 + iVar7 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")")))) (= "=") (subscript_expression "param_1[iVar6 - iVar7]" (identifier "param_1") ([ "[") (binary_expression "iVar6 - iVar7" (identifier "iVar6") (- "-") (identifier "iVar7")) (] "]"))) (; ";")) (expression_statement "iVar6 = *param_1;" (assignment_expression "iVar6 = *param_1" (identifier "iVar6") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 < iVar6)" (( "(") (binary_expression "iVar7 < iVar6" (identifier "iVar7") (< "<") (identifier "iVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)__dest + local_2c) = 0;" (assignment_expression "*(undefined1 *)((int)__dest + local_2c) = 0" (pointer_expression "*(undefined1 *)((int)__dest + local_2c)" (* "*") (cast_expression "(undefined1 *)((int)__dest + local_2c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + local_2c)" (( "(") (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "local_2c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = local_2c;" (assignment_expression "iVar6 = local_2c" (identifier "iVar6") (= "=") (identifier "local_2c")) (; ";")) (do_statement "do {\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  } while (!bVar3);" (do "do") (compound_statement "{\n    local_2c = iVar6;\n    if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }\n    uVar5 = 0;\n    bVar3 = true;\n    iVar6 = 0;\n    do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);\n    iVar6 = local_2c + -1;\n    __src = (undefined1 *)((int)__dest + iVar6);\n    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';\n  }" ({ "{") (expression_statement "local_2c = iVar6;" (assignment_expression "local_2c = iVar6" (identifier "local_2c") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (*param_1 < 1) {\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" (if "if") (parenthesized_expression "(*param_1 < 1)" (( "(") (binary_expression "*param_1 < 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      __src = (undefined1 *)((int)__dest + local_2c + -1);\n      *__src = 0x30;\n      break;\n    }" ({ "{") (expression_statement "__src = (undefined1 *)((int)__dest + local_2c + -1);" (assignment_expression "__src = (undefined1 *)((int)__dest + local_2c + -1)" (identifier "__src") (= "=") (cast_expression "(undefined1 *)((int)__dest + local_2c + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + local_2c + -1)" (( "(") (binary_expression "(int)__dest + local_2c + -1" (binary_expression "(int)__dest + local_2c" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "local_2c")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "*__src = 0x30;" (assignment_expression "*__src = 0x30" (pointer_expression "*__src" (* "*") (identifier "__src")) (= "=") (number_literal "0x30")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    } while (iVar6 < *param_1);" (do "do") (compound_statement "{\n      uVar2 = *(uint *)(iVar4 + iVar6 * 4);\n      uVar1 = uVar2 % 10 + uVar5 * 6;\n      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;\n      *(int *)(iVar4 + iVar6 * 4) = iVar7;\n      uVar5 = uVar1 % 10;\n      if (iVar7 != 0) {\n        bVar3 = false;\n      }\n      iVar6 = iVar6 + 1;\n    }" ({ "{") (expression_statement "uVar2 = *(uint *)(iVar4 + iVar6 * 4);" (assignment_expression "uVar2 = *(uint *)(iVar4 + iVar6 * 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar4 + iVar6 * 4)" (* "*") (cast_expression "(uint *)(iVar4 + iVar6 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6 * 4)" (( "(") (binary_expression "iVar4 + iVar6 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar1 = uVar2 % 10 + uVar5 * 6;" (assignment_expression "uVar1 = uVar2 % 10 + uVar5 * 6" (identifier "uVar1") (= "=") (binary_expression "uVar2 % 10 + uVar5 * 6" (binary_expression "uVar2 % 10" (identifier "uVar2") (% "%") (number_literal "10")) (+ "+") (binary_expression "uVar5 * 6" (identifier "uVar5") (* "*") (number_literal "6")))) (; ";")) (expression_statement "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;" (assignment_expression "iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" (identifier "iVar7") (= "=") (binary_expression "uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10" (binary_expression "uVar5 * 0x19999999 + uVar2 / 10" (binary_expression "uVar5 * 0x19999999" (identifier "uVar5") (* "*") (number_literal "0x19999999")) (+ "+") (binary_expression "uVar2 / 10" (identifier "uVar2") (/ "/") (number_literal "10"))) (+ "+") (binary_expression "uVar1 / 10" (identifier "uVar1") (/ "/") (number_literal "10")))) (; ";")) (expression_statement "*(int *)(iVar4 + iVar6 * 4) = iVar7;" (assignment_expression "*(int *)(iVar4 + iVar6 * 4) = iVar7" (pointer_expression "*(int *)(iVar4 + iVar6 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6 * 4)" (( "(") (binary_expression "iVar4 + iVar6 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "uVar5 = uVar1 % 10;" (assignment_expression "uVar5 = uVar1 % 10" (identifier "uVar5") (= "=") (binary_expression "uVar1 % 10" (identifier "uVar1") (% "%") (number_literal "10"))) (; ";")) (if_statement "if (iVar7 != 0) {\n        bVar3 = false;\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        bVar3 = false;\n      }" ({ "{") (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < *param_1)" (( "(") (binary_expression "iVar6 < *param_1" (identifier "iVar6") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (; ";")) (expression_statement "iVar6 = local_2c + -1;" (assignment_expression "iVar6 = local_2c + -1" (identifier "iVar6") (= "=") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "__src = (undefined1 *)((int)__dest + iVar6);" (assignment_expression "__src = (undefined1 *)((int)__dest + iVar6)" (identifier "__src") (= "=") (cast_expression "(undefined1 *)((int)__dest + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + iVar6)" (( "(") (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0';" (assignment_expression "*(char *)((int)__dest + iVar6) = (char)uVar5 + '0'" (pointer_expression "*(char *)((int)__dest + iVar6)" (* "*") (cast_expression "(char *)((int)__dest + iVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__dest + iVar6)" (( "(") (binary_expression "(int)__dest + iVar6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (binary_expression "(char)uVar5 + '0'" (cast_expression "(char)uVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar5")) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(!bVar3)" (( "(") (unary_expression "!bVar3" (! "!") (identifier "bVar3")) () ")")) (; ";")) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" (identifier "local_2c") (= "=") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (0 < local_2c) {\n    memmove(__dest,__src,local_20 - local_2c);\n  }" (if "if") (parenthesized_expression "(0 < local_2c)" (( "(") (binary_expression "0 < local_2c" (number_literal "0") (< "<") (identifier "local_2c")) () ")")) (compound_statement "{\n    memmove(__dest,__src,local_20 - local_2c);\n  }" ({ "{") (expression_statement "memmove(__dest,__src,local_20 - local_2c);" (call_expression "memmove(__dest,__src,local_20 - local_2c)" (identifier "memmove") (argument_list "(__dest,__src,local_20 - local_2c)" (( "(") (identifier "__dest") (, ",") (identifier "__src") (, ",") (binary_expression "local_20 - local_2c" (identifier "local_20") (- "-") (identifier "local_2c")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001b320(iVar4,*param_1 << 2);" (call_expression "FUN_0001b320(iVar4,*param_1 << 2)" (identifier "FUN_0001b320") (argument_list "(iVar4,*param_1 << 2)" (( "(") (identifier "iVar4") (, ",") (binary_expression "*param_1 << 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_0001b240(iVar4);" (call_expression "FUN_0001b240(iVar4)" (identifier "FUN_0001b240") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return __dest;" (return "return") (identifier "__dest") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

char * function_1(type_1 x)

{
  type_2 var_9;
  type_2 var_7;
  bool bVar3;
  int var_1;
  char *var_6;
  void *b;
  type_3 var_5;
  char *__src;
  type_2 var_8;
  int var_2;
  int var_3;
  size_t var_11;
  
  var_1 = *x * 0x20;
  var_2 = var_1 + -1;
  if (var_2 < 0) {
LAB_00047e7d:
    if (var_1 == 0) {
      var_11 = 2;
      var_3 = 1;
      goto LAB_00047e9e;
    }
  }
  else if (-1 < (int)x[(var_2 >> 5) + 1]) {
    do {
      var_1 = var_2;
      var_2 = var_1 + -1;
      if (var_2 == -1) goto LAB_00047e7d;
    } while (x[(var_2 >> 5) + 1] >> ((type_4)var_2 & 0x1f) == 0);
  }
  var_3 = (var_1 * 0x1c + 0x5c) / 0x5d;
  var_11 = var_3 + 1;
LAB_00047e9e:
  var_6 = (char *)var_4(var_11,1);
  b = var_4(*x,4);
  var_2 = 0;
  var_5 = *x;
  if (0 < (int)var_5) {
    do {
      *(type_3 *)((int)b + var_2 * 4) = x[var_5 - var_2];
      var_5 = *x;
      var_2 = var_2 + 1;
    } while (var_2 < (int)var_5);
  }
  var_6[var_3] = '\0';
  var_2 = var_3;
  do {
    var_3 = var_2;
    if ((int)*x < 1) {
      __src = var_6 + var_3 + -1;
      *__src = '0';
      break;
    }
    var_8 = 0;
    bVar3 = true;
    var_2 = 0;
    do {
      var_7 = *(type_2 *)((int)b + var_2 * 4);
      var_9 = var_7 % 10 + var_8 * 6;
      var_1 = var_8 * 0x19999999 + var_7 / 10 + var_9 / 10;
      *(int *)((int)b + var_2 * 4) = var_1;
      var_8 = var_9 % 10;
      if (var_1 != 0) {
        bVar3 = false;
      }
      var_2 = var_2 + 1;
    } while (var_2 < (int)*x);
    var_2 = var_3 + -1;
    __src = var_6 + var_2;
    var_6[var_2] = (char)var_8 + '0';
  } while (!bVar3);
  var_3 = var_3 + -1;
  if (0 < var_3) {
    var_10(var_6,__src,var_11 - var_3);
  }
  var_12(b,*x << 2);
  var_13(b);
  return var_6;
}


(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)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_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: (number_literal))) (goto_statement label: (statement_identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_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: (number_literal) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (number_literal))) (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: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (character)))))) condition: (parenthesized_expression (unary_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void * MASKED(int *param_1)

{
  uint uVar1;
  uint uVar2;
  bool bVar3;
  int iVar4;
  void *__dest;
  undefined1 *__src;
  uint uVar5;
  int iVar6;
  int iVar7;
  int local_2c;
  int local_20;
  
  iVar4 = *param_1 * 0x20;
  iVar6 = iVar4 + -1;
  if (iVar6 < 0) {
LAB_00047e7d:
    if (iVar4 == 0) {
      local_20 = 2;
      local_2c = 1;
      goto LAB_00047e9e;
    }
  }
  else if (-1 < param_1[(iVar6 >> 5) + 1]) {
    do {
      iVar4 = iVar6;
      iVar6 = iVar4 + -1;
      if (iVar6 == -1) goto LAB_00047e7d;
    } while ((uint)param_1[(iVar6 >> 5) + 1] >> ((byte)iVar6 & 0x1f) == 0);
  }
  local_2c = (iVar4 * 0x1c + 0x5c) / 0x5d;
  local_20 = local_2c + 1;
LAB_00047e9e:
  __dest = (void *)FUN_0001a9b0(local_20,1);
  iVar4 = FUN_0001a9b0(*param_1,4);
  iVar7 = 0;
  iVar6 = *param_1;
  if (0 < iVar6) {
    do {
      *(int *)(iVar4 + iVar7 * 4) = param_1[iVar6 - iVar7];
      iVar6 = *param_1;
      iVar7 = iVar7 + 1;
    } while (iVar7 < iVar6);
  }
  *(undefined1 *)((int)__dest + local_2c) = 0;
  iVar6 = local_2c;
  do {
    local_2c = iVar6;
    if (*param_1 < 1) {
      __src = (undefined1 *)((int)__dest + local_2c + -1);
      *__src = 0x30;
      break;
    }
    uVar5 = 0;
    bVar3 = true;
    iVar6 = 0;
    do {
      uVar2 = *(uint *)(iVar4 + iVar6 * 4);
      uVar1 = uVar2 % 10 + uVar5 * 6;
      iVar7 = uVar5 * 0x19999999 + uVar2 / 10 + uVar1 / 10;
      *(int *)(iVar4 + iVar6 * 4) = iVar7;
      uVar5 = uVar1 % 10;
      if (iVar7 != 0) {
        bVar3 = false;
      }
      iVar6 = iVar6 + 1;
    } while (iVar6 < *param_1);
    iVar6 = local_2c + -1;
    __src = (undefined1 *)((int)__dest + iVar6);
    *(char *)((int)__dest + iVar6) = (char)uVar5 + '0';
  } while (!bVar3);
  local_2c = local_2c + -1;
  if (0 < local_2c) {
    memmove(__dest,__src,local_20 - local_2c);
  }
  FUN_0001b320(iVar4,*param_1 << 2);
  FUN_0001b240(iVar4);
  return __dest;
}

