
void SHA256_Bytes(SHA256_State *s,void *p,int len)

{
  uint uVar1;
  uint *puVar2;
  uchar *puVar3;
  int iVar4;
  long in_FS_OFFSET;
  uint32 wordblock [16];
  uint local_48 [2];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = len + s->lenlo;
  s->lenlo = uVar1;
  s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len);
  iVar4 = s->blkused;
  if (iVar4 == 0) {
    if (0x3f < len) goto LAB_0015dbb0;
  }
  else {
    if (iVar4 + len < 0x40) {
      memcpy(s->block + iVar4,p,(long)len);
      s->blkused = s->blkused + len;
      goto LAB_0015dc42;
    }
LAB_0015dbb0:
    do {
      puVar3 = s->block;
      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));
      iVar4 = 0x40 - s->blkused;
      p = (void *)((long)p + (long)iVar4);
      len = len - iVar4;
      puVar2 = wordblock;
      do {
        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |
                  (uint)puVar3[2] << 8;
        puVar3 = puVar3 + 4;
        puVar2 = puVar2 + 1;
      } while (puVar2 != local_48);
      SHA256_Block(s,wordblock);
      s->blkused = 0;
      iVar4 = 0;
    } while (0x3f < len);
  }
  memcpy(s->block,p,(long)len);
  s->blkused = len;
LAB_0015dc42:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



void FUN_0015db65(long param_1,void *param_2,uint param_3)

{
  uint uVar1;
  uint *puVar2;
  byte *pbVar3;
  int iVar4;
  long in_FS_OFFSET;
  uint local_88 [16];
  uint local_48 [2];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = param_3 + *(int *)(param_1 + 0x68);
  *(uint *)(param_1 + 0x68) = uVar1;
  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);
  iVar4 = *(int *)(param_1 + 0x60);
  if (iVar4 == 0) {
    if (0x3f < (int)param_3) goto LAB_0015dbb0;
  }
  else {
    if ((int)(iVar4 + param_3) < 0x40) {
      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);
      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;
      goto LAB_0015dc42;
    }
LAB_0015dbb0:
    do {
      pbVar3 = (byte *)(param_1 + 0x20);
      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));
      iVar4 = 0x40 - *(int *)(param_1 + 0x60);
      param_2 = (void *)((long)param_2 + (long)iVar4);
      param_3 = param_3 - iVar4;
      puVar2 = local_88;
      do {
        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |
                  (uint)pbVar3[2] << 8;
        pbVar3 = pbVar3 + 4;
        puVar2 = puVar2 + 1;
      } while (puVar2 != local_48);
      FUN_0015d671(param_1,local_88);
      *(undefined4 *)(param_1 + 0x60) = 0;
      iVar4 = 0;
    } while (0x3f < (int)param_3);
  }
  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);
  *(uint *)(param_1 + 0x60) = param_3;
LAB_0015dc42:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x58
MOV RBX,RDI
MOV R12,RSI
MOV EBP,EDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x48],RAX
XOR EAX,EAX
MOV EAX,EDX
ADD EAX,dword ptr [RDI + 0x68]
MOV dword ptr [RDI + 0x68],EAX
CMP EAX,EDX
ADC dword ptr [RDI + 0x64],0x0
MOV EAX,dword ptr [RDI + 0x60]
TEST EAX,EAX
JNZ 0x0015dc61
CMP EDX,0x3f
JLE 0x0015dc30
MOV R13,RSP
LEA R15,[RBX + 0x20]
MOVSXD RDI,EAX
ADD RDI,R15
MOV R14D,0x40
MOV EDX,R14D
SUB EDX,EAX
MOVSXD RDX,EDX
MOV RSI,R12
CALL 0x00114ce0
SUB R14D,dword ptr [RBX + 0x60]
MOVSXD RAX,R14D
ADD R12,RAX
SUB EBP,R14D
MOV RDX,R15
MOV RCX,RSP
LEA RDI,[RCX + 0x40]
MOVZX EAX,byte ptr [RDX]
SHL EAX,0x18
MOVZX ESI,byte ptr [RDX + 0x1]
SHL ESI,0x10
OR EAX,ESI
MOVZX ESI,byte ptr [RDX + 0x3]
OR EAX,ESI
MOVZX ESI,byte ptr [RDX + 0x2]
SHL ESI,0x8
OR EAX,ESI
MOV dword ptr [RCX],EAX
ADD RDX,0x4
ADD RCX,0x4
CMP RCX,RDI
JNZ 0x0015dbe7
MOV RSI,R13
MOV RDI,RBX
CALL 0x0015d671
MOV dword ptr [RBX + 0x60],0x0
MOV EAX,0x0
CMP EBP,0x3f
JG 0x0015dbb0
LEA RDI,[RBX + 0x20]
MOVSXD RDX,EBP
MOV RSI,R12
CALL 0x00114ce0
MOV dword ptr [RBX + 0x60],EBP
MOV RAX,qword ptr [RSP + 0x48]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x0015dc81
ADD RSP,0x58
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA EDX,[RAX + RDX*0x1]
CMP EDX,0x3f
JG 0x0015dbad
CDQE
LEA RDI,[RDI + RAX*0x1 + 0x20]
MOVSXD RDX,EBP
CALL 0x00114ce0
ADD dword ptr [RBX + 0x60],EBP
JMP 0x0015dc42
CALL 0x00115250
(translation_unit "void FUN_0015db65(long param_1,void *param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0015db65(long param_1,void *param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0015db65(long param_1,void *param_2,uint param_3)" identifier (parameter_list "(long param_1,void *param_2,uint param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint local_88 [16];" type_identifier (array_declarator "local_88 [16]" identifier [ number_literal ]) ;) (declaration "uint local_48 [2];" type_identifier (array_declarator "local_48 [2]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = param_3 + *(int *)(param_1 + 0x68);" (assignment_expression "uVar1 = param_3 + *(int *)(param_1 + 0x68)" identifier = (binary_expression "param_3 + *(int *)(param_1 + 0x68)" identifier + (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + (call_expression "(uint)(uVar1 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_3)" ( (binary_expression "uVar1 < param_3" identifier < identifier) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }" { (if_statement "if (0x3f < (int)param_3) goto LAB_0015dbb0;" if (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0015dbb0;" goto statement_identifier ;)) }) (else_clause "else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" else (compound_statement "{\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" { (if_statement "if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" if (parenthesized_expression "((int)(iVar4 + param_3) < 0x40)" ( (binary_expression "(int)(iVar4 + param_3) < 0x40" (cast_expression "(int)(iVar4 + param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar4 + param_3)" ( (binary_expression "iVar4 + param_3" identifier + identifier) ))) < number_literal) )) (compound_statement "{\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" { (expression_statement "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" identifier (argument_list "((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" ( (cast_expression "(void *)(param_1 + 0x20 + (long)iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + (long)iVar4)" ( (binary_expression "param_1 + 0x20 + (long)iVar4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , identifier , (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier)) ;) (goto_statement "goto LAB_0015dc42;" goto statement_identifier ;) })) (labeled_statement "LAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" statement_identifier : (do_statement "do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" do (compound_statement "{\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    }" { (expression_statement "pbVar3 = (byte *)(param_1 + 0x20);" (assignment_expression "pbVar3 = (byte *)(param_1 + 0x20)" identifier = (cast_expression "(byte *)(param_1 + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ;) (expression_statement "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));" (call_expression "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" identifier (argument_list "(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" ( (binary_expression "pbVar3 + iVar4" identifier + identifier) , identifier , (cast_expression "(long)(0x40 - iVar4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x40 - iVar4)" ( (binary_expression "0x40 - iVar4" number_literal - identifier) ))) ))) ;) (expression_statement "iVar4 = 0x40 - *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = 0x40 - *(int *)(param_1 + 0x60)" identifier = (binary_expression "0x40 - *(int *)(param_1 + 0x60)" number_literal - (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))))) ;) (expression_statement "param_2 = (void *)((long)param_2 + (long)iVar4);" (assignment_expression "param_2 = (void *)((long)param_2 + (long)iVar4)" identifier = (cast_expression "(void *)((long)param_2 + (long)iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + (long)iVar4)" ( (binary_expression "(long)param_2 + (long)iVar4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "param_3 = param_3 - iVar4;" (assignment_expression "param_3 = param_3 - iVar4" identifier = (binary_expression "param_3 - iVar4" identifier - identifier)) ;) (expression_statement "puVar2 = local_88;" (assignment_expression "puVar2 = local_88" identifier = identifier) ;) (do_statement "do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);" do (compound_statement "{\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      }" { (expression_statement "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;" (assignment_expression "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (pointer_expression "*puVar2" * identifier) = (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ]))) | (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_48)" ( (binary_expression "puVar2 != local_48" identifier != identifier) )) ;) (expression_statement "FUN_0015d671(param_1,local_88);" (call_expression "FUN_0015d671(param_1,local_88)" identifier (argument_list "(param_1,local_88)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;)) }))) (expression_statement "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" identifier (argument_list "((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" ( (cast_expression "(void *)(param_1 + 0x20)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))) , identifier , (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(uint *)(param_1 + 0x60) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x60) = param_3" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void SHA256_Bytes(SHA256_State *s,void *p,int len)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uchar *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint32 wordblock [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = len + s->lenlo;\n  s->lenlo = uVar1;\n  s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len);\n  iVar4 = s->blkused;\n  if (iVar4 == 0) {\n    if (0x3f < len) goto LAB_0015dbb0;\n  }\n  else {\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }\n  memcpy(s->block,p,(long)len);\n  s->blkused = len;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void SHA256_Bytes(SHA256_State *s,void *p,int len)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uchar *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint32 wordblock [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = len + s->lenlo;\n  s->lenlo = uVar1;\n  s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len);\n  iVar4 = s->blkused;\n  if (iVar4 == 0) {\n    if (0x3f < len) goto LAB_0015dbb0;\n  }\n  else {\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }\n  memcpy(s->block,p,(long)len);\n  s->blkused = len;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "SHA256_Bytes(SHA256_State *s,void *p,int len)" identifier (parameter_list "(SHA256_State *s,void *p,int len)" ( (parameter_declaration "SHA256_State *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uchar *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint32 wordblock [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = len + s->lenlo;\n  s->lenlo = uVar1;\n  s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len);\n  iVar4 = s->blkused;\n  if (iVar4 == 0) {\n    if (0x3f < len) goto LAB_0015dbb0;\n  }\n  else {\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }\n  memcpy(s->block,p,(long)len);\n  s->blkused = len;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint32 wordblock [16];" type_identifier (array_declarator "wordblock [16]" identifier [ number_literal ]) ;) (declaration "uint local_48 [2];" type_identifier (array_declarator "local_48 [2]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = len + s->lenlo;" (assignment_expression "uVar1 = len + s->lenlo" identifier = (binary_expression "len + s->lenlo" identifier + (field_expression "s->lenlo" identifier -> field_identifier))) ;) (expression_statement "s->lenlo = uVar1;" (assignment_expression "s->lenlo = uVar1" (field_expression "s->lenlo" identifier -> field_identifier) = identifier) ;) (expression_statement "s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len);" (assignment_expression "s->lenhi = s->lenhi + (uint)(uVar1 < (uint)len)" (field_expression "s->lenhi" identifier -> field_identifier) = (binary_expression "s->lenhi + (uint)(uVar1 < (uint)len)" (field_expression "s->lenhi" identifier -> field_identifier) + (call_expression "(uint)(uVar1 < (uint)len)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < (uint)len)" ( (binary_expression "uVar1 < (uint)len" identifier < (cast_expression "(uint)len" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "iVar4 = s->blkused;" (assignment_expression "iVar4 = s->blkused" identifier = (field_expression "s->blkused" identifier -> field_identifier)) ;) (if_statement "if (iVar4 == 0) {\n    if (0x3f < len) goto LAB_0015dbb0;\n  }\n  else {\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (0x3f < len) goto LAB_0015dbb0;\n  }" { (if_statement "if (0x3f < len) goto LAB_0015dbb0;" if (parenthesized_expression "(0x3f < len)" ( (binary_expression "0x3f < len" number_literal < identifier) )) (goto_statement "goto LAB_0015dbb0;" goto statement_identifier ;)) }) (else_clause "else {\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }" else (compound_statement "{\n    if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);\n  }" { (if_statement "if (iVar4 + len < 0x40) {\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }" if (parenthesized_expression "(iVar4 + len < 0x40)" ( (binary_expression "iVar4 + len < 0x40" (binary_expression "iVar4 + len" identifier + identifier) < number_literal) )) (compound_statement "{\n      memcpy(s->block + iVar4,p,(long)len);\n      s->blkused = s->blkused + len;\n      goto LAB_0015dc42;\n    }" { (expression_statement "memcpy(s->block + iVar4,p,(long)len);" (call_expression "memcpy(s->block + iVar4,p,(long)len)" identifier (argument_list "(s->block + iVar4,p,(long)len)" ( (binary_expression "s->block + iVar4" (field_expression "s->block" identifier -> field_identifier) + identifier) , identifier , (cast_expression "(long)len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "s->blkused = s->blkused + len;" (assignment_expression "s->blkused = s->blkused + len" (field_expression "s->blkused" identifier -> field_identifier) = (binary_expression "s->blkused + len" (field_expression "s->blkused" identifier -> field_identifier) + identifier)) ;) (goto_statement "goto LAB_0015dc42;" goto statement_identifier ;) })) (labeled_statement "LAB_0015dbb0:\n    do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);" statement_identifier : (do_statement "do {\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    } while (0x3f < len);" do (compound_statement "{\n      puVar3 = s->block;\n      memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - s->blkused;\n      p = (void *)((long)p + (long)iVar4);\n      len = len - iVar4;\n      puVar2 = wordblock;\n      do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      SHA256_Block(s,wordblock);\n      s->blkused = 0;\n      iVar4 = 0;\n    }" { (expression_statement "puVar3 = s->block;" (assignment_expression "puVar3 = s->block" identifier = (field_expression "s->block" identifier -> field_identifier)) ;) (expression_statement "memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4));" (call_expression "memcpy(puVar3 + iVar4,p,(long)(0x40 - iVar4))" identifier (argument_list "(puVar3 + iVar4,p,(long)(0x40 - iVar4))" ( (binary_expression "puVar3 + iVar4" identifier + identifier) , identifier , (cast_expression "(long)(0x40 - iVar4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x40 - iVar4)" ( (binary_expression "0x40 - iVar4" number_literal - identifier) ))) ))) ;) (expression_statement "iVar4 = 0x40 - s->blkused;" (assignment_expression "iVar4 = 0x40 - s->blkused" identifier = (binary_expression "0x40 - s->blkused" number_literal - (field_expression "s->blkused" identifier -> field_identifier))) ;) (expression_statement "p = (void *)((long)p + (long)iVar4);" (assignment_expression "p = (void *)((long)p + (long)iVar4)" identifier = (cast_expression "(void *)((long)p + (long)iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)p + (long)iVar4)" ( (binary_expression "(long)p + (long)iVar4" (cast_expression "(long)p" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "len = len - iVar4;" (assignment_expression "len = len - iVar4" identifier = (binary_expression "len - iVar4" identifier - identifier)) ;) (expression_statement "puVar2 = wordblock;" (assignment_expression "puVar2 = wordblock" identifier = identifier) ;) (do_statement "do {\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);" do (compound_statement "{\n        *puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;\n        puVar3 = puVar3 + 4;\n        puVar2 = puVar2 + 1;\n      }" { (expression_statement "*puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8;" (assignment_expression "*puVar2 = (uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8" (pointer_expression "*puVar2" * identifier) = (binary_expression "(uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3] |\n                  (uint)puVar3[2] << 8" (binary_expression "(uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10 | (uint)puVar3[3]" (binary_expression "(uint)*puVar3 << 0x18 | (uint)puVar3[1] << 0x10" (binary_expression "(uint)*puVar3 << 0x18" (binary_expression "(uint)*puVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)puVar3[1] << 0x10" (cast_expression "(uint)puVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)puVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[3]" identifier [ number_literal ]))) | (binary_expression "(uint)puVar3[2] << 8" (cast_expression "(uint)puVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar3[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "puVar3 = puVar3 + 4;" (assignment_expression "puVar3 = puVar3 + 4" identifier = (binary_expression "puVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_48)" ( (binary_expression "puVar2 != local_48" identifier != identifier) )) ;) (expression_statement "SHA256_Block(s,wordblock);" (call_expression "SHA256_Block(s,wordblock)" identifier (argument_list "(s,wordblock)" ( identifier , identifier ))) ;) (expression_statement "s->blkused = 0;" (assignment_expression "s->blkused = 0" (field_expression "s->blkused" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(0x3f < len)" ( (binary_expression "0x3f < len" number_literal < identifier) )) ;)) }))) (expression_statement "memcpy(s->block,p,(long)len);" (call_expression "memcpy(s->block,p,(long)len)" identifier (argument_list "(s->block,p,(long)len)" ( (field_expression "s->block" identifier -> field_identifier) , identifier , (cast_expression "(long)len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "s->blkused = len;" (assignment_expression "s->blkused = len" (field_expression "s->blkused" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0015db65(long param_1,void *param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0015db65(long param_1,void *param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0015db65(long param_1,void *param_2,uint param_3)" identifier (parameter_list "(long param_1,void *param_2,uint param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uint local_88 [16];" type_identifier (array_declarator "local_88 [16]" identifier [ number_literal ]) ;) (declaration "uint local_48 [2];" type_identifier (array_declarator "local_48 [2]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = param_3 + *(int *)(param_1 + 0x68);" (assignment_expression "uVar1 = param_3 + *(int *)(param_1 + 0x68)" identifier = (binary_expression "param_3 + *(int *)(param_1 + 0x68)" identifier + (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))))) ;) (expression_statement "*(uint *)(param_1 + 0x68) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + (call_expression "(uint)(uVar1 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar1 < param_3)" ( (binary_expression "uVar1 < param_3" identifier < identifier) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }" { (if_statement "if (0x3f < (int)param_3) goto LAB_0015dbb0;" if (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0015dbb0;" goto statement_identifier ;)) }) (else_clause "else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" else (compound_statement "{\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" { (if_statement "if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" if (parenthesized_expression "((int)(iVar4 + param_3) < 0x40)" ( (binary_expression "(int)(iVar4 + param_3) < 0x40" (cast_expression "(int)(iVar4 + param_3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(iVar4 + param_3)" ( (binary_expression "iVar4 + param_3" identifier + identifier) ))) < number_literal) )) (compound_statement "{\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" { (expression_statement "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" identifier (argument_list "((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" ( (cast_expression "(void *)(param_1 + 0x20 + (long)iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20 + (long)iVar4)" ( (binary_expression "param_1 + 0x20 + (long)iVar4" (binary_expression "param_1 + 0x20" identifier + number_literal) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , identifier , (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier)) ;) (goto_statement "goto LAB_0015dc42;" goto statement_identifier ;) })) (labeled_statement "LAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" statement_identifier : (do_statement "do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" do (compound_statement "{\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    }" { (expression_statement "pbVar3 = (byte *)(param_1 + 0x20);" (assignment_expression "pbVar3 = (byte *)(param_1 + 0x20)" identifier = (cast_expression "(byte *)(param_1 + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) ;) (expression_statement "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));" (call_expression "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" identifier (argument_list "(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" ( (binary_expression "pbVar3 + iVar4" identifier + identifier) , identifier , (cast_expression "(long)(0x40 - iVar4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(0x40 - iVar4)" ( (binary_expression "0x40 - iVar4" number_literal - identifier) ))) ))) ;) (expression_statement "iVar4 = 0x40 - *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = 0x40 - *(int *)(param_1 + 0x60)" identifier = (binary_expression "0x40 - *(int *)(param_1 + 0x60)" number_literal - (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))))) ;) (expression_statement "param_2 = (void *)((long)param_2 + (long)iVar4);" (assignment_expression "param_2 = (void *)((long)param_2 + (long)iVar4)" identifier = (cast_expression "(void *)((long)param_2 + (long)iVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + (long)iVar4)" ( (binary_expression "(long)param_2 + (long)iVar4" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "param_3 = param_3 - iVar4;" (assignment_expression "param_3 = param_3 - iVar4" identifier = (binary_expression "param_3 - iVar4" identifier - identifier)) ;) (expression_statement "puVar2 = local_88;" (assignment_expression "puVar2 = local_88" identifier = identifier) ;) (do_statement "do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);" do (compound_statement "{\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      }" { (expression_statement "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;" (assignment_expression "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (pointer_expression "*puVar2" * identifier) = (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ]))) | (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_48)" ( (binary_expression "puVar2 != local_48" identifier != identifier) )) ;) (expression_statement "FUN_0015d671(param_1,local_88);" (call_expression "FUN_0015d671(param_1,local_88)" identifier (argument_list "(param_1,local_88)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" * (cast_expression "(undefined4 *)(param_1 + 0x60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;)) }))) (expression_statement "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" identifier (argument_list "((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" ( (cast_expression "(void *)(param_1 + 0x20)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))) , identifier , (cast_expression "(long)(int)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) (expression_statement "*(uint *)(param_1 + 0x60) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x60) = param_3" (pointer_expression "*(uint *)(param_1 + 0x60)" * (cast_expression "(uint *)(param_1 + 0x60)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\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                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression LIT - IDENT) ))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;)) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0015db65(long param_1,void *param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0015db65(long param_1,void *param_2,uint param_3)" (identifier "FUN_0015db65") (parameter_list "(long param_1,void *param_2,uint param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  byte *pbVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  uint local_88 [16];\n  uint local_48 [2];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar1 = param_3 + *(int *)(param_1 + 0x68);\n  *(uint *)(param_1 + 0x68) = uVar1;\n  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);\n  iVar4 = *(int *)(param_1 + 0x60);\n  if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }\n  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);\n  *(uint *)(param_1 + 0x60) = param_3;\nLAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "uint local_88 [16];" (type_identifier "uint") (array_declarator "local_88 [16]" (identifier "local_88") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "uint local_48 [2];" (type_identifier "uint") (array_declarator "local_48 [2]" (identifier "local_48") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar1 = param_3 + *(int *)(param_1 + 0x68);" (assignment_expression "uVar1 = param_3 + *(int *)(param_1 + 0x68)" (identifier "uVar1") (= "=") (binary_expression "param_3 + *(int *)(param_1 + 0x68)" (identifier "param_3") (+ "+") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x68) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 100) + (uint)(uVar1 < param_3)" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (+ "+") (call_expression "(uint)(uVar1 < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar1 < param_3)" (( "(") (binary_expression "uVar1 < param_3" (identifier "uVar1") (< "<") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x60)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }\n  else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (0x3f < (int)param_3) goto LAB_0015dbb0;\n  }" ({ "{") (if_statement "if (0x3f < (int)param_3) goto LAB_0015dbb0;" (if "if") (parenthesized_expression "(0x3f < (int)param_3)" (( "(") (binary_expression "0x3f < (int)param_3" (number_literal "0x3f") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (goto_statement "goto LAB_0015dbb0;" (goto "goto") (statement_identifier "LAB_0015dbb0") (; ";"))) (} "}")) (else_clause "else {\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" (else "else") (compound_statement "{\n    if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }\nLAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);\n  }" ({ "{") (if_statement "if ((int)(iVar4 + param_3) < 0x40) {\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" (if "if") (parenthesized_expression "((int)(iVar4 + param_3) < 0x40)" (( "(") (binary_expression "(int)(iVar4 + param_3) < 0x40" (cast_expression "(int)(iVar4 + param_3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(iVar4 + param_3)" (( "(") (binary_expression "iVar4 + param_3" (identifier "iVar4") (+ "+") (identifier "param_3")) () ")"))) (< "<") (number_literal "0x40")) () ")")) (compound_statement "{\n      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);\n      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;\n      goto LAB_0015dc42;\n    }" ({ "{") (expression_statement "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" (identifier "memcpy") (argument_list "((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3)" (( "(") (cast_expression "(void *)(param_1 + 0x20 + (long)iVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20 + (long)iVar4)" (( "(") (binary_expression "param_1 + 0x20 + (long)iVar4" (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) (+ "+") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4"))) () ")"))) (, ",") (identifier "param_2") (, ",") (cast_expression "(long)(int)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;" (assignment_expression "*(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 0x60) + param_3" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (identifier "param_3"))) (; ";")) (goto_statement "goto LAB_0015dc42;" (goto "goto") (statement_identifier "LAB_0015dc42") (; ";")) (} "}"))) (labeled_statement "LAB_0015dbb0:\n    do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" (statement_identifier "LAB_0015dbb0") (: ":") (do_statement "do {\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    } while (0x3f < (int)param_3);" (do "do") (compound_statement "{\n      pbVar3 = (byte *)(param_1 + 0x20);\n      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));\n      iVar4 = 0x40 - *(int *)(param_1 + 0x60);\n      param_2 = (void *)((long)param_2 + (long)iVar4);\n      param_3 = param_3 - iVar4;\n      puVar2 = local_88;\n      do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);\n      FUN_0015d671(param_1,local_88);\n      *(undefined4 *)(param_1 + 0x60) = 0;\n      iVar4 = 0;\n    }" ({ "{") (expression_statement "pbVar3 = (byte *)(param_1 + 0x20);" (assignment_expression "pbVar3 = (byte *)(param_1 + 0x20)" (identifier "pbVar3") (= "=") (cast_expression "(byte *)(param_1 + 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));" (call_expression "memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" (identifier "memcpy") (argument_list "(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4))" (( "(") (binary_expression "pbVar3 + iVar4" (identifier "pbVar3") (+ "+") (identifier "iVar4")) (, ",") (identifier "param_2") (, ",") (cast_expression "(long)(0x40 - iVar4)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(0x40 - iVar4)" (( "(") (binary_expression "0x40 - iVar4" (number_literal "0x40") (- "-") (identifier "iVar4")) () ")"))) () ")"))) (; ";")) (expression_statement "iVar4 = 0x40 - *(int *)(param_1 + 0x60);" (assignment_expression "iVar4 = 0x40 - *(int *)(param_1 + 0x60)" (identifier "iVar4") (= "=") (binary_expression "0x40 - *(int *)(param_1 + 0x60)" (number_literal "0x40") (- "-") (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))))) (; ";")) (expression_statement "param_2 = (void *)((long)param_2 + (long)iVar4);" (assignment_expression "param_2 = (void *)((long)param_2 + (long)iVar4)" (identifier "param_2") (= "=") (cast_expression "(void *)((long)param_2 + (long)iVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + (long)iVar4)" (( "(") (binary_expression "(long)param_2 + (long)iVar4" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4"))) () ")")))) (; ";")) (expression_statement "param_3 = param_3 - iVar4;" (assignment_expression "param_3 = param_3 - iVar4" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar4" (identifier "param_3") (- "-") (identifier "iVar4"))) (; ";")) (expression_statement "puVar2 = local_88;" (assignment_expression "puVar2 = local_88" (identifier "puVar2") (= "=") (identifier "local_88")) (; ";")) (do_statement "do {\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      } while (puVar2 != local_48);" (do "do") (compound_statement "{\n        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;\n        pbVar3 = pbVar3 + 4;\n        puVar2 = puVar2 + 1;\n      }" ({ "{") (expression_statement "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8;" (assignment_expression "*puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                  (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")) (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (cast_expression "(uint)pbVar3[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[3]" (identifier "pbVar3") ([ "[") (number_literal "3") (] "]")))) (| "|") (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != local_48)" (( "(") (binary_expression "puVar2 != local_48" (identifier "puVar2") (!= "!=") (identifier "local_48")) () ")")) (; ";")) (expression_statement "FUN_0015d671(param_1,local_88);" (call_expression "FUN_0015d671(param_1,local_88)" (identifier "FUN_0015d671") (argument_list "(param_1,local_88)" (( "(") (identifier "param_1") (, ",") (identifier "local_88") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x60) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x60) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x60)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0x3f < (int)param_3)" (( "(") (binary_expression "0x3f < (int)param_3" (number_literal "0x3f") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (; ";"))) (} "}")))) (expression_statement "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);" (call_expression "memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" (identifier "memcpy") (argument_list "((void *)(param_1 + 0x20),param_2,(long)(int)param_3)" (( "(") (cast_expression "(void *)(param_1 + 0x20)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))) (, ",") (identifier "param_2") (, ",") (cast_expression "(long)(int)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x60) = param_3;" (assignment_expression "*(uint *)(param_1 + 0x60) = param_3" (pointer_expression "*(uint *)(param_1 + 0x60)" (* "*") (cast_expression "(uint *)(param_1 + 0x60)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_0015dc42:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_0015dc42") (: ":") (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\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                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *s,void *p,int var_2)

{
  type_2 var_3;
  type_2 *var_7;
  type_3 *var_6;
  int var_4;
  long var_1;
  type_4 wordblock [16];
  type_2 var_8 [2];
  long var_10;
  
  var_10 = *(long *)(var_1 + 0x28);
  var_3 = var_2 + s->lenlo;
  s->lenlo = var_3;
  s->lenhi = s->lenhi + (type_2)(var_3 < (type_2)var_2);
  var_4 = s->blkused;
  if (var_4 == 0) {
    if (0x3f < var_2) goto LAB_0015dbb0;
  }
  else {
    if (var_4 + var_2 < 0x40) {
      var_5(s->block + var_4,p,(long)var_2);
      s->blkused = s->blkused + var_2;
      goto LAB_0015dc42;
    }
LAB_0015dbb0:
    do {
      var_6 = s->block;
      var_5(var_6 + var_4,p,(long)(0x40 - var_4));
      var_4 = 0x40 - s->blkused;
      p = (void *)((long)p + (long)var_4);
      var_2 = var_2 - var_4;
      var_7 = wordblock;
      do {
        *var_7 = (type_2)*var_6 << 0x18 | (type_2)var_6[1] << 0x10 | (type_2)var_6[3] |
                  (type_2)var_6[2] << 8;
        var_6 = var_6 + 4;
        var_7 = var_7 + 1;
      } while (var_7 != var_8);
      var_9(s,wordblock);
      s->blkused = 0;
      var_4 = 0;
    } while (0x3f < var_2);
  }
  var_5(s->block,p,(long)var_2);
  s->blkused = var_2;
LAB_0015dc42:
  if (var_10 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  return;
}


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

void MASKED(long param_1,void *param_2,uint param_3)

{
  uint uVar1;
  uint *puVar2;
  byte *pbVar3;
  int iVar4;
  long in_FS_OFFSET;
  uint local_88 [16];
  uint local_48 [2];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar1 = param_3 + *(int *)(param_1 + 0x68);
  *(uint *)(param_1 + 0x68) = uVar1;
  *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + (uint)(uVar1 < param_3);
  iVar4 = *(int *)(param_1 + 0x60);
  if (iVar4 == 0) {
    if (0x3f < (int)param_3) goto LAB_0015dbb0;
  }
  else {
    if ((int)(iVar4 + param_3) < 0x40) {
      memcpy((void *)(param_1 + 0x20 + (long)iVar4),param_2,(long)(int)param_3);
      *(int *)(param_1 + 0x60) = *(int *)(param_1 + 0x60) + param_3;
      goto LAB_0015dc42;
    }
LAB_0015dbb0:
    do {
      pbVar3 = (byte *)(param_1 + 0x20);
      memcpy(pbVar3 + iVar4,param_2,(long)(0x40 - iVar4));
      iVar4 = 0x40 - *(int *)(param_1 + 0x60);
      param_2 = (void *)((long)param_2 + (long)iVar4);
      param_3 = param_3 - iVar4;
      puVar2 = local_88;
      do {
        *puVar2 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |
                  (uint)pbVar3[2] << 8;
        pbVar3 = pbVar3 + 4;
        puVar2 = puVar2 + 1;
      } while (puVar2 != local_48);
      FUN_0015d671(param_1,local_88);
      *(undefined4 *)(param_1 + 0x60) = 0;
      iVar4 = 0;
    } while (0x3f < (int)param_3);
  }
  memcpy((void *)(param_1 + 0x20),param_2,(long)(int)param_3);
  *(uint *)(param_1 + 0x60) = param_3;
LAB_0015dc42:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

