
void * x11_make_greeting(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,
                        int auth_len,char *peer_addr,int peer_port,int *outlen)

{
  long lVar1;
  int iVar2;
  char cVar3;
  long lVar4;
  char *__src;
  undefined8 uVar5;
  undefined1 uVar6;
  undefined1 uVar10;
  undefined1 *__s;
  time_t tVar9;
  ulong uVar11;
  char *pcVar12;
  uint uVar13;
  long in_FS_OFFSET;
  uchar *local_c0;
  ulong peer_ip;
  uchar realauthdata [64];
  undefined1 uVar7;
  undefined1 uVar8;
  
  lVar4 = *(long *)(in_FS_OFFSET + 0x28);
  __src = *(char **)(x11_authnames + (long)auth_proto * 8);
  uVar11 = 0xffffffffffffffff;
  pcVar12 = __src;
  do {
    if (uVar11 == 0) break;
    uVar11 = uVar11 - 1;
    cVar3 = *pcVar12;
    pcVar12 = pcVar12 + 1;
  } while (cVar3 != '\0');
  lVar1 = ~uVar11 - 1;
  uVar13 = (int)lVar1 + 3U & 0xfffffffc;
  local_c0 = (uchar *)auth_data;
  if (auth_proto != 1) {
    if ((auth_proto == 2) && (auth_len == 0x10)) {
      peer_ip = 0;
      x11_parse_ip(peer_addr,&peer_ip);
      local_c0 = realauthdata;
      realauthdata[0xe] = '\0';
      realauthdata[0xf] = '\0';
      realauthdata[0x10] = '\0';
      realauthdata[0x11] = '\0';
      realauthdata[0x12] = '\0';
      realauthdata[0x13] = '\0';
      realauthdata[0x14] = '\0';
      realauthdata[0x15] = '\0';
      realauthdata[0x16] = '\0';
      realauthdata[0x17] = '\0';
                    /* WARNING: Load size is inaccurate */
      realauthdata._0_8_ = *auth_data;
      realauthdata[8] = (uchar)(peer_ip >> 0x18);
      realauthdata[9] = (uchar)(peer_ip >> 0x10);
      realauthdata[10] = (uchar)(peer_ip >> 8);
      realauthdata[0xb] = (uchar)peer_ip;
      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);
      realauthdata[0xd] = (uchar)peer_port;
      tVar9 = time((time_t *)0x0);
      uVar5 = realauthdata._14_8_;
      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);
      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);
      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);
      realauthdata._18_4_ = SUB84(uVar5,4);
      realauthdata[0x11] = (uchar)tVar9;
      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);
      auth_len = 0x18;
    }
    else {
      auth_len = 0;
      local_c0 = realauthdata;
    }
  }
  iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc);
  __s = (undefined1 *)safemalloc((long)iVar2,1);
  memset(__s,0,(long)iVar2);
  *__s = (char)endian;
  uVar10 = (undefined1)((uint)auth_len >> 8);
  uVar6 = (undefined1)((ulong)lVar1 >> 8);
  uVar7 = (undefined1)((uint)protomajor >> 8);
  uVar8 = (undefined1)((uint)protominor >> 8);
  if (endian == 0x42) {
    __s[2] = uVar7;
    __s[3] = (char)protomajor;
    __s[4] = uVar8;
    __s[5] = (char)protominor;
    __s[6] = uVar6;
    __s[7] = (char)lVar1;
    __s[8] = uVar10;
    __s[9] = (char)auth_len;
  }
  else {
    __s[2] = (char)protomajor;
    __s[3] = uVar7;
    __s[4] = (char)protominor;
    __s[5] = uVar8;
    __s[6] = (char)lVar1;
    __s[7] = uVar6;
    __s[8] = (char)auth_len;
    __s[9] = uVar10;
  }
  memcpy(__s + 0xc,__src,(long)(int)lVar1);
  memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len);
  smemclr(realauthdata,0x40);
  *outlen = iVar2;
  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {
    return __s;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined1 *
FUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,
            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)

{
  long lVar1;
  int iVar2;
  char cVar3;
  char *__src;
  undefined8 uVar4;
  undefined1 uVar5;
  undefined1 uVar9;
  undefined1 *__s;
  time_t tVar8;
  ulong uVar10;
  char *pcVar11;
  uint uVar12;
  long in_FS_OFFSET;
  undefined8 *local_c0;
  undefined8 local_90;
  undefined8 local_88;
  undefined1 local_80;
  undefined1 local_7f;
  undefined1 local_7e;
  undefined1 local_7d;
  undefined1 local_7c;
  undefined1 local_7b;
  undefined8 local_7a;
  undefined2 local_72;
  long local_40;
  undefined1 uVar6;
  undefined1 uVar7;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  __src = (&PTR_DAT_001ed010)[param_4];
  uVar10 = 0xffffffffffffffff;
  pcVar11 = __src;
  do {
    if (uVar10 == 0) break;
    uVar10 = uVar10 - 1;
    cVar3 = *pcVar11;
    pcVar11 = pcVar11 + 1;
  } while (cVar3 != '\0');
  lVar1 = ~uVar10 - 1;
  uVar12 = (int)lVar1 + 3U & 0xfffffffc;
  local_c0 = param_5;
  if (param_4 != 1) {
    if ((param_4 == 2) && (param_6 == 0x10)) {
      local_90 = 0;
      FUN_0019214f(param_7,&local_90);
      local_c0 = &local_88;
      local_7a = 0;
      local_72 = 0;
      local_88 = *param_5;
      local_80 = (undefined1)((ulong)local_90 >> 0x18);
      local_7f = (undefined1)((ulong)local_90 >> 0x10);
      local_7e = (undefined1)((ulong)local_90 >> 8);
      local_7d = (undefined1)local_90;
      local_7c = (undefined1)((uint)param_8 >> 8);
      local_7b = (undefined1)param_8;
      tVar8 = time((time_t *)0x0);
      uVar4 = local_7a;
      local_7a._4_4_ = SUB84(uVar4,4);
      local_7a._0_4_ =
           CONCAT13((char)tVar8,
                    CONCAT12((char)((ulong)tVar8 >> 8),
                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));
      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);
      param_6 = 0x18;
    }
    else {
      param_6 = 0;
      local_c0 = &local_88;
    }
  }
  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);
  __s = (undefined1 *)FUN_00126895((long)iVar2,1);
  memset(__s,0,(long)iVar2);
  *__s = (char)param_1;
  uVar9 = (undefined1)((uint)param_6 >> 8);
  uVar5 = (undefined1)((ulong)lVar1 >> 8);
  uVar6 = (undefined1)((uint)param_2 >> 8);
  uVar7 = (undefined1)((uint)param_3 >> 8);
  if (param_1 == 0x42) {
    __s[2] = uVar6;
    __s[3] = (char)param_2;
    __s[4] = uVar7;
    __s[5] = (char)param_3;
    __s[6] = uVar5;
    __s[7] = (char)lVar1;
    __s[8] = uVar9;
    __s[9] = (char)param_6;
  }
  else {
    __s[2] = (char)param_2;
    __s[3] = uVar6;
    __s[4] = (char)param_3;
    __s[5] = uVar7;
    __s[6] = (char)lVar1;
    __s[7] = uVar5;
    __s[8] = (char)param_6;
    __s[9] = uVar9;
  }
  memcpy(__s + 0xc,__src,(long)(int)lVar1);
  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);
  FUN_00127355(&local_88,0x40);
  *param_9 = iVar2;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return __s;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x98
MOV dword ptr [RSP + 0x1c],EDI
MOV dword ptr [RSP + 0x20],ESI
MOV dword ptr [RSP + 0x24],EDX
MOV EDX,ECX
MOV R14,R8
MOV qword ptr [RSP + 0x8],R8
MOV R12D,R9D
MOV R8,qword ptr [RSP + 0xd0]
MOV RAX,qword ptr [RSP + 0xe0]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x88],RAX
XOR EAX,EAX
MOVSXD RCX,ECX
LEA RAX,[0x1ed010]
MOV RDI,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x10],RDI
MOV RCX,-0x1
MOV EAX,0x0
SCASB.REPNE RDI
MOV RSI,RCX
NOT RSI
LEA RBP,[RSI + -0x1]
LEA R13D,[RBP + 0x3]
AND R13D,0xfffffffc
CMP EDX,0x1
JZ 0x0019309e
CMP EDX,0x2
JNZ 0x0019308e
CMP R9D,0x10
JZ 0x00193179
MOV R12D,0x0
LEA RAX,[RSP + 0x40]
MOV qword ptr [RSP + 0x8],RAX
LEA EAX,[R12 + 0x3]
AND EAX,0xfffffffc
LEA R14D,[R13 + RAX*0x1 + 0xc]
MOVSXD R15,R14D
MOV ESI,0x1
MOV RDI,R15
CALL 0x00126895
MOV RBX,RAX
MOV RDX,R15
MOV ESI,0x0
MOV RDI,RAX
CALL 0x00114860
MOV EAX,dword ptr [RSP + 0x1c]
MOV byte ptr [RBX],AL
CMP EAX,0x42
JZ 0x00193240
MOV EAX,dword ptr [RSP + 0x20]
MOV byte ptr [RBX + 0x2],AL
MOVZX EAX,AH
MOV byte ptr [RBX + 0x3],AL
MOV EAX,dword ptr [RSP + 0x24]
MOV byte ptr [RBX + 0x4],AL
MOVZX EAX,AH
MOV byte ptr [RBX + 0x5],AL
MOV byte ptr [RBX + 0x6],BPL
MOV EAX,EBP
SAR EAX,0x8
MOV byte ptr [RBX + 0x7],AL
MOV byte ptr [RBX + 0x8],R12B
MOV EAX,R12D
MOVZX EAX,AH
MOV byte ptr [RBX + 0x9],AL
LEA RDI,[RBX + 0xc]
MOVSXD RDX,EBP
MOV RSI,qword ptr [RSP + 0x10]
CALL 0x00114ce0
MOVSXD R13,R13D
LEA RDI,[RBX + R13*0x1 + 0xc]
MOVSXD RDX,R12D
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x00114ce0
LEA RDI,[RSP + 0x40]
MOV ESI,0x40
CALL 0x00127355
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX],R14D
MOV RAX,RBX
MOV RCX,qword ptr [RSP + 0x88]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00193278
ADD RSP,0x98
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV qword ptr [RSP + 0x38],0x0
LEA RSI,[RSP + 0x38]
MOV RDI,R8
CALL 0x0019214f
LEA RBX,[RSP + 0x40]
MOV qword ptr [RSP + 0x4e],0x0
MOV word ptr [RSP + 0x56],0x0
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,RAX
SHR RDX,0x18
MOV byte ptr [RSP + 0x48],DL
MOV RDX,RAX
SHR RDX,0x10
MOV byte ptr [RSP + 0x49],DL
MOV RDX,RAX
SHR RDX,0x8
MOV byte ptr [RSP + 0x4a],DL
MOV byte ptr [RSP + 0x4b],AL
MOV EAX,dword ptr [RSP + 0xd8]
MOVZX EAX,AH
MOV byte ptr [RSP + 0x4c],AL
MOVZX EAX,byte ptr [RSP + 0xd8]
MOV byte ptr [RSP + 0x4d],AL
MOV EDI,0x0
CALL 0x00114f90
MOV RDX,RAX
SAR RDX,0x18
MOV byte ptr [RSP + 0x4e],DL
MOV RDX,RAX
SAR RDX,0x10
MOV byte ptr [RSP + 0x4f],DL
MOV RDX,RAX
SAR RDX,0x8
MOV byte ptr [RSP + 0x50],DL
MOV byte ptr [RSP + 0x51],AL
LEA RDI,[R14 + 0x9]
MOV EDX,0x18
MOV RSI,RBX
CALL 0x0014fc06
MOV R12D,0x18
MOV qword ptr [RSP + 0x8],RBX
JMP 0x0019309e
MOV EAX,dword ptr [RSP + 0x20]
MOVZX ECX,AH
MOV byte ptr [RBX + 0x2],CL
MOV byte ptr [RBX + 0x3],AL
MOV EAX,dword ptr [RSP + 0x24]
MOVZX ECX,AH
MOV byte ptr [RBX + 0x4],CL
MOV byte ptr [RBX + 0x5],AL
MOV EAX,EBP
SAR EAX,0x8
MOV byte ptr [RBX + 0x6],AL
MOV byte ptr [RBX + 0x7],BPL
MOV EAX,R12D
MOVZX EAX,AH
MOV byte ptr [RBX + 0x8],AL
MOV byte ptr [RBX + 0x9],R12B
JMP 0x00193110
CALL 0x00115250
(translation_unit "undefined1 *\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined1 *\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (pointer_declarator "*\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" * (function_declarator "FUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 "char cVar3;" primitive_type identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "undefined1 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "time_t tVar8;" type_identifier identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *local_c0;" type_identifier (pointer_declarator "*local_c0" * identifier) ;) (declaration "undefined8 local_90;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined1 local_80;" type_identifier identifier ;) (declaration "undefined1 local_7f;" type_identifier identifier ;) (declaration "undefined1 local_7e;" type_identifier identifier ;) (declaration "undefined1 local_7d;" type_identifier identifier ;) (declaration "undefined1 local_7c;" type_identifier identifier ;) (declaration "undefined1 local_7b;" type_identifier identifier ;) (declaration "undefined8 local_7a;" type_identifier identifier ;) (declaration "undefined2 local_72;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier 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 "__src = (&PTR_DAT_001ed010)[param_4];" (assignment_expression "__src = (&PTR_DAT_001ed010)[param_4]" identifier = (subscript_expression "(&PTR_DAT_001ed010)[param_4]" (parenthesized_expression "(&PTR_DAT_001ed010)" ( (pointer_expression "&PTR_DAT_001ed010" & identifier) )) [ identifier ])) ;) (expression_statement "uVar10 = 0xffffffffffffffff;" (assignment_expression "uVar10 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar11 = __src;" (assignment_expression "pcVar11 = __src" identifier = identifier) ;) (do_statement "do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');" do (compound_statement "{\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  }" { (if_statement "if (uVar10 == 0) break;" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *pcVar11;" (assignment_expression "cVar3 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + 1;" (assignment_expression "pcVar11 = pcVar11 + 1" identifier = (binary_expression "pcVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar1 = ~uVar10 - 1;" (assignment_expression "lVar1 = ~uVar10 - 1" identifier = (binary_expression "~uVar10 - 1" (unary_expression "~uVar10" ~ identifier) - number_literal)) ;) (expression_statement "uVar12 = (int)lVar1 + 3U & 0xfffffffc;" (assignment_expression "uVar12 = (int)lVar1 + 3U & 0xfffffffc" identifier = (binary_expression "(int)lVar1 + 3U & 0xfffffffc" (binary_expression "(int)lVar1 + 3U" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "local_c0 = param_5;" (assignment_expression "local_c0 = param_5" identifier = identifier) ;) (if_statement "if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" { (if_statement "if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" if (parenthesized_expression "((param_4 == 2) && (param_6 == 0x10))" ( (binary_expression "(param_4 == 2) && (param_6 == 0x10)" (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) && (parenthesized_expression "(param_6 == 0x10)" ( (binary_expression "param_6 == 0x10" identifier == number_literal) ))) )) (compound_statement "{\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }" { (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" identifier = number_literal) ;) (expression_statement "FUN_0019214f(param_7,&local_90);" (call_expression "FUN_0019214f(param_7,&local_90)" identifier (argument_list "(param_7,&local_90)" ( identifier , (pointer_expression "&local_90" & identifier) ))) ;) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" identifier = (pointer_expression "&local_88" & identifier)) ;) (expression_statement "local_7a = 0;" (assignment_expression "local_7a = 0" identifier = number_literal) ;) (expression_statement "local_72 = 0;" (assignment_expression "local_72 = 0" identifier = number_literal) ;) (expression_statement "local_88 = *param_5;" (assignment_expression "local_88 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "local_80 = (undefined1)((ulong)local_90 >> 0x18);" (assignment_expression "local_80 = (undefined1)((ulong)local_90 >> 0x18)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 0x18)" ( (binary_expression "(ulong)local_90 >> 0x18" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7f = (undefined1)((ulong)local_90 >> 0x10);" (assignment_expression "local_7f = (undefined1)((ulong)local_90 >> 0x10)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 0x10)" ( (binary_expression "(ulong)local_90 >> 0x10" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7e = (undefined1)((ulong)local_90 >> 8);" (assignment_expression "local_7e = (undefined1)((ulong)local_90 >> 8)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 8)" ( (binary_expression "(ulong)local_90 >> 8" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7d = (undefined1)local_90;" (assignment_expression "local_7d = (undefined1)local_90" identifier = (cast_expression "(undefined1)local_90" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "local_7c = (undefined1)((uint)param_8 >> 8);" (assignment_expression "local_7c = (undefined1)((uint)param_8 >> 8)" identifier = (call_expression "(undefined1)((uint)param_8 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_8 >> 8)" ( (binary_expression "(uint)param_8 >> 8" (cast_expression "(uint)param_8" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7b = (undefined1)param_8;" (assignment_expression "local_7b = (undefined1)param_8" identifier = (cast_expression "(undefined1)param_8" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "tVar8 = time((time_t *)0x0);" (assignment_expression "tVar8 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "uVar4 = local_7a;" (assignment_expression "uVar4 = local_7a" identifier = identifier) ;) (expression_statement "local_7a._4_4_ = SUB84(uVar4,4);" (assignment_expression "local_7a._4_4_ = SUB84(uVar4,4)" (field_expression "local_7a._4_4_" identifier . field_identifier) = (call_expression "SUB84(uVar4,4)" identifier (argument_list "(uVar4,4)" ( identifier , number_literal )))) ;) (expression_statement "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));" (assignment_expression "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" (field_expression "local_7a._0_4_" identifier . field_identifier) = (call_expression "CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" identifier (argument_list "((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" ( (cast_expression "(char)tVar8" ( (type_descriptor "char" primitive_type) ) identifier) , (call_expression "CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" identifier (argument_list "((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" ( (cast_expression "(char)((ulong)tVar8 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 8)" ( (binary_expression "(ulong)tVar8 >> 8" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (call_expression "CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" identifier (argument_list "((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" ( (cast_expression "(char)((ulong)tVar8 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 0x10)" ( (binary_expression "(ulong)tVar8 >> 0x10" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (cast_expression "(char)((ulong)tVar8 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 0x18)" ( (binary_expression "(ulong)tVar8 >> 0x18" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) ))) ))) )))) ;) (expression_statement "FUN_0014fc06((long)param_5 + 9,local_c0,0x18);" (call_expression "FUN_0014fc06((long)param_5 + 9,local_c0,0x18)" identifier (argument_list "((long)param_5 + 9,local_c0,0x18)" ( (binary_expression "(long)param_5 + 9" (cast_expression "(long)param_5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , number_literal ))) ;) (expression_statement "param_6 = 0x18;" (assignment_expression "param_6 = 0x18" identifier = number_literal) ;) }) (else_clause "else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" else (compound_statement "{\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" { (expression_statement "param_6 = 0;" (assignment_expression "param_6 = 0" identifier = number_literal) ;) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" identifier = (pointer_expression "&local_88" & identifier)) ;) }))) })) (expression_statement "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);" (assignment_expression "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" identifier = (binary_expression "uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" (binary_expression "uVar12 + 0xc" identifier + number_literal) + (parenthesized_expression "(param_6 + 3U & 0xfffffffc)" ( (binary_expression "param_6 + 3U & 0xfffffffc" (binary_expression "param_6 + 3U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "__s = (undefined1 *)FUN_00126895((long)iVar2,1);" (assignment_expression "__s = (undefined1 *)FUN_00126895((long)iVar2,1)" identifier = (cast_expression "(undefined1 *)FUN_00126895((long)iVar2,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126895((long)iVar2,1)" identifier (argument_list "((long)iVar2,1)" ( (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "memset(__s,0,(long)iVar2);" (call_expression "memset(__s,0,(long)iVar2)" identifier (argument_list "(__s,0,(long)iVar2)" ( identifier , number_literal , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "*__s = (char)param_1;" (assignment_expression "*__s = (char)param_1" (pointer_expression "*__s" * identifier) = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar9 = (undefined1)((uint)param_6 >> 8);" (assignment_expression "uVar9 = (undefined1)((uint)param_6 >> 8)" identifier = (call_expression "(undefined1)((uint)param_6 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_6 >> 8)" ( (binary_expression "(uint)param_6 >> 8" (cast_expression "(uint)param_6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar5 = (undefined1)((ulong)lVar1 >> 8);" (assignment_expression "uVar5 = (undefined1)((ulong)lVar1 >> 8)" identifier = (call_expression "(undefined1)((ulong)lVar1 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)lVar1 >> 8)" ( (binary_expression "(ulong)lVar1 >> 8" (cast_expression "(ulong)lVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = (undefined1)((uint)param_2 >> 8);" (assignment_expression "uVar6 = (undefined1)((uint)param_2 >> 8)" identifier = (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 8)" ( (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((uint)param_3 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)param_3 >> 8)" identifier = (call_expression "(undefined1)((uint)param_3 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_3 >> 8)" ( (binary_expression "(uint)param_3 >> 8" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" if (parenthesized_expression "(param_1 == 0x42)" ( (binary_expression "param_1 == 0x42" identifier == number_literal) )) (compound_statement "{\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }" { (expression_statement "__s[2] = uVar6;" (assignment_expression "__s[2] = uVar6" (subscript_expression "__s[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[3] = (char)param_2;" (assignment_expression "__s[3] = (char)param_2" (subscript_expression "__s[3]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[4] = uVar7;" (assignment_expression "__s[4] = uVar7" (subscript_expression "__s[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[5] = (char)param_3;" (assignment_expression "__s[5] = (char)param_3" (subscript_expression "__s[5]" identifier [ number_literal ]) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[6] = uVar5;" (assignment_expression "__s[6] = uVar5" (subscript_expression "__s[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[7] = (char)lVar1;" (assignment_expression "__s[7] = (char)lVar1" (subscript_expression "__s[7]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[8] = uVar9;" (assignment_expression "__s[8] = uVar9" (subscript_expression "__s[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[9] = (char)param_6;" (assignment_expression "__s[9] = (char)param_6" (subscript_expression "__s[9]" identifier [ number_literal ]) = (cast_expression "(char)param_6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" else (compound_statement "{\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" { (expression_statement "__s[2] = (char)param_2;" (assignment_expression "__s[2] = (char)param_2" (subscript_expression "__s[2]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[3] = uVar6;" (assignment_expression "__s[3] = uVar6" (subscript_expression "__s[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[4] = (char)param_3;" (assignment_expression "__s[4] = (char)param_3" (subscript_expression "__s[4]" identifier [ number_literal ]) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[5] = uVar7;" (assignment_expression "__s[5] = uVar7" (subscript_expression "__s[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[6] = (char)lVar1;" (assignment_expression "__s[6] = (char)lVar1" (subscript_expression "__s[6]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[7] = uVar5;" (assignment_expression "__s[7] = uVar5" (subscript_expression "__s[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[8] = (char)param_6;" (assignment_expression "__s[8] = (char)param_6" (subscript_expression "__s[8]" identifier [ number_literal ]) = (cast_expression "(char)param_6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[9] = uVar9;" (assignment_expression "__s[9] = uVar9" (subscript_expression "__s[9]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "memcpy(__s + 0xc,__src,(long)(int)lVar1);" (call_expression "memcpy(__s + 0xc,__src,(long)(int)lVar1)" identifier (argument_list "(__s + 0xc,__src,(long)(int)lVar1)" ( (binary_expression "__s + 0xc" identifier + number_literal) , identifier , (cast_expression "(long)(int)lVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);" (call_expression "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" identifier (argument_list "(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" ( (binary_expression "__s + (long)(int)uVar12 + 0xc" (binary_expression "__s + (long)(int)uVar12" identifier + (cast_expression "(long)(int)uVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , identifier , (cast_expression "(long)param_6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "FUN_00127355(&local_88,0x40);" (call_expression "FUN_00127355(&local_88,0x40)" identifier (argument_list "(&local_88,0x40)" ( (pointer_expression "&local_88" & identifier) , number_literal ))) ;) (expression_statement "*param_9 = iVar2;" (assignment_expression "*param_9 = iVar2" (pointer_expression "*param_9" * identifier) = identifier) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 __s;\n  }" { (return_statement "return __s;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void * x11_make_greeting(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,\n                        int auth_len,char *peer_addr,int peer_port,int *outlen)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  char *__src;\n  undefined8 uVar5;\n  undefined1 uVar6;\n  undefined1 uVar10;\n  undefined1 *__s;\n  time_t tVar9;\n  ulong uVar11;\n  char *pcVar12;\n  uint uVar13;\n  long in_FS_OFFSET;\n  uchar *local_c0;\n  ulong peer_ip;\n  uchar realauthdata [64];\n  undefined1 uVar7;\n  undefined1 uVar8;\n  \n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = *(char **)(x11_authnames + (long)auth_proto * 8);\n  uVar11 = 0xffffffffffffffff;\n  pcVar12 = __src;\n  do {\n    if (uVar11 == 0) break;\n    uVar11 = uVar11 - 1;\n    cVar3 = *pcVar12;\n    pcVar12 = pcVar12 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar11 - 1;\n  uVar13 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = (uchar *)auth_data;\n  if (auth_proto != 1) {\n    if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }\n  }\n  iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc);\n  __s = (undefined1 *)safemalloc((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)endian;\n  uVar10 = (undefined1)((uint)auth_len >> 8);\n  uVar6 = (undefined1)((ulong)lVar1 >> 8);\n  uVar7 = (undefined1)((uint)protomajor >> 8);\n  uVar8 = (undefined1)((uint)protominor >> 8);\n  if (endian == 0x42) {\n    __s[2] = uVar7;\n    __s[3] = (char)protomajor;\n    __s[4] = uVar8;\n    __s[5] = (char)protominor;\n    __s[6] = uVar6;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar10;\n    __s[9] = (char)auth_len;\n  }\n  else {\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len);\n  smemclr(realauthdata,0x40);\n  *outlen = iVar2;\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "void * x11_make_greeting(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,\n                        int auth_len,char *peer_addr,int peer_port,int *outlen)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  char *__src;\n  undefined8 uVar5;\n  undefined1 uVar6;\n  undefined1 uVar10;\n  undefined1 *__s;\n  time_t tVar9;\n  ulong uVar11;\n  char *pcVar12;\n  uint uVar13;\n  long in_FS_OFFSET;\n  uchar *local_c0;\n  ulong peer_ip;\n  uchar realauthdata [64];\n  undefined1 uVar7;\n  undefined1 uVar8;\n  \n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = *(char **)(x11_authnames + (long)auth_proto * 8);\n  uVar11 = 0xffffffffffffffff;\n  pcVar12 = __src;\n  do {\n    if (uVar11 == 0) break;\n    uVar11 = uVar11 - 1;\n    cVar3 = *pcVar12;\n    pcVar12 = pcVar12 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar11 - 1;\n  uVar13 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = (uchar *)auth_data;\n  if (auth_proto != 1) {\n    if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }\n  }\n  iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc);\n  __s = (undefined1 *)safemalloc((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)endian;\n  uVar10 = (undefined1)((uint)auth_len >> 8);\n  uVar6 = (undefined1)((ulong)lVar1 >> 8);\n  uVar7 = (undefined1)((uint)protomajor >> 8);\n  uVar8 = (undefined1)((uint)protominor >> 8);\n  if (endian == 0x42) {\n    __s[2] = uVar7;\n    __s[3] = (char)protomajor;\n    __s[4] = uVar8;\n    __s[5] = (char)protominor;\n    __s[6] = uVar6;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar10;\n    __s[9] = (char)auth_len;\n  }\n  else {\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len);\n  smemclr(realauthdata,0x40);\n  *outlen = iVar2;\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (pointer_declarator "* x11_make_greeting(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,\n                        int auth_len,char *peer_addr,int peer_port,int *outlen)" * (function_declarator "x11_make_greeting(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,\n                        int auth_len,char *peer_addr,int peer_port,int *outlen)" identifier (parameter_list "(int endian,int protomajor,int protominor,int auth_proto,void *auth_data,\n                        int auth_len,char *peer_addr,int peer_port,int *outlen)" ( (parameter_declaration "int endian" primitive_type identifier) , (parameter_declaration "int protomajor" primitive_type identifier) , (parameter_declaration "int protominor" primitive_type identifier) , (parameter_declaration "int auth_proto" primitive_type identifier) , (parameter_declaration "void *auth_data" primitive_type (pointer_declarator "*auth_data" * identifier)) , (parameter_declaration "int auth_len" primitive_type identifier) , (parameter_declaration "char *peer_addr" primitive_type (pointer_declarator "*peer_addr" * identifier)) , (parameter_declaration "int peer_port" primitive_type identifier) , (parameter_declaration "int *outlen" primitive_type (pointer_declarator "*outlen" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  long lVar4;\n  char *__src;\n  undefined8 uVar5;\n  undefined1 uVar6;\n  undefined1 uVar10;\n  undefined1 *__s;\n  time_t tVar9;\n  ulong uVar11;\n  char *pcVar12;\n  uint uVar13;\n  long in_FS_OFFSET;\n  uchar *local_c0;\n  ulong peer_ip;\n  uchar realauthdata [64];\n  undefined1 uVar7;\n  undefined1 uVar8;\n  \n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = *(char **)(x11_authnames + (long)auth_proto * 8);\n  uVar11 = 0xffffffffffffffff;\n  pcVar12 = __src;\n  do {\n    if (uVar11 == 0) break;\n    uVar11 = uVar11 - 1;\n    cVar3 = *pcVar12;\n    pcVar12 = pcVar12 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar11 - 1;\n  uVar13 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = (uchar *)auth_data;\n  if (auth_proto != 1) {\n    if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }\n  }\n  iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc);\n  __s = (undefined1 *)safemalloc((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)endian;\n  uVar10 = (undefined1)((uint)auth_len >> 8);\n  uVar6 = (undefined1)((ulong)lVar1 >> 8);\n  uVar7 = (undefined1)((uint)protomajor >> 8);\n  uVar8 = (undefined1)((uint)protominor >> 8);\n  if (endian == 0x42) {\n    __s[2] = uVar7;\n    __s[3] = (char)protomajor;\n    __s[4] = uVar8;\n    __s[5] = (char)protominor;\n    __s[6] = uVar6;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar10;\n    __s[9] = (char)auth_len;\n  }\n  else {\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len);\n  smemclr(realauthdata,0x40);\n  *outlen = iVar2;\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 "char cVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "undefined1 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "time_t tVar9;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar *local_c0;" type_identifier (pointer_declarator "*local_c0" * identifier) ;) (declaration "ulong peer_ip;" type_identifier identifier ;) (declaration "uchar realauthdata [64];" type_identifier (array_declarator "realauthdata [64]" identifier [ number_literal ]) ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (declaration "undefined1 uVar8;" type_identifier identifier ;) (expression_statement "lVar4 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar4 = *(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 "__src = *(char **)(x11_authnames + (long)auth_proto * 8);" (assignment_expression "__src = *(char **)(x11_authnames + (long)auth_proto * 8)" identifier = (pointer_expression "*(char **)(x11_authnames + (long)auth_proto * 8)" * (cast_expression "(char **)(x11_authnames + (long)auth_proto * 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(x11_authnames + (long)auth_proto * 8)" ( (binary_expression "x11_authnames + (long)auth_proto * 8" identifier + (binary_expression "(long)auth_proto * 8" (cast_expression "(long)auth_proto" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar11 = 0xffffffffffffffff;" (assignment_expression "uVar11 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar12 = __src;" (assignment_expression "pcVar12 = __src" identifier = identifier) ;) (do_statement "do {\n    if (uVar11 == 0) break;\n    uVar11 = uVar11 - 1;\n    cVar3 = *pcVar12;\n    pcVar12 = pcVar12 + 1;\n  } while (cVar3 != '\0');" do (compound_statement "{\n    if (uVar11 == 0) break;\n    uVar11 = uVar11 - 1;\n    cVar3 = *pcVar12;\n    pcVar12 = pcVar12 + 1;\n  }" { (if_statement "if (uVar11 == 0) break;" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar11 = uVar11 - 1;" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *pcVar12;" (assignment_expression "cVar3 = *pcVar12" identifier = (pointer_expression "*pcVar12" * identifier)) ;) (expression_statement "pcVar12 = pcVar12 + 1;" (assignment_expression "pcVar12 = pcVar12 + 1" identifier = (binary_expression "pcVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar1 = ~uVar11 - 1;" (assignment_expression "lVar1 = ~uVar11 - 1" identifier = (binary_expression "~uVar11 - 1" (unary_expression "~uVar11" ~ identifier) - number_literal)) ;) (expression_statement "uVar13 = (int)lVar1 + 3U & 0xfffffffc;" (assignment_expression "uVar13 = (int)lVar1 + 3U & 0xfffffffc" identifier = (binary_expression "(int)lVar1 + 3U & 0xfffffffc" (binary_expression "(int)lVar1 + 3U" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "local_c0 = (uchar *)auth_data;" (assignment_expression "local_c0 = (uchar *)auth_data" identifier = (cast_expression "(uchar *)auth_data" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (auth_proto != 1) {\n    if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }\n  }" if (parenthesized_expression "(auth_proto != 1)" ( (binary_expression "auth_proto != 1" identifier != number_literal) )) (compound_statement "{\n    if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }\n  }" { (if_statement "if ((auth_proto == 2) && (auth_len == 0x10)) {\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }\n    else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }" if (parenthesized_expression "((auth_proto == 2) && (auth_len == 0x10))" ( (binary_expression "(auth_proto == 2) && (auth_len == 0x10)" (parenthesized_expression "(auth_proto == 2)" ( (binary_expression "auth_proto == 2" identifier == number_literal) )) && (parenthesized_expression "(auth_len == 0x10)" ( (binary_expression "auth_len == 0x10" identifier == number_literal) ))) )) (compound_statement "{\n      peer_ip = 0;\n      x11_parse_ip(peer_addr,&peer_ip);\n      local_c0 = realauthdata;\n      realauthdata[0xe] = '\0';\n      realauthdata[0xf] = '\0';\n      realauthdata[0x10] = '\0';\n      realauthdata[0x11] = '\0';\n      realauthdata[0x12] = '\0';\n      realauthdata[0x13] = '\0';\n      realauthdata[0x14] = '\0';\n      realauthdata[0x15] = '\0';\n      realauthdata[0x16] = '\0';\n      realauthdata[0x17] = '\0';\n                    /* WARNING: Load size is inaccurate */\n      realauthdata._0_8_ = *auth_data;\n      realauthdata[8] = (uchar)(peer_ip >> 0x18);\n      realauthdata[9] = (uchar)(peer_ip >> 0x10);\n      realauthdata[10] = (uchar)(peer_ip >> 8);\n      realauthdata[0xb] = (uchar)peer_ip;\n      realauthdata[0xc] = (uchar)((uint)peer_port >> 8);\n      realauthdata[0xd] = (uchar)peer_port;\n      tVar9 = time((time_t *)0x0);\n      uVar5 = realauthdata._14_8_;\n      realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);\n      realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);\n      realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);\n      realauthdata._18_4_ = SUB84(uVar5,4);\n      realauthdata[0x11] = (uchar)tVar9;\n      des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);\n      auth_len = 0x18;\n    }" { (expression_statement "peer_ip = 0;" (assignment_expression "peer_ip = 0" identifier = number_literal) ;) (expression_statement "x11_parse_ip(peer_addr,&peer_ip);" (call_expression "x11_parse_ip(peer_addr,&peer_ip)" identifier (argument_list "(peer_addr,&peer_ip)" ( identifier , (pointer_expression "&peer_ip" & identifier) ))) ;) (expression_statement "local_c0 = realauthdata;" (assignment_expression "local_c0 = realauthdata" identifier = identifier) ;) (expression_statement "realauthdata[0xe] = '\0';" (assignment_expression "realauthdata[0xe] = '\0'" (subscript_expression "realauthdata[0xe]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0xf] = '\0';" (assignment_expression "realauthdata[0xf] = '\0'" (subscript_expression "realauthdata[0xf]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x10] = '\0';" (assignment_expression "realauthdata[0x10] = '\0'" (subscript_expression "realauthdata[0x10]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x11] = '\0';" (assignment_expression "realauthdata[0x11] = '\0'" (subscript_expression "realauthdata[0x11]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x12] = '\0';" (assignment_expression "realauthdata[0x12] = '\0'" (subscript_expression "realauthdata[0x12]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x13] = '\0';" (assignment_expression "realauthdata[0x13] = '\0'" (subscript_expression "realauthdata[0x13]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x14] = '\0';" (assignment_expression "realauthdata[0x14] = '\0'" (subscript_expression "realauthdata[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x15] = '\0';" (assignment_expression "realauthdata[0x15] = '\0'" (subscript_expression "realauthdata[0x15]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x16] = '\0';" (assignment_expression "realauthdata[0x16] = '\0'" (subscript_expression "realauthdata[0x16]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "realauthdata[0x17] = '\0';" (assignment_expression "realauthdata[0x17] = '\0'" (subscript_expression "realauthdata[0x17]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) comment (expression_statement "realauthdata._0_8_ = *auth_data;" (assignment_expression "realauthdata._0_8_ = *auth_data" (field_expression "realauthdata._0_8_" identifier . field_identifier) = (pointer_expression "*auth_data" * identifier)) ;) (expression_statement "realauthdata[8] = (uchar)(peer_ip >> 0x18);" (assignment_expression "realauthdata[8] = (uchar)(peer_ip >> 0x18)" (subscript_expression "realauthdata[8]" identifier [ number_literal ]) = (call_expression "(uchar)(peer_ip >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(peer_ip >> 0x18)" ( (binary_expression "peer_ip >> 0x18" identifier >> number_literal) )))) ;) (expression_statement "realauthdata[9] = (uchar)(peer_ip >> 0x10);" (assignment_expression "realauthdata[9] = (uchar)(peer_ip >> 0x10)" (subscript_expression "realauthdata[9]" identifier [ number_literal ]) = (call_expression "(uchar)(peer_ip >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(peer_ip >> 0x10)" ( (binary_expression "peer_ip >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "realauthdata[10] = (uchar)(peer_ip >> 8);" (assignment_expression "realauthdata[10] = (uchar)(peer_ip >> 8)" (subscript_expression "realauthdata[10]" identifier [ number_literal ]) = (call_expression "(uchar)(peer_ip >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(peer_ip >> 8)" ( (binary_expression "peer_ip >> 8" identifier >> number_literal) )))) ;) (expression_statement "realauthdata[0xb] = (uchar)peer_ip;" (assignment_expression "realauthdata[0xb] = (uchar)peer_ip" (subscript_expression "realauthdata[0xb]" identifier [ number_literal ]) = (cast_expression "(uchar)peer_ip" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "realauthdata[0xc] = (uchar)((uint)peer_port >> 8);" (assignment_expression "realauthdata[0xc] = (uchar)((uint)peer_port >> 8)" (subscript_expression "realauthdata[0xc]" identifier [ number_literal ]) = (call_expression "(uchar)((uint)peer_port >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)peer_port >> 8)" ( (binary_expression "(uint)peer_port >> 8" (cast_expression "(uint)peer_port" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "realauthdata[0xd] = (uchar)peer_port;" (assignment_expression "realauthdata[0xd] = (uchar)peer_port" (subscript_expression "realauthdata[0xd]" identifier [ number_literal ]) = (cast_expression "(uchar)peer_port" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "tVar9 = time((time_t *)0x0);" (assignment_expression "tVar9 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "uVar5 = realauthdata._14_8_;" (assignment_expression "uVar5 = realauthdata._14_8_" identifier = (field_expression "realauthdata._14_8_" identifier . field_identifier)) ;) (expression_statement "realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10);" (assignment_expression "realauthdata[0xf] = (uchar)((ulong)tVar9 >> 0x10)" (subscript_expression "realauthdata[0xf]" identifier [ number_literal ]) = (call_expression "(uchar)((ulong)tVar9 >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((ulong)tVar9 >> 0x10)" ( (binary_expression "(ulong)tVar9 >> 0x10" (cast_expression "(ulong)tVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18);" (assignment_expression "realauthdata[0xe] = (uchar)((ulong)tVar9 >> 0x18)" (subscript_expression "realauthdata[0xe]" identifier [ number_literal ]) = (call_expression "(uchar)((ulong)tVar9 >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((ulong)tVar9 >> 0x18)" ( (binary_expression "(ulong)tVar9 >> 0x18" (cast_expression "(ulong)tVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8);" (assignment_expression "realauthdata[0x10] = (uchar)((ulong)tVar9 >> 8)" (subscript_expression "realauthdata[0x10]" identifier [ number_literal ]) = (call_expression "(uchar)((ulong)tVar9 >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((ulong)tVar9 >> 8)" ( (binary_expression "(ulong)tVar9 >> 8" (cast_expression "(ulong)tVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "realauthdata._18_4_ = SUB84(uVar5,4);" (assignment_expression "realauthdata._18_4_ = SUB84(uVar5,4)" (field_expression "realauthdata._18_4_" identifier . field_identifier) = (call_expression "SUB84(uVar5,4)" identifier (argument_list "(uVar5,4)" ( identifier , number_literal )))) ;) (expression_statement "realauthdata[0x11] = (uchar)tVar9;" (assignment_expression "realauthdata[0x11] = (uchar)tVar9" (subscript_expression "realauthdata[0x11]" identifier [ number_literal ]) = (cast_expression "(uchar)tVar9" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18);" (call_expression "des_encrypt_xdmauth((uchar *)((long)auth_data + 9),local_c0,0x18)" identifier (argument_list "((uchar *)((long)auth_data + 9),local_c0,0x18)" ( (cast_expression "(uchar *)((long)auth_data + 9)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)auth_data + 9)" ( (binary_expression "(long)auth_data + 9" (cast_expression "(long)auth_data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))) , identifier , number_literal ))) ;) (expression_statement "auth_len = 0x18;" (assignment_expression "auth_len = 0x18" identifier = number_literal) ;) }) (else_clause "else {\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }" else (compound_statement "{\n      auth_len = 0;\n      local_c0 = realauthdata;\n    }" { (expression_statement "auth_len = 0;" (assignment_expression "auth_len = 0" identifier = number_literal) ;) (expression_statement "local_c0 = realauthdata;" (assignment_expression "local_c0 = realauthdata" identifier = identifier) ;) }))) })) (expression_statement "iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc);" (assignment_expression "iVar2 = uVar13 + 0xc + (auth_len + 3U & 0xfffffffc)" identifier = (binary_expression "uVar13 + 0xc + (auth_len + 3U & 0xfffffffc)" (binary_expression "uVar13 + 0xc" identifier + number_literal) + (parenthesized_expression "(auth_len + 3U & 0xfffffffc)" ( (binary_expression "auth_len + 3U & 0xfffffffc" (binary_expression "auth_len + 3U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "__s = (undefined1 *)safemalloc((long)iVar2,1);" (assignment_expression "__s = (undefined1 *)safemalloc((long)iVar2,1)" identifier = (cast_expression "(undefined1 *)safemalloc((long)iVar2,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc((long)iVar2,1)" identifier (argument_list "((long)iVar2,1)" ( (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "memset(__s,0,(long)iVar2);" (call_expression "memset(__s,0,(long)iVar2)" identifier (argument_list "(__s,0,(long)iVar2)" ( identifier , number_literal , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "*__s = (char)endian;" (assignment_expression "*__s = (char)endian" (pointer_expression "*__s" * identifier) = (cast_expression "(char)endian" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar10 = (undefined1)((uint)auth_len >> 8);" (assignment_expression "uVar10 = (undefined1)((uint)auth_len >> 8)" identifier = (call_expression "(undefined1)((uint)auth_len >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)auth_len >> 8)" ( (binary_expression "(uint)auth_len >> 8" (cast_expression "(uint)auth_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = (undefined1)((ulong)lVar1 >> 8);" (assignment_expression "uVar6 = (undefined1)((ulong)lVar1 >> 8)" identifier = (call_expression "(undefined1)((ulong)lVar1 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)lVar1 >> 8)" ( (binary_expression "(ulong)lVar1 >> 8" (cast_expression "(ulong)lVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((uint)protomajor >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)protomajor >> 8)" identifier = (call_expression "(undefined1)((uint)protomajor >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)protomajor >> 8)" ( (binary_expression "(uint)protomajor >> 8" (cast_expression "(uint)protomajor" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar8 = (undefined1)((uint)protominor >> 8);" (assignment_expression "uVar8 = (undefined1)((uint)protominor >> 8)" identifier = (call_expression "(undefined1)((uint)protominor >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)protominor >> 8)" ( (binary_expression "(uint)protominor >> 8" (cast_expression "(uint)protominor" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (endian == 0x42) {\n    __s[2] = uVar7;\n    __s[3] = (char)protomajor;\n    __s[4] = uVar8;\n    __s[5] = (char)protominor;\n    __s[6] = uVar6;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar10;\n    __s[9] = (char)auth_len;\n  }\n  else {\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }" if (parenthesized_expression "(endian == 0x42)" ( (binary_expression "endian == 0x42" identifier == number_literal) )) (compound_statement "{\n    __s[2] = uVar7;\n    __s[3] = (char)protomajor;\n    __s[4] = uVar8;\n    __s[5] = (char)protominor;\n    __s[6] = uVar6;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar10;\n    __s[9] = (char)auth_len;\n  }" { (expression_statement "__s[2] = uVar7;" (assignment_expression "__s[2] = uVar7" (subscript_expression "__s[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[3] = (char)protomajor;" (assignment_expression "__s[3] = (char)protomajor" (subscript_expression "__s[3]" identifier [ number_literal ]) = (cast_expression "(char)protomajor" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[4] = uVar8;" (assignment_expression "__s[4] = uVar8" (subscript_expression "__s[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[5] = (char)protominor;" (assignment_expression "__s[5] = (char)protominor" (subscript_expression "__s[5]" identifier [ number_literal ]) = (cast_expression "(char)protominor" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[6] = uVar6;" (assignment_expression "__s[6] = uVar6" (subscript_expression "__s[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[7] = (char)lVar1;" (assignment_expression "__s[7] = (char)lVar1" (subscript_expression "__s[7]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[8] = uVar10;" (assignment_expression "__s[8] = uVar10" (subscript_expression "__s[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[9] = (char)auth_len;" (assignment_expression "__s[9] = (char)auth_len" (subscript_expression "__s[9]" identifier [ number_literal ]) = (cast_expression "(char)auth_len" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }" else (compound_statement "{\n    __s[2] = (char)protomajor;\n    __s[3] = uVar7;\n    __s[4] = (char)protominor;\n    __s[5] = uVar8;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar6;\n    __s[8] = (char)auth_len;\n    __s[9] = uVar10;\n  }" { (expression_statement "__s[2] = (char)protomajor;" (assignment_expression "__s[2] = (char)protomajor" (subscript_expression "__s[2]" identifier [ number_literal ]) = (cast_expression "(char)protomajor" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[3] = uVar7;" (assignment_expression "__s[3] = uVar7" (subscript_expression "__s[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[4] = (char)protominor;" (assignment_expression "__s[4] = (char)protominor" (subscript_expression "__s[4]" identifier [ number_literal ]) = (cast_expression "(char)protominor" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[5] = uVar8;" (assignment_expression "__s[5] = uVar8" (subscript_expression "__s[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[6] = (char)lVar1;" (assignment_expression "__s[6] = (char)lVar1" (subscript_expression "__s[6]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[7] = uVar6;" (assignment_expression "__s[7] = uVar6" (subscript_expression "__s[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[8] = (char)auth_len;" (assignment_expression "__s[8] = (char)auth_len" (subscript_expression "__s[8]" identifier [ number_literal ]) = (cast_expression "(char)auth_len" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[9] = uVar10;" (assignment_expression "__s[9] = uVar10" (subscript_expression "__s[9]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "memcpy(__s + 0xc,__src,(long)(int)lVar1);" (call_expression "memcpy(__s + 0xc,__src,(long)(int)lVar1)" identifier (argument_list "(__s + 0xc,__src,(long)(int)lVar1)" ( (binary_expression "__s + 0xc" identifier + number_literal) , identifier , (cast_expression "(long)(int)lVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len);" (call_expression "memcpy(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len)" identifier (argument_list "(__s + (long)(int)uVar13 + 0xc,local_c0,(long)auth_len)" ( (binary_expression "__s + (long)(int)uVar13 + 0xc" (binary_expression "__s + (long)(int)uVar13" identifier + (cast_expression "(long)(int)uVar13" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar13" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , identifier , (cast_expression "(long)auth_len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "smemclr(realauthdata,0x40);" (call_expression "smemclr(realauthdata,0x40)" identifier (argument_list "(realauthdata,0x40)" ( identifier , number_literal ))) ;) (expression_statement "*outlen = iVar2;" (assignment_expression "*outlen = iVar2" (pointer_expression "*outlen" * identifier) = identifier) ;) (if_statement "if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }" if (parenthesized_expression "(lVar4 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar4 == *(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 __s;\n  }" { (return_statement "return __s;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined1 *\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined1 *\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (pointer_declarator "*\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" * (function_declarator "FUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "undefined1 *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "time_t tVar8;" type_identifier identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *local_c0;" type_identifier (pointer_declarator "*local_c0" * identifier) ;) (declaration "undefined8 local_90;" type_identifier identifier ;) (declaration "undefined8 local_88;" type_identifier identifier ;) (declaration "undefined1 local_80;" type_identifier identifier ;) (declaration "undefined1 local_7f;" type_identifier identifier ;) (declaration "undefined1 local_7e;" type_identifier identifier ;) (declaration "undefined1 local_7d;" type_identifier identifier ;) (declaration "undefined1 local_7c;" type_identifier identifier ;) (declaration "undefined1 local_7b;" type_identifier identifier ;) (declaration "undefined8 local_7a;" type_identifier identifier ;) (declaration "undefined2 local_72;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier 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 "__src = (&PTR_DAT_001ed010)[param_4];" (assignment_expression "__src = (&PTR_DAT_001ed010)[param_4]" identifier = (subscript_expression "(&PTR_DAT_001ed010)[param_4]" (parenthesized_expression "(&PTR_DAT_001ed010)" ( (pointer_expression "&PTR_DAT_001ed010" & identifier) )) [ identifier ])) ;) (expression_statement "uVar10 = 0xffffffffffffffff;" (assignment_expression "uVar10 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar11 = __src;" (assignment_expression "pcVar11 = __src" identifier = identifier) ;) (do_statement "do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');" do (compound_statement "{\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  }" { (if_statement "if (uVar10 == 0) break;" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" identifier = (binary_expression "uVar10 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *pcVar11;" (assignment_expression "cVar3 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + 1;" (assignment_expression "pcVar11 = pcVar11 + 1" identifier = (binary_expression "pcVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "lVar1 = ~uVar10 - 1;" (assignment_expression "lVar1 = ~uVar10 - 1" identifier = (binary_expression "~uVar10 - 1" (unary_expression "~uVar10" ~ identifier) - number_literal)) ;) (expression_statement "uVar12 = (int)lVar1 + 3U & 0xfffffffc;" (assignment_expression "uVar12 = (int)lVar1 + 3U & 0xfffffffc" identifier = (binary_expression "(int)lVar1 + 3U & 0xfffffffc" (binary_expression "(int)lVar1 + 3U" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal)) ;) (expression_statement "local_c0 = param_5;" (assignment_expression "local_c0 = param_5" identifier = identifier) ;) (if_statement "if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" if (parenthesized_expression "(param_4 != 1)" ( (binary_expression "param_4 != 1" identifier != number_literal) )) (compound_statement "{\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" { (if_statement "if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" if (parenthesized_expression "((param_4 == 2) && (param_6 == 0x10))" ( (binary_expression "(param_4 == 2) && (param_6 == 0x10)" (parenthesized_expression "(param_4 == 2)" ( (binary_expression "param_4 == 2" identifier == number_literal) )) && (parenthesized_expression "(param_6 == 0x10)" ( (binary_expression "param_6 == 0x10" identifier == number_literal) ))) )) (compound_statement "{\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }" { (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" identifier = number_literal) ;) (expression_statement "FUN_0019214f(param_7,&local_90);" (call_expression "FUN_0019214f(param_7,&local_90)" identifier (argument_list "(param_7,&local_90)" ( identifier , (pointer_expression "&local_90" & identifier) ))) ;) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" identifier = (pointer_expression "&local_88" & identifier)) ;) (expression_statement "local_7a = 0;" (assignment_expression "local_7a = 0" identifier = number_literal) ;) (expression_statement "local_72 = 0;" (assignment_expression "local_72 = 0" identifier = number_literal) ;) (expression_statement "local_88 = *param_5;" (assignment_expression "local_88 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "local_80 = (undefined1)((ulong)local_90 >> 0x18);" (assignment_expression "local_80 = (undefined1)((ulong)local_90 >> 0x18)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 0x18)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 0x18)" ( (binary_expression "(ulong)local_90 >> 0x18" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7f = (undefined1)((ulong)local_90 >> 0x10);" (assignment_expression "local_7f = (undefined1)((ulong)local_90 >> 0x10)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 0x10)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 0x10)" ( (binary_expression "(ulong)local_90 >> 0x10" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7e = (undefined1)((ulong)local_90 >> 8);" (assignment_expression "local_7e = (undefined1)((ulong)local_90 >> 8)" identifier = (call_expression "(undefined1)((ulong)local_90 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)local_90 >> 8)" ( (binary_expression "(ulong)local_90 >> 8" (cast_expression "(ulong)local_90" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7d = (undefined1)local_90;" (assignment_expression "local_7d = (undefined1)local_90" identifier = (cast_expression "(undefined1)local_90" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "local_7c = (undefined1)((uint)param_8 >> 8);" (assignment_expression "local_7c = (undefined1)((uint)param_8 >> 8)" identifier = (call_expression "(undefined1)((uint)param_8 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_8 >> 8)" ( (binary_expression "(uint)param_8 >> 8" (cast_expression "(uint)param_8" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_7b = (undefined1)param_8;" (assignment_expression "local_7b = (undefined1)param_8" identifier = (cast_expression "(undefined1)param_8" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "tVar8 = time((time_t *)0x0);" (assignment_expression "tVar8 = time((time_t *)0x0)" identifier = (call_expression "time((time_t *)0x0)" identifier (argument_list "((time_t *)0x0)" ( (cast_expression "(time_t *)0x0" ( (type_descriptor "time_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "uVar4 = local_7a;" (assignment_expression "uVar4 = local_7a" identifier = identifier) ;) (expression_statement "local_7a._4_4_ = SUB84(uVar4,4);" (assignment_expression "local_7a._4_4_ = SUB84(uVar4,4)" (field_expression "local_7a._4_4_" identifier . field_identifier) = (call_expression "SUB84(uVar4,4)" identifier (argument_list "(uVar4,4)" ( identifier , number_literal )))) ;) (expression_statement "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));" (assignment_expression "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" (field_expression "local_7a._0_4_" identifier . field_identifier) = (call_expression "CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" identifier (argument_list "((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" ( (cast_expression "(char)tVar8" ( (type_descriptor "char" primitive_type) ) identifier) , (call_expression "CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" identifier (argument_list "((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" ( (cast_expression "(char)((ulong)tVar8 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 8)" ( (binary_expression "(ulong)tVar8 >> 8" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (call_expression "CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" identifier (argument_list "((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" ( (cast_expression "(char)((ulong)tVar8 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 0x10)" ( (binary_expression "(ulong)tVar8 >> 0x10" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (cast_expression "(char)((ulong)tVar8 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((ulong)tVar8 >> 0x18)" ( (binary_expression "(ulong)tVar8 >> 0x18" (cast_expression "(ulong)tVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) ))) ))) )))) ;) (expression_statement "FUN_0014fc06((long)param_5 + 9,local_c0,0x18);" (call_expression "FUN_0014fc06((long)param_5 + 9,local_c0,0x18)" identifier (argument_list "((long)param_5 + 9,local_c0,0x18)" ( (binary_expression "(long)param_5 + 9" (cast_expression "(long)param_5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , number_literal ))) ;) (expression_statement "param_6 = 0x18;" (assignment_expression "param_6 = 0x18" identifier = number_literal) ;) }) (else_clause "else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" else (compound_statement "{\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" { (expression_statement "param_6 = 0;" (assignment_expression "param_6 = 0" identifier = number_literal) ;) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" identifier = (pointer_expression "&local_88" & identifier)) ;) }))) })) (expression_statement "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);" (assignment_expression "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" identifier = (binary_expression "uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" (binary_expression "uVar12 + 0xc" identifier + number_literal) + (parenthesized_expression "(param_6 + 3U & 0xfffffffc)" ( (binary_expression "param_6 + 3U & 0xfffffffc" (binary_expression "param_6 + 3U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "__s = (undefined1 *)FUN_00126895((long)iVar2,1);" (assignment_expression "__s = (undefined1 *)FUN_00126895((long)iVar2,1)" identifier = (cast_expression "(undefined1 *)FUN_00126895((long)iVar2,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126895((long)iVar2,1)" identifier (argument_list "((long)iVar2,1)" ( (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "memset(__s,0,(long)iVar2);" (call_expression "memset(__s,0,(long)iVar2)" identifier (argument_list "(__s,0,(long)iVar2)" ( identifier , number_literal , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "*__s = (char)param_1;" (assignment_expression "*__s = (char)param_1" (pointer_expression "*__s" * identifier) = (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar9 = (undefined1)((uint)param_6 >> 8);" (assignment_expression "uVar9 = (undefined1)((uint)param_6 >> 8)" identifier = (call_expression "(undefined1)((uint)param_6 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_6 >> 8)" ( (binary_expression "(uint)param_6 >> 8" (cast_expression "(uint)param_6" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar5 = (undefined1)((ulong)lVar1 >> 8);" (assignment_expression "uVar5 = (undefined1)((ulong)lVar1 >> 8)" identifier = (call_expression "(undefined1)((ulong)lVar1 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((ulong)lVar1 >> 8)" ( (binary_expression "(ulong)lVar1 >> 8" (cast_expression "(ulong)lVar1" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar6 = (undefined1)((uint)param_2 >> 8);" (assignment_expression "uVar6 = (undefined1)((uint)param_2 >> 8)" identifier = (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_2 >> 8)" ( (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar7 = (undefined1)((uint)param_3 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)param_3 >> 8)" identifier = (call_expression "(undefined1)((uint)param_3 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)param_3 >> 8)" ( (binary_expression "(uint)param_3 >> 8" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" if (parenthesized_expression "(param_1 == 0x42)" ( (binary_expression "param_1 == 0x42" identifier == number_literal) )) (compound_statement "{\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }" { (expression_statement "__s[2] = uVar6;" (assignment_expression "__s[2] = uVar6" (subscript_expression "__s[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[3] = (char)param_2;" (assignment_expression "__s[3] = (char)param_2" (subscript_expression "__s[3]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[4] = uVar7;" (assignment_expression "__s[4] = uVar7" (subscript_expression "__s[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[5] = (char)param_3;" (assignment_expression "__s[5] = (char)param_3" (subscript_expression "__s[5]" identifier [ number_literal ]) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[6] = uVar5;" (assignment_expression "__s[6] = uVar5" (subscript_expression "__s[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[7] = (char)lVar1;" (assignment_expression "__s[7] = (char)lVar1" (subscript_expression "__s[7]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[8] = uVar9;" (assignment_expression "__s[8] = uVar9" (subscript_expression "__s[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[9] = (char)param_6;" (assignment_expression "__s[9] = (char)param_6" (subscript_expression "__s[9]" identifier [ number_literal ]) = (cast_expression "(char)param_6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" else (compound_statement "{\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" { (expression_statement "__s[2] = (char)param_2;" (assignment_expression "__s[2] = (char)param_2" (subscript_expression "__s[2]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[3] = uVar6;" (assignment_expression "__s[3] = uVar6" (subscript_expression "__s[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[4] = (char)param_3;" (assignment_expression "__s[4] = (char)param_3" (subscript_expression "__s[4]" identifier [ number_literal ]) = (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[5] = uVar7;" (assignment_expression "__s[5] = uVar7" (subscript_expression "__s[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[6] = (char)lVar1;" (assignment_expression "__s[6] = (char)lVar1" (subscript_expression "__s[6]" identifier [ number_literal ]) = (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[7] = uVar5;" (assignment_expression "__s[7] = uVar5" (subscript_expression "__s[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "__s[8] = (char)param_6;" (assignment_expression "__s[8] = (char)param_6" (subscript_expression "__s[8]" identifier [ number_literal ]) = (cast_expression "(char)param_6" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "__s[9] = uVar9;" (assignment_expression "__s[9] = uVar9" (subscript_expression "__s[9]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "memcpy(__s + 0xc,__src,(long)(int)lVar1);" (call_expression "memcpy(__s + 0xc,__src,(long)(int)lVar1)" identifier (argument_list "(__s + 0xc,__src,(long)(int)lVar1)" ( (binary_expression "__s + 0xc" identifier + number_literal) , identifier , (cast_expression "(long)(int)lVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);" (call_expression "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" identifier (argument_list "(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" ( (binary_expression "__s + (long)(int)uVar12 + 0xc" (binary_expression "__s + (long)(int)uVar12" identifier + (cast_expression "(long)(int)uVar12" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier))) + number_literal) , identifier , (cast_expression "(long)param_6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "FUN_00127355(&local_88,0x40);" (call_expression "FUN_00127355(&local_88,0x40)" identifier (argument_list "(&local_88,0x40)" ( (pointer_expression "&local_88" & identifier) , number_literal ))) ;) (expression_statement "*param_9 = iVar2;" (assignment_expression "*param_9 = iVar2" (pointer_expression "*param_9" * identifier) = identifier) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 __s;\n  }" { (return_statement "return __s;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) ))) ))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) + LIT) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 "undefined1 *\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)\n\n{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined1") (pointer_declarator "*\nFUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" (* "*") (function_declarator "FUN_00192ff5(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" (identifier "FUN_00192ff5") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,\n            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 *param_5" (type_identifier "undefined8") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "int *param_9" (primitive_type "int") (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) () ")")))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  char cVar3;\n  char *__src;\n  undefined8 uVar4;\n  undefined1 uVar5;\n  undefined1 uVar9;\n  undefined1 *__s;\n  time_t tVar8;\n  ulong uVar10;\n  char *pcVar11;\n  uint uVar12;\n  long in_FS_OFFSET;\n  undefined8 *local_c0;\n  undefined8 local_90;\n  undefined8 local_88;\n  undefined1 local_80;\n  undefined1 local_7f;\n  undefined1 local_7e;\n  undefined1 local_7d;\n  undefined1 local_7c;\n  undefined1 local_7b;\n  undefined8 local_7a;\n  undefined2 local_72;\n  long local_40;\n  undefined1 uVar6;\n  undefined1 uVar7;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  __src = (&PTR_DAT_001ed010)[param_4];\n  uVar10 = 0xffffffffffffffff;\n  pcVar11 = __src;\n  do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');\n  lVar1 = ~uVar10 - 1;\n  uVar12 = (int)lVar1 + 3U & 0xfffffffc;\n  local_c0 = param_5;\n  if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }\n  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);\n  __s = (undefined1 *)FUN_00126895((long)iVar2,1);\n  memset(__s,0,(long)iVar2);\n  *__s = (char)param_1;\n  uVar9 = (undefined1)((uint)param_6 >> 8);\n  uVar5 = (undefined1)((ulong)lVar1 >> 8);\n  uVar6 = (undefined1)((uint)param_2 >> 8);\n  uVar7 = (undefined1)((uint)param_3 >> 8);\n  if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }\n  memcpy(__s + 0xc,__src,(long)(int)lVar1);\n  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);\n  FUN_00127355(&local_88,0x40);\n  *param_9 = iVar2;\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "char *__src;" (primitive_type "char") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "undefined1 uVar5;" (type_identifier "undefined1") (identifier "uVar5") (; ";")) (declaration "undefined1 uVar9;" (type_identifier "undefined1") (identifier "uVar9") (; ";")) (declaration "undefined1 *__s;" (type_identifier "undefined1") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "time_t tVar8;" (type_identifier "time_t") (identifier "tVar8") (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (declaration "char *pcVar11;" (primitive_type "char") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 *local_c0;" (type_identifier "undefined8") (pointer_declarator "*local_c0" (* "*") (identifier "local_c0")) (; ";")) (declaration "undefined8 local_90;" (type_identifier "undefined8") (identifier "local_90") (; ";")) (declaration "undefined8 local_88;" (type_identifier "undefined8") (identifier "local_88") (; ";")) (declaration "undefined1 local_80;" (type_identifier "undefined1") (identifier "local_80") (; ";")) (declaration "undefined1 local_7f;" (type_identifier "undefined1") (identifier "local_7f") (; ";")) (declaration "undefined1 local_7e;" (type_identifier "undefined1") (identifier "local_7e") (; ";")) (declaration "undefined1 local_7d;" (type_identifier "undefined1") (identifier "local_7d") (; ";")) (declaration "undefined1 local_7c;" (type_identifier "undefined1") (identifier "local_7c") (; ";")) (declaration "undefined1 local_7b;" (type_identifier "undefined1") (identifier "local_7b") (; ";")) (declaration "undefined8 local_7a;" (type_identifier "undefined8") (identifier "local_7a") (; ";")) (declaration "undefined2 local_72;" (type_identifier "undefined2") (identifier "local_72") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (declaration "undefined1 uVar6;" (type_identifier "undefined1") (identifier "uVar6") (; ";")) (declaration "undefined1 uVar7;" (type_identifier "undefined1") (identifier "uVar7") (; ";")) (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 "__src = (&PTR_DAT_001ed010)[param_4];" (assignment_expression "__src = (&PTR_DAT_001ed010)[param_4]" (identifier "__src") (= "=") (subscript_expression "(&PTR_DAT_001ed010)[param_4]" (parenthesized_expression "(&PTR_DAT_001ed010)" (( "(") (pointer_expression "&PTR_DAT_001ed010" (& "&") (identifier "PTR_DAT_001ed010")) () ")")) ([ "[") (identifier "param_4") (] "]"))) (; ";")) (expression_statement "uVar10 = 0xffffffffffffffff;" (assignment_expression "uVar10 = 0xffffffffffffffff" (identifier "uVar10") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar11 = __src;" (assignment_expression "pcVar11 = __src" (identifier "pcVar11") (= "=") (identifier "__src")) (; ";")) (do_statement "do {\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  } while (cVar3 != '\0');" (do "do") (compound_statement "{\n    if (uVar10 == 0) break;\n    uVar10 = uVar10 - 1;\n    cVar3 = *pcVar11;\n    pcVar11 = pcVar11 + 1;\n  }" ({ "{") (if_statement "if (uVar10 == 0) break;" (if "if") (parenthesized_expression "(uVar10 == 0)" (( "(") (binary_expression "uVar10 == 0" (identifier "uVar10") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar10 = uVar10 - 1;" (assignment_expression "uVar10 = uVar10 - 1" (identifier "uVar10") (= "=") (binary_expression "uVar10 - 1" (identifier "uVar10") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = *pcVar11;" (assignment_expression "cVar3 = *pcVar11" (identifier "cVar3") (= "=") (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11"))) (; ";")) (expression_statement "pcVar11 = pcVar11 + 1;" (assignment_expression "pcVar11 = pcVar11 + 1" (identifier "pcVar11") (= "=") (binary_expression "pcVar11 + 1" (identifier "pcVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "lVar1 = ~uVar10 - 1;" (assignment_expression "lVar1 = ~uVar10 - 1" (identifier "lVar1") (= "=") (binary_expression "~uVar10 - 1" (unary_expression "~uVar10" (~ "~") (identifier "uVar10")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar12 = (int)lVar1 + 3U & 0xfffffffc;" (assignment_expression "uVar12 = (int)lVar1 + 3U & 0xfffffffc" (identifier "uVar12") (= "=") (binary_expression "(int)lVar1 + 3U & 0xfffffffc" (binary_expression "(int)lVar1 + 3U" (cast_expression "(int)lVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar1")) (+ "+") (number_literal "3U")) (& "&") (number_literal "0xfffffffc"))) (; ";")) (expression_statement "local_c0 = param_5;" (assignment_expression "local_c0 = param_5" (identifier "local_c0") (= "=") (identifier "param_5")) (; ";")) (if_statement "if (param_4 != 1) {\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" (if "if") (parenthesized_expression "(param_4 != 1)" (( "(") (binary_expression "param_4 != 1" (identifier "param_4") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }\n  }" ({ "{") (if_statement "if ((param_4 == 2) && (param_6 == 0x10)) {\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }\n    else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" (if "if") (parenthesized_expression "((param_4 == 2) && (param_6 == 0x10))" (( "(") (binary_expression "(param_4 == 2) && (param_6 == 0x10)" (parenthesized_expression "(param_4 == 2)" (( "(") (binary_expression "param_4 == 2" (identifier "param_4") (== "==") (number_literal "2")) () ")")) (&& "&&") (parenthesized_expression "(param_6 == 0x10)" (( "(") (binary_expression "param_6 == 0x10" (identifier "param_6") (== "==") (number_literal "0x10")) () ")"))) () ")")) (compound_statement "{\n      local_90 = 0;\n      FUN_0019214f(param_7,&local_90);\n      local_c0 = &local_88;\n      local_7a = 0;\n      local_72 = 0;\n      local_88 = *param_5;\n      local_80 = (undefined1)((ulong)local_90 >> 0x18);\n      local_7f = (undefined1)((ulong)local_90 >> 0x10);\n      local_7e = (undefined1)((ulong)local_90 >> 8);\n      local_7d = (undefined1)local_90;\n      local_7c = (undefined1)((uint)param_8 >> 8);\n      local_7b = (undefined1)param_8;\n      tVar8 = time((time_t *)0x0);\n      uVar4 = local_7a;\n      local_7a._4_4_ = SUB84(uVar4,4);\n      local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));\n      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);\n      param_6 = 0x18;\n    }" ({ "{") (expression_statement "local_90 = 0;" (assignment_expression "local_90 = 0" (identifier "local_90") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0019214f(param_7,&local_90);" (call_expression "FUN_0019214f(param_7,&local_90)" (identifier "FUN_0019214f") (argument_list "(param_7,&local_90)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&local_90" (& "&") (identifier "local_90")) () ")"))) (; ";")) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" (identifier "local_c0") (= "=") (pointer_expression "&local_88" (& "&") (identifier "local_88"))) (; ";")) (expression_statement "local_7a = 0;" (assignment_expression "local_7a = 0" (identifier "local_7a") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_72 = 0;" (assignment_expression "local_72 = 0" (identifier "local_72") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_88 = *param_5;" (assignment_expression "local_88 = *param_5" (identifier "local_88") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "local_80 = (undefined1)((ulong)local_90 >> 0x18);" (assignment_expression "local_80 = (undefined1)((ulong)local_90 >> 0x18)" (identifier "local_80") (= "=") (call_expression "(undefined1)((ulong)local_90 >> 0x18)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((ulong)local_90 >> 0x18)" (( "(") (binary_expression "(ulong)local_90 >> 0x18" (cast_expression "(ulong)local_90" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "local_90")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "local_7f = (undefined1)((ulong)local_90 >> 0x10);" (assignment_expression "local_7f = (undefined1)((ulong)local_90 >> 0x10)" (identifier "local_7f") (= "=") (call_expression "(undefined1)((ulong)local_90 >> 0x10)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((ulong)local_90 >> 0x10)" (( "(") (binary_expression "(ulong)local_90 >> 0x10" (cast_expression "(ulong)local_90" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "local_90")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "local_7e = (undefined1)((ulong)local_90 >> 8);" (assignment_expression "local_7e = (undefined1)((ulong)local_90 >> 8)" (identifier "local_7e") (= "=") (call_expression "(undefined1)((ulong)local_90 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((ulong)local_90 >> 8)" (( "(") (binary_expression "(ulong)local_90 >> 8" (cast_expression "(ulong)local_90" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "local_90")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "local_7d = (undefined1)local_90;" (assignment_expression "local_7d = (undefined1)local_90" (identifier "local_7d") (= "=") (cast_expression "(undefined1)local_90" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "local_90"))) (; ";")) (expression_statement "local_7c = (undefined1)((uint)param_8 >> 8);" (assignment_expression "local_7c = (undefined1)((uint)param_8 >> 8)" (identifier "local_7c") (= "=") (call_expression "(undefined1)((uint)param_8 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_8 >> 8)" (( "(") (binary_expression "(uint)param_8 >> 8" (cast_expression "(uint)param_8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_8")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "local_7b = (undefined1)param_8;" (assignment_expression "local_7b = (undefined1)param_8" (identifier "local_7b") (= "=") (cast_expression "(undefined1)param_8" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "param_8"))) (; ";")) (expression_statement "tVar8 = time((time_t *)0x0);" (assignment_expression "tVar8 = time((time_t *)0x0)" (identifier "tVar8") (= "=") (call_expression "time((time_t *)0x0)" (identifier "time") (argument_list "((time_t *)0x0)" (( "(") (cast_expression "(time_t *)0x0" (( "(") (type_descriptor "time_t *" (type_identifier "time_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (expression_statement "uVar4 = local_7a;" (assignment_expression "uVar4 = local_7a" (identifier "uVar4") (= "=") (identifier "local_7a")) (; ";")) (expression_statement "local_7a._4_4_ = SUB84(uVar4,4);" (assignment_expression "local_7a._4_4_ = SUB84(uVar4,4)" (field_expression "local_7a._4_4_" (identifier "local_7a") (. ".") (field_identifier "_4_4_")) (= "=") (call_expression "SUB84(uVar4,4)" (identifier "SUB84") (argument_list "(uVar4,4)" (( "(") (identifier "uVar4") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));" (assignment_expression "local_7a._0_4_ =\n           CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" (field_expression "local_7a._0_4_" (identifier "local_7a") (. ".") (field_identifier "_0_4_")) (= "=") (call_expression "CONCAT13((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" (identifier "CONCAT13") (argument_list "((char)tVar8,\n                    CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))))" (( "(") (cast_expression "(char)tVar8" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "tVar8")) (, ",") (call_expression "CONCAT12((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" (identifier "CONCAT12") (argument_list "((char)((ulong)tVar8 >> 8),\n                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18)))" (( "(") (cast_expression "(char)((ulong)tVar8 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((ulong)tVar8 >> 8)" (( "(") (binary_expression "(ulong)tVar8 >> 8" (cast_expression "(ulong)tVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "tVar8")) (>> ">>") (number_literal "8")) () ")"))) (, ",") (call_expression "CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" (identifier "CONCAT11") (argument_list "((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))" (( "(") (cast_expression "(char)((ulong)tVar8 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((ulong)tVar8 >> 0x10)" (( "(") (binary_expression "(ulong)tVar8 >> 0x10" (cast_expression "(ulong)tVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "tVar8")) (>> ">>") (number_literal "0x10")) () ")"))) (, ",") (cast_expression "(char)((ulong)tVar8 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((ulong)tVar8 >> 0x18)" (( "(") (binary_expression "(ulong)tVar8 >> 0x18" (cast_expression "(ulong)tVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "tVar8")) (>> ">>") (number_literal "0x18")) () ")"))) () ")"))) () ")"))) () ")")))) (; ";")) (expression_statement "FUN_0014fc06((long)param_5 + 9,local_c0,0x18);" (call_expression "FUN_0014fc06((long)param_5 + 9,local_c0,0x18)" (identifier "FUN_0014fc06") (argument_list "((long)param_5 + 9,local_c0,0x18)" (( "(") (binary_expression "(long)param_5 + 9" (cast_expression "(long)param_5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_5")) (+ "+") (number_literal "9")) (, ",") (identifier "local_c0") (, ",") (number_literal "0x18") () ")"))) (; ";")) (expression_statement "param_6 = 0x18;" (assignment_expression "param_6 = 0x18" (identifier "param_6") (= "=") (number_literal "0x18")) (; ";")) (} "}")) (else_clause "else {\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" (else "else") (compound_statement "{\n      param_6 = 0;\n      local_c0 = &local_88;\n    }" ({ "{") (expression_statement "param_6 = 0;" (assignment_expression "param_6 = 0" (identifier "param_6") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_c0 = &local_88;" (assignment_expression "local_c0 = &local_88" (identifier "local_c0") (= "=") (pointer_expression "&local_88" (& "&") (identifier "local_88"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);" (assignment_expression "iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" (identifier "iVar2") (= "=") (binary_expression "uVar12 + 0xc + (param_6 + 3U & 0xfffffffc)" (binary_expression "uVar12 + 0xc" (identifier "uVar12") (+ "+") (number_literal "0xc")) (+ "+") (parenthesized_expression "(param_6 + 3U & 0xfffffffc)" (( "(") (binary_expression "param_6 + 3U & 0xfffffffc" (binary_expression "param_6 + 3U" (identifier "param_6") (+ "+") (number_literal "3U")) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (expression_statement "__s = (undefined1 *)FUN_00126895((long)iVar2,1);" (assignment_expression "__s = (undefined1 *)FUN_00126895((long)iVar2,1)" (identifier "__s") (= "=") (cast_expression "(undefined1 *)FUN_00126895((long)iVar2,1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00126895((long)iVar2,1)" (identifier "FUN_00126895") (argument_list "((long)iVar2,1)" (( "(") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "memset(__s,0,(long)iVar2);" (call_expression "memset(__s,0,(long)iVar2)" (identifier "memset") (argument_list "(__s,0,(long)iVar2)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) () ")"))) (; ";")) (expression_statement "*__s = (char)param_1;" (assignment_expression "*__s = (char)param_1" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "uVar9 = (undefined1)((uint)param_6 >> 8);" (assignment_expression "uVar9 = (undefined1)((uint)param_6 >> 8)" (identifier "uVar9") (= "=") (call_expression "(undefined1)((uint)param_6 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_6 >> 8)" (( "(") (binary_expression "(uint)param_6 >> 8" (cast_expression "(uint)param_6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_6")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uVar5 = (undefined1)((ulong)lVar1 >> 8);" (assignment_expression "uVar5 = (undefined1)((ulong)lVar1 >> 8)" (identifier "uVar5") (= "=") (call_expression "(undefined1)((ulong)lVar1 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((ulong)lVar1 >> 8)" (( "(") (binary_expression "(ulong)lVar1 >> 8" (cast_expression "(ulong)lVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "lVar1")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uVar6 = (undefined1)((uint)param_2 >> 8);" (assignment_expression "uVar6 = (undefined1)((uint)param_2 >> 8)" (identifier "uVar6") (= "=") (call_expression "(undefined1)((uint)param_2 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_2 >> 8)" (( "(") (binary_expression "(uint)param_2 >> 8" (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "uVar7 = (undefined1)((uint)param_3 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)param_3 >> 8)" (identifier "uVar7") (= "=") (call_expression "(undefined1)((uint)param_3 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)param_3 >> 8)" (( "(") (binary_expression "(uint)param_3 >> 8" (cast_expression "(uint)param_3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_3")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (param_1 == 0x42) {\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }\n  else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" (if "if") (parenthesized_expression "(param_1 == 0x42)" (( "(") (binary_expression "param_1 == 0x42" (identifier "param_1") (== "==") (number_literal "0x42")) () ")")) (compound_statement "{\n    __s[2] = uVar6;\n    __s[3] = (char)param_2;\n    __s[4] = uVar7;\n    __s[5] = (char)param_3;\n    __s[6] = uVar5;\n    __s[7] = (char)lVar1;\n    __s[8] = uVar9;\n    __s[9] = (char)param_6;\n  }" ({ "{") (expression_statement "__s[2] = uVar6;" (assignment_expression "__s[2] = uVar6" (subscript_expression "__s[2]" (identifier "__s") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "__s[3] = (char)param_2;" (assignment_expression "__s[3] = (char)param_2" (subscript_expression "__s[3]" (identifier "__s") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "__s[4] = uVar7;" (assignment_expression "__s[4] = uVar7" (subscript_expression "__s[4]" (identifier "__s") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "__s[5] = (char)param_3;" (assignment_expression "__s[5] = (char)param_3" (subscript_expression "__s[5]" (identifier "__s") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "__s[6] = uVar5;" (assignment_expression "__s[6] = uVar5" (subscript_expression "__s[6]" (identifier "__s") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "__s[7] = (char)lVar1;" (assignment_expression "__s[7] = (char)lVar1" (subscript_expression "__s[7]" (identifier "__s") ([ "[") (number_literal "7") (] "]")) (= "=") (cast_expression "(char)lVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar1"))) (; ";")) (expression_statement "__s[8] = uVar9;" (assignment_expression "__s[8] = uVar9" (subscript_expression "__s[8]" (identifier "__s") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "__s[9] = (char)param_6;" (assignment_expression "__s[9] = (char)param_6" (subscript_expression "__s[9]" (identifier "__s") ([ "[") (number_literal "9") (] "]")) (= "=") (cast_expression "(char)param_6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_6"))) (; ";")) (} "}")) (else_clause "else {\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" (else "else") (compound_statement "{\n    __s[2] = (char)param_2;\n    __s[3] = uVar6;\n    __s[4] = (char)param_3;\n    __s[5] = uVar7;\n    __s[6] = (char)lVar1;\n    __s[7] = uVar5;\n    __s[8] = (char)param_6;\n    __s[9] = uVar9;\n  }" ({ "{") (expression_statement "__s[2] = (char)param_2;" (assignment_expression "__s[2] = (char)param_2" (subscript_expression "__s[2]" (identifier "__s") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "__s[3] = uVar6;" (assignment_expression "__s[3] = uVar6" (subscript_expression "__s[3]" (identifier "__s") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "__s[4] = (char)param_3;" (assignment_expression "__s[4] = (char)param_3" (subscript_expression "__s[4]" (identifier "__s") ([ "[") (number_literal "4") (] "]")) (= "=") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "__s[5] = uVar7;" (assignment_expression "__s[5] = uVar7" (subscript_expression "__s[5]" (identifier "__s") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "__s[6] = (char)lVar1;" (assignment_expression "__s[6] = (char)lVar1" (subscript_expression "__s[6]" (identifier "__s") ([ "[") (number_literal "6") (] "]")) (= "=") (cast_expression "(char)lVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar1"))) (; ";")) (expression_statement "__s[7] = uVar5;" (assignment_expression "__s[7] = uVar5" (subscript_expression "__s[7]" (identifier "__s") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "__s[8] = (char)param_6;" (assignment_expression "__s[8] = (char)param_6" (subscript_expression "__s[8]" (identifier "__s") ([ "[") (number_literal "8") (] "]")) (= "=") (cast_expression "(char)param_6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_6"))) (; ";")) (expression_statement "__s[9] = uVar9;" (assignment_expression "__s[9] = uVar9" (subscript_expression "__s[9]" (identifier "__s") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (} "}")))) (expression_statement "memcpy(__s + 0xc,__src,(long)(int)lVar1);" (call_expression "memcpy(__s + 0xc,__src,(long)(int)lVar1)" (identifier "memcpy") (argument_list "(__s + 0xc,__src,(long)(int)lVar1)" (( "(") (binary_expression "__s + 0xc" (identifier "__s") (+ "+") (number_literal "0xc")) (, ",") (identifier "__src") (, ",") (cast_expression "(long)(int)lVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)lVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar1"))) () ")"))) (; ";")) (expression_statement "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);" (call_expression "memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" (identifier "memcpy") (argument_list "(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6)" (( "(") (binary_expression "__s + (long)(int)uVar12 + 0xc" (binary_expression "__s + (long)(int)uVar12" (identifier "__s") (+ "+") (cast_expression "(long)(int)uVar12" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")))) (+ "+") (number_literal "0xc")) (, ",") (identifier "local_c0") (, ",") (cast_expression "(long)param_6" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_6")) () ")"))) (; ";")) (expression_statement "FUN_00127355(&local_88,0x40);" (call_expression "FUN_00127355(&local_88,0x40)" (identifier "FUN_00127355") (argument_list "(&local_88,0x40)" (( "(") (pointer_expression "&local_88" (& "&") (identifier "local_88")) (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "*param_9 = iVar2;" (assignment_expression "*param_9 = iVar2" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return __s;\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 __s;\n  }" ({ "{") (return_statement "return __s;" (return "return") (identifier "__s") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

void * function_1(int var_16,int protomajor,int protominor,int var_6,void *auth_data,
                        int var_7,char *peer_addr,int peer_port,int *outlen)

{
  long lVar1;
  int iVar2;
  char var_5;
  long var_20;
  char *__src;
  type_1 uVar5;
  type_2 uVar6;
  type_2 uVar10;
  type_2 *var_18;
  type_3 tVar9;
  type_4 var_3;
  char *var_4;
  type_5 var_13;
  long var_1;
  type_6 *local_c0;
  type_4 var_9;
  type_6 realauthdata [64];
  type_2 uVar7;
  type_2 uVar8;
  
  var_20 = *(long *)(var_1 + 0x28);
  __src = *(char **)(var_2 + (long)var_6 * 8);
  var_3 = 0xffffffffffffffff;
  var_4 = __src;
  do {
    if (var_3 == 0) break;
    var_3 = var_3 - 1;
    var_5 = *var_4;
    var_4 = var_4 + 1;
  } while (var_5 != '\0');
  lVar1 = ~var_3 - 1;
  var_13 = (int)lVar1 + 3U & 0xfffffffc;
  local_c0 = (type_6 *)auth_data;
  if (var_6 != 1) {
    if ((var_6 == 2) && (var_7 == 0x10)) {
      var_9 = 0;
      var_8(peer_addr,&var_9);
      local_c0 = realauthdata;
      realauthdata[0xe] = '\0';
      realauthdata[0xf] = '\0';
      realauthdata[0x10] = '\0';
      realauthdata[0x11] = '\0';
      realauthdata[0x12] = '\0';
      realauthdata[0x13] = '\0';
      realauthdata[0x14] = '\0';
      realauthdata[0x15] = '\0';
      realauthdata[0x16] = '\0';
      realauthdata[0x17] = '\0';
                    /* WARNING: Load size is inaccurate */
      realauthdata._0_8_ = *auth_data;
      realauthdata[8] = (type_6)(var_9 >> 0x18);
      realauthdata[9] = (type_6)(var_9 >> 0x10);
      realauthdata[10] = (type_6)(var_9 >> 8);
      realauthdata[0xb] = (type_6)var_9;
      realauthdata[0xc] = (type_6)((type_5)peer_port >> 8);
      realauthdata[0xd] = (type_6)peer_port;
      tVar9 = var_10((type_3 *)0x0);
      uVar5 = realauthdata._14_8_;
      realauthdata[0xf] = (type_6)((type_4)tVar9 >> 0x10);
      realauthdata[0xe] = (type_6)((type_4)tVar9 >> 0x18);
      realauthdata[0x10] = (type_6)((type_4)tVar9 >> 8);
      realauthdata._18_4_ = var_11(uVar5,4);
      realauthdata[0x11] = (type_6)tVar9;
      var_12((type_6 *)((long)auth_data + 9),local_c0,0x18);
      var_7 = 0x18;
    }
    else {
      var_7 = 0;
      local_c0 = realauthdata;
    }
  }
  iVar2 = var_13 + 0xc + (var_7 + 3U & 0xfffffffc);
  var_18 = (type_2 *)var_14((long)iVar2,1);
  var_15(var_18,0,(long)iVar2);
  *var_18 = (char)var_16;
  uVar10 = (type_2)((type_5)var_7 >> 8);
  uVar6 = (type_2)((type_4)lVar1 >> 8);
  uVar7 = (type_2)((type_5)protomajor >> 8);
  uVar8 = (type_2)((type_5)protominor >> 8);
  if (var_16 == 0x42) {
    var_18[2] = uVar7;
    var_18[3] = (char)protomajor;
    var_18[4] = uVar8;
    var_18[5] = (char)protominor;
    var_18[6] = uVar6;
    var_18[7] = (char)lVar1;
    var_18[8] = uVar10;
    var_18[9] = (char)var_7;
  }
  else {
    var_18[2] = (char)protomajor;
    var_18[3] = uVar7;
    var_18[4] = (char)protominor;
    var_18[5] = uVar8;
    var_18[6] = (char)lVar1;
    var_18[7] = uVar6;
    var_18[8] = (char)var_7;
    var_18[9] = uVar10;
  }
  var_17(var_18 + 0xc,__src,(long)(int)lVar1);
  var_17(var_18 + (long)(int)var_13 + 0xc,local_c0,(long)var_7);
  var_19(realauthdata,0x40);
  *outlen = iVar2;
  if (var_20 == *(long *)(var_1 + 0x28)) {
    return var_18;
  }
                    /* WARNING: Subroutine does not return */
  var_21();
}


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

undefined1 *
MASKED(int param_1,undefined4 param_2,undefined4 param_3,int param_4,undefined8 *param_5,
            int param_6,undefined8 param_7,undefined4 param_8,int *param_9)

{
  long lVar1;
  int iVar2;
  char cVar3;
  char *__src;
  undefined8 uVar4;
  undefined1 uVar5;
  undefined1 uVar9;
  undefined1 *__s;
  time_t tVar8;
  ulong uVar10;
  char *pcVar11;
  uint uVar12;
  long in_FS_OFFSET;
  undefined8 *local_c0;
  undefined8 local_90;
  undefined8 local_88;
  undefined1 local_80;
  undefined1 local_7f;
  undefined1 local_7e;
  undefined1 local_7d;
  undefined1 local_7c;
  undefined1 local_7b;
  undefined8 local_7a;
  undefined2 local_72;
  long local_40;
  undefined1 uVar6;
  undefined1 uVar7;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  __src = (&PTR_DAT_001ed010)[param_4];
  uVar10 = 0xffffffffffffffff;
  pcVar11 = __src;
  do {
    if (uVar10 == 0) break;
    uVar10 = uVar10 - 1;
    cVar3 = *pcVar11;
    pcVar11 = pcVar11 + 1;
  } while (cVar3 != '\0');
  lVar1 = ~uVar10 - 1;
  uVar12 = (int)lVar1 + 3U & 0xfffffffc;
  local_c0 = param_5;
  if (param_4 != 1) {
    if ((param_4 == 2) && (param_6 == 0x10)) {
      local_90 = 0;
      FUN_0019214f(param_7,&local_90);
      local_c0 = &local_88;
      local_7a = 0;
      local_72 = 0;
      local_88 = *param_5;
      local_80 = (undefined1)((ulong)local_90 >> 0x18);
      local_7f = (undefined1)((ulong)local_90 >> 0x10);
      local_7e = (undefined1)((ulong)local_90 >> 8);
      local_7d = (undefined1)local_90;
      local_7c = (undefined1)((uint)param_8 >> 8);
      local_7b = (undefined1)param_8;
      tVar8 = time((time_t *)0x0);
      uVar4 = local_7a;
      local_7a._4_4_ = SUB84(uVar4,4);
      local_7a._0_4_ =
           CONCAT13((char)tVar8,
                    CONCAT12((char)((ulong)tVar8 >> 8),
                             CONCAT11((char)((ulong)tVar8 >> 0x10),(char)((ulong)tVar8 >> 0x18))));
      FUN_0014fc06((long)param_5 + 9,local_c0,0x18);
      param_6 = 0x18;
    }
    else {
      param_6 = 0;
      local_c0 = &local_88;
    }
  }
  iVar2 = uVar12 + 0xc + (param_6 + 3U & 0xfffffffc);
  __s = (undefined1 *)FUN_00126895((long)iVar2,1);
  memset(__s,0,(long)iVar2);
  *__s = (char)param_1;
  uVar9 = (undefined1)((uint)param_6 >> 8);
  uVar5 = (undefined1)((ulong)lVar1 >> 8);
  uVar6 = (undefined1)((uint)param_2 >> 8);
  uVar7 = (undefined1)((uint)param_3 >> 8);
  if (param_1 == 0x42) {
    __s[2] = uVar6;
    __s[3] = (char)param_2;
    __s[4] = uVar7;
    __s[5] = (char)param_3;
    __s[6] = uVar5;
    __s[7] = (char)lVar1;
    __s[8] = uVar9;
    __s[9] = (char)param_6;
  }
  else {
    __s[2] = (char)param_2;
    __s[3] = uVar6;
    __s[4] = (char)param_3;
    __s[5] = uVar7;
    __s[6] = (char)lVar1;
    __s[7] = uVar5;
    __s[8] = (char)param_6;
    __s[9] = uVar9;
  }
  memcpy(__s + 0xc,__src,(long)(int)lVar1);
  memcpy(__s + (long)(int)uVar12 + 0xc,local_c0,(long)param_6);
  FUN_00127355(&local_88,0x40);
  *param_9 = iVar2;
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return __s;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

