
void aes_setkey(tls_aes *aes,void *key,uint key_len)

{
  undefined *puVar1;
  undefined *puVar2;
  uint32_t *puVar3;
  uint uVar4;
  int iVar5;
  uint32_t uVar6;
  uint uVar7;
  uint32_t *puVar8;
  tls_aes *ptVar9;
  uint uVar10;
  int iVar11;
  uint uVar12;
  uint32_t v;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar10 = key_len >> 2;
  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar4 = 0;
  if (uVar10 != 0) {
    puVar3 = (uint32_t *)((int)key + uVar10 * 4);
    ptVar9 = aes;
    do {
                    /* WARNING: Load size is inaccurate */
      uVar6 = *key;
      key = (void *)((int)key + 4);
      ptVar9->key[0] = uVar6;
      uVar4 = uVar10;
      ptVar9 = (tls_aes *)(ptVar9->key + 1);
    } while ((uint32_t *)key != puVar3);
  }
  puVar1 = PTR_UINT_0012a18c;
  uVar7 = 0;
  if ((int)uVar4 < (int)(key_len + 0x1c)) {
    iVar11 = 0;
    puVar3 = aes->key + uVar4;
    do {
      while( true ) {
        uVar4 = puVar3[-1];
        uVar12 = uVar7 + 1;
        if (uVar7 != 0) break;
        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;
        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^
                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);
LAB_0004c360:
        *puVar3 = uVar4 ^ puVar3[-uVar10];
        if (uVar10 == uVar12) {
          iVar11 = iVar11 + 1;
          uVar12 = 0;
        }
        puVar3 = puVar3 + 1;
        uVar7 = uVar12;
        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;
      }
      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;
      puVar8 = puVar3 + 1;
      uVar7 = 5;
      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];
      puVar3 = puVar8;
    } while (aes->key + key_len + 0x1c != puVar8);
  }
LAB_0004c384:
  iVar11 = *(int *)puVar2;
  aes->rounds = uVar10 + 6;
  if (iVar5 != iVar11) {
    (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return;
  }
  return;
}



void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  uint uVar7;
  uint *puVar8;
  uint *puVar9;
  undefined4 *puVar10;
  uint uVar11;
  int iVar12;
  uint uVar13;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar11 = param_3 >> 2;
  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar4 = 0;
  if (uVar11 != 0) {
    puVar3 = param_2 + uVar11;
    puVar10 = param_1;
    do {
      uVar6 = *param_2;
      param_2 = param_2 + 1;
      *puVar10 = uVar6;
      uVar4 = uVar11;
      puVar10 = puVar10 + 1;
    } while (param_2 != puVar3);
  }
  puVar1 = PTR_UINT_0012a18c;
  uVar7 = 0;
  if ((int)uVar4 < (int)(param_3 + 0x1c)) {
    iVar12 = 0;
    puVar8 = param_1 + uVar4;
    do {
      while( true ) {
        uVar4 = puVar8[-1];
        uVar13 = uVar7 + 1;
        if (uVar7 != 0) break;
        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;
        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^
                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);
LAB_0004c360:
        *puVar8 = uVar4 ^ puVar8[-uVar11];
        if (uVar11 == uVar13) {
          iVar12 = iVar12 + 1;
          uVar13 = 0;
        }
        puVar8 = puVar8 + 1;
        uVar7 = uVar13;
        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;
      }
      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;
      puVar9 = puVar8 + 1;
      uVar7 = 5;
      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];
      puVar8 = puVar9;
    } while (param_1 + param_3 + 0x1c != puVar9);
  }
LAB_0004c384:
  iVar12 = *(int *)puVar2;
  param_1[0x3c] = uVar11 + 6;
  if (iVar5 != iVar12) {
    (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return;
  }
  return;
}


lui gp,0xe
addiu gp,gp,0x5f18
addu gp,gp,t9
lw t3,-0x7004(gp)
addiu sp,sp,-0x30
srl t0,a2,0x2
or v0,zero,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
lw v1,0x0(t3)
sw v1,0x1c(sp)
beq t0,zero,0x0004c2ac
_addiu v1,a2,0x1c
sll v0,t0,0x2
addiu t1,sp,0x18
addu v0,a1,v0
or a3,a0,zero
lwl v1,0x0(a1)
addiu a3,a3,0x4
lwr v1,0x3(a1)
addiu a1,a1,0x4
sw v1,-0x4(a3)
bne a1,v0,0x0004c288
_sw v1,0x0(t1)
or v0,t0,zero
addiu v1,a2,0x1c
slt v1,v0,v1
beq v1,zero,0x0004c384
_or v1,zero,zero
sll t1,a2,0x2
lw a3,-0x7fc4(gp)
lw t4,-0x7fc4(gp)
sll a1,v0,0x2
addiu t1,t1,0x70
subu t2,zero,t0
addu a1,a0,a1
addu t1,a0,t1
sll t2,t2,0x2
or t5,zero,zero
li t7,0x4
addiu a3,a3,0x4808
addiu t4,t4,0x46fc
sltiu t6,t0,0x7
addu a2,a1,t2
lw v0,-0x4(a1)
addiu t9,v1,0x1
bne v1,zero,0x0004c3bc
_lw t8,0x0(a2)
rotr v0,v0,0x18
addu a2,t5,t4
srl v1,v0,0x18
ext s1,v0,0x10,0x8
addu v1,v1,a3
lbu s0,0x0(a2)
ext s2,v0,0x8,0x8
addu s1,s1,a3
andi v0,v0,0xff
lbu a2,0x0(v1)
addu s2,s2,a3
addu v1,v0,a3
lbu s1,0x0(s1)
sll v0,s0,0x18
lbu s0,0x0(s2)
sll a2,a2,0x18
lbu v1,0x0(v1)
sll s1,s1,0x10
or v1,a2,v1
sll a2,s0,0x8
or v1,v1,s1
or v1,v1,a2
xor v0,v0,v1
xor v0,v0,t8
or v1,t9,zero
bne t0,t9,0x0004c378
_sw v0,0x0(a1)
addiu t5,t5,0x1
or v1,zero,zero
addiu a1,a1,0x4
bne t1,a1,0x0004c2f4
_addu a2,a1,t2
lw v1,0x1c(sp)
addiu t0,t0,0x6
lw v0,0x0(t3)
bne v1,v0,0x0004c3b0
_sw t0,0xf0(a0)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7088(gp)
jalr t9
_nop
bne t6,zero,0x0004c360
_nop
bne v1,t7,0x0004c360
_srl s0,v0,0x18
ext a2,v0,0x10,0x8
addu s0,s0,a3
ext t9,v0,0x8,0x8
andi v1,v0,0xff
addu v0,a2,a3
lbu a2,0x0(s0)
addu v1,v1,a3
addu t9,t9,a3
lbu v0,0x0(v0)
sll a2,a2,0x18
lbu s1,0x0(v1)
addiu a1,a1,0x4
lbu t9,0x0(t9)
li v1,0x5
sll s0,v0,0x10
or v0,a2,s1
sll a2,t9,0x8
or v0,v0,s0
or v0,v0,a2
xor v0,v0,t8
bne t1,a1,0x0004c2f0
_sw v0,-0x4(a1)
b 0x0004c384
_nop
(translation_unit "void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar11 = param_3 >> 2;" (assignment_expression "uVar11 = param_3 >> 2" identifier = (binary_expression "param_3 >> 2" identifier >> number_literal)) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" { (expression_statement "puVar3 = param_2 + uVar11;" (assignment_expression "puVar3 = param_2 + uVar11" identifier = (binary_expression "param_2 + uVar11" identifier + identifier)) ;) (expression_statement "puVar10 = param_1;" (assignment_expression "puVar10 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);" do (compound_statement "{\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = uVar6;" (assignment_expression "*puVar10 = uVar6" (pointer_expression "*puVar10" * identifier) = identifier) ;) (expression_statement "uVar4 = uVar11;" (assignment_expression "uVar4 = uVar11" identifier = identifier) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != puVar3)" ( (binary_expression "param_2 != puVar3" identifier != identifier) )) ;) })) (expression_statement "puVar1 = PTR_UINT_0012a18c;" (assignment_expression "puVar1 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" if (parenthesized_expression "((int)uVar4 < (int)(param_3 + 0x1c))" ( (binary_expression "(int)uVar4 < (int)(param_3 + 0x1c)" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(param_3 + 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) )) (compound_statement "{\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "puVar8 = param_1 + uVar4;" (assignment_expression "puVar8 = param_1 + uVar4" identifier = (binary_expression "param_1 + uVar4" identifier + identifier)) ;) (do_statement "do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);" do (compound_statement "{\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    }" { (while_statement "while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" { (expression_statement "uVar4 = puVar8[-1];" (assignment_expression "uVar4 = puVar8[-1]" identifier = (subscript_expression "puVar8[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar13 = uVar7 + 1;" (assignment_expression "uVar13 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (uVar7 != 0) break;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;" (assignment_expression "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100" identifier = (binary_expression "(uVar4 >> 0x18) + uVar4 * 0x100" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + (binary_expression "uVar4 * 0x100" identifier * number_literal))) ;) (expression_statement "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);" (assignment_expression "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" identifier = (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18" (cast_expression "(uint)(byte)puVar1[iVar12 + 0x46fc]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[iVar12 + 0x46fc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[iVar12 + 0x46fc]" identifier [ (binary_expression "iVar12 + 0x46fc" identifier + number_literal) ]))) << number_literal) ^ (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x100 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x100 >> 0x18)" ( (binary_expression "uVar4 * 0x100 >> 0x18" (binary_expression "uVar4 * 0x100" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x10000 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x10000 >> 0x18)" ( (binary_expression "uVar4 * 0x10000 >> 0x18" (binary_expression "uVar4 * 0x10000" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) )))) ;) (labeled_statement "LAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];" statement_identifier : (expression_statement "*puVar8 = uVar4 ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = uVar4 ^ puVar8[-uVar11]" (pointer_expression "*puVar8" * identifier) = (binary_expression "uVar4 ^ puVar8[-uVar11]" identifier ^ (subscript_expression "puVar8[-uVar11]" identifier [ (unary_expression "-uVar11" - identifier) ]))) ;)) (if_statement "if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" if (parenthesized_expression "(uVar11 == uVar13)" ( (binary_expression "uVar11 == uVar13" identifier == identifier) )) (compound_statement "{\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) })) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar13;" (assignment_expression "uVar7 = uVar13" identifier = identifier) ;) (if_statement "if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;" if (parenthesized_expression "(param_1 + param_3 + 0x1c == puVar8)" ( (binary_expression "param_1 + param_3 + 0x1c == puVar8" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal) == identifier) )) (goto_statement "goto LAB_0004c384;" goto statement_identifier ;)) })) (if_statement "if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;" if (parenthesized_expression "((uVar11 < 7) || (uVar7 != 4))" ( (binary_expression "(uVar11 < 7) || (uVar7 != 4)" (parenthesized_expression "(uVar11 < 7)" ( (binary_expression "uVar11 < 7" identifier < number_literal) )) || (parenthesized_expression "(uVar7 != 4)" ( (binary_expression "uVar7 != 4" identifier != number_literal) ))) )) (goto_statement "goto LAB_0004c360;" goto statement_identifier ;)) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 5;" (assignment_expression "uVar7 = 5" identifier = number_literal) ;) (expression_statement "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (pointer_expression "*puVar8" * identifier) = (binary_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 8) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 8) >> 0x18)" ( (binary_expression "(uVar4 << 8) >> 0x18" (parenthesized_expression "(uVar4 << 8)" ( (binary_expression "uVar4 << 8" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 0x10) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 0x10) >> 0x18)" ( (binary_expression "(uVar4 << 0x10) >> 0x18" (parenthesized_expression "(uVar4 << 0x10)" ( (binary_expression "uVar4 << 0x10" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) )) ^ (subscript_expression "puVar8[-uVar11]" identifier [ (unary_expression "-uVar11" - identifier) ]))) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 + param_3 + 0x1c != puVar9)" ( (binary_expression "param_1 + param_3 + 0x1c != puVar9" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal) != identifier) )) ;) })) (labeled_statement "LAB_0004c384:\n  iVar12 = *(int *)puVar2;" statement_identifier : (expression_statement "iVar12 = *(int *)puVar2;" (assignment_expression "iVar12 = *(int *)puVar2" identifier = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "param_1[0x3c] = uVar11 + 6;" (assignment_expression "param_1[0x3c] = uVar11 + 6" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = (binary_expression "uVar11 + 6" identifier + number_literal)) ;) (if_statement "if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" if (parenthesized_expression "(iVar5 != iVar12)" ( (binary_expression "iVar5 != iVar12" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void aes_setkey(tls_aes *aes,void *key,uint key_len)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint32_t *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint32_t uVar6;\n  uint uVar7;\n  uint32_t *puVar8;\n  tls_aes *ptVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  uint32_t v;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = key_len >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar10 != 0) {\n    puVar3 = (uint32_t *)((int)key + uVar10 * 4);\n    ptVar9 = aes;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(key_len + 0x1c)) {\n    iVar11 = 0;\n    puVar3 = aes->key + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);\n  }\nLAB_0004c384:\n  iVar11 = *(int *)puVar2;\n  aes->rounds = uVar10 + 6;\n  if (iVar5 != iVar11) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void aes_setkey(tls_aes *aes,void *key,uint key_len)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint32_t *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint32_t uVar6;\n  uint uVar7;\n  uint32_t *puVar8;\n  tls_aes *ptVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  uint32_t v;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = key_len >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar10 != 0) {\n    puVar3 = (uint32_t *)((int)key + uVar10 * 4);\n    ptVar9 = aes;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(key_len + 0x1c)) {\n    iVar11 = 0;\n    puVar3 = aes->key + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);\n  }\nLAB_0004c384:\n  iVar11 = *(int *)puVar2;\n  aes->rounds = uVar10 + 6;\n  if (iVar5 != iVar11) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "aes_setkey(tls_aes *aes,void *key,uint key_len)" identifier (parameter_list "(tls_aes *aes,void *key,uint key_len)" ( (parameter_declaration "tls_aes *aes" type_identifier (pointer_declarator "*aes" * identifier)) , (parameter_declaration "void *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "uint key_len" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint32_t *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint32_t uVar6;\n  uint uVar7;\n  uint32_t *puVar8;\n  tls_aes *ptVar9;\n  uint uVar10;\n  int iVar11;\n  uint uVar12;\n  uint32_t v;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar10 = key_len >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar10 != 0) {\n    puVar3 = (uint32_t *)((int)key + uVar10 * 4);\n    ptVar9 = aes;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(key_len + 0x1c)) {\n    iVar11 = 0;\n    puVar3 = aes->key + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);\n  }\nLAB_0004c384:\n  iVar11 = *(int *)puVar2;\n  aes->rounds = uVar10 + 6;\n  if (iVar5 != iVar11) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint32_t *puVar3;" primitive_type (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint32_t uVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint32_t *puVar8;" primitive_type (pointer_declarator "*puVar8" * identifier) ;) (declaration "tls_aes *ptVar9;" type_identifier (pointer_declarator "*ptVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint32_t v;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar10 = key_len >> 2;" (assignment_expression "uVar10 = key_len >> 2" identifier = (binary_expression "key_len >> 2" identifier >> number_literal)) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n    puVar3 = (uint32_t *)((int)key + uVar10 * 4);\n    ptVar9 = aes;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);\n  }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar3 = (uint32_t *)((int)key + uVar10 * 4);\n    ptVar9 = aes;\n    do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);\n  }" { (expression_statement "puVar3 = (uint32_t *)((int)key + uVar10 * 4);" (assignment_expression "puVar3 = (uint32_t *)((int)key + uVar10 * 4)" identifier = (cast_expression "(uint32_t *)((int)key + uVar10 * 4)" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + uVar10 * 4)" ( (binary_expression "(int)key + uVar10 * 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar10 * 4" identifier * number_literal)) )))) ;) (expression_statement "ptVar9 = aes;" (assignment_expression "ptVar9 = aes" identifier = identifier) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    } while ((uint32_t *)key != puVar3);" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      uVar6 = *key;\n      key = (void *)((int)key + 4);\n      ptVar9->key[0] = uVar6;\n      uVar4 = uVar10;\n      ptVar9 = (tls_aes *)(ptVar9->key + 1);\n    }" { comment (expression_statement "uVar6 = *key;" (assignment_expression "uVar6 = *key" identifier = (pointer_expression "*key" * identifier)) ;) (expression_statement "key = (void *)((int)key + 4);" (assignment_expression "key = (void *)((int)key + 4)" identifier = (cast_expression "(void *)((int)key + 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "ptVar9->key[0] = uVar6;" (assignment_expression "ptVar9->key[0] = uVar6" (subscript_expression "ptVar9->key[0]" (field_expression "ptVar9->key" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = uVar10;" (assignment_expression "uVar4 = uVar10" identifier = identifier) ;) (expression_statement "ptVar9 = (tls_aes *)(ptVar9->key + 1);" (assignment_expression "ptVar9 = (tls_aes *)(ptVar9->key + 1)" identifier = (cast_expression "(tls_aes *)(ptVar9->key + 1)" ( (type_descriptor "tls_aes *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ptVar9->key + 1)" ( (binary_expression "ptVar9->key + 1" (field_expression "ptVar9->key" identifier -> field_identifier) + number_literal) )))) ;) }) while (parenthesized_expression "((uint32_t *)key != puVar3)" ( (binary_expression "(uint32_t *)key != puVar3" (cast_expression "(uint32_t *)key" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) != identifier) )) ;) })) (expression_statement "puVar1 = PTR_UINT_0012a18c;" (assignment_expression "puVar1 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if ((int)uVar4 < (int)(key_len + 0x1c)) {\n    iVar11 = 0;\n    puVar3 = aes->key + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);\n  }" if (parenthesized_expression "((int)uVar4 < (int)(key_len + 0x1c))" ( (binary_expression "(int)uVar4 < (int)(key_len + 0x1c)" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(key_len + 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(key_len + 0x1c)" ( (binary_expression "key_len + 0x1c" identifier + number_literal) )))) )) (compound_statement "{\n    iVar11 = 0;\n    puVar3 = aes->key + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);\n  }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = aes->key + uVar4;" (assignment_expression "puVar3 = aes->key + uVar4" identifier = (binary_expression "aes->key + uVar4" (field_expression "aes->key" identifier -> field_identifier) + identifier)) ;) (do_statement "do {\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    } while (aes->key + key_len + 0x1c != puVar8);" do (compound_statement "{\n      while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }\n      if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar8 = puVar3 + 1;\n      uVar7 = 5;\n      *puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];\n      puVar3 = puVar8;\n    }" { (while_statement "while( true ) {\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar4 = puVar3[-1];\n        uVar12 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];\n        if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }\n        puVar3 = puVar3 + 1;\n        uVar7 = uVar12;\n        if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;\n      }" { (expression_statement "uVar4 = puVar3[-1];" (assignment_expression "uVar4 = puVar3[-1]" identifier = (subscript_expression "puVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar12 = uVar7 + 1;" (assignment_expression "uVar12 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (uVar7 != 0) break;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;" (assignment_expression "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100" identifier = (binary_expression "(uVar4 >> 0x18) + uVar4 * 0x100" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + (binary_expression "uVar4 * 0x100" identifier * number_literal))) ;) (expression_statement "uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);" (assignment_expression "uVar4 = (uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" identifier = (binary_expression "(uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (binary_expression "(uint)(byte)puVar1[iVar11 + 0x46fc] << 0x18" (cast_expression "(uint)(byte)puVar1[iVar11 + 0x46fc]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[iVar11 + 0x46fc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[iVar11 + 0x46fc]" identifier [ (binary_expression "iVar11 + 0x46fc" identifier + number_literal) ]))) << number_literal) ^ (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x100 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x100 >> 0x18)" ( (binary_expression "uVar4 * 0x100 >> 0x18" (binary_expression "uVar4 * 0x100" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x10000 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x10000 >> 0x18)" ( (binary_expression "uVar4 * 0x10000 >> 0x18" (binary_expression "uVar4 * 0x10000" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) )))) ;) (labeled_statement "LAB_0004c360:\n        *puVar3 = uVar4 ^ puVar3[-uVar10];" statement_identifier : (expression_statement "*puVar3 = uVar4 ^ puVar3[-uVar10];" (assignment_expression "*puVar3 = uVar4 ^ puVar3[-uVar10]" (pointer_expression "*puVar3" * identifier) = (binary_expression "uVar4 ^ puVar3[-uVar10]" identifier ^ (subscript_expression "puVar3[-uVar10]" identifier [ (unary_expression "-uVar10" - identifier) ]))) ;)) (if_statement "if (uVar10 == uVar12) {\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }" if (parenthesized_expression "(uVar10 == uVar12)" ( (binary_expression "uVar10 == uVar12" identifier == identifier) )) (compound_statement "{\n          iVar11 = iVar11 + 1;\n          uVar12 = 0;\n        }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) })) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar12;" (assignment_expression "uVar7 = uVar12" identifier = identifier) ;) (if_statement "if (aes->key + key_len + 0x1c == puVar3) goto LAB_0004c384;" if (parenthesized_expression "(aes->key + key_len + 0x1c == puVar3)" ( (binary_expression "aes->key + key_len + 0x1c == puVar3" (binary_expression "aes->key + key_len + 0x1c" (binary_expression "aes->key + key_len" (field_expression "aes->key" identifier -> field_identifier) + identifier) + number_literal) == identifier) )) (goto_statement "goto LAB_0004c384;" goto statement_identifier ;)) })) (if_statement "if ((uVar10 < 7) || (uVar7 != 4)) goto LAB_0004c360;" if (parenthesized_expression "((uVar10 < 7) || (uVar7 != 4))" ( (binary_expression "(uVar10 < 7) || (uVar7 != 4)" (parenthesized_expression "(uVar10 < 7)" ( (binary_expression "uVar10 < 7" identifier < number_literal) )) || (parenthesized_expression "(uVar7 != 4)" ( (binary_expression "uVar7 != 4" identifier != number_literal) ))) )) (goto_statement "goto LAB_0004c360;" goto statement_identifier ;)) (expression_statement "puVar8 = puVar3 + 1;" (assignment_expression "puVar8 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 5;" (assignment_expression "uVar7 = 5" identifier = number_literal) ;) (expression_statement "*puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10];" (assignment_expression "*puVar3 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10]" (pointer_expression "*puVar3" * identifier) = (binary_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar3[-uVar10]" (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 8) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 8) >> 0x18)" ( (binary_expression "(uVar4 << 8) >> 0x18" (parenthesized_expression "(uVar4 << 8)" ( (binary_expression "uVar4 << 8" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 0x10) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 0x10) >> 0x18)" ( (binary_expression "(uVar4 << 0x10) >> 0x18" (parenthesized_expression "(uVar4 << 0x10)" ( (binary_expression "uVar4 << 0x10" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) )) ^ (subscript_expression "puVar3[-uVar10]" identifier [ (unary_expression "-uVar10" - identifier) ]))) ;) (expression_statement "puVar3 = puVar8;" (assignment_expression "puVar3 = puVar8" identifier = identifier) ;) }) while (parenthesized_expression "(aes->key + key_len + 0x1c != puVar8)" ( (binary_expression "aes->key + key_len + 0x1c != puVar8" (binary_expression "aes->key + key_len + 0x1c" (binary_expression "aes->key + key_len" (field_expression "aes->key" identifier -> field_identifier) + identifier) + number_literal) != identifier) )) ;) })) (labeled_statement "LAB_0004c384:\n  iVar11 = *(int *)puVar2;" statement_identifier : (expression_statement "iVar11 = *(int *)puVar2;" (assignment_expression "iVar11 = *(int *)puVar2" identifier = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "aes->rounds = uVar10 + 6;" (assignment_expression "aes->rounds = uVar10 + 6" (field_expression "aes->rounds" identifier -> field_identifier) = (binary_expression "uVar10 + 6" identifier + number_literal)) ;) (if_statement "if (iVar5 != iVar11) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" if (parenthesized_expression "(iVar5 != iVar11)" ( (binary_expression "iVar5 != iVar11" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "uVar11 = param_3 >> 2;" (assignment_expression "uVar11 = param_3 >> 2" identifier = (binary_expression "param_3 >> 2" identifier >> number_literal)) ;) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" { (expression_statement "puVar3 = param_2 + uVar11;" (assignment_expression "puVar3 = param_2 + uVar11" identifier = (binary_expression "param_2 + uVar11" identifier + identifier)) ;) (expression_statement "puVar10 = param_1;" (assignment_expression "puVar10 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);" do (compound_statement "{\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    }" { (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "*puVar10 = uVar6;" (assignment_expression "*puVar10 = uVar6" (pointer_expression "*puVar10" * identifier) = identifier) ;) (expression_statement "uVar4 = uVar11;" (assignment_expression "uVar4 = uVar11" identifier = identifier) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != puVar3)" ( (binary_expression "param_2 != puVar3" identifier != identifier) )) ;) })) (expression_statement "puVar1 = PTR_UINT_0012a18c;" (assignment_expression "puVar1 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (if_statement "if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" if (parenthesized_expression "((int)uVar4 < (int)(param_3 + 0x1c))" ( (binary_expression "(int)uVar4 < (int)(param_3 + 0x1c)" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(param_3 + 0x1c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) )) (compound_statement "{\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (expression_statement "puVar8 = param_1 + uVar4;" (assignment_expression "puVar8 = param_1 + uVar4" identifier = (binary_expression "param_1 + uVar4" identifier + identifier)) ;) (do_statement "do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);" do (compound_statement "{\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    }" { (while_statement "while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" { (expression_statement "uVar4 = puVar8[-1];" (assignment_expression "uVar4 = puVar8[-1]" identifier = (subscript_expression "puVar8[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar13 = uVar7 + 1;" (assignment_expression "uVar13 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (if_statement "if (uVar7 != 0) break;" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;" (assignment_expression "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100" identifier = (binary_expression "(uVar4 >> 0x18) + uVar4 * 0x100" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + (binary_expression "uVar4 * 0x100" identifier * number_literal))) ;) (expression_statement "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);" (assignment_expression "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" identifier = (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18" (cast_expression "(uint)(byte)puVar1[iVar12 + 0x46fc]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[iVar12 + 0x46fc]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[iVar12 + 0x46fc]" identifier [ (binary_expression "iVar12 + 0x46fc" identifier + number_literal) ]))) << number_literal) ^ (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x100 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x100 >> 0x18)" ( (binary_expression "uVar4 * 0x100 >> 0x18" (binary_expression "uVar4 * 0x100" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 * 0x10000 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x10000 >> 0x18)" ( (binary_expression "uVar4 * 0x10000 >> 0x18" (binary_expression "uVar4 * 0x10000" identifier * number_literal) >> number_literal) )) + number_literal) ]))) << number_literal)) )))) ;) (labeled_statement "LAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];" statement_identifier : (expression_statement "*puVar8 = uVar4 ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = uVar4 ^ puVar8[-uVar11]" (pointer_expression "*puVar8" * identifier) = (binary_expression "uVar4 ^ puVar8[-uVar11]" identifier ^ (subscript_expression "puVar8[-uVar11]" identifier [ (unary_expression "-uVar11" - identifier) ]))) ;)) (if_statement "if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" if (parenthesized_expression "(uVar11 == uVar13)" ( (binary_expression "uVar11 == uVar13" identifier == identifier) )) (compound_statement "{\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) })) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = uVar13;" (assignment_expression "uVar7 = uVar13" identifier = identifier) ;) (if_statement "if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;" if (parenthesized_expression "(param_1 + param_3 + 0x1c == puVar8)" ( (binary_expression "param_1 + param_3 + 0x1c == puVar8" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal) == identifier) )) (goto_statement "goto LAB_0004c384;" goto statement_identifier ;)) })) (if_statement "if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;" if (parenthesized_expression "((uVar11 < 7) || (uVar7 != 4))" ( (binary_expression "(uVar11 < 7) || (uVar7 != 4)" (parenthesized_expression "(uVar11 < 7)" ( (binary_expression "uVar11 < 7" identifier < number_literal) )) || (parenthesized_expression "(uVar7 != 4)" ( (binary_expression "uVar7 != 4" identifier != number_literal) ))) )) (goto_statement "goto LAB_0004c360;" goto statement_identifier ;)) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = 5;" (assignment_expression "uVar7 = 5" identifier = number_literal) ;) (expression_statement "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (pointer_expression "*puVar8" * identifier) = (binary_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8)" ( (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" identifier [ (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" ( (binary_expression "uVar4 >> 0x18" identifier >> number_literal) )) + number_literal) ]))) << number_literal) | (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" identifier [ (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) )) + number_literal) ])))) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 8) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 8) >> 0x18)" ( (binary_expression "(uVar4 << 8) >> 0x18" (parenthesized_expression "(uVar4 << 8)" ( (binary_expression "uVar4 << 8" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) | (binary_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" identifier [ (binary_expression "((uVar4 << 0x10) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 0x10) >> 0x18)" ( (binary_expression "(uVar4 << 0x10) >> 0x18" (parenthesized_expression "(uVar4 << 0x10)" ( (binary_expression "uVar4 << 0x10" identifier << number_literal) )) >> number_literal) )) + number_literal) ]))) << number_literal)) )) ^ (subscript_expression "puVar8[-uVar11]" identifier [ (unary_expression "-uVar11" - identifier) ]))) ;) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(param_1 + param_3 + 0x1c != puVar9)" ( (binary_expression "param_1 + param_3 + 0x1c != puVar9" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" identifier + identifier) + number_literal) != identifier) )) ;) })) (labeled_statement "LAB_0004c384:\n  iVar12 = *(int *)puVar2;" statement_identifier : (expression_statement "iVar12 = *(int *)puVar2;" (assignment_expression "iVar12 = *(int *)puVar2" identifier = (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (expression_statement "param_1[0x3c] = uVar11 + 6;" (assignment_expression "param_1[0x3c] = uVar11 + 6" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = (binary_expression "uVar11 + 6" identifier + number_literal)) ;) (if_statement "if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" if (parenthesized_expression "(iVar5 != iVar12)" ( (binary_expression "iVar5 != iVar12" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))) << LIT) ^ (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ]))) << LIT) | (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT) ])))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) >> LIT) )) + LIT) ]))) << LIT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) >> LIT) )) + LIT) ]))) << LIT)) )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT ^ (subscript_expression IDENT [ (unary_expression - IDENT) ]))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) == IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ]))) << LIT) | (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) + LIT) ])))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )) + LIT) ]))) << LIT)) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) )) + LIT) ]))) << LIT)) )) ^ (subscript_expression IDENT [ (unary_expression - IDENT) ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) != IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "aes_setkey(undefined4 *param_1,undefined4 *param_2,uint param_3)" (identifier "aes_setkey") (parameter_list "(undefined4 *param_1,undefined4 *param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 *puVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  uint uVar7;\n  uint *puVar8;\n  uint *puVar9;\n  undefined4 *puVar10;\n  uint uVar11;\n  int iVar12;\n  uint uVar13;\n  \n  puVar2 = PTR___stack_chk_guard_0012b14c;\n  uVar11 = param_3 >> 2;\n  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;\n  uVar4 = 0;\n  if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }\n  puVar1 = PTR_UINT_0012a18c;\n  uVar7 = 0;\n  if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }\nLAB_0004c384:\n  iVar12 = *(int *)puVar2;\n  param_1[0x3c] = uVar11 + 6;\n  if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint *puVar9;" (type_identifier "uint") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_0012b14c" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "uVar11 = param_3 >> 2;" (assignment_expression "uVar11 = param_3 >> 2" (identifier "uVar11") (= "=") (binary_expression "param_3 >> 2" (identifier "param_3") (>> ">>") (number_literal "2"))) (; ";")) (expression_statement "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar5 = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "iVar5") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar11 != 0) {\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar3 = param_2 + uVar11;\n    puVar10 = param_1;\n    do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);\n  }" ({ "{") (expression_statement "puVar3 = param_2 + uVar11;" (assignment_expression "puVar3 = param_2 + uVar11" (identifier "puVar3") (= "=") (binary_expression "param_2 + uVar11" (identifier "param_2") (+ "+") (identifier "uVar11"))) (; ";")) (expression_statement "puVar10 = param_1;" (assignment_expression "puVar10 = param_1" (identifier "puVar10") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    } while (param_2 != puVar3);" (do "do") (compound_statement "{\n      uVar6 = *param_2;\n      param_2 = param_2 + 1;\n      *puVar10 = uVar6;\n      uVar4 = uVar11;\n      puVar10 = puVar10 + 1;\n    }" ({ "{") (expression_statement "uVar6 = *param_2;" (assignment_expression "uVar6 = *param_2" (identifier "uVar6") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar10 = uVar6;" (assignment_expression "*puVar10 = uVar6" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "uVar4 = uVar11;" (assignment_expression "uVar4 = uVar11" (identifier "uVar4") (= "=") (identifier "uVar11")) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != puVar3)" (( "(") (binary_expression "param_2 != puVar3" (identifier "param_2") (!= "!=") (identifier "puVar3")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_UINT_0012a18c;" (assignment_expression "puVar1 = PTR_UINT_0012a18c" (identifier "puVar1") (= "=") (identifier "PTR_UINT_0012a18c")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((int)uVar4 < (int)(param_3 + 0x1c)) {\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" (if "if") (parenthesized_expression "((int)uVar4 < (int)(param_3 + 0x1c))" (( "(") (binary_expression "(int)uVar4 < (int)(param_3 + 0x1c)" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (cast_expression "(int)(param_3 + 0x1c)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) () ")")) (compound_statement "{\n    iVar12 = 0;\n    puVar8 = param_1 + uVar4;\n    do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);\n  }" ({ "{") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = param_1 + uVar4;" (assignment_expression "puVar8 = param_1 + uVar4" (identifier "puVar8") (= "=") (binary_expression "param_1 + uVar4" (identifier "param_1") (+ "+") (identifier "uVar4"))) (; ";")) (do_statement "do {\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    } while (param_1 + param_3 + 0x1c != puVar9);" (do "do") (compound_statement "{\n      while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }\n      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;\n      puVar9 = puVar8 + 1;\n      uVar7 = 5;\n      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];\n      puVar8 = puVar9;\n    }" ({ "{") (while_statement "while( true ) {\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        uVar4 = puVar8[-1];\n        uVar13 = uVar7 + 1;\n        if (uVar7 != 0) break;\n        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;\n        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);\nLAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];\n        if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }\n        puVar8 = puVar8 + 1;\n        uVar7 = uVar13;\n        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;\n      }" ({ "{") (expression_statement "uVar4 = puVar8[-1];" (assignment_expression "uVar4 = puVar8[-1]" (identifier "uVar4") (= "=") (subscript_expression "puVar8[-1]" (identifier "puVar8") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "uVar13 = uVar7 + 1;" (assignment_expression "uVar13 = uVar7 + 1" (identifier "uVar13") (= "=") (binary_expression "uVar7 + 1" (identifier "uVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar7 != 0) break;" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;" (assignment_expression "uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100" (identifier "uVar4") (= "=") (binary_expression "(uVar4 >> 0x18) + uVar4 * 0x100" (parenthesized_expression "(uVar4 >> 0x18)" (( "(") (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (binary_expression "uVar4 * 0x100" (identifier "uVar4") (* "*") (number_literal "0x100")))) (; ";")) (expression_statement "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);" (assignment_expression "uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (identifier "uVar4") (= "=") (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^\n                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (binary_expression "(uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18" (cast_expression "(uint)(byte)puVar1[iVar12 + 0x46fc]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[iVar12 + 0x46fc]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[iVar12 + 0x46fc]" (identifier "puVar1") ([ "[") (binary_expression "iVar12 + 0x46fc" (identifier "iVar12") (+ "+") (number_literal "0x46fc")) (] "]")))) (<< "<<") (number_literal "0x18")) (^ "^") (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8)" (( "(") (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" (( "(") (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" (( "(") (binary_expression "uVar4 & 0xff" (identifier "uVar4") (& "&") (number_literal "0xff")) () ")")) (+ "+") (number_literal "0x4808")) (] "]"))))) (| "|") (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 * 0x100 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x100 >> 0x18)" (( "(") (binary_expression "uVar4 * 0x100 >> 0x18" (binary_expression "uVar4 * 0x100" (identifier "uVar4") (* "*") (number_literal "0x100")) (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 * 0x10000 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 * 0x10000 >> 0x18)" (( "(") (binary_expression "uVar4 * 0x10000 >> 0x18" (binary_expression "uVar4 * 0x10000" (identifier "uVar4") (* "*") (number_literal "0x10000")) (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "8"))) () ")")))) (; ";")) (labeled_statement "LAB_0004c360:\n        *puVar8 = uVar4 ^ puVar8[-uVar11];" (statement_identifier "LAB_0004c360") (: ":") (expression_statement "*puVar8 = uVar4 ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = uVar4 ^ puVar8[-uVar11]" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (binary_expression "uVar4 ^ puVar8[-uVar11]" (identifier "uVar4") (^ "^") (subscript_expression "puVar8[-uVar11]" (identifier "puVar8") ([ "[") (unary_expression "-uVar11" (- "-") (identifier "uVar11")) (] "]")))) (; ";"))) (if_statement "if (uVar11 == uVar13) {\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" (if "if") (parenthesized_expression "(uVar11 == uVar13)" (( "(") (binary_expression "uVar11 == uVar13" (identifier "uVar11") (== "==") (identifier "uVar13")) () ")")) (compound_statement "{\n          iVar12 = iVar12 + 1;\n          uVar13 = 0;\n        }" ({ "{") (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" (identifier "uVar13") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = uVar13;" (assignment_expression "uVar7 = uVar13" (identifier "uVar7") (= "=") (identifier "uVar13")) (; ";")) (if_statement "if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;" (if "if") (parenthesized_expression "(param_1 + param_3 + 0x1c == puVar8)" (( "(") (binary_expression "param_1 + param_3 + 0x1c == puVar8" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3")) (+ "+") (number_literal "0x1c")) (== "==") (identifier "puVar8")) () ")")) (goto_statement "goto LAB_0004c384;" (goto "goto") (statement_identifier "LAB_0004c384") (; ";"))) (} "}"))) (if_statement "if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;" (if "if") (parenthesized_expression "((uVar11 < 7) || (uVar7 != 4))" (( "(") (binary_expression "(uVar11 < 7) || (uVar7 != 4)" (parenthesized_expression "(uVar11 < 7)" (( "(") (binary_expression "uVar11 < 7" (identifier "uVar11") (< "<") (number_literal "7")) () ")")) (|| "||") (parenthesized_expression "(uVar7 != 4)" (( "(") (binary_expression "uVar7 != 4" (identifier "uVar7") (!= "!=") (number_literal "4")) () ")"))) () ")")) (goto_statement "goto LAB_0004c360;" (goto "goto") (statement_identifier "LAB_0004c360") (; ";"))) (expression_statement "puVar9 = puVar8 + 1;" (assignment_expression "puVar9 = puVar8 + 1" (identifier "puVar9") (= "=") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = 5;" (assignment_expression "uVar7 = 5" (identifier "uVar7") (= "=") (number_literal "5")) (; ";")) (expression_statement "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];" (assignment_expression "*puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (binary_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11]" (parenthesized_expression "((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8)" (( "(") (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |\n                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |\n                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |\n                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (binary_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18" (cast_expression "(uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 >> 0x18) + 0x4808" (parenthesized_expression "(uVar4 >> 0x18)" (( "(") (binary_expression "uVar4 >> 0x18" (identifier "uVar4") (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "0x18")) (| "|") (cast_expression "(uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[(uVar4 & 0xff) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[(uVar4 & 0xff) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "(uVar4 & 0xff) + 0x4808" (parenthesized_expression "(uVar4 & 0xff)" (( "(") (binary_expression "uVar4 & 0xff" (identifier "uVar4") (& "&") (number_literal "0xff")) () ")")) (+ "+") (number_literal "0x4808")) (] "]"))))) (| "|") (binary_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10" (cast_expression "(uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[((uVar4 << 8) >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "((uVar4 << 8) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 8) >> 0x18)" (( "(") (binary_expression "(uVar4 << 8) >> 0x18" (parenthesized_expression "(uVar4 << 8)" (( "(") (binary_expression "uVar4 << 8" (identifier "uVar4") (<< "<<") (number_literal "8")) () ")")) (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "0x10"))) (| "|") (binary_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8" (cast_expression "(uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808]" (identifier "puVar1") ([ "[") (binary_expression "((uVar4 << 0x10) >> 0x18) + 0x4808" (parenthesized_expression "((uVar4 << 0x10) >> 0x18)" (( "(") (binary_expression "(uVar4 << 0x10) >> 0x18" (parenthesized_expression "(uVar4 << 0x10)" (( "(") (binary_expression "uVar4 << 0x10" (identifier "uVar4") (<< "<<") (number_literal "0x10")) () ")")) (>> ">>") (number_literal "0x18")) () ")")) (+ "+") (number_literal "0x4808")) (] "]")))) (<< "<<") (number_literal "8"))) () ")")) (^ "^") (subscript_expression "puVar8[-uVar11]" (identifier "puVar8") ([ "[") (unary_expression "-uVar11" (- "-") (identifier "uVar11")) (] "]")))) (; ";")) (expression_statement "puVar8 = puVar9;" (assignment_expression "puVar8 = puVar9" (identifier "puVar8") (= "=") (identifier "puVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 + param_3 + 0x1c != puVar9)" (( "(") (binary_expression "param_1 + param_3 + 0x1c != puVar9" (binary_expression "param_1 + param_3 + 0x1c" (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3")) (+ "+") (number_literal "0x1c")) (!= "!=") (identifier "puVar9")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0004c384:\n  iVar12 = *(int *)puVar2;" (statement_identifier "LAB_0004c384") (: ":") (expression_statement "iVar12 = *(int *)puVar2;" (assignment_expression "iVar12 = *(int *)puVar2" (identifier "iVar12") (= "=") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";"))) (expression_statement "param_1[0x3c] = uVar11 + 6;" (assignment_expression "param_1[0x3c] = uVar11 + 6" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (= "=") (binary_expression "uVar11 + 6" (identifier "uVar11") (+ "+") (number_literal "6"))) (; ";")) (if_statement "if (iVar5 != iVar12) {\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" (if "if") (parenthesized_expression "(iVar5 != iVar12)" (( "(") (binary_expression "iVar5 != iVar12" (identifier "iVar5") (!= "!=") (identifier "iVar12")) () ")")) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *aes,void *key,type_2 var_1)

{
  type_3 *puVar1;
  type_3 *puVar2;
  uint32_t *var_3;
  type_2 var_4;
  int var_9;
  uint32_t uVar6;
  type_2 var_5;
  uint32_t *var_8;
  type_1 *ptVar9;
  type_2 var_2;
  int var_6;
  type_2 var_7;
  uint32_t v;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  var_2 = var_1 >> 2;
  var_9 = *(int *)PTR___stack_chk_guard_0012b14c;
  var_4 = 0;
  if (var_2 != 0) {
    var_3 = (uint32_t *)((int)key + var_2 * 4);
    ptVar9 = aes;
    do {
                    /* WARNING: Load size is inaccurate */
      uVar6 = *key;
      key = (void *)((int)key + 4);
      ptVar9->key[0] = uVar6;
      var_4 = var_2;
      ptVar9 = (type_1 *)(ptVar9->key + 1);
    } while ((uint32_t *)key != var_3);
  }
  puVar1 = PTR_UINT_0012a18c;
  var_5 = 0;
  if ((int)var_4 < (int)(var_1 + 0x1c)) {
    var_6 = 0;
    var_3 = aes->key + var_4;
    do {
      while( true ) {
        var_4 = var_3[-1];
        var_7 = var_5 + 1;
        if (var_5 != 0) break;
        var_4 = (var_4 >> 0x18) + var_4 * 0x100;
        var_4 = (type_2)(type_4)puVar1[var_6 + 0x46fc] << 0x18 ^
                ((type_2)(type_4)puVar1[(var_4 >> 0x18) + 0x4808] << 0x18 |
                 (type_2)(type_4)puVar1[(var_4 & 0xff) + 0x4808] |
                 (type_2)(type_4)puVar1[(var_4 * 0x100 >> 0x18) + 0x4808] << 0x10 |
                (type_2)(type_4)puVar1[(var_4 * 0x10000 >> 0x18) + 0x4808] << 8);
LAB_0004c360:
        *var_3 = var_4 ^ var_3[-var_2];
        if (var_2 == var_7) {
          var_6 = var_6 + 1;
          var_7 = 0;
        }
        var_3 = var_3 + 1;
        var_5 = var_7;
        if (aes->key + var_1 + 0x1c == var_3) goto LAB_0004c384;
      }
      if ((var_2 < 7) || (var_5 != 4)) goto LAB_0004c360;
      var_8 = var_3 + 1;
      var_5 = 5;
      *var_3 = ((type_2)(type_4)puVar1[(var_4 >> 0x18) + 0x4808] << 0x18 |
                 (type_2)(type_4)puVar1[(var_4 & 0xff) + 0x4808] |
                 (type_2)(type_4)puVar1[((var_4 << 8) >> 0x18) + 0x4808] << 0x10 |
                (type_2)(type_4)puVar1[((var_4 << 0x10) >> 0x18) + 0x4808] << 8) ^ var_3[-var_2];
      var_3 = var_8;
    } while (aes->key + var_1 + 0x1c != var_8);
  }
LAB_0004c384:
  var_6 = *(int *)puVar2;
  aes->rounds = var_2 + 6;
  if (var_9 != var_6) {
    (*(type_5 *)PTR___stack_chk_fail_0012b0c8)();
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (unary_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))))) right: (number_literal))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))))) right: (number_literal)))) right: (subscript_expression argument: (identifier) index: (unary_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) right: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (return_statement))) (return_statement))))

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

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 *puVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  uint uVar7;
  uint *puVar8;
  uint *puVar9;
  undefined4 *puVar10;
  uint uVar11;
  int iVar12;
  uint uVar13;
  
  puVar2 = PTR___stack_chk_guard_0012b14c;
  uVar11 = param_3 >> 2;
  iVar5 = *(int *)PTR___stack_chk_guard_0012b14c;
  uVar4 = 0;
  if (uVar11 != 0) {
    puVar3 = param_2 + uVar11;
    puVar10 = param_1;
    do {
      uVar6 = *param_2;
      param_2 = param_2 + 1;
      *puVar10 = uVar6;
      uVar4 = uVar11;
      puVar10 = puVar10 + 1;
    } while (param_2 != puVar3);
  }
  puVar1 = PTR_UINT_0012a18c;
  uVar7 = 0;
  if ((int)uVar4 < (int)(param_3 + 0x1c)) {
    iVar12 = 0;
    puVar8 = param_1 + uVar4;
    do {
      while( true ) {
        uVar4 = puVar8[-1];
        uVar13 = uVar7 + 1;
        if (uVar7 != 0) break;
        uVar4 = (uVar4 >> 0x18) + uVar4 * 0x100;
        uVar4 = (uint)(byte)puVar1[iVar12 + 0x46fc] << 0x18 ^
                ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[(uVar4 * 0x100 >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[(uVar4 * 0x10000 >> 0x18) + 0x4808] << 8);
LAB_0004c360:
        *puVar8 = uVar4 ^ puVar8[-uVar11];
        if (uVar11 == uVar13) {
          iVar12 = iVar12 + 1;
          uVar13 = 0;
        }
        puVar8 = puVar8 + 1;
        uVar7 = uVar13;
        if (param_1 + param_3 + 0x1c == puVar8) goto LAB_0004c384;
      }
      if ((uVar11 < 7) || (uVar7 != 4)) goto LAB_0004c360;
      puVar9 = puVar8 + 1;
      uVar7 = 5;
      *puVar8 = ((uint)(byte)puVar1[(uVar4 >> 0x18) + 0x4808] << 0x18 |
                 (uint)(byte)puVar1[(uVar4 & 0xff) + 0x4808] |
                 (uint)(byte)puVar1[((uVar4 << 8) >> 0x18) + 0x4808] << 0x10 |
                (uint)(byte)puVar1[((uVar4 << 0x10) >> 0x18) + 0x4808] << 8) ^ puVar8[-uVar11];
      puVar8 = puVar9;
    } while (param_1 + param_3 + 0x1c != puVar9);
  }
LAB_0004c384:
  iVar12 = *(int *)puVar2;
  param_1[0x3c] = uVar11 + 6;
  if (iVar5 != iVar12) {
    (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return;
  }
  return;
}

