
int ocb3_decrypt(ocb3_state *ocb,uchar *ct,ulong ctlen,uchar *pt)

{
  uchar *out;
  uint uVar1;
  long lVar2;
  int iVar3;
  int iVar4;
  ulong block_len;
  int iVar5;
  ulong x;
  int iVar7;
  long in_FS_OFFSET;
  uchar tmp [128];
  ulong uVar6;
  
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  if (ocb == (ocb3_state *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);
  }
  if (ctlen != 0) {
    if (ct == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);
    }
    if (pt == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);
    }
    iVar3 = cipher_is_valid(ocb->cipher);
    if (iVar3 != 0) goto LAB_0013dba0;
    iVar3 = 0x10;
    uVar1 = ocb->block_len;
    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))
    goto LAB_0013dba0;
    block_len = (ulong)(int)uVar1;
    if (ctlen % block_len != 0) goto LAB_0013dba0;
    iVar4 = (int)(ctlen / block_len);
    if (0 < iVar4) {
      iVar7 = 0;
      x = ocb->block_index;
      out = ocb->Offset_current;
      uVar6 = (ulong)uVar1;
      while( true ) {
        iVar5 = (int)uVar6 * iVar7;
        iVar3 = ocb3_int_ntz(x);
        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);
        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);
        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))
                          (tmp,tmp,&ocb->key);
        if (iVar3 != 0) break;
        iVar7 = iVar7 + 1;
        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);
        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);
        x = ocb->block_index + 1;
        ocb->block_index = x;
        if (iVar4 == iVar7) goto LAB_0013dbd0;
        block_len = (ulong)ocb->block_len;
        uVar6 = block_len;
      }
      goto LAB_0013dba0;
    }
  }
LAB_0013dbd0:
  iVar3 = 0;
LAB_0013dba0:
  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar3;
}



int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)

{
  long lVar1;
  long lVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  ulong uVar6;
  ulong uVar7;
  long lVar8;
  long lVar9;
  int iVar10;
  long in_FS_OFFSET;
  undefined1 local_c8 [136];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);
  }
  if (param_3 != 0) {
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);
    }
    if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);
    }
    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));
    if (iVar4 != 0) goto LAB_0013dba0;
    iVar4 = 0x10;
    uVar3 = *(uint *)(param_1 + 0x2540);
    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +
                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;
    uVar6 = (ulong)(int)uVar3;
    if (param_3 % uVar6 != 0) goto LAB_0013dba0;
    iVar5 = (int)(param_3 / uVar6);
    if (0 < iVar5) {
      iVar10 = 0;
      lVar9 = *(long *)(param_1 + 0x2530);
      lVar1 = param_1 + 0x80;
      uVar7 = (ulong)uVar3;
      while( true ) {
        lVar8 = (long)((int)uVar7 * iVar10);
        lVar2 = param_4 + lVar8;
        iVar4 = ocb3_int_ntz(lVar9);
        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);
        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));
        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +
                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))
                          (local_c8,local_c8,param_1 + 0x1490);
        if (iVar4 != 0) break;
        iVar10 = iVar10 + 1;
        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));
        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)
                           );
        lVar9 = *(long *)(param_1 + 0x2530) + 1;
        *(long *)(param_1 + 0x2530) = lVar9;
        if (iVar5 == iVar10) goto LAB_0013dbd0;
        uVar6 = (ulong)*(int *)(param_1 + 0x2540);
        uVar7 = uVar6;
      }
      goto LAB_0013dba0;
    }
  }
LAB_0013dbd0:
  iVar4 = 0;
LAB_0013dba0:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar4;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0xc8
MOV qword ptr [RSP + 0x8],RSI
MOV qword ptr [RSP + 0x10],RCX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0xb8],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0013dbda
MOV R12,RDX
TEST RDX,RDX
JZ 0x0013dbd0
CMP qword ptr [RSP + 0x8],0x0
JZ 0x0013dc0a
CMP qword ptr [RSP + 0x10],0x0
JZ 0x0013dbf2
MOV RBP,RDI
MOV EDI,dword ptr [RDI + 0x2538]
CALL 0x00113da0
MOV R13D,EAX
TEST EAX,EAX
JNZ 0x0013dba0
MOVSXD RAX,dword ptr [RBP + 0x2538]
MOV RDI,qword ptr [0x001dded0]
MOV R13D,0x10
MOV EBX,dword ptr [RBP + 0x2540]
LEA RDX,[RAX + RAX*0x2]
SHL RDX,0x6
CMP EBX,dword ptr [RDI + RDX*0x1 + 0x14]
JNZ 0x0013dba0
MOVSXD RCX,EBX
MOV RAX,R12
XOR EDX,EDX
DIV RCX
TEST RDX,RDX
JNZ 0x0013dba0
MOV dword ptr [RSP + 0x24],EAX
TEST EAX,EAX
JLE 0x0013dbd0
LEA RSI,[RBP + 0x1490]
XOR R14D,R14D
LEA R12,[RSP + 0x30]
MOV RDI,qword ptr [RBP + 0x2530]
LEA R8,[RBP + 0x1280]
LEA R13,[RBP + 0x80]
MOV qword ptr [RSP + 0x18],RSI
MOV qword ptr [RSP + 0x28],R8
JMP 0x0013db17
MOVSXD RCX,dword ptr [RBP + 0x2540]
MOV RDX,R13
MOV RSI,R12
MOV RDI,R15
ADD R14D,0x1
CALL 0x00113ae0
MOV RDI,qword ptr [RSP + 0x28]
MOVSXD RCX,dword ptr [RBP + 0x2540]
MOV RDX,R15
MOV RSI,RDI
CALL 0x00113ae0
MOV R11,qword ptr [RBP + 0x2530]
LEA RDI,[R11 + 0x1]
MOV qword ptr [RBP + 0x2530],RDI
CMP dword ptr [RSP + 0x24],R14D
JZ 0x0013dbd0
MOVSXD RCX,dword ptr [RBP + 0x2540]
MOV RBX,RCX
IMUL EBX,R14D
MOV qword ptr [RSP],RCX
MOV RCX,qword ptr [RSP + 0x10]
MOVSXD RBX,EBX
LEA R15,[RCX + RBX*0x1]
ADD RBX,qword ptr [RSP + 0x8]
CALL 0x001139b0
MOV RCX,qword ptr [RSP]
MOV RSI,R13
MOV RDI,R13
MOVSXD RDX,EAX
ADD RDX,0x4
SHL RDX,0x7
ADD RDX,RBP
CALL 0x00113ae0
MOV RDX,R13
MOV RSI,RBX
MOV RDI,R12
MOVSXD RCX,dword ptr [RBP + 0x2540]
CALL 0x00113ae0
MOV RDX,qword ptr [RSP + 0x18]
MOV RSI,R12
MOV RDI,R12
MOVSXD R9,dword ptr [RBP + 0x2538]
MOV R10,qword ptr [0x001dded0]
LEA RAX,[R9 + R9*0x2]
SHL RAX,0x6
CALL qword ptr [R10 + RAX*0x1 + 0x30]
TEST EAX,EAX
JZ 0x0013dac0
MOV R13D,EAX
NOP dword ptr [RAX + RAX*0x1]
MOV RSI,qword ptr [RSP + 0xb8]
XOR RSI,qword ptr FS:[0x28]
MOV EAX,R13D
JNZ 0x0013dbd5
ADD RSP,0xc8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
XOR R13D,R13D
JMP 0x0013dba0
CALL 0x00113880
MOV EDX,0x20
LEA RSI,[0x1ae2e0]
LEA RDI,[0x1adc4e]
CALL 0x00114270
MOV EDX,0x23
LEA RSI,[0x1ae2e0]
LEA RDI,[0x18d016]
CALL 0x00114270
MOV EDX,0x22
LEA RSI,[0x1ae2e0]
LEA RDI,[0x18d021]
CALL 0x00114270
(translation_unit "int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}\n\n" (function_definition "int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}" primitive_type (function_declarator "ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)" identifier (parameter_list "(long param_1,long param_2,ulong param_3,long param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar4;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_c8 [136];" type_identifier (array_declarator "local_c8 [136]" 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) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);" (call_expression "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" identifier (argument_list "("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" ( (string_literal ""ocb != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != 0) {\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" { comment (expression_statement "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);" (call_expression "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" identifier (argument_list "("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == 0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" { comment (expression_statement "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);" (call_expression "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" identifier (argument_list "("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));" (assignment_expression "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" identifier = (call_expression "cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2538))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2538)" * (cast_expression "(undefined4 *)(param_1 + 0x2538)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_0013dba0;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2540);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2540)" identifier = (pointer_expression "*(uint *)(param_1 + 0x2540)" * (cast_expression "(uint *)(param_1 + 0x2540)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;" if (parenthesized_expression "(uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14))" ( (binary_expression "uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" identifier != (pointer_expression "*(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" * (cast_expression "(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2538)" * (cast_expression "(int *)(param_1 + 0x2538)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "uVar6 = (ulong)(int)uVar3;" (assignment_expression "uVar6 = (ulong)(int)uVar3" identifier = (cast_expression "(ulong)(int)uVar3" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_3 % uVar6 != 0) goto LAB_0013dba0;" if (parenthesized_expression "(param_3 % uVar6 != 0)" ( (binary_expression "param_3 % uVar6 != 0" (binary_expression "param_3 % uVar6" identifier % identifier) != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar5 = (int)(param_3 / uVar6);" (assignment_expression "iVar5 = (int)(param_3 / uVar6)" identifier = (cast_expression "(int)(param_3 / uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 / uVar6)" ( (binary_expression "param_3 / uVar6" identifier / identifier) )))) ;) (if_statement "if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530);" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530)" identifier = (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = param_1 + 0x80;" (assignment_expression "lVar1 = param_1 + 0x80" identifier = (binary_expression "param_1 + 0x80" identifier + number_literal)) ;) (expression_statement "uVar7 = (ulong)uVar3;" (assignment_expression "uVar7 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (while_statement "while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" { (expression_statement "lVar8 = (long)((int)uVar7 * iVar10);" (assignment_expression "lVar8 = (long)((int)uVar7 * iVar10)" identifier = (cast_expression "(long)((int)uVar7 * iVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((int)uVar7 * iVar10)" ( (binary_expression "(int)uVar7 * iVar10" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) * identifier) )))) ;) (expression_statement "lVar2 = param_4 + lVar8;" (assignment_expression "lVar2 = param_4 + lVar8" identifier = (binary_expression "param_4 + lVar8" identifier + identifier)) ;) (expression_statement "iVar4 = ocb3_int_ntz(lVar9);" (assignment_expression "iVar4 = ocb3_int_ntz(lVar9)" identifier = (call_expression "ocb3_int_ntz(lVar9)" identifier (argument_list "(lVar9)" ( identifier )))) ;) (expression_statement "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);" (call_expression "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" identifier (argument_list "(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" ( identifier , identifier , (binary_expression "((long)iVar4 + 4) * 0x80 + param_1" (binary_expression "((long)iVar4 + 4) * 0x80" (parenthesized_expression "((long)iVar4 + 4)" ( (binary_expression "(long)iVar4 + 4" (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) * number_literal) + identifier) , identifier ))) ;) (expression_statement "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" identifier (argument_list "(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" ( identifier , (binary_expression "lVar8 + param_2" identifier + identifier) , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);" (assignment_expression "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2538)" * (cast_expression "(int *)(param_1 + 0x2538)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (argument_list "(local_c8,local_c8,param_1 + 0x1490)" ( identifier , identifier , (binary_expression "param_1 + 0x1490" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) break;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" identifier (argument_list "(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" ( identifier , identifier , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );" (call_expression "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" identifier (argument_list "(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" ( (binary_expression "param_1 + 0x1280" identifier + number_literal) , (binary_expression "param_1 + 0x1280" identifier + number_literal) , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530) + 1;" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530) + 1" identifier = (binary_expression "*(long *)(param_1 + 0x2530) + 1" (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(param_1 + 0x2530) = lVar9;" (assignment_expression "*(long *)(param_1 + 0x2530) = lVar9" (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar5 == iVar10) goto LAB_0013dbd0;" if (parenthesized_expression "(iVar5 == iVar10)" ( (binary_expression "iVar5 == iVar10" identifier == identifier) )) (goto_statement "goto LAB_0013dbd0;" goto statement_identifier ;)) (expression_statement "uVar6 = (ulong)*(int *)(param_1 + 0x2540);" (assignment_expression "uVar6 = (ulong)*(int *)(param_1 + 0x2540)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x2540)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) })) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;) })) })) (labeled_statement "LAB_0013dbd0:\n  iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0013dba0:\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 iVar4;" return identifier ;) })))
(translation_unit "int ocb3_decrypt(ocb3_state *ocb,uchar *ct,ulong ctlen,uchar *pt)\n\n{\n  uchar *out;\n  uint uVar1;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  ulong block_len;\n  int iVar5;\n  ulong x;\n  int iVar7;\n  long in_FS_OFFSET;\n  uchar tmp [128];\n  ulong uVar6;\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (ocb == (ocb3_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (ctlen != 0) {\n    if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar3 = cipher_is_valid(ocb->cipher);\n    if (iVar3 != 0) goto LAB_0013dba0;\n    iVar3 = 0x10;\n    uVar1 = ocb->block_len;\n    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;\n    block_len = (ulong)(int)uVar1;\n    if (ctlen % block_len != 0) goto LAB_0013dba0;\n    iVar4 = (int)(ctlen / block_len);\n    if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar3 = 0;\nLAB_0013dba0:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}\n\n" (function_definition "int ocb3_decrypt(ocb3_state *ocb,uchar *ct,ulong ctlen,uchar *pt)\n\n{\n  uchar *out;\n  uint uVar1;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  ulong block_len;\n  int iVar5;\n  ulong x;\n  int iVar7;\n  long in_FS_OFFSET;\n  uchar tmp [128];\n  ulong uVar6;\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (ocb == (ocb3_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (ctlen != 0) {\n    if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar3 = cipher_is_valid(ocb->cipher);\n    if (iVar3 != 0) goto LAB_0013dba0;\n    iVar3 = 0x10;\n    uVar1 = ocb->block_len;\n    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;\n    block_len = (ulong)(int)uVar1;\n    if (ctlen % block_len != 0) goto LAB_0013dba0;\n    iVar4 = (int)(ctlen / block_len);\n    if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar3 = 0;\nLAB_0013dba0:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "ocb3_decrypt(ocb3_state *ocb,uchar *ct,ulong ctlen,uchar *pt)" identifier (parameter_list "(ocb3_state *ocb,uchar *ct,ulong ctlen,uchar *pt)" ( (parameter_declaration "ocb3_state *ocb" type_identifier (pointer_declarator "*ocb" * identifier)) , (parameter_declaration "uchar *ct" type_identifier (pointer_declarator "*ct" * identifier)) , (parameter_declaration "ulong ctlen" type_identifier identifier) , (parameter_declaration "uchar *pt" type_identifier (pointer_declarator "*pt" * identifier)) ))) (compound_statement "{\n  uchar *out;\n  uint uVar1;\n  long lVar2;\n  int iVar3;\n  int iVar4;\n  ulong block_len;\n  int iVar5;\n  ulong x;\n  int iVar7;\n  long in_FS_OFFSET;\n  uchar tmp [128];\n  ulong uVar6;\n  \n  lVar2 = *(long *)(in_FS_OFFSET + 0x28);\n  if (ocb == (ocb3_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (ctlen != 0) {\n    if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar3 = cipher_is_valid(ocb->cipher);\n    if (iVar3 != 0) goto LAB_0013dba0;\n    iVar3 = 0x10;\n    uVar1 = ocb->block_len;\n    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;\n    block_len = (ulong)(int)uVar1;\n    if (ctlen % block_len != 0) goto LAB_0013dba0;\n    iVar4 = (int)(ctlen / block_len);\n    if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar3 = 0;\nLAB_0013dba0:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return iVar3;\n}" { (declaration "uchar *out;" type_identifier (pointer_declarator "*out" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "ulong block_len;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong x;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar tmp [128];" type_identifier (array_declarator "tmp [128]" identifier [ number_literal ]) ;) (declaration "ulong uVar6;" type_identifier identifier ;) (expression_statement "lVar2 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar2 = *(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) ))))) ;) (if_statement "if (ocb == (ocb3_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" if (parenthesized_expression "(ocb == (ocb3_state *)0x0)" ( (binary_expression "ocb == (ocb3_state *)0x0" identifier == (cast_expression "(ocb3_state *)0x0" ( (type_descriptor "ocb3_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);" (call_expression "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" identifier (argument_list "("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" ( (string_literal ""ocb != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (ctlen != 0) {\n    if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar3 = cipher_is_valid(ocb->cipher);\n    if (iVar3 != 0) goto LAB_0013dba0;\n    iVar3 = 0x10;\n    uVar1 = ocb->block_len;\n    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;\n    block_len = (ulong)(int)uVar1;\n    if (ctlen % block_len != 0) goto LAB_0013dba0;\n    iVar4 = (int)(ctlen / block_len);\n    if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }\n  }" if (parenthesized_expression "(ctlen != 0)" ( (binary_expression "ctlen != 0" identifier != number_literal) )) (compound_statement "{\n    if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar3 = cipher_is_valid(ocb->cipher);\n    if (iVar3 != 0) goto LAB_0013dba0;\n    iVar3 = 0x10;\n    uVar1 = ocb->block_len;\n    if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;\n    block_len = (ulong)(int)uVar1;\n    if (ctlen % block_len != 0) goto LAB_0013dba0;\n    iVar4 = (int)(ctlen / block_len);\n    if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }\n  }" { (if_statement "if (ct == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" if (parenthesized_expression "(ct == (uchar *)0x0)" ( (binary_expression "ct == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" { comment (expression_statement "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);" (call_expression "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" identifier (argument_list "("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (pt == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" if (parenthesized_expression "(pt == (uchar *)0x0)" ( (binary_expression "pt == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" { comment (expression_statement "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);" (call_expression "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" identifier (argument_list "("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar3 = cipher_is_valid(ocb->cipher);" (assignment_expression "iVar3 = cipher_is_valid(ocb->cipher)" identifier = (call_expression "cipher_is_valid(ocb->cipher)" identifier (argument_list "(ocb->cipher)" ( (field_expression "ocb->cipher" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0013dba0;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar3 = 0x10;" (assignment_expression "iVar3 = 0x10" identifier = number_literal) ;) (expression_statement "uVar1 = ocb->block_len;" (assignment_expression "uVar1 = ocb->block_len" identifier = (field_expression "ocb->block_len" identifier -> field_identifier)) ;) (if_statement "if (uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))\n    goto LAB_0013dba0;" if (parenthesized_expression "(uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14))" ( (binary_expression "uVar1 != *(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14)" identifier != (pointer_expression "*(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14)" * (cast_expression "(uint *)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0" identifier + (binary_expression "(long)ocb->cipher * 0xc0" (cast_expression "(long)ocb->cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ocb->cipher" identifier -> field_identifier)) * number_literal)) + number_literal) ))))) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "block_len = (ulong)(int)uVar1;" (assignment_expression "block_len = (ulong)(int)uVar1" identifier = (cast_expression "(ulong)(int)uVar1" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (ctlen % block_len != 0) goto LAB_0013dba0;" if (parenthesized_expression "(ctlen % block_len != 0)" ( (binary_expression "ctlen % block_len != 0" (binary_expression "ctlen % block_len" identifier % identifier) != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar4 = (int)(ctlen / block_len);" (assignment_expression "iVar4 = (int)(ctlen / block_len)" identifier = (cast_expression "(int)(ctlen / block_len)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(ctlen / block_len)" ( (binary_expression "ctlen / block_len" identifier / identifier) )))) ;) (if_statement "if (0 < iVar4) {\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      iVar7 = 0;\n      x = ocb->block_index;\n      out = ocb->Offset_current;\n      uVar6 = (ulong)uVar1;\n      while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }\n      goto LAB_0013dba0;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "x = ocb->block_index;" (assignment_expression "x = ocb->block_index" identifier = (field_expression "ocb->block_index" identifier -> field_identifier)) ;) (expression_statement "out = ocb->Offset_current;" (assignment_expression "out = ocb->Offset_current" identifier = (field_expression "ocb->Offset_current" identifier -> field_identifier)) ;) (expression_statement "uVar6 = (ulong)uVar1;" (assignment_expression "uVar6 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (while_statement "while( true ) {\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar5 = (int)uVar6 * iVar7;\n        iVar3 = ocb3_int_ntz(x);\n        ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);\n        ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);\n        iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);\n        if (iVar3 != 0) break;\n        iVar7 = iVar7 + 1;\n        ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);\n        ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);\n        x = ocb->block_index + 1;\n        ocb->block_index = x;\n        if (iVar4 == iVar7) goto LAB_0013dbd0;\n        block_len = (ulong)ocb->block_len;\n        uVar6 = block_len;\n      }" { (expression_statement "iVar5 = (int)uVar6 * iVar7;" (assignment_expression "iVar5 = (int)uVar6 * iVar7" identifier = (binary_expression "(int)uVar6 * iVar7" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) * identifier)) ;) (expression_statement "iVar3 = ocb3_int_ntz(x);" (assignment_expression "iVar3 = ocb3_int_ntz(x)" identifier = (call_expression "ocb3_int_ntz(x)" identifier (argument_list "(x)" ( identifier )))) ;) (expression_statement "ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len);" (call_expression "ocb3_int_xor_blocks(out,out,ocb->L_[iVar3],block_len)" identifier (argument_list "(out,out,ocb->L_[iVar3],block_len)" ( identifier , identifier , (subscript_expression "ocb->L_[iVar3]" (field_expression "ocb->L_" identifier -> field_identifier) [ identifier ]) , identifier ))) ;) (expression_statement "ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len);" (call_expression "ocb3_int_xor_blocks(tmp,ct + iVar5,out,(long)ocb->block_len)" identifier (argument_list "(tmp,ct + iVar5,out,(long)ocb->block_len)" ( identifier , (binary_expression "ct + iVar5" identifier + identifier) , identifier , (cast_expression "(long)ocb->block_len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ocb->block_len" identifier -> field_identifier)) ))) ;) (expression_statement "iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key);" (assignment_expression "iVar3 = (**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))\n                          (tmp,tmp,&ocb->key)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 + (long)ocb->cipher * 0xc0" identifier + (binary_expression "(long)ocb->cipher * 0xc0" (cast_expression "(long)ocb->cipher" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ocb->cipher" identifier -> field_identifier)) * number_literal)) + number_literal) ))))) )) (argument_list "(tmp,tmp,&ocb->key)" ( identifier , identifier , (pointer_expression "&ocb->key" & (field_expression "ocb->key" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar3 != 0) break;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len);" (call_expression "ocb3_int_xor_blocks(pt + iVar5,tmp,out,(long)ocb->block_len)" identifier (argument_list "(pt + iVar5,tmp,out,(long)ocb->block_len)" ( (binary_expression "pt + iVar5" identifier + identifier) , identifier , identifier , (cast_expression "(long)ocb->block_len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ocb->block_len" identifier -> field_identifier)) ))) ;) (expression_statement "ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len);" (call_expression "ocb3_int_xor_blocks(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len)" identifier (argument_list "(ocb->checksum,ocb->checksum,pt + iVar5,(long)ocb->block_len)" ( (field_expression "ocb->checksum" identifier -> field_identifier) , (field_expression "ocb->checksum" identifier -> field_identifier) , (binary_expression "pt + iVar5" identifier + identifier) , (cast_expression "(long)ocb->block_len" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "ocb->block_len" identifier -> field_identifier)) ))) ;) (expression_statement "x = ocb->block_index + 1;" (assignment_expression "x = ocb->block_index + 1" identifier = (binary_expression "ocb->block_index + 1" (field_expression "ocb->block_index" identifier -> field_identifier) + number_literal)) ;) (expression_statement "ocb->block_index = x;" (assignment_expression "ocb->block_index = x" (field_expression "ocb->block_index" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar4 == iVar7) goto LAB_0013dbd0;" if (parenthesized_expression "(iVar4 == iVar7)" ( (binary_expression "iVar4 == iVar7" identifier == identifier) )) (goto_statement "goto LAB_0013dbd0;" goto statement_identifier ;)) (expression_statement "block_len = (ulong)ocb->block_len;" (assignment_expression "block_len = (ulong)ocb->block_len" identifier = (cast_expression "(ulong)ocb->block_len" ( (type_descriptor "ulong" type_identifier) ) (field_expression "ocb->block_len" identifier -> field_identifier))) ;) (expression_statement "uVar6 = block_len;" (assignment_expression "uVar6 = block_len" identifier = identifier) ;) })) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;) })) })) (labeled_statement "LAB_0013dbd0:\n  iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0013dba0:\n  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar2 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar2 != *(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 iVar3;" return identifier ;) })))
(translation_unit "int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar4;\n}\n\n" (function_definition "int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar4;\n}" primitive_type (function_declarator "ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)" identifier (parameter_list "(long param_1,long param_2,ulong param_3,long param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar4;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 local_c8 [136];" type_identifier (array_declarator "local_c8 [136]" 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) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" { (expression_statement "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);" (call_expression "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" identifier (argument_list "("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" ( (string_literal ""ocb != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" { (if_statement "if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" { (expression_statement "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);" (call_expression "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" identifier (argument_list "("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" { (expression_statement "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);" (call_expression "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" identifier (argument_list "("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));" (assignment_expression "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" identifier = (call_expression "cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x2538))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2538)" * (cast_expression "(undefined4 *)(param_1 + 0x2538)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_0013dba0;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2540);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2540)" identifier = (pointer_expression "*(uint *)(param_1 + 0x2540)" * (cast_expression "(uint *)(param_1 + 0x2540)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;" if (parenthesized_expression "(uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14))" ( (binary_expression "uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" identifier != (pointer_expression "*(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" * (cast_expression "(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2538)" * (cast_expression "(int *)(param_1 + 0x2538)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "uVar6 = (ulong)(int)uVar3;" (assignment_expression "uVar6 = (ulong)(int)uVar3" identifier = (cast_expression "(ulong)(int)uVar3" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_3 % uVar6 != 0) goto LAB_0013dba0;" if (parenthesized_expression "(param_3 % uVar6 != 0)" ( (binary_expression "param_3 % uVar6 != 0" (binary_expression "param_3 % uVar6" identifier % identifier) != number_literal) )) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;)) (expression_statement "iVar5 = (int)(param_3 / uVar6);" (assignment_expression "iVar5 = (int)(param_3 / uVar6)" identifier = (cast_expression "(int)(param_3 / uVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 / uVar6)" ( (binary_expression "param_3 / uVar6" identifier / identifier) )))) ;) (if_statement "if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530);" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530)" identifier = (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = param_1 + 0x80;" (assignment_expression "lVar1 = param_1 + 0x80" identifier = (binary_expression "param_1 + 0x80" identifier + number_literal)) ;) (expression_statement "uVar7 = (ulong)uVar3;" (assignment_expression "uVar7 = (ulong)uVar3" identifier = (cast_expression "(ulong)uVar3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (while_statement "while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" { (expression_statement "lVar8 = (long)((int)uVar7 * iVar10);" (assignment_expression "lVar8 = (long)((int)uVar7 * iVar10)" identifier = (cast_expression "(long)((int)uVar7 * iVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((int)uVar7 * iVar10)" ( (binary_expression "(int)uVar7 * iVar10" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) * identifier) )))) ;) (expression_statement "lVar2 = param_4 + lVar8;" (assignment_expression "lVar2 = param_4 + lVar8" identifier = (binary_expression "param_4 + lVar8" identifier + identifier)) ;) (expression_statement "iVar4 = ocb3_int_ntz(lVar9);" (assignment_expression "iVar4 = ocb3_int_ntz(lVar9)" identifier = (call_expression "ocb3_int_ntz(lVar9)" identifier (argument_list "(lVar9)" ( identifier )))) ;) (expression_statement "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);" (call_expression "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" identifier (argument_list "(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" ( identifier , identifier , (binary_expression "((long)iVar4 + 4) * 0x80 + param_1" (binary_expression "((long)iVar4 + 4) * 0x80" (parenthesized_expression "((long)iVar4 + 4)" ( (binary_expression "(long)iVar4 + 4" (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )) * number_literal) + identifier) , identifier ))) ;) (expression_statement "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" identifier (argument_list "(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" ( identifier , (binary_expression "lVar8 + param_2" identifier + identifier) , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);" (assignment_expression "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" identifier = (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))" ( (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" * (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" * (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" ( (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0" identifier + (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2538)" * (cast_expression "(int *)(param_1 + 0x2538)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2538)" ( (binary_expression "param_1 + 0x2538" identifier + number_literal) ))))) * number_literal)) + number_literal) ))))) )) (argument_list "(local_c8,local_c8,param_1 + 0x1490)" ( identifier , identifier , (binary_expression "param_1 + 0x1490" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) break;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" identifier (argument_list "(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" ( identifier , identifier , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );" (call_expression "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" identifier (argument_list "(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" ( (binary_expression "param_1 + 0x1280" identifier + number_literal) , (binary_expression "param_1 + 0x1280" identifier + number_literal) , identifier , (cast_expression "(long)*(int *)(param_1 + 0x2540)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_1 + 0x2540)" * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ))) ;) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530) + 1;" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530) + 1" identifier = (binary_expression "*(long *)(param_1 + 0x2530) + 1" (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(long *)(param_1 + 0x2530) = lVar9;" (assignment_expression "*(long *)(param_1 + 0x2530) = lVar9" (pointer_expression "*(long *)(param_1 + 0x2530)" * (cast_expression "(long *)(param_1 + 0x2530)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2530)" ( (binary_expression "param_1 + 0x2530" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar5 == iVar10) goto LAB_0013dbd0;" if (parenthesized_expression "(iVar5 == iVar10)" ( (binary_expression "iVar5 == iVar10" identifier == identifier) )) (goto_statement "goto LAB_0013dbd0;" goto statement_identifier ;)) (expression_statement "uVar6 = (ulong)*(int *)(param_1 + 0x2540);" (assignment_expression "uVar6 = (ulong)*(int *)(param_1 + 0x2540)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x2540)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x2540)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2540)" ( (binary_expression "param_1 + 0x2540" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" identifier = identifier) ;) })) (goto_statement "goto LAB_0013dba0;" goto statement_identifier ;) })) })) (labeled_statement "LAB_0013dbd0:\n  iVar4 = 0;" statement_identifier : (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0013dba0:\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 iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (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 != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * LIT)) + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT / IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )) * LIT) + IDENT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * LIT)) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (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 IDENT ;) })))
(function_definition "int ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "ocb3_decrypt(long param_1,long param_2,ulong param_3,long param_4)" (identifier "ocb3_decrypt") (parameter_list "(long param_1,long param_2,ulong param_3,long param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "ulong param_3" (type_identifier "ulong") (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  ulong uVar6;\n  ulong uVar7;\n  long lVar8;\n  long lVar9;\n  int iVar10;\n  long in_FS_OFFSET;\n  undefined1 local_c8 [136];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }\n  if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }\nLAB_0013dbd0:\n  iVar4 = 0;\nLAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return iVar4;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "long lVar8;" (sized_type_specifier "long" (long "long")) (identifier "lVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 local_c8 [136];" (type_identifier "undefined1") (array_declarator "local_c8 [136]" (identifier "local_c8") ([ "[") (number_literal "136") (] "]")) (; ";")) (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")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);\n  }" ({ "{") (expression_statement "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);" (call_expression "crypt_argchk("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" (identifier "crypt_argchk") (argument_list "("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20)" (( "(") (string_literal ""ocb != NULL"" (" """) (string_content "ocb != NULL") (" """)) (, ",") (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" (" """) (string_content "src/encauth/ocb3/ocb3_decrypt.c") (" """)) (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 != 0) {\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }\n    if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }\n    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));\n    if (iVar4 != 0) goto LAB_0013dba0;\n    iVar4 = 0x10;\n    uVar3 = *(uint *)(param_1 + 0x2540);\n    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;\n    uVar6 = (ulong)(int)uVar3;\n    if (param_3 % uVar6 != 0) goto LAB_0013dba0;\n    iVar5 = (int)(param_3 / uVar6);\n    if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0) {\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);\n    }" ({ "{") (expression_statement "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);" (call_expression "crypt_argchk("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" (identifier "crypt_argchk") (argument_list "("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22)" (( "(") (string_literal ""ct != NULL"" (" """) (string_content "ct != NULL") (" """)) (, ",") (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" (" """) (string_content "src/encauth/ocb3/ocb3_decrypt.c") (" """)) (, ",") (number_literal "0x22") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == 0) {\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);\n    }" ({ "{") (expression_statement "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);" (call_expression "crypt_argchk("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" (identifier "crypt_argchk") (argument_list "("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23)" (( "(") (string_literal ""pt != NULL"" (" """) (string_content "pt != NULL") (" """)) (, ",") (string_literal ""src/encauth/ocb3/ocb3_decrypt.c"" (" """) (string_content "src/encauth/ocb3/ocb3_decrypt.c") (" """)) (, ",") (number_literal "0x23") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));" (assignment_expression "iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" (identifier "iVar4") (= "=") (call_expression "cipher_is_valid(*(undefined4 *)(param_1 + 0x2538))" (identifier "cipher_is_valid") (argument_list "(*(undefined4 *)(param_1 + 0x2538))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2538)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2538)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2538)" (( "(") (binary_expression "param_1 + 0x2538" (identifier "param_1") (+ "+") (number_literal "0x2538")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_0013dba0;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0013dba0;" (goto "goto") (statement_identifier "LAB_0013dba0") (; ";"))) (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" (identifier "iVar4") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar3 = *(uint *)(param_1 + 0x2540);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x2540)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x2540)" (* "*") (cast_expression "(uint *)(param_1 + 0x2540)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2540)" (( "(") (binary_expression "param_1 + 0x2540" (identifier "param_1") (+ "+") (number_literal "0x2540")) () ")"))))) (; ";")) (if_statement "if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;" (if "if") (parenthesized_expression "(uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14))" (( "(") (binary_expression "uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" (identifier "uVar3") (!= "!=") (pointer_expression "*(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" (* "*") (cast_expression "(uint *)(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)" (( "(") (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                          (long)*(int *)(param_1 + 0x2538) * 0xc0" (identifier "PTR_cipher_descriptor_001dded0") (+ "+") (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_1 + 0x2538)" (* "*") (cast_expression "(int *)(param_1 + 0x2538)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2538)" (( "(") (binary_expression "param_1 + 0x2538" (identifier "param_1") (+ "+") (number_literal "0x2538")) () ")"))))) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (goto_statement "goto LAB_0013dba0;" (goto "goto") (statement_identifier "LAB_0013dba0") (; ";"))) (expression_statement "uVar6 = (ulong)(int)uVar3;" (assignment_expression "uVar6 = (ulong)(int)uVar3" (identifier "uVar6") (= "=") (cast_expression "(ulong)(int)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")))) (; ";")) (if_statement "if (param_3 % uVar6 != 0) goto LAB_0013dba0;" (if "if") (parenthesized_expression "(param_3 % uVar6 != 0)" (( "(") (binary_expression "param_3 % uVar6 != 0" (binary_expression "param_3 % uVar6" (identifier "param_3") (% "%") (identifier "uVar6")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0013dba0;" (goto "goto") (statement_identifier "LAB_0013dba0") (; ";"))) (expression_statement "iVar5 = (int)(param_3 / uVar6);" (assignment_expression "iVar5 = (int)(param_3 / uVar6)" (identifier "iVar5") (= "=") (cast_expression "(int)(param_3 / uVar6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 / uVar6)" (( "(") (binary_expression "param_3 / uVar6" (identifier "param_3") (/ "/") (identifier "uVar6")) () ")")))) (; ";")) (if_statement "if (0 < iVar5) {\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n      iVar10 = 0;\n      lVar9 = *(long *)(param_1 + 0x2530);\n      lVar1 = param_1 + 0x80;\n      uVar7 = (ulong)uVar3;\n      while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }\n      goto LAB_0013dba0;\n    }" ({ "{") (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530);" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530)" (identifier "lVar9") (= "=") (pointer_expression "*(long *)(param_1 + 0x2530)" (* "*") (cast_expression "(long *)(param_1 + 0x2530)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2530)" (( "(") (binary_expression "param_1 + 0x2530" (identifier "param_1") (+ "+") (number_literal "0x2530")) () ")"))))) (; ";")) (expression_statement "lVar1 = param_1 + 0x80;" (assignment_expression "lVar1 = param_1 + 0x80" (identifier "lVar1") (= "=") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80"))) (; ";")) (expression_statement "uVar7 = (ulong)uVar3;" (assignment_expression "uVar7 = (ulong)uVar3" (identifier "uVar7") (= "=") (cast_expression "(ulong)uVar3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar3"))) (; ";")) (while_statement "while( true ) {\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        lVar8 = (long)((int)uVar7 * iVar10);\n        lVar2 = param_4 + lVar8;\n        iVar4 = ocb3_int_ntz(lVar9);\n        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);\n        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));\n        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);\n        if (iVar4 != 0) break;\n        iVar10 = iVar10 + 1;\n        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));\n        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );\n        lVar9 = *(long *)(param_1 + 0x2530) + 1;\n        *(long *)(param_1 + 0x2530) = lVar9;\n        if (iVar5 == iVar10) goto LAB_0013dbd0;\n        uVar6 = (ulong)*(int *)(param_1 + 0x2540);\n        uVar7 = uVar6;\n      }" ({ "{") (expression_statement "lVar8 = (long)((int)uVar7 * iVar10);" (assignment_expression "lVar8 = (long)((int)uVar7 * iVar10)" (identifier "lVar8") (= "=") (cast_expression "(long)((int)uVar7 * iVar10)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((int)uVar7 * iVar10)" (( "(") (binary_expression "(int)uVar7 * iVar10" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (* "*") (identifier "iVar10")) () ")")))) (; ";")) (expression_statement "lVar2 = param_4 + lVar8;" (assignment_expression "lVar2 = param_4 + lVar8" (identifier "lVar2") (= "=") (binary_expression "param_4 + lVar8" (identifier "param_4") (+ "+") (identifier "lVar8"))) (; ";")) (expression_statement "iVar4 = ocb3_int_ntz(lVar9);" (assignment_expression "iVar4 = ocb3_int_ntz(lVar9)" (identifier "iVar4") (= "=") (call_expression "ocb3_int_ntz(lVar9)" (identifier "ocb3_int_ntz") (argument_list "(lVar9)" (( "(") (identifier "lVar9") () ")")))) (; ";")) (expression_statement "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);" (call_expression "ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" (identifier "ocb3_int_xor_blocks") (argument_list "(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6)" (( "(") (identifier "lVar1") (, ",") (identifier "lVar1") (, ",") (binary_expression "((long)iVar4 + 4) * 0x80 + param_1" (binary_expression "((long)iVar4 + 4) * 0x80" (parenthesized_expression "((long)iVar4 + 4)" (( "(") (binary_expression "(long)iVar4 + 4" (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4")) (+ "+") (number_literal "4")) () ")")) (* "*") (number_literal "0x80")) (+ "+") (identifier "param_1")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" (identifier "ocb3_int_xor_blocks") (argument_list "(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540))" (( "(") (identifier "local_c8") (, ",") (binary_expression "lVar8 + param_2" (identifier "lVar8") (+ "+") (identifier "param_2")) (, ",") (identifier "lVar1") (, ",") (cast_expression "(long)*(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_1 + 0x2540)" (* "*") (cast_expression "(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2540)" (( "(") (binary_expression "param_1 + 0x2540" (identifier "param_1") (+ "+") (number_literal "0x2540")) () ")"))))) () ")"))) (; ";")) (expression_statement "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490);" (assignment_expression "iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))\n                          (local_c8,local_c8,param_1 + 0x1490)" (parenthesized_expression "(**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))" (( "(") (pointer_expression "**(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" (* "*") (pointer_expression "*(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" (* "*") (cast_expression "(code **)(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30)" (( "(") (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30" (binary_expression "PTR_cipher_descriptor_001dded0 +\n                            (long)*(int *)(param_1 + 0x2538) * 0xc0" (identifier "PTR_cipher_descriptor_001dded0") (+ "+") (binary_expression "(long)*(int *)(param_1 + 0x2538) * 0xc0" (cast_expression "(long)*(int *)(param_1 + 0x2538)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_1 + 0x2538)" (* "*") (cast_expression "(int *)(param_1 + 0x2538)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2538)" (( "(") (binary_expression "param_1 + 0x2538" (identifier "param_1") (+ "+") (number_literal "0x2538")) () ")"))))) (* "*") (number_literal "0xc0"))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(local_c8,local_c8,param_1 + 0x1490)" (( "(") (identifier "local_c8") (, ",") (identifier "local_c8") (, ",") (binary_expression "param_1 + 0x1490" (identifier "param_1") (+ "+") (number_literal "0x1490")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) break;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar10 + 1" (identifier "iVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));" (call_expression "ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" (identifier "ocb3_int_xor_blocks") (argument_list "(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540))" (( "(") (identifier "lVar2") (, ",") (identifier "local_c8") (, ",") (identifier "lVar1") (, ",") (cast_expression "(long)*(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_1 + 0x2540)" (* "*") (cast_expression "(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2540)" (( "(") (binary_expression "param_1 + 0x2540" (identifier "param_1") (+ "+") (number_literal "0x2540")) () ")"))))) () ")"))) (; ";")) (expression_statement "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           );" (call_expression "ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" (identifier "ocb3_int_xor_blocks") (argument_list "(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)\n                           )" (( "(") (binary_expression "param_1 + 0x1280" (identifier "param_1") (+ "+") (number_literal "0x1280")) (, ",") (binary_expression "param_1 + 0x1280" (identifier "param_1") (+ "+") (number_literal "0x1280")) (, ",") (identifier "lVar2") (, ",") (cast_expression "(long)*(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_1 + 0x2540)" (* "*") (cast_expression "(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2540)" (( "(") (binary_expression "param_1 + 0x2540" (identifier "param_1") (+ "+") (number_literal "0x2540")) () ")"))))) () ")"))) (; ";")) (expression_statement "lVar9 = *(long *)(param_1 + 0x2530) + 1;" (assignment_expression "lVar9 = *(long *)(param_1 + 0x2530) + 1" (identifier "lVar9") (= "=") (binary_expression "*(long *)(param_1 + 0x2530) + 1" (pointer_expression "*(long *)(param_1 + 0x2530)" (* "*") (cast_expression "(long *)(param_1 + 0x2530)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2530)" (( "(") (binary_expression "param_1 + 0x2530" (identifier "param_1") (+ "+") (number_literal "0x2530")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x2530) = lVar9;" (assignment_expression "*(long *)(param_1 + 0x2530) = lVar9" (pointer_expression "*(long *)(param_1 + 0x2530)" (* "*") (cast_expression "(long *)(param_1 + 0x2530)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2530)" (( "(") (binary_expression "param_1 + 0x2530" (identifier "param_1") (+ "+") (number_literal "0x2530")) () ")")))) (= "=") (identifier "lVar9")) (; ";")) (if_statement "if (iVar5 == iVar10) goto LAB_0013dbd0;" (if "if") (parenthesized_expression "(iVar5 == iVar10)" (( "(") (binary_expression "iVar5 == iVar10" (identifier "iVar5") (== "==") (identifier "iVar10")) () ")")) (goto_statement "goto LAB_0013dbd0;" (goto "goto") (statement_identifier "LAB_0013dbd0") (; ";"))) (expression_statement "uVar6 = (ulong)*(int *)(param_1 + 0x2540);" (assignment_expression "uVar6 = (ulong)*(int *)(param_1 + 0x2540)" (identifier "uVar6") (= "=") (binary_expression "(ulong)*(int *)(param_1 + 0x2540)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)(param_1 + 0x2540)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2540)" (( "(") (binary_expression "param_1 + 0x2540" (identifier "param_1") (+ "+") (number_literal "0x2540")) () ")"))))) (; ";")) (expression_statement "uVar7 = uVar6;" (assignment_expression "uVar7 = uVar6" (identifier "uVar7") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (goto_statement "goto LAB_0013dba0;" (goto "goto") (statement_identifier "LAB_0013dba0") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0013dbd0:\n  iVar4 = 0;" (statement_identifier "LAB_0013dbd0") (: ":") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_0013dba0:\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_0013dba0") (: ":") (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 iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))

int function_1(type_1 *var_2,type_2 *var_5,type_3 var_4,type_2 *var_6)

{
  type_2 *out;
  type_4 var_9;
  long var_17;
  int var_8;
  int var_12;
  type_3 var_11;
  int var_16;
  type_3 x;
  int var_13;
  long var_1;
  type_2 tmp [128];
  type_3 uVar6;
  
  var_17 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("ocb != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x20);
  }
  if (var_4 != 0) {
    if (var_5 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_3("ct != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x22);
    }
    if (var_6 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_3("pt != NULL","src/encauth/ocb3/ocb3_decrypt.c",0x23);
    }
    var_8 = var_7(var_2->cipher);
    if (var_8 != 0) goto LAB_0013dba0;
    var_8 = 0x10;
    var_9 = var_2->var_11;
    if (var_9 != *(type_4 *)(var_10 + (long)var_2->cipher * 0xc0 + 0x14))
    goto LAB_0013dba0;
    var_11 = (type_3)(int)var_9;
    if (var_4 % var_11 != 0) goto LAB_0013dba0;
    var_12 = (int)(var_4 / var_11);
    if (0 < var_12) {
      var_13 = 0;
      x = var_2->block_index;
      out = var_2->Offset_current;
      uVar6 = (type_3)var_9;
      while( true ) {
        var_16 = (int)uVar6 * var_13;
        var_8 = var_14(x);
        var_15(out,out,var_2->L_[var_8],var_11);
        var_15(tmp,var_5 + var_16,out,(long)var_2->var_11);
        var_8 = (**(type_5 **)(var_10 + (long)var_2->cipher * 0xc0 + 0x30))
                          (tmp,tmp,&var_2->key);
        if (var_8 != 0) break;
        var_13 = var_13 + 1;
        var_15(var_6 + var_16,tmp,out,(long)var_2->var_11);
        var_15(var_2->checksum,var_2->checksum,var_6 + var_16,(long)var_2->var_11);
        x = var_2->block_index + 1;
        var_2->block_index = x;
        if (var_12 == var_13) goto LAB_0013dbd0;
        var_11 = (type_3)var_2->var_11;
        uVar6 = var_11;
      }
      goto LAB_0013dba0;
    }
  }
LAB_0013dbd0:
  var_8 = 0;
LAB_0013dba0:
  if (var_17 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_18();
  }
  return var_8;
}


(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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (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: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (number_literal))) right: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (number_literal)) right: (identifier)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (number_literal))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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 (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (binary_expression left: (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))))) right: (number_literal)))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (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: (identifier))))) (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (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 (identifier)))))

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

{
  long lVar1;
  long lVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  ulong uVar6;
  ulong uVar7;
  long lVar8;
  long lVar9;
  int iVar10;
  long in_FS_OFFSET;
  undefined1 local_c8 [136];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ocb != NULL","src/encauth/ocb3/MASKED.c",0x20);
  }
  if (param_3 != 0) {
    if (param_2 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("ct != NULL","src/encauth/ocb3/MASKED.c",0x22);
    }
    if (param_4 == 0) {
                    /* WARNING: Subroutine does not return */
      crypt_argchk("pt != NULL","src/encauth/ocb3/MASKED.c",0x23);
    }
    iVar4 = cipher_is_valid(*(undefined4 *)(param_1 + 0x2538));
    if (iVar4 != 0) goto LAB_0013dba0;
    iVar4 = 0x10;
    uVar3 = *(uint *)(param_1 + 0x2540);
    if (uVar3 != *(uint *)(PTR_cipher_descriptor_001dded0 +
                          (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x14)) goto LAB_0013dba0;
    uVar6 = (ulong)(int)uVar3;
    if (param_3 % uVar6 != 0) goto LAB_0013dba0;
    iVar5 = (int)(param_3 / uVar6);
    if (0 < iVar5) {
      iVar10 = 0;
      lVar9 = *(long *)(param_1 + 0x2530);
      lVar1 = param_1 + 0x80;
      uVar7 = (ulong)uVar3;
      while( true ) {
        lVar8 = (long)((int)uVar7 * iVar10);
        lVar2 = param_4 + lVar8;
        iVar4 = ocb3_int_ntz(lVar9);
        ocb3_int_xor_blocks(lVar1,lVar1,((long)iVar4 + 4) * 0x80 + param_1,uVar6);
        ocb3_int_xor_blocks(local_c8,lVar8 + param_2,lVar1,(long)*(int *)(param_1 + 0x2540));
        iVar4 = (**(code **)(PTR_cipher_descriptor_001dded0 +
                            (long)*(int *)(param_1 + 0x2538) * 0xc0 + 0x30))
                          (local_c8,local_c8,param_1 + 0x1490);
        if (iVar4 != 0) break;
        iVar10 = iVar10 + 1;
        ocb3_int_xor_blocks(lVar2,local_c8,lVar1,(long)*(int *)(param_1 + 0x2540));
        ocb3_int_xor_blocks(param_1 + 0x1280,param_1 + 0x1280,lVar2,(long)*(int *)(param_1 + 0x2540)
                           );
        lVar9 = *(long *)(param_1 + 0x2530) + 1;
        *(long *)(param_1 + 0x2530) = lVar9;
        if (iVar5 == iVar10) goto LAB_0013dbd0;
        uVar6 = (ulong)*(int *)(param_1 + 0x2540);
        uVar7 = uVar6;
      }
      goto LAB_0013dba0;
    }
  }
LAB_0013dbd0:
  iVar4 = 0;
LAB_0013dba0:
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return iVar4;
}

