
wchar_t mkfmt(char *buf,wchar_t prec,wchar_t lng,time_t sec,wchar_t sec_fraction)

{
  long lVar1;
  int iVar2;
  long lVar3;
  wchar_t wVar4;
  uint uVar5;
  int iVar6;
  int iVar7;
  long lVar8;
  char *pcVar9;
  wchar_t wVar10;
  long in_FS_OFFSET;
  wchar_t local_5c;
  char abuf [22];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  abuf[0x15] = '\0';
  wVar10 = lng;
  if (lng != L'\0') {
    lVar8 = sec / 0x3c;
    sec = sec % 0x3c;
    pcVar9 = abuf;
    iVar6 = (int)pcVar9;
    do {
      iVar2 = (int)pcVar9;
      lVar3 = lVar8 / 10;
      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;
      pcVar9[0x14] = (char)uVar5;
      pcVar9 = pcVar9 + -1;
      lVar8 = lVar3;
    } while (lVar3 != 0);
    lVar8 = 1;
    do {
      iVar7 = (int)lVar8;
      buf[lVar8 + -1] = (char)uVar5;
      lVar8 = lVar8 + 1;
      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];
    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);
    wVar10 = iVar7 + L'\x01';
    buf[iVar7] = 'm';
  }
  pcVar9 = abuf;
  iVar6 = (int)pcVar9;
  do {
    iVar2 = (int)pcVar9;
    lVar8 = sec / 10;
    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;
    pcVar9[0x14] = (char)uVar5;
    pcVar9 = pcVar9 + -1;
    sec = lVar8;
  } while (lVar8 != 0);
  lVar8 = (long)(wVar10 + L'\x01');
  do {
    wVar4 = (wchar_t)lVar8;
    buf[lVar8 + -1] = (char)uVar5;
    lVar8 = lVar8 + 1;
    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];
  } while (abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0);
  wVar10 = wVar4;
  if (prec != L'\0') {
    iVar6 = locale_decpoint();
    wVar10 = wVar4 + L'\x01';
    buf[wVar4] = (char)iVar6;
    if (L'\0' < prec) {
      lVar8 = 1;
      local_5c = sec_fraction;
      do {
        iVar6 = local_5c / L""[lVar8];
        local_5c = local_5c % L""[lVar8];
        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';
        lVar8 = lVar8 + 1;
      } while ((wchar_t)lVar8 <= prec);
      wVar10 = prec + wVar10;
    }
  }
  if (lng != L'\0') {
    buf[wVar10] = 's';
    wVar10 = wVar10 + L'\x01';
  }
  buf[wVar10] = '\0';
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return wVar10;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)

{
  long lVar1;
  int iVar2;
  undefined1 uVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  byte *pbVar8;
  int iVar9;
  long in_FS_OFFSET;
  int local_5c;
  byte local_58 [20];
  byte local_44 [4];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_44[1] = 0;
  iVar9 = param_3;
  if (param_3 != 0) {
    lVar7 = param_4 / 0x3c;
    param_4 = param_4 % 0x3c;
    pbVar8 = local_58;
    iVar9 = (int)pbVar8;
    do {
      iVar5 = (int)pbVar8;
      lVar1 = lVar7 / 10;
      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;
      pbVar8[0x14] = (byte)uVar4;
      pbVar8 = pbVar8 + -1;
      lVar7 = lVar1;
    } while (lVar1 != 0);
    lVar7 = 1;
    do {
      iVar6 = (int)lVar7;
      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;
      lVar7 = lVar7 + 1;
      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];
    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);
    iVar9 = iVar6 + 1;
    *(undefined1 *)(param_1 + iVar6) = 0x6d;
  }
  pbVar8 = local_58;
  iVar5 = (int)pbVar8;
  do {
    iVar6 = (int)pbVar8;
    lVar7 = param_4 / 10;
    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;
    pbVar8[0x14] = (byte)uVar4;
    pbVar8 = pbVar8 + -1;
    param_4 = lVar7;
  } while (lVar7 != 0);
  lVar7 = (long)(iVar9 + 1);
  do {
    iVar2 = (int)lVar7;
    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;
    lVar7 = lVar7 + 1;
    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];
  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);
  iVar9 = iVar2;
  if (param_2 != 0) {
    uVar3 = locale_decpoint();
    iVar9 = iVar2 + 1;
    *(undefined1 *)(param_1 + iVar2) = uVar3;
    if (0 < param_2) {
      lVar7 = 1;
      local_5c = param_5;
      do {
        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);
        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);
        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';
        lVar7 = lVar7 + 1;
      } while ((int)lVar7 <= param_2);
      iVar9 = param_2 + iVar9;
    }
  }
  if (param_3 != 0) {
    *(undefined1 *)(param_1 + iVar9) = 0x73;
    iVar9 = iVar9 + 1;
  }
  *(undefined1 *)(param_1 + iVar9) = 0;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar9;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV R15D,ESI
MOV R14D,EDX
MOV dword ptr [RSP + 0xc],R8D
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
MOV byte ptr [RSP + 0x25],0x0
MOV R10D,EDX
TEST EDX,EDX
JZ 0x00141507
MOV RDX,-0x7777777777777777
MOV RAX,RCX
IMUL RDX
LEA RSI,[RDX + RCX*0x1]
SAR RSI,0x5
MOV RAX,RCX
SAR RAX,0x3f
SUB RSI,RAX
MOV RAX,RSI
SHL RAX,0x4
SUB RAX,RSI
SHL RAX,0x2
SUB RCX,RAX
LEA RAX,[RSP + 0x10]
MOV RDI,RAX
MOV R9D,0x14
SUB R9D,EAX
MOV R10,0x6666666666666667
LEA R8D,[R9 + RDI*0x1]
MOV RAX,RSI
IMUL R10
SAR RDX,0x2
MOV RAX,RSI
SAR RAX,0x3f
SUB RDX,RAX
LEA RAX,[RDX + RDX*0x4]
ADD RAX,RAX
SUB RSI,RAX
LEA EAX,[RSI + 0x30]
MOV byte ptr [RDI + 0x14],AL
MOV RSI,RDX
SUB RDI,0x1
TEST RDX,RDX
JNZ 0x001414a5
MOV EDX,0x1
MOVSXD R8,R8D
LEA RDI,[RSP + R8*0x1 + 0x10]
MOV R10D,EDX
MOV ESI,EDX
MOV byte ptr [RBX + RDX*0x1 + -0x1],AL
ADD RDX,0x1
MOVZX EAX,byte ptr [RDI + RDX*0x1 + -0x1]
TEST AL,AL
JNZ 0x001414e6
ADD R10D,0x1
MOVSXD RSI,ESI
MOV byte ptr [RBX + RSI*0x1],0x6d
LEA RAX,[RSP + 0x10]
MOV RSI,RAX
MOV R8D,0x14
SUB R8D,EAX
MOV R9,0x6666666666666667
LEA EDI,[R8 + RSI*0x1]
MOV RAX,RCX
IMUL R9
SAR RDX,0x2
MOV RAX,RCX
SAR RAX,0x3f
SUB RDX,RAX
LEA RAX,[RDX + RDX*0x4]
ADD RAX,RAX
SUB RCX,RAX
LEA EAX,[RCX + 0x30]
MOV byte ptr [RSI + 0x14],AL
MOV RCX,RDX
SUB RSI,0x1
TEST RDX,RDX
JNZ 0x00141522
LEA EDX,[R10 + 0x1]
MOVSXD RDX,EDX
MOVSXD RDI,EDI
MOVSXD R10,R10D
SUB RDI,R10
LEA RCX,[RSP + RDI*0x1 + 0x10]
MOV R13D,EDX
LEA R12D,[RDX + -0x1]
MOV EBP,EDX
MOV byte ptr [RBX + RDX*0x1 + -0x1],AL
ADD RDX,0x1
MOVZX EAX,byte ptr [RCX + RDX*0x1 + -0x1]
TEST AL,AL
JNZ 0x0014156b
TEST R15D,R15D
JNZ 0x001415c1
TEST R14D,R14D
JZ 0x00141599
MOVSXD RAX,EBP
MOV byte ptr [RBX + RAX*0x1],0x73
LEA EBP,[RBP + 0x1]
MOVSXD RAX,EBP
MOV byte ptr [RBX + RAX*0x1],0x0
MOV EAX,EBP
MOV RBX,qword ptr [RSP + 0x28]
XOR RBX,qword ptr FS:[0x28]
JNZ 0x00141610
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x00182a64
ADD R13D,0x1
MOVSXD RBP,EBP
MOV byte ptr [RBX + RBP*0x1],AL
MOV EBP,R13D
TEST R15D,R15D
JLE 0x0014158a
MOV ECX,0x1
LEA RSI,[0x1d3bf0]
MOVSXD R12,R12D
ADD R12,RBX
MOV EAX,dword ptr [RSP + 0xc]
CDQ
IDIV dword ptr [RSI + RCX*0x4]
ADD EAX,0x30
MOV byte ptr [R12 + RCX*0x1 + 0x1],AL
MOV dword ptr [RSP + 0xc],EDX
ADD RCX,0x1
CMP R15D,ECX
JGE 0x001415ea
LEA EBP,[R15 + R13*0x1]
JMP 0x0014158a
CALL 0x0012d3b0
(translation_unit "int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)" identifier (parameter_list "(long param_1,int param_2,int param_3,long param_4,int param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_5c;" primitive_type identifier ;) (declaration "byte local_58 [20];" type_identifier (array_declarator "local_58 [20]" identifier [ number_literal ]) ;) (declaration "byte local_44 [4];" type_identifier (array_declarator "local_44 [4]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_44[1] = 0;" (assignment_expression "local_44[1] = 0" (subscript_expression "local_44[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" identifier = identifier) ;) (if_statement "if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" { (expression_statement "lVar7 = param_4 / 0x3c;" (assignment_expression "lVar7 = param_4 / 0x3c" identifier = (binary_expression "param_4 / 0x3c" identifier / number_literal)) ;) (expression_statement "param_4 = param_4 % 0x3c;" (assignment_expression "param_4 = param_4 % 0x3c" identifier = (binary_expression "param_4 % 0x3c" identifier % number_literal)) ;) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" identifier = identifier) ;) (expression_statement "iVar9 = (int)pbVar8;" (assignment_expression "iVar9 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    }" { (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar1 = lVar7 / 10;" (assignment_expression "lVar1 = lVar7 / 10" identifier = (binary_expression "lVar7 / 10" identifier / number_literal)) ;) (expression_statement "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;" (assignment_expression "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30" identifier = (binary_expression "(int)lVar7 + (int)lVar1 * -10 + 0x30" (binary_expression "(int)lVar7 + (int)lVar1 * -10" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar1 * -10" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" identifier [ number_literal ]) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "lVar7 = lVar1;" (assignment_expression "lVar7 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);" do (compound_statement "{\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    }" { (expression_statement "iVar6 = (int)lVar7;" (assignment_expression "iVar6 = (int)lVar7" identifier = (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" * (cast_expression "(char *)(param_1 + -1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar7)" ( (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) )))) = (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier = (cast_expression "(uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier [ (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" identifier + (parenthesized_expression "((0x14 - iVar9) + iVar5)" ( (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" ( (binary_expression "0x14 - iVar9" number_literal - identifier) )) + identifier) ))) + number_literal) ]))) ;) }) while (parenthesized_expression "(local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0)" ( (binary_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0" (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier [ (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" identifier + (parenthesized_expression "((0x14 - iVar9) + iVar5)" ( (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" ( (binary_expression "0x14 - iVar9" number_literal - identifier) )) + identifier) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "iVar9 = iVar6 + 1;" (assignment_expression "iVar9 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + iVar6) = 0x6d;" (assignment_expression "*(undefined1 *)(param_1 + iVar6) = 0x6d" (pointer_expression "*(undefined1 *)(param_1 + iVar6)" * (cast_expression "(undefined1 *)(param_1 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) )))) = number_literal) ;) })) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" identifier = identifier) ;) (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);" do (compound_statement "{\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  }" { (expression_statement "iVar6 = (int)pbVar8;" (assignment_expression "iVar6 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = param_4 / 10;" (assignment_expression "lVar7 = param_4 / 10" identifier = (binary_expression "param_4 / 10" identifier / number_literal)) ;) (expression_statement "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;" (assignment_expression "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30" identifier = (binary_expression "(int)param_4 + (int)lVar7 * -10 + 0x30" (binary_expression "(int)param_4 + (int)lVar7 * -10" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar7 * -10" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" identifier [ number_literal ]) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "param_4 = lVar7;" (assignment_expression "param_4 = lVar7" identifier = identifier) ;) }) while (parenthesized_expression "(lVar7 != 0)" ( (binary_expression "lVar7 != 0" identifier != number_literal) )) ;) (expression_statement "lVar7 = (long)(iVar9 + 1);" (assignment_expression "lVar7 = (long)(iVar9 + 1)" identifier = (cast_expression "(long)(iVar9 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);" do (compound_statement "{\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  }" { (expression_statement "iVar2 = (int)lVar7;" (assignment_expression "iVar2 = (int)lVar7" identifier = (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" * (cast_expression "(char *)(param_1 + -1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar7)" ( (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) )))) = (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier = (cast_expression "(uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier [ (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" identifier + (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" ( (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar5) + iVar6)" ( (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" ( (binary_expression "0x14 - iVar5" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)iVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ]))) ;) }) while (parenthesized_expression "(local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0)" ( (binary_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0" (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier [ (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" identifier + (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" ( (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar5) + iVar6)" ( (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" ( (binary_expression "0x14 - iVar5" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)iVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "iVar9 = iVar2;" (assignment_expression "iVar9 = iVar2" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" { (expression_statement "uVar3 = locale_decpoint();" (assignment_expression "uVar3 = locale_decpoint()" identifier = (call_expression "locale_decpoint()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = iVar2 + 1;" (assignment_expression "iVar9 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + iVar2) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + iVar2) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + iVar2)" * (cast_expression "(undefined1 *)(param_1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar2)" ( (binary_expression "param_1 + iVar2" identifier + identifier) )))) = identifier) ;) (if_statement "if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" { (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (expression_statement "local_5c = param_5;" (assignment_expression "local_5c = param_5" identifier = identifier) ;) (do_statement "do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);" do (compound_statement "{\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      }" { (expression_statement "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier = (binary_expression "local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier / (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" * (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" ( (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" & identifier) + (binary_expression "lVar7 * 4" identifier * number_literal)) )))))) ;) (expression_statement "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier = (binary_expression "local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier % (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" * (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" ( (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" & identifier) + (binary_expression "lVar7 * 4" identifier * number_literal)) )))))) ;) (expression_statement "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';" (assignment_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0'" (pointer_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" * (cast_expression "(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((iVar2 + -1) + param_1 + 1 + lVar7)" ( (binary_expression "(iVar2 + -1) + param_1 + 1 + lVar7" (binary_expression "(iVar2 + -1) + param_1 + 1" (binary_expression "(iVar2 + -1) + param_1" (parenthesized_expression "(iVar2 + -1)" ( (binary_expression "iVar2 + -1" identifier + number_literal) )) + identifier) + number_literal) + identifier) )))) = (binary_expression "(char)iVar5 + '0'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar7 <= param_2)" ( (binary_expression "(int)lVar7 <= param_2" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) ;) (expression_statement "iVar9 = param_2 + iVar9;" (assignment_expression "iVar9 = param_2 + iVar9" identifier = (binary_expression "param_2 + iVar9" identifier + identifier)) ;) })) })) (if_statement "if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" { (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0x73;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0x73" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" * (cast_expression "(undefined1 *)(param_1 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" * (cast_expression "(undefined1 *)(param_1 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = number_literal) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar9;\n  }" { (return_statement "return iVar9;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "wchar_t mkfmt(char *buf,wchar_t prec,wchar_t lng,time_t sec,wchar_t sec_fraction)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  wchar_t wVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  char *pcVar9;\n  wchar_t wVar10;\n  long in_FS_OFFSET;\n  wchar_t local_5c;\n  char abuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  abuf[0x15] = '\0';\n  wVar10 = lng;\n  if (lng != L'\0') {\n    lVar8 = sec / 0x3c;\n    sec = sec % 0x3c;\n    pcVar9 = abuf;\n    iVar6 = (int)pcVar9;\n    do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);\n    lVar8 = 1;\n    do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);\n    wVar10 = iVar7 + L'\x01';\n    buf[iVar7] = 'm';\n  }\n  pcVar9 = abuf;\n  iVar6 = (int)pcVar9;\n  do {\n    iVar2 = (int)pcVar9;\n    lVar8 = sec / 10;\n    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;\n    pcVar9[0x14] = (char)uVar5;\n    pcVar9 = pcVar9 + -1;\n    sec = lVar8;\n  } while (lVar8 != 0);\n  lVar8 = (long)(wVar10 + L'\x01');\n  do {\n    wVar4 = (wchar_t)lVar8;\n    buf[lVar8 + -1] = (char)uVar5;\n    lVar8 = lVar8 + 1;\n    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];\n  } while (abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0);\n  wVar10 = wVar4;\n  if (prec != L'\0') {\n    iVar6 = locale_decpoint();\n    wVar10 = wVar4 + L'\x01';\n    buf[wVar4] = (char)iVar6;\n    if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }\n  }\n  if (lng != L'\0') {\n    buf[wVar10] = 's';\n    wVar10 = wVar10 + L'\x01';\n  }\n  buf[wVar10] = '\0';\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return wVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "wchar_t mkfmt(char *buf,wchar_t prec,wchar_t lng,time_t sec,wchar_t sec_fraction)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  wchar_t wVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  char *pcVar9;\n  wchar_t wVar10;\n  long in_FS_OFFSET;\n  wchar_t local_5c;\n  char abuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  abuf[0x15] = '\0';\n  wVar10 = lng;\n  if (lng != L'\0') {\n    lVar8 = sec / 0x3c;\n    sec = sec % 0x3c;\n    pcVar9 = abuf;\n    iVar6 = (int)pcVar9;\n    do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);\n    lVar8 = 1;\n    do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);\n    wVar10 = iVar7 + L'\x01';\n    buf[iVar7] = 'm';\n  }\n  pcVar9 = abuf;\n  iVar6 = (int)pcVar9;\n  do {\n    iVar2 = (int)pcVar9;\n    lVar8 = sec / 10;\n    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;\n    pcVar9[0x14] = (char)uVar5;\n    pcVar9 = pcVar9 + -1;\n    sec = lVar8;\n  } while (lVar8 != 0);\n  lVar8 = (long)(wVar10 + L'\x01');\n  do {\n    wVar4 = (wchar_t)lVar8;\n    buf[lVar8 + -1] = (char)uVar5;\n    lVar8 = lVar8 + 1;\n    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];\n  } while (abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0);\n  wVar10 = wVar4;\n  if (prec != L'\0') {\n    iVar6 = locale_decpoint();\n    wVar10 = wVar4 + L'\x01';\n    buf[wVar4] = (char)iVar6;\n    if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }\n  }\n  if (lng != L'\0') {\n    buf[wVar10] = 's';\n    wVar10 = wVar10 + L'\x01';\n  }\n  buf[wVar10] = '\0';\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return wVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "mkfmt(char *buf,wchar_t prec,wchar_t lng,time_t sec,wchar_t sec_fraction)" identifier (parameter_list "(char *buf,wchar_t prec,wchar_t lng,time_t sec,wchar_t sec_fraction)" ( (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "wchar_t prec" type_identifier identifier) , (parameter_declaration "wchar_t lng" type_identifier identifier) , (parameter_declaration "time_t sec" type_identifier identifier) , (parameter_declaration "wchar_t sec_fraction" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  wchar_t wVar4;\n  uint uVar5;\n  int iVar6;\n  int iVar7;\n  long lVar8;\n  char *pcVar9;\n  wchar_t wVar10;\n  long in_FS_OFFSET;\n  wchar_t local_5c;\n  char abuf [22];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  abuf[0x15] = '\0';\n  wVar10 = lng;\n  if (lng != L'\0') {\n    lVar8 = sec / 0x3c;\n    sec = sec % 0x3c;\n    pcVar9 = abuf;\n    iVar6 = (int)pcVar9;\n    do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);\n    lVar8 = 1;\n    do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);\n    wVar10 = iVar7 + L'\x01';\n    buf[iVar7] = 'm';\n  }\n  pcVar9 = abuf;\n  iVar6 = (int)pcVar9;\n  do {\n    iVar2 = (int)pcVar9;\n    lVar8 = sec / 10;\n    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;\n    pcVar9[0x14] = (char)uVar5;\n    pcVar9 = pcVar9 + -1;\n    sec = lVar8;\n  } while (lVar8 != 0);\n  lVar8 = (long)(wVar10 + L'\x01');\n  do {\n    wVar4 = (wchar_t)lVar8;\n    buf[lVar8 + -1] = (char)uVar5;\n    lVar8 = lVar8 + 1;\n    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];\n  } while (abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0);\n  wVar10 = wVar4;\n  if (prec != L'\0') {\n    iVar6 = locale_decpoint();\n    wVar10 = wVar4 + L'\x01';\n    buf[wVar4] = (char)iVar6;\n    if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }\n  }\n  if (lng != L'\0') {\n    buf[wVar10] = 's';\n    wVar10 = wVar10 + L'\x01';\n  }\n  buf[wVar10] = '\0';\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return wVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "wchar_t wVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "wchar_t wVar10;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "wchar_t local_5c;" type_identifier identifier ;) (declaration "char abuf [22];" primitive_type (array_declarator "abuf [22]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "abuf[0x15] = '\0';" (assignment_expression "abuf[0x15] = '\0'" (subscript_expression "abuf[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wVar10 = lng;" (assignment_expression "wVar10 = lng" identifier = identifier) ;) (if_statement "if (lng != L'\0') {\n    lVar8 = sec / 0x3c;\n    sec = sec % 0x3c;\n    pcVar9 = abuf;\n    iVar6 = (int)pcVar9;\n    do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);\n    lVar8 = 1;\n    do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);\n    wVar10 = iVar7 + L'\x01';\n    buf[iVar7] = 'm';\n  }" if (parenthesized_expression "(lng != L'\0')" ( (binary_expression "lng != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n    lVar8 = sec / 0x3c;\n    sec = sec % 0x3c;\n    pcVar9 = abuf;\n    iVar6 = (int)pcVar9;\n    do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);\n    lVar8 = 1;\n    do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);\n    wVar10 = iVar7 + L'\x01';\n    buf[iVar7] = 'm';\n  }" { (expression_statement "lVar8 = sec / 0x3c;" (assignment_expression "lVar8 = sec / 0x3c" identifier = (binary_expression "sec / 0x3c" identifier / number_literal)) ;) (expression_statement "sec = sec % 0x3c;" (assignment_expression "sec = sec % 0x3c" identifier = (binary_expression "sec % 0x3c" identifier % number_literal)) ;) (expression_statement "pcVar9 = abuf;" (assignment_expression "pcVar9 = abuf" identifier = identifier) ;) (expression_statement "iVar6 = (int)pcVar9;" (assignment_expression "iVar6 = (int)pcVar9" identifier = (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    } while (lVar3 != 0);" do (compound_statement "{\n      iVar2 = (int)pcVar9;\n      lVar3 = lVar8 / 10;\n      uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;\n      pcVar9[0x14] = (char)uVar5;\n      pcVar9 = pcVar9 + -1;\n      lVar8 = lVar3;\n    }" { (expression_statement "iVar2 = (int)pcVar9;" (assignment_expression "iVar2 = (int)pcVar9" identifier = (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar3 = lVar8 / 10;" (assignment_expression "lVar3 = lVar8 / 10" identifier = (binary_expression "lVar8 / 10" identifier / number_literal)) ;) (expression_statement "uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30;" (assignment_expression "uVar5 = (int)lVar8 + (int)lVar3 * -10 + 0x30" identifier = (binary_expression "(int)lVar8 + (int)lVar3 * -10 + 0x30" (binary_expression "(int)lVar8 + (int)lVar3 * -10" (cast_expression "(int)lVar8" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar3 * -10" (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pcVar9[0x14] = (char)uVar5;" (assignment_expression "pcVar9[0x14] = (char)uVar5" (subscript_expression "pcVar9[0x14]" identifier [ number_literal ]) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar9 = pcVar9 + -1;" (assignment_expression "pcVar9 = pcVar9 + -1" identifier = (binary_expression "pcVar9 + -1" identifier + number_literal)) ;) (expression_statement "lVar8 = lVar3;" (assignment_expression "lVar8 = lVar3" identifier = identifier) ;) }) while (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) ;) (expression_statement "lVar8 = 1;" (assignment_expression "lVar8 = 1" identifier = number_literal) ;) (do_statement "do {\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    } while (abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0);" do (compound_statement "{\n      iVar7 = (int)lVar8;\n      buf[lVar8 + -1] = (char)uVar5;\n      lVar8 = lVar8 + 1;\n      uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];\n    }" { (expression_statement "iVar7 = (int)lVar8;" (assignment_expression "iVar7 = (int)lVar8" identifier = (cast_expression "(int)lVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "buf[lVar8 + -1] = (char)uVar5;" (assignment_expression "buf[lVar8 + -1] = (char)uVar5" (subscript_expression "buf[lVar8 + -1]" identifier [ (binary_expression "lVar8 + -1" identifier + number_literal) ]) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1];" (assignment_expression "uVar5 = (uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1]" identifier = (cast_expression "(uint)(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1]" identifier [ (binary_expression "lVar8 + ((0x14 - iVar6) + iVar2) + -1" (binary_expression "lVar8 + ((0x14 - iVar6) + iVar2)" identifier + (parenthesized_expression "((0x14 - iVar6) + iVar2)" ( (binary_expression "(0x14 - iVar6) + iVar2" (parenthesized_expression "(0x14 - iVar6)" ( (binary_expression "0x14 - iVar6" number_literal - identifier) )) + identifier) ))) + number_literal) ])))) ;) }) while (parenthesized_expression "(abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0)" ( (binary_expression "abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1] != 0" (subscript_expression "abuf[lVar8 + ((0x14 - iVar6) + iVar2) + -1]" identifier [ (binary_expression "lVar8 + ((0x14 - iVar6) + iVar2) + -1" (binary_expression "lVar8 + ((0x14 - iVar6) + iVar2)" identifier + (parenthesized_expression "((0x14 - iVar6) + iVar2)" ( (binary_expression "(0x14 - iVar6) + iVar2" (parenthesized_expression "(0x14 - iVar6)" ( (binary_expression "0x14 - iVar6" number_literal - identifier) )) + identifier) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "wVar10 = iVar7 + L'\x01';" (assignment_expression "wVar10 = iVar7 + L'\x01'" identifier = (binary_expression "iVar7 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence '))) ;) (expression_statement "buf[iVar7] = 'm';" (assignment_expression "buf[iVar7] = 'm'" (subscript_expression "buf[iVar7]" identifier [ identifier ]) = (char_literal "'m'" ' character ')) ;) })) (expression_statement "pcVar9 = abuf;" (assignment_expression "pcVar9 = abuf" identifier = identifier) ;) (expression_statement "iVar6 = (int)pcVar9;" (assignment_expression "iVar6 = (int)pcVar9" identifier = (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n    iVar2 = (int)pcVar9;\n    lVar8 = sec / 10;\n    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;\n    pcVar9[0x14] = (char)uVar5;\n    pcVar9 = pcVar9 + -1;\n    sec = lVar8;\n  } while (lVar8 != 0);" do (compound_statement "{\n    iVar2 = (int)pcVar9;\n    lVar8 = sec / 10;\n    uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;\n    pcVar9[0x14] = (char)uVar5;\n    pcVar9 = pcVar9 + -1;\n    sec = lVar8;\n  }" { (expression_statement "iVar2 = (int)pcVar9;" (assignment_expression "iVar2 = (int)pcVar9" identifier = (cast_expression "(int)pcVar9" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar8 = sec / 10;" (assignment_expression "lVar8 = sec / 10" identifier = (binary_expression "sec / 10" identifier / number_literal)) ;) (expression_statement "uVar5 = (int)sec + (int)lVar8 * -10 + 0x30;" (assignment_expression "uVar5 = (int)sec + (int)lVar8 * -10 + 0x30" identifier = (binary_expression "(int)sec + (int)lVar8 * -10 + 0x30" (binary_expression "(int)sec + (int)lVar8 * -10" (cast_expression "(int)sec" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar8 * -10" (cast_expression "(int)lVar8" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pcVar9[0x14] = (char)uVar5;" (assignment_expression "pcVar9[0x14] = (char)uVar5" (subscript_expression "pcVar9[0x14]" identifier [ number_literal ]) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pcVar9 = pcVar9 + -1;" (assignment_expression "pcVar9 = pcVar9 + -1" identifier = (binary_expression "pcVar9 + -1" identifier + number_literal)) ;) (expression_statement "sec = lVar8;" (assignment_expression "sec = lVar8" identifier = identifier) ;) }) while (parenthesized_expression "(lVar8 != 0)" ( (binary_expression "lVar8 != 0" identifier != number_literal) )) ;) (expression_statement "lVar8 = (long)(wVar10 + L'\x01');" (assignment_expression "lVar8 = (long)(wVar10 + L'\x01')" identifier = (cast_expression "(long)(wVar10 + L'\x01')" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(wVar10 + L'\x01')" ( (binary_expression "wVar10 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence ')) )))) ;) (do_statement "do {\n    wVar4 = (wchar_t)lVar8;\n    buf[lVar8 + -1] = (char)uVar5;\n    lVar8 = lVar8 + 1;\n    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];\n  } while (abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0);" do (compound_statement "{\n    wVar4 = (wchar_t)lVar8;\n    buf[lVar8 + -1] = (char)uVar5;\n    lVar8 = lVar8 + 1;\n    uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];\n  }" { (expression_statement "wVar4 = (wchar_t)lVar8;" (assignment_expression "wVar4 = (wchar_t)lVar8" identifier = (cast_expression "(wchar_t)lVar8" ( (type_descriptor "wchar_t" type_identifier) ) identifier)) ;) (expression_statement "buf[lVar8 + -1] = (char)uVar5;" (assignment_expression "buf[lVar8 + -1] = (char)uVar5" (subscript_expression "buf[lVar8 + -1]" identifier [ (binary_expression "lVar8 + -1" identifier + number_literal) ]) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1];" (assignment_expression "uVar5 = (uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1]" identifier = (cast_expression "(uint)(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1]" identifier [ (binary_expression "lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1" (binary_expression "lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10)" identifier + (parenthesized_expression "((long)((0x14 - iVar6) + iVar2) - (long)wVar10)" ( (binary_expression "(long)((0x14 - iVar6) + iVar2) - (long)wVar10" (cast_expression "(long)((0x14 - iVar6) + iVar2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar6) + iVar2)" ( (binary_expression "(0x14 - iVar6) + iVar2" (parenthesized_expression "(0x14 - iVar6)" ( (binary_expression "0x14 - iVar6" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)wVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ])))) ;) }) while (parenthesized_expression "(abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0)" ( (binary_expression "abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1] != 0" (subscript_expression "abuf[lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1]" identifier [ (binary_expression "lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10) + -1" (binary_expression "lVar8 + ((long)((0x14 - iVar6) + iVar2) - (long)wVar10)" identifier + (parenthesized_expression "((long)((0x14 - iVar6) + iVar2) - (long)wVar10)" ( (binary_expression "(long)((0x14 - iVar6) + iVar2) - (long)wVar10" (cast_expression "(long)((0x14 - iVar6) + iVar2)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar6) + iVar2)" ( (binary_expression "(0x14 - iVar6) + iVar2" (parenthesized_expression "(0x14 - iVar6)" ( (binary_expression "0x14 - iVar6" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)wVar10" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "wVar10 = wVar4;" (assignment_expression "wVar10 = wVar4" identifier = identifier) ;) (if_statement "if (prec != L'\0') {\n    iVar6 = locale_decpoint();\n    wVar10 = wVar4 + L'\x01';\n    buf[wVar4] = (char)iVar6;\n    if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }\n  }" if (parenthesized_expression "(prec != L'\0')" ( (binary_expression "prec != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n    iVar6 = locale_decpoint();\n    wVar10 = wVar4 + L'\x01';\n    buf[wVar4] = (char)iVar6;\n    if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }\n  }" { (expression_statement "iVar6 = locale_decpoint();" (assignment_expression "iVar6 = locale_decpoint()" identifier = (call_expression "locale_decpoint()" identifier (argument_list "()" ( )))) ;) (expression_statement "wVar10 = wVar4 + L'\x01';" (assignment_expression "wVar10 = wVar4 + L'\x01'" identifier = (binary_expression "wVar4 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence '))) ;) (expression_statement "buf[wVar4] = (char)iVar6;" (assignment_expression "buf[wVar4] = (char)iVar6" (subscript_expression "buf[wVar4]" identifier [ identifier ]) = (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (L'\0' < prec) {\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }" if (parenthesized_expression "(L'\0' < prec)" ( (binary_expression "L'\0' < prec" (char_literal "L'\0'" L' escape_sequence ') < identifier) )) (compound_statement "{\n      lVar8 = 1;\n      local_5c = sec_fraction;\n      do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);\n      wVar10 = prec + wVar10;\n    }" { (expression_statement "lVar8 = 1;" (assignment_expression "lVar8 = 1" identifier = number_literal) ;) (expression_statement "local_5c = sec_fraction;" (assignment_expression "local_5c = sec_fraction" identifier = identifier) ;) (do_statement "do {\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      } while ((wchar_t)lVar8 <= prec);" do (compound_statement "{\n        iVar6 = local_5c / L""[lVar8];\n        local_5c = local_5c % L""[lVar8];\n        buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';\n        lVar8 = lVar8 + 1;\n      }" { (expression_statement "iVar6 = local_5c / L""[lVar8];" (assignment_expression "iVar6 = local_5c / L""[lVar8]" identifier = (binary_expression "local_5c / L""[lVar8]" identifier / (subscript_expression "L""[lVar8]" (string_literal "L""" L" ") [ identifier ]))) ;) (expression_statement "local_5c = local_5c % L""[lVar8];" (assignment_expression "local_5c = local_5c % L""[lVar8]" identifier = (binary_expression "local_5c % L""[lVar8]" identifier % (subscript_expression "L""[lVar8]" (string_literal "L""" L" ") [ identifier ]))) ;) (expression_statement "buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0';" (assignment_expression "buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1] = (char)iVar6 + '0'" (subscript_expression "buf[lVar8 + (long)(wVar4 + L'\xffffffff') + 1]" identifier [ (binary_expression "lVar8 + (long)(wVar4 + L'\xffffffff') + 1" (binary_expression "lVar8 + (long)(wVar4 + L'\xffffffff')" identifier + (cast_expression "(long)(wVar4 + L'\xffffffff')" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(wVar4 + L'\xffffffff')" ( (binary_expression "wVar4 + L'\xffffffff'" identifier + (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )))) + number_literal) ]) = (binary_expression "(char)iVar6 + '0'" (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "lVar8 = lVar8 + 1;" (assignment_expression "lVar8 = lVar8 + 1" identifier = (binary_expression "lVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((wchar_t)lVar8 <= prec)" ( (binary_expression "(wchar_t)lVar8 <= prec" (cast_expression "(wchar_t)lVar8" ( (type_descriptor "wchar_t" type_identifier) ) identifier) <= identifier) )) ;) (expression_statement "wVar10 = prec + wVar10;" (assignment_expression "wVar10 = prec + wVar10" identifier = (binary_expression "prec + wVar10" identifier + identifier)) ;) })) })) (if_statement "if (lng != L'\0') {\n    buf[wVar10] = 's';\n    wVar10 = wVar10 + L'\x01';\n  }" if (parenthesized_expression "(lng != L'\0')" ( (binary_expression "lng != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) )) (compound_statement "{\n    buf[wVar10] = 's';\n    wVar10 = wVar10 + L'\x01';\n  }" { (expression_statement "buf[wVar10] = 's';" (assignment_expression "buf[wVar10] = 's'" (subscript_expression "buf[wVar10]" identifier [ identifier ]) = (char_literal "'s'" ' character ')) ;) (expression_statement "wVar10 = wVar10 + L'\x01';" (assignment_expression "wVar10 = wVar10 + L'\x01'" identifier = (binary_expression "wVar10 + L'\x01'" identifier + (char_literal "L'\x01'" L' escape_sequence '))) ;) })) (expression_statement "buf[wVar10] = '\0';" (assignment_expression "buf[wVar10] = '\0'" (subscript_expression "buf[wVar10]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return wVar10;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return wVar10;\n  }" { (return_statement "return wVar10;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)" identifier (parameter_list "(long param_1,int param_2,int param_3,long param_4,int param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_5c;" primitive_type identifier ;) (declaration "byte local_58 [20];" type_identifier (array_declarator "local_58 [20]" identifier [ number_literal ]) ;) (declaration "byte local_44 [4];" type_identifier (array_declarator "local_44 [4]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_44[1] = 0;" (assignment_expression "local_44[1] = 0" (subscript_expression "local_44[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" identifier = identifier) ;) (if_statement "if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" { (expression_statement "lVar7 = param_4 / 0x3c;" (assignment_expression "lVar7 = param_4 / 0x3c" identifier = (binary_expression "param_4 / 0x3c" identifier / number_literal)) ;) (expression_statement "param_4 = param_4 % 0x3c;" (assignment_expression "param_4 = param_4 % 0x3c" identifier = (binary_expression "param_4 % 0x3c" identifier % number_literal)) ;) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" identifier = identifier) ;) (expression_statement "iVar9 = (int)pbVar8;" (assignment_expression "iVar9 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    }" { (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar1 = lVar7 / 10;" (assignment_expression "lVar1 = lVar7 / 10" identifier = (binary_expression "lVar7 / 10" identifier / number_literal)) ;) (expression_statement "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;" (assignment_expression "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30" identifier = (binary_expression "(int)lVar7 + (int)lVar1 * -10 + 0x30" (binary_expression "(int)lVar7 + (int)lVar1 * -10" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar1 * -10" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" identifier [ number_literal ]) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "lVar7 = lVar1;" (assignment_expression "lVar7 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);" do (compound_statement "{\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    }" { (expression_statement "iVar6 = (int)lVar7;" (assignment_expression "iVar6 = (int)lVar7" identifier = (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" * (cast_expression "(char *)(param_1 + -1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar7)" ( (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) )))) = (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier = (cast_expression "(uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier [ (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" identifier + (parenthesized_expression "((0x14 - iVar9) + iVar5)" ( (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" ( (binary_expression "0x14 - iVar9" number_literal - identifier) )) + identifier) ))) + number_literal) ]))) ;) }) while (parenthesized_expression "(local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0)" ( (binary_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0" (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" identifier [ (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" identifier + (parenthesized_expression "((0x14 - iVar9) + iVar5)" ( (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" ( (binary_expression "0x14 - iVar9" number_literal - identifier) )) + identifier) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "iVar9 = iVar6 + 1;" (assignment_expression "iVar9 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + iVar6) = 0x6d;" (assignment_expression "*(undefined1 *)(param_1 + iVar6) = 0x6d" (pointer_expression "*(undefined1 *)(param_1 + iVar6)" * (cast_expression "(undefined1 *)(param_1 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar6)" ( (binary_expression "param_1 + iVar6" identifier + identifier) )))) = number_literal) ;) })) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" identifier = identifier) ;) (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (do_statement "do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);" do (compound_statement "{\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  }" { (expression_statement "iVar6 = (int)pbVar8;" (assignment_expression "iVar6 = (int)pbVar8" identifier = (cast_expression "(int)pbVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = param_4 / 10;" (assignment_expression "lVar7 = param_4 / 10" identifier = (binary_expression "param_4 / 10" identifier / number_literal)) ;) (expression_statement "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;" (assignment_expression "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30" identifier = (binary_expression "(int)param_4 + (int)lVar7 * -10 + 0x30" (binary_expression "(int)param_4 + (int)lVar7 * -10" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "(int)lVar7 * -10" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" identifier [ number_literal ]) = (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" identifier = (binary_expression "pbVar8 + -1" identifier + number_literal)) ;) (expression_statement "param_4 = lVar7;" (assignment_expression "param_4 = lVar7" identifier = identifier) ;) }) while (parenthesized_expression "(lVar7 != 0)" ( (binary_expression "lVar7 != 0" identifier != number_literal) )) ;) (expression_statement "lVar7 = (long)(iVar9 + 1);" (assignment_expression "lVar7 = (long)(iVar9 + 1)" identifier = (cast_expression "(long)(iVar9 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar9 + 1)" ( (binary_expression "iVar9 + 1" identifier + number_literal) )))) ;) (do_statement "do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);" do (compound_statement "{\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  }" { (expression_statement "iVar2 = (int)lVar7;" (assignment_expression "iVar2 = (int)lVar7" identifier = (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" * (cast_expression "(char *)(param_1 + -1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + -1 + lVar7)" ( (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" identifier + number_literal) + identifier) )))) = (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier = (cast_expression "(uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier [ (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" identifier + (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" ( (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar5) + iVar6)" ( (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" ( (binary_expression "0x14 - iVar5" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)iVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ]))) ;) }) while (parenthesized_expression "(local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0)" ( (binary_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0" (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" identifier [ (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" identifier + (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" ( (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((0x14 - iVar5) + iVar6)" ( (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" ( (binary_expression "0x14 - iVar5" number_literal - identifier) )) + identifier) ))) - (cast_expression "(long)iVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) + number_literal) ]) != number_literal) )) ;) (expression_statement "iVar9 = iVar2;" (assignment_expression "iVar9 = iVar2" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" { (expression_statement "uVar3 = locale_decpoint();" (assignment_expression "uVar3 = locale_decpoint()" identifier = (call_expression "locale_decpoint()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar9 = iVar2 + 1;" (assignment_expression "iVar9 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(param_1 + iVar2) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + iVar2) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + iVar2)" * (cast_expression "(undefined1 *)(param_1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar2)" ( (binary_expression "param_1 + iVar2" identifier + identifier) )))) = identifier) ;) (if_statement "if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" { (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (expression_statement "local_5c = param_5;" (assignment_expression "local_5c = param_5" identifier = identifier) ;) (do_statement "do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);" do (compound_statement "{\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      }" { (expression_statement "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier = (binary_expression "local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier / (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" * (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" ( (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" & identifier) + (binary_expression "lVar7 * 4" identifier * number_literal)) )))))) ;) (expression_statement "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier = (binary_expression "local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" identifier % (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" * (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" ( (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" & identifier) + (binary_expression "lVar7 * 4" identifier * number_literal)) )))))) ;) (expression_statement "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';" (assignment_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0'" (pointer_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" * (cast_expression "(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((iVar2 + -1) + param_1 + 1 + lVar7)" ( (binary_expression "(iVar2 + -1) + param_1 + 1 + lVar7" (binary_expression "(iVar2 + -1) + param_1 + 1" (binary_expression "(iVar2 + -1) + param_1" (parenthesized_expression "(iVar2 + -1)" ( (binary_expression "iVar2 + -1" identifier + number_literal) )) + identifier) + number_literal) + identifier) )))) = (binary_expression "(char)iVar5 + '0'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) + (char_literal "'0'" ' character '))) ;) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar7 <= param_2)" ( (binary_expression "(int)lVar7 <= param_2" (cast_expression "(int)lVar7" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) ;) (expression_statement "iVar9 = param_2 + iVar9;" (assignment_expression "iVar9 = param_2 + iVar9" identifier = (binary_expression "param_2 + iVar9" identifier + identifier)) ;) })) })) (if_statement "if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" { (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0x73;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0x73" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" * (cast_expression "(undefined1 *)(param_1 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" * (cast_expression "(undefined1 *)(param_1 + iVar9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar9)" ( (binary_expression "param_1 + iVar9" identifier + identifier) )))) = number_literal) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar9;\n  }" { (return_statement "return iVar9;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) ))) + LIT) ]))) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) ))) + LIT) ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) ))) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) + LIT) ]))) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) ))) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) + LIT) ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) + IDENT) + LIT) + IDENT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "int") (function_declarator "FUN_0014141b(long param_1,int param_2,int param_3,long param_4,int param_5)" (identifier "FUN_0014141b") (parameter_list "(long param_1,int param_2,int param_3,long param_4,int param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  undefined1 uVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  byte *pbVar8;\n  int iVar9;\n  long in_FS_OFFSET;\n  int local_5c;\n  byte local_58 [20];\n  byte local_44 [4];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_44[1] = 0;\n  iVar9 = param_3;\n  if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }\n  pbVar8 = local_58;\n  iVar5 = (int)pbVar8;\n  do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);\n  lVar7 = (long)(iVar9 + 1);\n  do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);\n  iVar9 = iVar2;\n  if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }\n  if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }\n  *(undefined1 *)(param_1 + iVar9) = 0;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_5c;" (primitive_type "int") (identifier "local_5c") (; ";")) (declaration "byte local_58 [20];" (type_identifier "byte") (array_declarator "local_58 [20]" (identifier "local_58") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "byte local_44 [4];" (type_identifier "byte") (array_declarator "local_44 [4]" (identifier "local_44") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_44[1] = 0;" (assignment_expression "local_44[1] = 0" (subscript_expression "local_44[1]" (identifier "local_44") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = param_3;" (assignment_expression "iVar9 = param_3" (identifier "iVar9") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 != 0) {\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar7 = param_4 / 0x3c;\n    param_4 = param_4 % 0x3c;\n    pbVar8 = local_58;\n    iVar9 = (int)pbVar8;\n    do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);\n    lVar7 = 1;\n    do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);\n    iVar9 = iVar6 + 1;\n    *(undefined1 *)(param_1 + iVar6) = 0x6d;\n  }" ({ "{") (expression_statement "lVar7 = param_4 / 0x3c;" (assignment_expression "lVar7 = param_4 / 0x3c" (identifier "lVar7") (= "=") (binary_expression "param_4 / 0x3c" (identifier "param_4") (/ "/") (number_literal "0x3c"))) (; ";")) (expression_statement "param_4 = param_4 % 0x3c;" (assignment_expression "param_4 = param_4 % 0x3c" (identifier "param_4") (= "=") (binary_expression "param_4 % 0x3c" (identifier "param_4") (% "%") (number_literal "0x3c"))) (; ";")) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" (identifier "pbVar8") (= "=") (identifier "local_58")) (; ";")) (expression_statement "iVar9 = (int)pbVar8;" (assignment_expression "iVar9 = (int)pbVar8" (identifier "iVar9") (= "=") (cast_expression "(int)pbVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar8"))) (; ";")) (do_statement "do {\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    } while (lVar1 != 0);" (do "do") (compound_statement "{\n      iVar5 = (int)pbVar8;\n      lVar1 = lVar7 / 10;\n      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;\n      pbVar8[0x14] = (byte)uVar4;\n      pbVar8 = pbVar8 + -1;\n      lVar7 = lVar1;\n    }" ({ "{") (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" (identifier "iVar5") (= "=") (cast_expression "(int)pbVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar8"))) (; ";")) (expression_statement "lVar1 = lVar7 / 10;" (assignment_expression "lVar1 = lVar7 / 10" (identifier "lVar1") (= "=") (binary_expression "lVar7 / 10" (identifier "lVar7") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;" (assignment_expression "uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30" (identifier "uVar4") (= "=") (binary_expression "(int)lVar7 + (int)lVar1 * -10 + 0x30" (binary_expression "(int)lVar7 + (int)lVar1 * -10" (cast_expression "(int)lVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar7")) (+ "+") (binary_expression "(int)lVar1 * -10" (cast_expression "(int)lVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar1")) (* "*") (number_literal "-10"))) (+ "+") (number_literal "0x30"))) (; ";")) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" (identifier "pbVar8") ([ "[") (number_literal "0x14") (] "]")) (= "=") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + -1" (identifier "pbVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "lVar7 = lVar1;" (assignment_expression "lVar7 = lVar1" (identifier "lVar7") (= "=") (identifier "lVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" (identifier "lVar7") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);" (do "do") (compound_statement "{\n      iVar6 = (int)lVar7;\n      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n      lVar7 = lVar7 + 1;\n      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];\n    }" ({ "{") (expression_statement "iVar6 = (int)lVar7;" (assignment_expression "iVar6 = (int)lVar7" (identifier "iVar6") (= "=") (cast_expression "(int)lVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar7"))) (; ";")) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" (* "*") (cast_expression "(char *)(param_1 + -1 + lVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + lVar7)" (( "(") (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "lVar7")) () ")")))) (= "=") (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" (identifier "uVar4") (= "=") (cast_expression "(uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" (identifier "local_58") ([ "[") (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" (identifier "lVar7") (+ "+") (parenthesized_expression "((0x14 - iVar9) + iVar5)" (( "(") (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" (( "(") (binary_expression "0x14 - iVar9" (number_literal "0x14") (- "-") (identifier "iVar9")) () ")")) (+ "+") (identifier "iVar5")) () ")"))) (+ "+") (number_literal "-1")) (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0)" (( "(") (binary_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0" (subscript_expression "local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1]" (identifier "local_58") ([ "[") (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5) + -1" (binary_expression "lVar7 + ((0x14 - iVar9) + iVar5)" (identifier "lVar7") (+ "+") (parenthesized_expression "((0x14 - iVar9) + iVar5)" (( "(") (binary_expression "(0x14 - iVar9) + iVar5" (parenthesized_expression "(0x14 - iVar9)" (( "(") (binary_expression "0x14 - iVar9" (number_literal "0x14") (- "-") (identifier "iVar9")) () ")")) (+ "+") (identifier "iVar5")) () ")"))) (+ "+") (number_literal "-1")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar9 = iVar6 + 1;" (assignment_expression "iVar9 = iVar6 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + iVar6) = 0x6d;" (assignment_expression "*(undefined1 *)(param_1 + iVar6) = 0x6d" (pointer_expression "*(undefined1 *)(param_1 + iVar6)" (* "*") (cast_expression "(undefined1 *)(param_1 + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar6)" (( "(") (binary_expression "param_1 + iVar6" (identifier "param_1") (+ "+") (identifier "iVar6")) () ")")))) (= "=") (number_literal "0x6d")) (; ";")) (} "}"))) (expression_statement "pbVar8 = local_58;" (assignment_expression "pbVar8 = local_58" (identifier "pbVar8") (= "=") (identifier "local_58")) (; ";")) (expression_statement "iVar5 = (int)pbVar8;" (assignment_expression "iVar5 = (int)pbVar8" (identifier "iVar5") (= "=") (cast_expression "(int)pbVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar8"))) (; ";")) (do_statement "do {\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  } while (lVar7 != 0);" (do "do") (compound_statement "{\n    iVar6 = (int)pbVar8;\n    lVar7 = param_4 / 10;\n    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;\n    pbVar8[0x14] = (byte)uVar4;\n    pbVar8 = pbVar8 + -1;\n    param_4 = lVar7;\n  }" ({ "{") (expression_statement "iVar6 = (int)pbVar8;" (assignment_expression "iVar6 = (int)pbVar8" (identifier "iVar6") (= "=") (cast_expression "(int)pbVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar8"))) (; ";")) (expression_statement "lVar7 = param_4 / 10;" (assignment_expression "lVar7 = param_4 / 10" (identifier "lVar7") (= "=") (binary_expression "param_4 / 10" (identifier "param_4") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;" (assignment_expression "uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30" (identifier "uVar4") (= "=") (binary_expression "(int)param_4 + (int)lVar7 * -10 + 0x30" (binary_expression "(int)param_4 + (int)lVar7 * -10" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (binary_expression "(int)lVar7 * -10" (cast_expression "(int)lVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar7")) (* "*") (number_literal "-10"))) (+ "+") (number_literal "0x30"))) (; ";")) (expression_statement "pbVar8[0x14] = (byte)uVar4;" (assignment_expression "pbVar8[0x14] = (byte)uVar4" (subscript_expression "pbVar8[0x14]" (identifier "pbVar8") ([ "[") (number_literal "0x14") (] "]")) (= "=") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + -1;" (assignment_expression "pbVar8 = pbVar8 + -1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + -1" (identifier "pbVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_4 = lVar7;" (assignment_expression "param_4 = lVar7" (identifier "param_4") (= "=") (identifier "lVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar7 != 0)" (( "(") (binary_expression "lVar7 != 0" (identifier "lVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "lVar7 = (long)(iVar9 + 1);" (assignment_expression "lVar7 = (long)(iVar9 + 1)" (identifier "lVar7") (= "=") (cast_expression "(long)(iVar9 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar9 + 1)" (( "(") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1")) () ")")))) (; ";")) (do_statement "do {\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);" (do "do") (compound_statement "{\n    iVar2 = (int)lVar7;\n    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;\n    lVar7 = lVar7 + 1;\n    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];\n  }" ({ "{") (expression_statement "iVar2 = (int)lVar7;" (assignment_expression "iVar2 = (int)lVar7" (identifier "iVar2") (= "=") (cast_expression "(int)lVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar7"))) (; ";")) (expression_statement "*(char *)(param_1 + -1 + lVar7) = (char)uVar4;" (assignment_expression "*(char *)(param_1 + -1 + lVar7) = (char)uVar4" (pointer_expression "*(char *)(param_1 + -1 + lVar7)" (* "*") (cast_expression "(char *)(param_1 + -1 + lVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + -1 + lVar7)" (( "(") (binary_expression "param_1 + -1 + lVar7" (binary_expression "param_1 + -1" (identifier "param_1") (+ "+") (number_literal "-1")) (+ "+") (identifier "lVar7")) () ")")))) (= "=") (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];" (assignment_expression "uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" (identifier "uVar4") (= "=") (cast_expression "(uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" (identifier "local_58") ([ "[") (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" (identifier "lVar7") (+ "+") (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" (( "(") (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((0x14 - iVar5) + iVar6)" (( "(") (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" (( "(") (binary_expression "0x14 - iVar5" (number_literal "0x14") (- "-") (identifier "iVar5")) () ")")) (+ "+") (identifier "iVar6")) () ")"))) (- "-") (cast_expression "(long)iVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar9"))) () ")"))) (+ "+") (number_literal "-1")) (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0)" (( "(") (binary_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0" (subscript_expression "local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1]" (identifier "local_58") ([ "[") (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1" (binary_expression "lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" (identifier "lVar7") (+ "+") (parenthesized_expression "((long)((0x14 - iVar5) + iVar6) - (long)iVar9)" (( "(") (binary_expression "(long)((0x14 - iVar5) + iVar6) - (long)iVar9" (cast_expression "(long)((0x14 - iVar5) + iVar6)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((0x14 - iVar5) + iVar6)" (( "(") (binary_expression "(0x14 - iVar5) + iVar6" (parenthesized_expression "(0x14 - iVar5)" (( "(") (binary_expression "0x14 - iVar5" (number_literal "0x14") (- "-") (identifier "iVar5")) () ")")) (+ "+") (identifier "iVar6")) () ")"))) (- "-") (cast_expression "(long)iVar9" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar9"))) () ")"))) (+ "+") (number_literal "-1")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar9 = iVar2;" (assignment_expression "iVar9 = iVar2" (identifier "iVar9") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (param_2 != 0) {\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = locale_decpoint();\n    iVar9 = iVar2 + 1;\n    *(undefined1 *)(param_1 + iVar2) = uVar3;\n    if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }\n  }" ({ "{") (expression_statement "uVar3 = locale_decpoint();" (assignment_expression "uVar3 = locale_decpoint()" (identifier "uVar3") (= "=") (call_expression "locale_decpoint()" (identifier "locale_decpoint") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar9 = iVar2 + 1;" (assignment_expression "iVar9 = iVar2 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + iVar2) = uVar3;" (assignment_expression "*(undefined1 *)(param_1 + iVar2) = uVar3" (pointer_expression "*(undefined1 *)(param_1 + iVar2)" (* "*") (cast_expression "(undefined1 *)(param_1 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar2)" (( "(") (binary_expression "param_1 + iVar2" (identifier "param_1") (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (0 < param_2) {\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      lVar7 = 1;\n      local_5c = param_5;\n      do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);\n      iVar9 = param_2 + iVar9;\n    }" ({ "{") (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" (identifier "lVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "local_5c = param_5;" (assignment_expression "local_5c = param_5" (identifier "local_5c") (= "=") (identifier "param_5")) (; ";")) (do_statement "do {\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      } while ((int)lVar7 <= param_2);" (do "do") (compound_statement "{\n        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);\n        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';\n        lVar7 = lVar7 + 1;\n      }" ({ "{") (expression_statement "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" (identifier "iVar5") (= "=") (binary_expression "local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4)" (identifier "local_5c") (/ "/") (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" (* "*") (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" (( "(") (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" (& "&") (identifier "DAT_001d3bf0")) (+ "+") (binary_expression "lVar7 * 4" (identifier "lVar7") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);" (assignment_expression "local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" (identifier "local_5c") (= "=") (binary_expression "local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4)" (identifier "local_5c") (% "%") (pointer_expression "*(int *)(&DAT_001d3bf0 + lVar7 * 4)" (* "*") (cast_expression "(int *)(&DAT_001d3bf0 + lVar7 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001d3bf0 + lVar7 * 4)" (( "(") (binary_expression "&DAT_001d3bf0 + lVar7 * 4" (pointer_expression "&DAT_001d3bf0" (& "&") (identifier "DAT_001d3bf0")) (+ "+") (binary_expression "lVar7 * 4" (identifier "lVar7") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';" (assignment_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0'" (pointer_expression "*(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" (* "*") (cast_expression "(char *)((iVar2 + -1) + param_1 + 1 + lVar7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((iVar2 + -1) + param_1 + 1 + lVar7)" (( "(") (binary_expression "(iVar2 + -1) + param_1 + 1 + lVar7" (binary_expression "(iVar2 + -1) + param_1 + 1" (binary_expression "(iVar2 + -1) + param_1" (parenthesized_expression "(iVar2 + -1)" (( "(") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1")) () ")")) (+ "+") (identifier "param_1")) (+ "+") (number_literal "1")) (+ "+") (identifier "lVar7")) () ")")))) (= "=") (binary_expression "(char)iVar5 + '0'" (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5")) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar7 <= param_2)" (( "(") (binary_expression "(int)lVar7 <= param_2" (cast_expression "(int)lVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar7")) (<= "<=") (identifier "param_2")) () ")")) (; ";")) (expression_statement "iVar9 = param_2 + iVar9;" (assignment_expression "iVar9 = param_2 + iVar9" (identifier "iVar9") (= "=") (binary_expression "param_2 + iVar9" (identifier "param_2") (+ "+") (identifier "iVar9"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_3 != 0) {\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined1 *)(param_1 + iVar9) = 0x73;\n    iVar9 = iVar9 + 1;\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0x73;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0x73" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" (* "*") (cast_expression "(undefined1 *)(param_1 + iVar9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar9)" (( "(") (binary_expression "param_1 + iVar9" (identifier "param_1") (+ "+") (identifier "iVar9")) () ")")))) (= "=") (number_literal "0x73")) (; ";")) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + iVar9) = 0;" (assignment_expression "*(undefined1 *)(param_1 + iVar9) = 0" (pointer_expression "*(undefined1 *)(param_1 + iVar9)" (* "*") (cast_expression "(undefined1 *)(param_1 + iVar9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar9)" (( "(") (binary_expression "param_1 + iVar9" (identifier "param_1") (+ "+") (identifier "iVar9")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar9;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return iVar9;\n  }" ({ "{") (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 function_1(char *buf,type_1 var_11,type_1 var_2,type_2 var_3,type_1 sec_fraction)

{
  long var_15;
  int var_8;
  long var_6;
  type_1 var_13;
  type_3 uVar5;
  int var_7;
  int var_9;
  long var_4;
  char *var_5;
  type_1 var_10;
  long var_1;
  type_1 var_14;
  char abuf [22];
  
  var_15 = *(long *)(var_1 + 0x28);
  abuf[0x15] = '\0';
  var_10 = var_2;
  if (var_2 != L'\0') {
    var_4 = var_3 / 0x3c;
    var_3 = var_3 % 0x3c;
    var_5 = abuf;
    var_7 = (int)var_5;
    do {
      var_8 = (int)var_5;
      var_6 = var_4 / 10;
      uVar5 = (int)var_4 + (int)var_6 * -10 + 0x30;
      var_5[0x14] = (char)uVar5;
      var_5 = var_5 + -1;
      var_4 = var_6;
    } while (var_6 != 0);
    var_4 = 1;
    do {
      var_9 = (int)var_4;
      buf[var_4 + -1] = (char)uVar5;
      var_4 = var_4 + 1;
      uVar5 = (type_3)(type_4)abuf[var_4 + ((0x14 - var_7) + var_8) + -1];
    } while (abuf[var_4 + ((0x14 - var_7) + var_8) + -1] != 0);
    var_10 = var_9 + L'\x01';
    buf[var_9] = 'm';
  }
  var_5 = abuf;
  var_7 = (int)var_5;
  do {
    var_8 = (int)var_5;
    var_4 = var_3 / 10;
    uVar5 = (int)var_3 + (int)var_4 * -10 + 0x30;
    var_5[0x14] = (char)uVar5;
    var_5 = var_5 + -1;
    var_3 = var_4;
  } while (var_4 != 0);
  var_4 = (long)(var_10 + L'\x01');
  do {
    var_13 = (type_1)var_4;
    buf[var_4 + -1] = (char)uVar5;
    var_4 = var_4 + 1;
    uVar5 = (type_3)(type_4)abuf[var_4 + ((long)((0x14 - var_7) + var_8) - (long)var_10) + -1];
  } while (abuf[var_4 + ((long)((0x14 - var_7) + var_8) - (long)var_10) + -1] != 0);
  var_10 = var_13;
  if (var_11 != L'\0') {
    var_7 = var_12();
    var_10 = var_13 + L'\x01';
    buf[var_13] = (char)var_7;
    if (L'\0' < var_11) {
      var_4 = 1;
      var_14 = sec_fraction;
      do {
        var_7 = var_14 / L""[var_4];
        var_14 = var_14 % L""[var_4];
        buf[var_4 + (long)(var_13 + L'\xffffffff') + 1] = (char)var_7 + '0';
        var_4 = var_4 + 1;
      } while ((type_1)var_4 <= var_11);
      var_10 = var_11 + var_10;
    }
  }
  if (var_2 != L'\0') {
    buf[var_10] = 's';
    var_10 = var_10 + L'\x01';
  }
  buf[var_10] = '\0';
  if (var_15 == *(long *)(var_1 + 0x28)) {
    return var_10;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


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

int MASKED(long param_1,int param_2,int param_3,long param_4,int param_5)

{
  long lVar1;
  int iVar2;
  undefined1 uVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  byte *pbVar8;
  int iVar9;
  long in_FS_OFFSET;
  int local_5c;
  byte local_58 [20];
  byte local_44 [4];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_44[1] = 0;
  iVar9 = param_3;
  if (param_3 != 0) {
    lVar7 = param_4 / 0x3c;
    param_4 = param_4 % 0x3c;
    pbVar8 = local_58;
    iVar9 = (int)pbVar8;
    do {
      iVar5 = (int)pbVar8;
      lVar1 = lVar7 / 10;
      uVar4 = (int)lVar7 + (int)lVar1 * -10 + 0x30;
      pbVar8[0x14] = (byte)uVar4;
      pbVar8 = pbVar8 + -1;
      lVar7 = lVar1;
    } while (lVar1 != 0);
    lVar7 = 1;
    do {
      iVar6 = (int)lVar7;
      *(char *)(param_1 + -1 + lVar7) = (char)uVar4;
      lVar7 = lVar7 + 1;
      uVar4 = (uint)local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1];
    } while (local_58[lVar7 + ((0x14 - iVar9) + iVar5) + -1] != 0);
    iVar9 = iVar6 + 1;
    *(undefined1 *)(param_1 + iVar6) = 0x6d;
  }
  pbVar8 = local_58;
  iVar5 = (int)pbVar8;
  do {
    iVar6 = (int)pbVar8;
    lVar7 = param_4 / 10;
    uVar4 = (int)param_4 + (int)lVar7 * -10 + 0x30;
    pbVar8[0x14] = (byte)uVar4;
    pbVar8 = pbVar8 + -1;
    param_4 = lVar7;
  } while (lVar7 != 0);
  lVar7 = (long)(iVar9 + 1);
  do {
    iVar2 = (int)lVar7;
    *(char *)(param_1 + -1 + lVar7) = (char)uVar4;
    lVar7 = lVar7 + 1;
    uVar4 = (uint)local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1];
  } while (local_58[lVar7 + ((long)((0x14 - iVar5) + iVar6) - (long)iVar9) + -1] != 0);
  iVar9 = iVar2;
  if (param_2 != 0) {
    uVar3 = locale_decpoint();
    iVar9 = iVar2 + 1;
    *(undefined1 *)(param_1 + iVar2) = uVar3;
    if (0 < param_2) {
      lVar7 = 1;
      local_5c = param_5;
      do {
        iVar5 = local_5c / *(int *)(&DAT_001d3bf0 + lVar7 * 4);
        local_5c = local_5c % *(int *)(&DAT_001d3bf0 + lVar7 * 4);
        *(char *)((iVar2 + -1) + param_1 + 1 + lVar7) = (char)iVar5 + '0';
        lVar7 = lVar7 + 1;
      } while ((int)lVar7 <= param_2);
      iVar9 = param_2 + iVar9;
    }
  }
  if (param_3 != 0) {
    *(undefined1 *)(param_1 + iVar9) = 0x73;
    iVar9 = iVar9 + 1;
  }
  *(undefined1 *)(param_1 + iVar9) = 0;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar9;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

