
void SHA_Bytes(SHA_State *s,void *p,int len)

{
  undefined *puVar1;
  uint uVar2;
  int iVar3;
  uchar *puVar4;
  int iVar5;
  word32 *pwVar6;
  uint *puVar7;
  SHA_State *s_00;
  int iVar8;
  uint32 wordblock [16];
  uint local_2c;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  uVar2 = len + s->lenlo;
  s_00 = (SHA_State *)s->block;
  iVar5 = s->blkused;
  s->lenlo = uVar2;
  iVar3 = iVar5 + len;
  s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len);
  local_2c = *(uint *)puVar1;
  iVar8 = len;
  if (iVar5 == 0) {
    if (0x3f < iVar3) goto LAB_0004b7d0;
  }
  else {
    if (iVar3 < 0x40) {
      s_00 = (SHA_State *)((int)s_00 + iVar5);
      (*(code *)PTR_memcpy_000798e0)();
      s->blkused = s->blkused + len;
      goto LAB_0004b888;
    }
LAB_0004b7d0:
    do {
      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);
      iVar3 = 0x40 - s->blkused;
      p = (void *)((int)p + iVar3);
      iVar8 = iVar8 - iVar3;
      puVar4 = (uchar *)s_00;
      pwVar6 = wordblock;
      do {
        puVar7 = pwVar6 + 1;
        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |
                  (uint)puVar4[2] << 8;
        puVar4 = puVar4 + 4;
        pwVar6 = puVar7;
      } while (&local_2c != puVar7);
      SHATransform(s->h,wordblock);
      iVar5 = 0;
      s->blkused = 0;
      iVar3 = iVar8;
    } while (0x3f < iVar8);
  }
  (*(code *)PTR_memcpy_000798e0)();
  s->blkused = iVar3;
LAB_0004b888:
  if (local_2c != *(uint *)puVar1) {
    (*(code *)PTR___stack_chk_fail_000797f0)();
    SHA_Bytes(s_00,p,iVar8);
    return;
  }
  return;
}



void SHA_Bytes(byte *param_1,int param_2,uint param_3)

{
  int iVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  int iVar5;
  uint *puVar6;
  uint *puVar7;
  uint uVar8;
  uint unaff_s0;
  int unaff_s1;
  byte *unaff_s2;
  undefined4 unaff_s3;
  undefined4 unaff_s4;
  int *unaff_s5;
  uint *unaff_s6;
  byte *unaff_s7;
  code *pcVar9;
  code *pcVar10;
  uint *unaff_s8;
  undefined4 unaff_retaddr;
  undefined1 auStackX_0 [16];
  
  pcVar9 = SHA_Bytes;
  do {
    pbVar4 = param_1;
    pcVar10 = pcVar9 + 0x35930;
    iVar1 = *(int *)(pbVar4 + 0x5c);
    iVar2 = *(int *)(pbVar4 + 0x58);
    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;
    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;
    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;
    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);
    unaff_s2 = pbVar4 + 0x14;
    iVar5 = *(int *)(pbVar4 + 0x54);
    *(code **)((int)register0x00000074 + -0x78) = pcVar10;
    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;
    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    *(uint **)((int)register0x00000074 + -8) = unaff_s8;
    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;
    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;
    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;
    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;
    unaff_s0 = iVar5 + param_3;
    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);
    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;
    if (iVar5 == 0) {
      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;
LAB_0004b86c:
      param_1 = unaff_s2;
      iVar1 = param_2;
      (**(code **)(pcVar10 + -0x7790))();
      iVar2 = *(int *)((int)register0x00000074 + -0x78);
      *(uint *)(pbVar4 + 0x54) = unaff_s0;
      unaff_s1 = param_2;
    }
    else {
      if (0x3f < (int)unaff_s0) {
LAB_0004b7d0:
        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);
        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);
        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);
        unaff_s3 = 0x40;
        do {
          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);
          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));
          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));
          pbVar3 = unaff_s2;
          puVar6 = unaff_s8;
          do {
            puVar7 = puVar6 + 1;
            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |
                      (uint)pbVar3[2] << 8;
            pbVar3 = pbVar3 + 4;
            puVar6 = puVar7;
          } while (unaff_s6 != puVar7);
          SHATransform(pbVar4,unaff_s8);
          pcVar10 = *(code **)((int)register0x00000074 + -0x78);
          iVar5 = 0;
          pbVar4[0x54] = 0;
          pbVar4[0x55] = 0;
          pbVar4[0x56] = 0;
          pbVar4[0x57] = 0;
          unaff_s0 = param_3;
        } while (0x3f < (int)param_3);
        goto LAB_0004b86c;
      }
      param_1 = unaff_s2 + iVar5;
      iVar1 = param_2;
      uVar8 = param_3;
      (**(code **)(pcVar9 + 0x2e1a0))();
      iVar2 = *(int *)((int)register0x00000074 + -0x78);
      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;
      *(uint *)(pbVar4 + 0x54) = unaff_s0;
      param_3 = uVar8;
      unaff_s1 = param_2;
    }
    param_2 = iVar1;
    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {
      return;
    }
    pcVar9 = *(code **)(iVar2 + -0x7880);
    unaff_retaddr = 0x4b8fc;
    (*pcVar9)();
    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);
    unaff_s7 = pbVar4;
    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);
  } while( true );
}


lui gp,0x3
addiu gp,gp,0x5930
addu gp,gp,t9
addiu sp,sp,-0x88
lw v0,0x5c(a0)
lw v1,0x58(a0)
sw s5,0x74(sp)
addu v0,a2,v0
sw s7,0x7c(sp)
or s7,a0,zero
sw s2,0x68(sp)
sltu t0,v0,a2
lw s5,-0x7740(gp)
addiu s2,a0,0x14
lw a0,0x54(a0)
addu v1,v1,t0
sw gp,0x10(sp)
sw s1,0x64(sp)
or s1,a1,zero
sw s0,0x60(sp)
or s0,a2,zero
sw ra,0x84(sp)
sw s8,0x80(sp)
sw s6,0x78(sp)
sw s4,0x70(sp)
sw s3,0x6c(sp)
sw v0,0x5c(s7)
addu v0,a0,a2
sw v1,0x58(s7)
lw t1,0x0(s5)
sw t1,0x5c(sp)
beq a0,zero,0x0004b8c4
_slti v1,v0,0x40
slti v0,v0,0x40
bne v0,zero,0x0004b8d4
_lw t9,-0x7790(gp)
lw s4,-0x7ad0(gp)
addiu s8,sp,0x1c
addiu s6,sp,0x5c
li s3,0x40
lw t9,-0x7790(gp)
subu a2,s3,a0
addu a0,s2,a0
jalr t9
_or a1,s1,zero
or v1,s2,zero
lw v0,0x54(s7)
or a0,s8,zero
subu v0,s3,v0
addu s1,s1,v0
subu s0,s0,v0
lbu v0,0x0(v1)
addiu v1,v1,0x4
lbu a2,-0x3(v1)
addiu a0,a0,0x4
sll v0,v0,0x18
sll a2,a2,0x10
lbu a1,-0x2(v1)
lbu a3,-0x1(v1)
or v0,v0,a2
sll a1,a1,0x8
or v0,v0,a3
or v0,v0,a1
bne s6,a0,0x0004b80c
_sw v0,-0x4(a0)
or a0,s7,zero
or t9,s4,zero
bal 0x0004b48c
_or a1,s8,zero
slti v0,s0,0x40
lw gp,0x10(sp)
or a0,zero,zero
beq v0,zero,0x0004b7e0
_sw zero,0x54(s7)
or a3,s0,zero
lw t9,-0x7790(gp)
or a2,a3,zero
or a1,s1,zero
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
sw s0,0x54(s7)
lw v1,0x5c(sp)
lw v0,0x0(s5)
bne v1,v0,0x0004b8f0
_lw ra,0x84(sp)
lw s8,0x80(sp)
lw s7,0x7c(sp)
lw s6,0x78(sp)
lw s5,0x74(sp)
lw s4,0x70(sp)
lw s3,0x6c(sp)
lw s2,0x68(sp)
lw s1,0x64(sp)
lw s0,0x60(sp)
jr ra
_addiu sp,sp,0x88
beq v1,zero,0x0004b7d0
_or a3,a2,zero
b 0x0004b86c
_or s0,v0,zero
jalr t9
_addu a0,s2,a0
lw v0,0x54(s7)
lw gp,0x10(sp)
addu s0,v0,s0
b 0x0004b888
_sw s0,0x54(s7)
lw t9,-0x7880(gp)
jalr t9
_nop
lui gp,0x3
addiu gp,gp,0x5774
addu gp,gp,t9
lw t9,-0x7bbc(gp)
b 0x0004b740
_nop
(translation_unit "void SHA_Bytes(byte *param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}\n\n" (function_definition "void SHA_Bytes(byte *param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" primitive_type (function_declarator "SHA_Bytes(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint unaff_s0;" type_identifier identifier ;) (declaration "int unaff_s1;" primitive_type identifier ;) (declaration "byte *unaff_s2;" type_identifier (pointer_declarator "*unaff_s2" * identifier) ;) (declaration "undefined4 unaff_s3;" type_identifier identifier ;) (declaration "undefined4 unaff_s4;" type_identifier identifier ;) (declaration "int *unaff_s5;" primitive_type (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "uint *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "byte *unaff_s7;" type_identifier (pointer_declarator "*unaff_s7" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint *unaff_s8;" type_identifier (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar9 = SHA_Bytes;" (assignment_expression "pcVar9 = SHA_Bytes" identifier = identifier) ;) (do_statement "do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );" do (compound_statement "{\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  }" { (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar9 + 0x35930;" (assignment_expression "pcVar10 = pcVar9 + 0x35930" identifier = (binary_expression "pcVar9 + 0x35930" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(pbVar4 + 0x5c);" (assignment_expression "iVar1 = *(int *)(pbVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x5c)" * (cast_expression "(int *)(pbVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x5c)" ( (binary_expression "pbVar4 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(pbVar4 + 0x58);" (assignment_expression "iVar2 = *(int *)(pbVar4 + 0x58)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x58)" * (cast_expression "(int *)(pbVar4 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x58)" ( (binary_expression "pbVar4 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "*(int **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(int **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(int **)((int)register0x00000074 + -0x14)" * (cast_expression "(int **)((int)register0x00000074 + -0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x14)" ( (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(byte **)((int)register0x00000074 + -0xc)" * (cast_expression "(byte **)((int)register0x00000074 + -0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0xc)" ( (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(byte **)((int)register0x00000074 + -0x20)" * (cast_expression "(byte **)((int)register0x00000074 + -0x20)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);" (assignment_expression "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0)" identifier = (pointer_expression "*(int **)(pcVar9 + 0x2e1f0)" * (cast_expression "(int **)(pcVar9 + 0x2e1f0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2e1f0)" ( (binary_expression "pcVar9 + 0x2e1f0" identifier + number_literal) ))))) ;) (expression_statement "unaff_s2 = pbVar4 + 0x14;" (assignment_expression "unaff_s2 = pbVar4 + 0x14" identifier = (binary_expression "pbVar4 + 0x14" identifier + number_literal)) ;) (expression_statement "iVar5 = *(int *)(pbVar4 + 0x54);" (assignment_expression "iVar5 = *(int *)(pbVar4 + 0x54)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x78) = pcVar10;" (assignment_expression "*(code **)((int)register0x00000074 + -0x78) = pcVar10" (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" * (cast_expression "(code **)((int)register0x00000074 + -0x78)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(int *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(int *)((int)register0x00000074 + -0x24)" * (cast_expression "(int *)((int)register0x00000074 + -0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -0x28)" * (cast_expression "(uint *)((int)register0x00000074 + -0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x28)" ( (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint **)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(uint **)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(uint **)((int)register0x00000074 + -8)" * (cast_expression "(uint **)((int)register0x00000074 + -8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(uint **)((int)register0x00000074 + -0x10)" * (cast_expression "(uint **)((int)register0x00000074 + -0x10)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x18)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x18)" ( (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x1c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x1c)" ( (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;" (assignment_expression "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1" (pointer_expression "*(uint *)(pbVar4 + 0x5c)" * (cast_expression "(uint *)(pbVar4 + 0x5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x5c)" ( (binary_expression "pbVar4 + 0x5c" identifier + number_literal) )))) = (binary_expression "param_3 + iVar1" identifier + identifier)) ;) (expression_statement "unaff_s0 = iVar5 + param_3;" (assignment_expression "unaff_s0 = iVar5 + param_3" identifier = (binary_expression "iVar5 + param_3" identifier + identifier)) ;) (expression_statement "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);" (assignment_expression "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3)" (pointer_expression "*(uint *)(pbVar4 + 0x58)" * (cast_expression "(uint *)(pbVar4 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x58)" ( (binary_expression "pbVar4 + 0x58" identifier + number_literal) )))) = (binary_expression "iVar2 + (uint)(param_3 + iVar1 < param_3)" identifier + (call_expression "(uint)(param_3 + iVar1 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar1 < param_3)" ( (binary_expression "param_3 + iVar1 < param_3" (binary_expression "param_3 + iVar1" identifier + identifier) < identifier) ))))) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;" (assignment_expression "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" * (cast_expression "(int *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*unaff_s5" * identifier)) ;) (if_statement "if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }" { (if_statement "if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;" if (parenthesized_expression "(0x3f < (int)unaff_s0)" ( (binary_expression "0x3f < (int)unaff_s0" number_literal < (cast_expression "(int)unaff_s0" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0004b7d0;" goto statement_identifier ;)) (labeled_statement "LAB_0004b86c:\n      param_1 = unaff_s2;" statement_identifier : (expression_statement "param_1 = unaff_s2;" (assignment_expression "param_1 = unaff_s2" identifier = identifier) ;)) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "(**(code **)(pcVar10 + -0x7790))();" (call_expression "(**(code **)(pcVar10 + -0x7790))()" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" ( (pointer_expression "**(code **)(pcVar10 + -0x7790)" * (pointer_expression "*(code **)(pcVar10 + -0x7790)" * (cast_expression "(code **)(pcVar10 + -0x7790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + -0x7790)" ( (binary_expression "pcVar10 + -0x7790" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" * (cast_expression "(int *)((int)register0x00000074 + -0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" * (cast_expression "(uint *)(pbVar4 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" identifier = identifier) ;) }) (else_clause "else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" else (compound_statement "{\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" { (if_statement "if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" if (parenthesized_expression "(0x3f < (int)unaff_s0)" ( (binary_expression "0x3f < (int)unaff_s0" number_literal < (cast_expression "(int)unaff_s0" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" { (labeled_statement "LAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" statement_identifier : (expression_statement "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" (assignment_expression "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60)" identifier = (pointer_expression "*(undefined4 *)(pcVar9 + 0x2de60)" * (cast_expression "(undefined4 *)(pcVar9 + 0x2de60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0x2de60)" ( (binary_expression "pcVar9 + 0x2de60" identifier + number_literal) ))))) ;)) (expression_statement "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);" (assignment_expression "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c)" identifier = (cast_expression "(uint *)((int)register0x00000074 + -0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x6c)" ( (binary_expression "(int)register0x00000074 + -0x6c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);" (assignment_expression "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c)" identifier = (cast_expression "(uint *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s3 = 0x40;" (assignment_expression "unaff_s3 = 0x40" identifier = number_literal) ;) (do_statement "do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);" do (compound_statement "{\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        }" { (expression_statement "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);" (call_expression "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5)" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" ( (pointer_expression "**(code **)(pcVar10 + -0x7790)" * (pointer_expression "*(code **)(pcVar10 + -0x7790)" * (cast_expression "(code **)(pcVar10 + -0x7790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + -0x7790)" ( (binary_expression "pcVar10 + -0x7790" identifier + number_literal) ))))) )) (argument_list "(unaff_s2 + iVar5,param_2,0x40 - iVar5)" ( (binary_expression "unaff_s2 + iVar5" identifier + identifier) , identifier , (binary_expression "0x40 - iVar5" number_literal - identifier) ))) ;) (expression_statement "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" identifier = (binary_expression "param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" identifier + (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" ( (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" number_literal - (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" identifier = (binary_expression "param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" identifier - (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" ( (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" number_literal - (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) )))) ;) (expression_statement "pbVar3 = unaff_s2;" (assignment_expression "pbVar3 = unaff_s2" identifier = identifier) ;) (expression_statement "puVar6 = unaff_s8;" (assignment_expression "puVar6 = unaff_s8" identifier = identifier) ;) (do_statement "do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);" do (compound_statement "{\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;" (assignment_expression "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (pointer_expression "*puVar6" * identifier) = (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ]))) | (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(unaff_s6 != puVar7)" ( (binary_expression "unaff_s6 != puVar7" identifier != identifier) )) ;) (expression_statement "SHATransform(pbVar4,unaff_s8);" (call_expression "SHATransform(pbVar4,unaff_s8)" identifier (argument_list "(pbVar4,unaff_s8)" ( identifier , identifier ))) ;) (expression_statement "pcVar10 = *(code **)((int)register0x00000074 + -0x78);" (assignment_expression "pcVar10 = *(code **)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" * (cast_expression "(code **)((int)register0x00000074 + -0x78)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar4[0x54] = 0;" (assignment_expression "pbVar4[0x54] = 0" (subscript_expression "pbVar4[0x54]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x55] = 0;" (assignment_expression "pbVar4[0x55] = 0" (subscript_expression "pbVar4[0x55]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x56] = 0;" (assignment_expression "pbVar4[0x56] = 0" (subscript_expression "pbVar4[0x56]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x57] = 0;" (assignment_expression "pbVar4[0x57] = 0" (subscript_expression "pbVar4[0x57]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_s0 = param_3;" (assignment_expression "unaff_s0 = param_3" identifier = identifier) ;) }) while (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (goto_statement "goto LAB_0004b86c;" goto statement_identifier ;) })) (expression_statement "param_1 = unaff_s2 + iVar5;" (assignment_expression "param_1 = unaff_s2 + iVar5" identifier = (binary_expression "unaff_s2 + iVar5" identifier + identifier)) ;) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "uVar8 = param_3;" (assignment_expression "uVar8 = param_3" identifier = identifier) ;) (expression_statement "(**(code **)(pcVar9 + 0x2e1a0))();" (call_expression "(**(code **)(pcVar9 + 0x2e1a0))()" (parenthesized_expression "(**(code **)(pcVar9 + 0x2e1a0))" ( (pointer_expression "**(code **)(pcVar9 + 0x2e1a0)" * (pointer_expression "*(code **)(pcVar9 + 0x2e1a0)" * (cast_expression "(code **)(pcVar9 + 0x2e1a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2e1a0)" ( (binary_expression "pcVar9 + 0x2e1a0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" * (cast_expression "(int *)((int)register0x00000074 + -0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;" (assignment_expression "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3" identifier = (binary_expression "*(int *)(pbVar4 + 0x54) + param_3" (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" * (cast_expression "(uint *)(pbVar4 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_3 = uVar8;" (assignment_expression "param_3 = uVar8" identifier = identifier) ;) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" identifier = identifier) ;) }))) (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" identifier = identifier) ;) (if_statement "if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" * (cast_expression "(int *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (pointer_expression "*unaff_s5" * identifier)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar9 = *(code **)(iVar2 + -0x7880);" (assignment_expression "pcVar9 = *(code **)(iVar2 + -0x7880)" identifier = (pointer_expression "*(code **)(iVar2 + -0x7880)" * (cast_expression "(code **)(iVar2 + -0x7880)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + -0x7880)" ( (binary_expression "iVar2 + -0x7880" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr = 0x4b8fc;" (assignment_expression "unaff_retaddr = 0x4b8fc" identifier = number_literal) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar9 = *(code **)(pcVar9 + 0x2dbb8);" (assignment_expression "pcVar9 = *(code **)(pcVar9 + 0x2dbb8)" identifier = (pointer_expression "*(code **)(pcVar9 + 0x2dbb8)" * (cast_expression "(code **)(pcVar9 + 0x2dbb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2dbb8)" ( (binary_expression "pcVar9 + 0x2dbb8" identifier + number_literal) ))))) ;) (expression_statement "unaff_s7 = pbVar4;" (assignment_expression "unaff_s7 = pbVar4" identifier = identifier) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x88)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x88)" ( (binary_expression "(int)register0x00000074 + -0x88" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void SHA_Bytes(SHA_State *s,void *p,int len)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  int iVar3;\n  uchar *puVar4;\n  int iVar5;\n  word32 *pwVar6;\n  uint *puVar7;\n  SHA_State *s_00;\n  int iVar8;\n  uint32 wordblock [16];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  uVar2 = len + s->lenlo;\n  s_00 = (SHA_State *)s->block;\n  iVar5 = s->blkused;\n  s->lenlo = uVar2;\n  iVar3 = iVar5 + len;\n  s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len);\n  local_2c = *(uint *)puVar1;\n  iVar8 = len;\n  if (iVar5 == 0) {\n    if (0x3f < iVar3) goto LAB_0004b7d0;\n  }\n  else {\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }\n  (*(code *)PTR_memcpy_000798e0)();\n  s->blkused = iVar3;\nLAB_0004b888:\n  if (local_2c != *(uint *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void SHA_Bytes(SHA_State *s,void *p,int len)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  int iVar3;\n  uchar *puVar4;\n  int iVar5;\n  word32 *pwVar6;\n  uint *puVar7;\n  SHA_State *s_00;\n  int iVar8;\n  uint32 wordblock [16];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  uVar2 = len + s->lenlo;\n  s_00 = (SHA_State *)s->block;\n  iVar5 = s->blkused;\n  s->lenlo = uVar2;\n  iVar3 = iVar5 + len;\n  s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len);\n  local_2c = *(uint *)puVar1;\n  iVar8 = len;\n  if (iVar5 == 0) {\n    if (0x3f < iVar3) goto LAB_0004b7d0;\n  }\n  else {\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }\n  (*(code *)PTR_memcpy_000798e0)();\n  s->blkused = iVar3;\nLAB_0004b888:\n  if (local_2c != *(uint *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "SHA_Bytes(SHA_State *s,void *p,int len)" identifier (parameter_list "(SHA_State *s,void *p,int len)" ( (parameter_declaration "SHA_State *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  int iVar3;\n  uchar *puVar4;\n  int iVar5;\n  word32 *pwVar6;\n  uint *puVar7;\n  SHA_State *s_00;\n  int iVar8;\n  uint32 wordblock [16];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  uVar2 = len + s->lenlo;\n  s_00 = (SHA_State *)s->block;\n  iVar5 = s->blkused;\n  s->lenlo = uVar2;\n  iVar3 = iVar5 + len;\n  s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len);\n  local_2c = *(uint *)puVar1;\n  iVar8 = len;\n  if (iVar5 == 0) {\n    if (0x3f < iVar3) goto LAB_0004b7d0;\n  }\n  else {\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }\n  (*(code *)PTR_memcpy_000798e0)();\n  s->blkused = iVar3;\nLAB_0004b888:\n  if (local_2c != *(uint *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "word32 *pwVar6;" type_identifier (pointer_declarator "*pwVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "SHA_State *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint32 wordblock [16];" type_identifier (array_declarator "wordblock [16]" identifier [ number_literal ]) ;) (declaration "uint local_2c;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "uVar2 = len + s->lenlo;" (assignment_expression "uVar2 = len + s->lenlo" identifier = (binary_expression "len + s->lenlo" identifier + (field_expression "s->lenlo" identifier -> field_identifier))) ;) (expression_statement "s_00 = (SHA_State *)s->block;" (assignment_expression "s_00 = (SHA_State *)s->block" identifier = (cast_expression "(SHA_State *)s->block" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s->block" identifier -> field_identifier))) ;) (expression_statement "iVar5 = s->blkused;" (assignment_expression "iVar5 = s->blkused" identifier = (field_expression "s->blkused" identifier -> field_identifier)) ;) (expression_statement "s->lenlo = uVar2;" (assignment_expression "s->lenlo = uVar2" (field_expression "s->lenlo" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar3 = iVar5 + len;" (assignment_expression "iVar3 = iVar5 + len" identifier = (binary_expression "iVar5 + len" identifier + identifier)) ;) (expression_statement "s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len);" (assignment_expression "s->lenhi = s->lenhi + (uint)(uVar2 < (uint)len)" (field_expression "s->lenhi" identifier -> field_identifier) = (binary_expression "s->lenhi + (uint)(uVar2 < (uint)len)" (field_expression "s->lenhi" identifier -> field_identifier) + (call_expression "(uint)(uVar2 < (uint)len)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < (uint)len)" ( (binary_expression "uVar2 < (uint)len" identifier < (cast_expression "(uint)len" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) ;) (expression_statement "local_2c = *(uint *)puVar1;" (assignment_expression "local_2c = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar8 = len;" (assignment_expression "iVar8 = len" identifier = identifier) ;) (if_statement "if (iVar5 == 0) {\n    if (0x3f < iVar3) goto LAB_0004b7d0;\n  }\n  else {\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    if (0x3f < iVar3) goto LAB_0004b7d0;\n  }" { (if_statement "if (0x3f < iVar3) goto LAB_0004b7d0;" if (parenthesized_expression "(0x3f < iVar3)" ( (binary_expression "0x3f < iVar3" number_literal < identifier) )) (goto_statement "goto LAB_0004b7d0;" goto statement_identifier ;)) }) (else_clause "else {\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }" else (compound_statement "{\n    if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }\nLAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);\n  }" { (if_statement "if (iVar3 < 0x40) {\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }" if (parenthesized_expression "(iVar3 < 0x40)" ( (binary_expression "iVar3 < 0x40" identifier < number_literal) )) (compound_statement "{\n      s_00 = (SHA_State *)((int)s_00 + iVar5);\n      (*(code *)PTR_memcpy_000798e0)();\n      s->blkused = s->blkused + len;\n      goto LAB_0004b888;\n    }" { (expression_statement "s_00 = (SHA_State *)((int)s_00 + iVar5);" (assignment_expression "s_00 = (SHA_State *)((int)s_00 + iVar5)" identifier = (cast_expression "(SHA_State *)((int)s_00 + iVar5)" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s_00 + iVar5)" ( (binary_expression "(int)s_00 + iVar5" (cast_expression "(int)s_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "(*(code *)PTR_memcpy_000798e0)();" (call_expression "(*(code *)PTR_memcpy_000798e0)()" (parenthesized_expression "(*(code *)PTR_memcpy_000798e0)" ( (pointer_expression "*(code *)PTR_memcpy_000798e0" * (cast_expression "(code *)PTR_memcpy_000798e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "s->blkused = s->blkused + len;" (assignment_expression "s->blkused = s->blkused + len" (field_expression "s->blkused" identifier -> field_identifier) = (binary_expression "s->blkused + len" (field_expression "s->blkused" identifier -> field_identifier) + identifier)) ;) (goto_statement "goto LAB_0004b888;" goto statement_identifier ;) })) (labeled_statement "LAB_0004b7d0:\n    do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);" statement_identifier : (do_statement "do {\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    } while (0x3f < iVar8);" do (compound_statement "{\n      (*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);\n      iVar3 = 0x40 - s->blkused;\n      p = (void *)((int)p + iVar3);\n      iVar8 = iVar8 - iVar3;\n      puVar4 = (uchar *)s_00;\n      pwVar6 = wordblock;\n      do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);\n      SHATransform(s->h,wordblock);\n      iVar5 = 0;\n      s->blkused = 0;\n      iVar3 = iVar8;\n    }" { (expression_statement "(*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5);" (call_expression "(*(code *)PTR_memcpy_000798e0)((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000798e0)" ( (pointer_expression "*(code *)PTR_memcpy_000798e0" * (cast_expression "(code *)PTR_memcpy_000798e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uchar *)((int)s_00 + iVar5),p,0x40 - iVar5)" ( (cast_expression "(uchar *)((int)s_00 + iVar5)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)s_00 + iVar5)" ( (binary_expression "(int)s_00 + iVar5" (cast_expression "(int)s_00" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , identifier , (binary_expression "0x40 - iVar5" number_literal - identifier) ))) ;) (expression_statement "iVar3 = 0x40 - s->blkused;" (assignment_expression "iVar3 = 0x40 - s->blkused" identifier = (binary_expression "0x40 - s->blkused" number_literal - (field_expression "s->blkused" identifier -> field_identifier))) ;) (expression_statement "p = (void *)((int)p + iVar3);" (assignment_expression "p = (void *)((int)p + iVar3)" identifier = (cast_expression "(void *)((int)p + iVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + iVar3)" ( (binary_expression "(int)p + iVar3" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar8 = iVar8 - iVar3;" (assignment_expression "iVar8 = iVar8 - iVar3" identifier = (binary_expression "iVar8 - iVar3" identifier - identifier)) ;) (expression_statement "puVar4 = (uchar *)s_00;" (assignment_expression "puVar4 = (uchar *)s_00" identifier = (cast_expression "(uchar *)s_00" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pwVar6 = wordblock;" (assignment_expression "pwVar6 = wordblock" identifier = identifier) ;) (do_statement "do {\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      } while (&local_2c != puVar7);" do (compound_statement "{\n        puVar7 = pwVar6 + 1;\n        *pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;\n        puVar4 = puVar4 + 4;\n        pwVar6 = puVar7;\n      }" { (expression_statement "puVar7 = pwVar6 + 1;" (assignment_expression "puVar7 = pwVar6 + 1" identifier = (binary_expression "pwVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8;" (assignment_expression "*pwVar6 = (uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8" (pointer_expression "*pwVar6" * identifier) = (binary_expression "(uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3] |\n                  (uint)puVar4[2] << 8" (binary_expression "(uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10 | (uint)puVar4[3]" (binary_expression "(uint)*puVar4 << 0x18 | (uint)puVar4[1] << 0x10" (binary_expression "(uint)*puVar4 << 0x18" (binary_expression "(uint)*puVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)puVar4[1] << 0x10" (cast_expression "(uint)puVar4[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar4[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)puVar4[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar4[3]" identifier [ number_literal ]))) | (binary_expression "(uint)puVar4[2] << 8" (cast_expression "(uint)puVar4[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar4[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "puVar4 = puVar4 + 4;" (assignment_expression "puVar4 = puVar4 + 4" identifier = (binary_expression "puVar4 + 4" identifier + number_literal)) ;) (expression_statement "pwVar6 = puVar7;" (assignment_expression "pwVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(&local_2c != puVar7)" ( (binary_expression "&local_2c != puVar7" (pointer_expression "&local_2c" & identifier) != identifier) )) ;) (expression_statement "SHATransform(s->h,wordblock);" (call_expression "SHATransform(s->h,wordblock)" identifier (argument_list "(s->h,wordblock)" ( (field_expression "s->h" identifier -> field_identifier) , identifier ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "s->blkused = 0;" (assignment_expression "s->blkused = 0" (field_expression "s->blkused" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar3 = iVar8;" (assignment_expression "iVar3 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(0x3f < iVar8)" ( (binary_expression "0x3f < iVar8" number_literal < identifier) )) ;)) }))) (expression_statement "(*(code *)PTR_memcpy_000798e0)();" (call_expression "(*(code *)PTR_memcpy_000798e0)()" (parenthesized_expression "(*(code *)PTR_memcpy_000798e0)" ( (pointer_expression "*(code *)PTR_memcpy_000798e0" * (cast_expression "(code *)PTR_memcpy_000798e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "s->blkused = iVar3;" (assignment_expression "s->blkused = iVar3" (field_expression "s->blkused" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_0004b888:\n  if (local_2c != *(uint *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }" statement_identifier : (if_statement "if (local_2c != *(uint *)puVar1) {\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }" if (parenthesized_expression "(local_2c != *(uint *)puVar1)" ( (binary_expression "local_2c != *(uint *)puVar1" identifier != (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    (*(code *)PTR___stack_chk_fail_000797f0)();\n    SHA_Bytes(s_00,p,iVar8);\n    return;\n  }" { (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "SHA_Bytes(s_00,p,iVar8);" (call_expression "SHA_Bytes(s_00,p,iVar8)" identifier (argument_list "(s_00,p,iVar8)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void SHA_Bytes(byte *param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}\n\n" (function_definition "void SHA_Bytes(byte *param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" primitive_type (function_declarator "SHA_Bytes(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint unaff_s0;" type_identifier identifier ;) (declaration "int unaff_s1;" primitive_type identifier ;) (declaration "byte *unaff_s2;" type_identifier (pointer_declarator "*unaff_s2" * identifier) ;) (declaration "undefined4 unaff_s3;" type_identifier identifier ;) (declaration "undefined4 unaff_s4;" type_identifier identifier ;) (declaration "int *unaff_s5;" primitive_type (pointer_declarator "*unaff_s5" * identifier) ;) (declaration "uint *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "byte *unaff_s7;" type_identifier (pointer_declarator "*unaff_s7" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "uint *unaff_s8;" type_identifier (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "undefined1 auStackX_0 [16];" type_identifier (array_declarator "auStackX_0 [16]" identifier [ number_literal ]) ;) (expression_statement "pcVar9 = SHA_Bytes;" (assignment_expression "pcVar9 = SHA_Bytes" identifier = identifier) ;) (do_statement "do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );" do (compound_statement "{\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  }" { (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (expression_statement "pcVar10 = pcVar9 + 0x35930;" (assignment_expression "pcVar10 = pcVar9 + 0x35930" identifier = (binary_expression "pcVar9 + 0x35930" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(pbVar4 + 0x5c);" (assignment_expression "iVar1 = *(int *)(pbVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x5c)" * (cast_expression "(int *)(pbVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x5c)" ( (binary_expression "pbVar4 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)(pbVar4 + 0x58);" (assignment_expression "iVar2 = *(int *)(pbVar4 + 0x58)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x58)" * (cast_expression "(int *)(pbVar4 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x58)" ( (binary_expression "pbVar4 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "*(int **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(int **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(int **)((int)register0x00000074 + -0x14)" * (cast_expression "(int **)((int)register0x00000074 + -0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x14)" ( (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(byte **)((int)register0x00000074 + -0xc)" * (cast_expression "(byte **)((int)register0x00000074 + -0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0xc)" ( (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(byte **)((int)register0x00000074 + -0x20)" * (cast_expression "(byte **)((int)register0x00000074 + -0x20)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x20)" ( (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);" (assignment_expression "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0)" identifier = (pointer_expression "*(int **)(pcVar9 + 0x2e1f0)" * (cast_expression "(int **)(pcVar9 + 0x2e1f0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2e1f0)" ( (binary_expression "pcVar9 + 0x2e1f0" identifier + number_literal) ))))) ;) (expression_statement "unaff_s2 = pbVar4 + 0x14;" (assignment_expression "unaff_s2 = pbVar4 + 0x14" identifier = (binary_expression "pbVar4 + 0x14" identifier + number_literal)) ;) (expression_statement "iVar5 = *(int *)(pbVar4 + 0x54);" (assignment_expression "iVar5 = *(int *)(pbVar4 + 0x54)" identifier = (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) ;) (expression_statement "*(code **)((int)register0x00000074 + -0x78) = pcVar10;" (assignment_expression "*(code **)((int)register0x00000074 + -0x78) = pcVar10" (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" * (cast_expression "(code **)((int)register0x00000074 + -0x78)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(int *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(int *)((int)register0x00000074 + -0x24)" * (cast_expression "(int *)((int)register0x00000074 + -0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x24)" ( (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -0x28)" * (cast_expression "(uint *)((int)register0x00000074 + -0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x28)" ( (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -4)" ( (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint **)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(uint **)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(uint **)((int)register0x00000074 + -8)" * (cast_expression "(uint **)((int)register0x00000074 + -8)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -8)" ( (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(uint **)((int)register0x00000074 + -0x10)" * (cast_expression "(uint **)((int)register0x00000074 + -0x10)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x10)" ( (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x18)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x18)" ( (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x1c)" * (cast_expression "(undefined4 *)((int)register0x00000074 + -0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x1c)" ( (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;" (assignment_expression "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1" (pointer_expression "*(uint *)(pbVar4 + 0x5c)" * (cast_expression "(uint *)(pbVar4 + 0x5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x5c)" ( (binary_expression "pbVar4 + 0x5c" identifier + number_literal) )))) = (binary_expression "param_3 + iVar1" identifier + identifier)) ;) (expression_statement "unaff_s0 = iVar5 + param_3;" (assignment_expression "unaff_s0 = iVar5 + param_3" identifier = (binary_expression "iVar5 + param_3" identifier + identifier)) ;) (expression_statement "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);" (assignment_expression "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3)" (pointer_expression "*(uint *)(pbVar4 + 0x58)" * (cast_expression "(uint *)(pbVar4 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x58)" ( (binary_expression "pbVar4 + 0x58" identifier + number_literal) )))) = (binary_expression "iVar2 + (uint)(param_3 + iVar1 < param_3)" identifier + (call_expression "(uint)(param_3 + iVar1 < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + iVar1 < param_3)" ( (binary_expression "param_3 + iVar1 < param_3" (binary_expression "param_3 + iVar1" identifier + identifier) < identifier) ))))) ;) (expression_statement "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;" (assignment_expression "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" * (cast_expression "(int *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*unaff_s5" * identifier)) ;) (if_statement "if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }" { (if_statement "if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;" if (parenthesized_expression "(0x3f < (int)unaff_s0)" ( (binary_expression "0x3f < (int)unaff_s0" number_literal < (cast_expression "(int)unaff_s0" ( (type_descriptor "int" primitive_type) ) identifier)) )) (goto_statement "goto LAB_0004b7d0;" goto statement_identifier ;)) (labeled_statement "LAB_0004b86c:\n      param_1 = unaff_s2;" statement_identifier : (expression_statement "param_1 = unaff_s2;" (assignment_expression "param_1 = unaff_s2" identifier = identifier) ;)) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "(**(code **)(pcVar10 + -0x7790))();" (call_expression "(**(code **)(pcVar10 + -0x7790))()" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" ( (pointer_expression "**(code **)(pcVar10 + -0x7790)" * (pointer_expression "*(code **)(pcVar10 + -0x7790)" * (cast_expression "(code **)(pcVar10 + -0x7790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + -0x7790)" ( (binary_expression "pcVar10 + -0x7790" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" * (cast_expression "(int *)((int)register0x00000074 + -0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" * (cast_expression "(uint *)(pbVar4 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" identifier = identifier) ;) }) (else_clause "else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" else (compound_statement "{\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" { (if_statement "if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" if (parenthesized_expression "(0x3f < (int)unaff_s0)" ( (binary_expression "0x3f < (int)unaff_s0" number_literal < (cast_expression "(int)unaff_s0" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" { (labeled_statement "LAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" statement_identifier : (expression_statement "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" (assignment_expression "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60)" identifier = (pointer_expression "*(undefined4 *)(pcVar9 + 0x2de60)" * (cast_expression "(undefined4 *)(pcVar9 + 0x2de60)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar9 + 0x2de60)" ( (binary_expression "pcVar9 + 0x2de60" identifier + number_literal) ))))) ;)) (expression_statement "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);" (assignment_expression "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c)" identifier = (cast_expression "(uint *)((int)register0x00000074 + -0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x6c)" ( (binary_expression "(int)register0x00000074 + -0x6c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);" (assignment_expression "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c)" identifier = (cast_expression "(uint *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "unaff_s3 = 0x40;" (assignment_expression "unaff_s3 = 0x40" identifier = number_literal) ;) (do_statement "do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);" do (compound_statement "{\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        }" { (expression_statement "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);" (call_expression "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5)" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" ( (pointer_expression "**(code **)(pcVar10 + -0x7790)" * (pointer_expression "*(code **)(pcVar10 + -0x7790)" * (cast_expression "(code **)(pcVar10 + -0x7790)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar10 + -0x7790)" ( (binary_expression "pcVar10 + -0x7790" identifier + number_literal) ))))) )) (argument_list "(unaff_s2 + iVar5,param_2,0x40 - iVar5)" ( (binary_expression "unaff_s2 + iVar5" identifier + identifier) , identifier , (binary_expression "0x40 - iVar5" number_literal - identifier) ))) ;) (expression_statement "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" identifier = (binary_expression "param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" identifier + (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" ( (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" number_literal - (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) )))) ;) (expression_statement "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" identifier = (binary_expression "param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" identifier - (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" ( (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" number_literal - (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) ))))) )))) ;) (expression_statement "pbVar3 = unaff_s2;" (assignment_expression "pbVar3 = unaff_s2" identifier = identifier) ;) (expression_statement "puVar6 = unaff_s8;" (assignment_expression "puVar6 = unaff_s8" identifier = identifier) ;) (do_statement "do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);" do (compound_statement "{\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          }" { (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;" (assignment_expression "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (pointer_expression "*puVar6" * identifier) = (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) << number_literal) | (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ]))) | (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ])) << number_literal))) ;) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" identifier = (binary_expression "pbVar3 + 4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" identifier = identifier) ;) }) while (parenthesized_expression "(unaff_s6 != puVar7)" ( (binary_expression "unaff_s6 != puVar7" identifier != identifier) )) ;) (expression_statement "SHATransform(pbVar4,unaff_s8);" (call_expression "SHATransform(pbVar4,unaff_s8)" identifier (argument_list "(pbVar4,unaff_s8)" ( identifier , identifier ))) ;) (expression_statement "pcVar10 = *(code **)((int)register0x00000074 + -0x78);" (assignment_expression "pcVar10 = *(code **)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" * (cast_expression "(code **)((int)register0x00000074 + -0x78)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar4[0x54] = 0;" (assignment_expression "pbVar4[0x54] = 0" (subscript_expression "pbVar4[0x54]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x55] = 0;" (assignment_expression "pbVar4[0x55] = 0" (subscript_expression "pbVar4[0x55]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x56] = 0;" (assignment_expression "pbVar4[0x56] = 0" (subscript_expression "pbVar4[0x56]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pbVar4[0x57] = 0;" (assignment_expression "pbVar4[0x57] = 0" (subscript_expression "pbVar4[0x57]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "unaff_s0 = param_3;" (assignment_expression "unaff_s0 = param_3" identifier = identifier) ;) }) while (parenthesized_expression "(0x3f < (int)param_3)" ( (binary_expression "0x3f < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (goto_statement "goto LAB_0004b86c;" goto statement_identifier ;) })) (expression_statement "param_1 = unaff_s2 + iVar5;" (assignment_expression "param_1 = unaff_s2 + iVar5" identifier = (binary_expression "unaff_s2 + iVar5" identifier + identifier)) ;) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" identifier = identifier) ;) (expression_statement "uVar8 = param_3;" (assignment_expression "uVar8 = param_3" identifier = identifier) ;) (expression_statement "(**(code **)(pcVar9 + 0x2e1a0))();" (call_expression "(**(code **)(pcVar9 + 0x2e1a0))()" (parenthesized_expression "(**(code **)(pcVar9 + 0x2e1a0))" ( (pointer_expression "**(code **)(pcVar9 + 0x2e1a0)" * (pointer_expression "*(code **)(pcVar9 + 0x2e1a0)" * (cast_expression "(code **)(pcVar9 + 0x2e1a0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2e1a0)" ( (binary_expression "pcVar9 + 0x2e1a0" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" identifier = (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" * (cast_expression "(int *)((int)register0x00000074 + -0x78)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x78)" ( (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;" (assignment_expression "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3" identifier = (binary_expression "*(int *)(pbVar4 + 0x54) + param_3" (pointer_expression "*(int *)(pbVar4 + 0x54)" * (cast_expression "(int *)(pbVar4 + 0x54)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" * (cast_expression "(uint *)(pbVar4 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar4 + 0x54)" ( (binary_expression "pbVar4 + 0x54" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_3 = uVar8;" (assignment_expression "param_3 = uVar8" identifier = identifier) ;) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" identifier = identifier) ;) }))) (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" identifier = identifier) ;) (if_statement "if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }" if (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5)" ( (binary_expression "*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" * (cast_expression "(int *)((int)register0x00000074 + -0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x2c)" ( (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (pointer_expression "*unaff_s5" * identifier)) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar9 = *(code **)(iVar2 + -0x7880);" (assignment_expression "pcVar9 = *(code **)(iVar2 + -0x7880)" identifier = (pointer_expression "*(code **)(iVar2 + -0x7880)" * (cast_expression "(code **)(iVar2 + -0x7880)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + -0x7880)" ( (binary_expression "iVar2 + -0x7880" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr = 0x4b8fc;" (assignment_expression "unaff_retaddr = 0x4b8fc" identifier = number_literal) ;) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar9 = *(code **)(pcVar9 + 0x2dbb8);" (assignment_expression "pcVar9 = *(code **)(pcVar9 + 0x2dbb8)" identifier = (pointer_expression "*(code **)(pcVar9 + 0x2dbb8)" * (cast_expression "(code **)(pcVar9 + 0x2dbb8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar9 + 0x2dbb8)" ( (binary_expression "pcVar9 + 0x2dbb8" identifier + number_literal) ))))) ;) (expression_statement "unaff_s7 = pbVar4;" (assignment_expression "unaff_s7 = pbVar4" identifier = identifier) ;) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88)" identifier = (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x88)" ( (type_descriptor "BADSPACEBASE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)register0x00000074 + -0x88)" ( (binary_expression "(int)register0x00000074 + -0x88" (cast_expression "(int)register0x00000074" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) < IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT , (binary_expression LIT - IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression LIT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (pointer_expression * IDENT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void SHA_Bytes(byte *param_1,int param_2,uint param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" (primitive_type "void") (function_declarator "SHA_Bytes(byte *param_1,int param_2,uint param_3)" (identifier "SHA_Bytes") (parameter_list "(byte *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  int iVar5;\n  uint *puVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint unaff_s0;\n  int unaff_s1;\n  byte *unaff_s2;\n  undefined4 unaff_s3;\n  undefined4 unaff_s4;\n  int *unaff_s5;\n  uint *unaff_s6;\n  byte *unaff_s7;\n  code *pcVar9;\n  code *pcVar10;\n  uint *unaff_s8;\n  undefined4 unaff_retaddr;\n  undefined1 auStackX_0 [16];\n  \n  pcVar9 = SHA_Bytes;\n  do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint unaff_s0;" (type_identifier "uint") (identifier "unaff_s0") (; ";")) (declaration "int unaff_s1;" (primitive_type "int") (identifier "unaff_s1") (; ";")) (declaration "byte *unaff_s2;" (type_identifier "byte") (pointer_declarator "*unaff_s2" (* "*") (identifier "unaff_s2")) (; ";")) (declaration "undefined4 unaff_s3;" (type_identifier "undefined4") (identifier "unaff_s3") (; ";")) (declaration "undefined4 unaff_s4;" (type_identifier "undefined4") (identifier "unaff_s4") (; ";")) (declaration "int *unaff_s5;" (primitive_type "int") (pointer_declarator "*unaff_s5" (* "*") (identifier "unaff_s5")) (; ";")) (declaration "uint *unaff_s6;" (type_identifier "uint") (pointer_declarator "*unaff_s6" (* "*") (identifier "unaff_s6")) (; ";")) (declaration "byte *unaff_s7;" (type_identifier "byte") (pointer_declarator "*unaff_s7" (* "*") (identifier "unaff_s7")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "uint *unaff_s8;" (type_identifier "uint") (pointer_declarator "*unaff_s8" (* "*") (identifier "unaff_s8")) (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "undefined1 auStackX_0 [16];" (type_identifier "undefined1") (array_declarator "auStackX_0 [16]" (identifier "auStackX_0") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "pcVar9 = SHA_Bytes;" (assignment_expression "pcVar9 = SHA_Bytes" (identifier "pcVar9") (= "=") (identifier "SHA_Bytes")) (; ";")) (do_statement "do {\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  } while( true );" (do "do") (compound_statement "{\n    pbVar4 = param_1;\n    pcVar10 = pcVar9 + 0x35930;\n    iVar1 = *(int *)(pbVar4 + 0x5c);\n    iVar2 = *(int *)(pbVar4 + 0x58);\n    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;\n    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;\n    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;\n    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);\n    unaff_s2 = pbVar4 + 0x14;\n    iVar5 = *(int *)(pbVar4 + 0x54);\n    *(code **)((int)register0x00000074 + -0x78) = pcVar10;\n    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;\n    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;\n    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;\n    *(uint **)((int)register0x00000074 + -8) = unaff_s8;\n    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;\n    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;\n    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;\n    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;\n    unaff_s0 = iVar5 + param_3;\n    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);\n    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;\n    if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }\n    param_2 = iVar1;\n    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }\n    pcVar9 = *(code **)(iVar2 + -0x7880);\n    unaff_retaddr = 0x4b8fc;\n    (*pcVar9)();\n    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);\n    unaff_s7 = pbVar4;\n    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);\n  }" ({ "{") (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" (identifier "pbVar4") (= "=") (identifier "param_1")) (; ";")) (expression_statement "pcVar10 = pcVar9 + 0x35930;" (assignment_expression "pcVar10 = pcVar9 + 0x35930" (identifier "pcVar10") (= "=") (binary_expression "pcVar9 + 0x35930" (identifier "pcVar9") (+ "+") (number_literal "0x35930"))) (; ";")) (expression_statement "iVar1 = *(int *)(pbVar4 + 0x5c);" (assignment_expression "iVar1 = *(int *)(pbVar4 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(pbVar4 + 0x5c)" (* "*") (cast_expression "(int *)(pbVar4 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x5c)" (( "(") (binary_expression "pbVar4 + 0x5c" (identifier "pbVar4") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(pbVar4 + 0x58);" (assignment_expression "iVar2 = *(int *)(pbVar4 + 0x58)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(pbVar4 + 0x58)" (* "*") (cast_expression "(int *)(pbVar4 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x58)" (( "(") (binary_expression "pbVar4 + 0x58" (identifier "pbVar4") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "*(int **)((int)register0x00000074 + -0x14) = unaff_s5;" (assignment_expression "*(int **)((int)register0x00000074 + -0x14) = unaff_s5" (pointer_expression "*(int **)((int)register0x00000074 + -0x14)" (* "*") (cast_expression "(int **)((int)register0x00000074 + -0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x14)" (( "(") (binary_expression "(int)register0x00000074 + -0x14" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x14")) () ")")))) (= "=") (identifier "unaff_s5")) (; ";")) (expression_statement "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7;" (assignment_expression "*(byte **)((int)register0x00000074 + -0xc) = unaff_s7" (pointer_expression "*(byte **)((int)register0x00000074 + -0xc)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + -0xc)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0xc)" (( "(") (binary_expression "(int)register0x00000074 + -0xc" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0xc")) () ")")))) (= "=") (identifier "unaff_s7")) (; ";")) (expression_statement "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2;" (assignment_expression "*(byte **)((int)register0x00000074 + -0x20) = unaff_s2" (pointer_expression "*(byte **)((int)register0x00000074 + -0x20)" (* "*") (cast_expression "(byte **)((int)register0x00000074 + -0x20)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x20)" (( "(") (binary_expression "(int)register0x00000074 + -0x20" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x20")) () ")")))) (= "=") (identifier "unaff_s2")) (; ";")) (expression_statement "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);" (assignment_expression "unaff_s5 = *(int **)(pcVar9 + 0x2e1f0)" (identifier "unaff_s5") (= "=") (pointer_expression "*(int **)(pcVar9 + 0x2e1f0)" (* "*") (cast_expression "(int **)(pcVar9 + 0x2e1f0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar9 + 0x2e1f0)" (( "(") (binary_expression "pcVar9 + 0x2e1f0" (identifier "pcVar9") (+ "+") (number_literal "0x2e1f0")) () ")"))))) (; ";")) (expression_statement "unaff_s2 = pbVar4 + 0x14;" (assignment_expression "unaff_s2 = pbVar4 + 0x14" (identifier "unaff_s2") (= "=") (binary_expression "pbVar4 + 0x14" (identifier "pbVar4") (+ "+") (number_literal "0x14"))) (; ";")) (expression_statement "iVar5 = *(int *)(pbVar4 + 0x54);" (assignment_expression "iVar5 = *(int *)(pbVar4 + 0x54)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(pbVar4 + 0x54)" (* "*") (cast_expression "(int *)(pbVar4 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")"))))) (; ";")) (expression_statement "*(code **)((int)register0x00000074 + -0x78) = pcVar10;" (assignment_expression "*(code **)((int)register0x00000074 + -0x78) = pcVar10" (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" (* "*") (cast_expression "(code **)((int)register0x00000074 + -0x78)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x78)" (( "(") (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x78")) () ")")))) (= "=") (identifier "pcVar10")) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x24) = unaff_s1;" (assignment_expression "*(int *)((int)register0x00000074 + -0x24) = unaff_s1" (pointer_expression "*(int *)((int)register0x00000074 + -0x24)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x24)" (( "(") (binary_expression "(int)register0x00000074 + -0x24" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x24")) () ")")))) (= "=") (identifier "unaff_s1")) (; ";")) (expression_statement "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0;" (assignment_expression "*(uint *)((int)register0x00000074 + -0x28) = unaff_s0" (pointer_expression "*(uint *)((int)register0x00000074 + -0x28)" (* "*") (cast_expression "(uint *)((int)register0x00000074 + -0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x28)" (( "(") (binary_expression "(int)register0x00000074 + -0x28" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x28")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -4)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -4)" (( "(") (binary_expression "(int)register0x00000074 + -4" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "unaff_retaddr")) (; ";")) (expression_statement "*(uint **)((int)register0x00000074 + -8) = unaff_s8;" (assignment_expression "*(uint **)((int)register0x00000074 + -8) = unaff_s8" (pointer_expression "*(uint **)((int)register0x00000074 + -8)" (* "*") (cast_expression "(uint **)((int)register0x00000074 + -8)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -8)" (( "(") (binary_expression "(int)register0x00000074 + -8" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "unaff_s8")) (; ";")) (expression_statement "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6;" (assignment_expression "*(uint **)((int)register0x00000074 + -0x10) = unaff_s6" (pointer_expression "*(uint **)((int)register0x00000074 + -0x10)" (* "*") (cast_expression "(uint **)((int)register0x00000074 + -0x10)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x10)" (( "(") (binary_expression "(int)register0x00000074 + -0x10" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x10")) () ")")))) (= "=") (identifier "unaff_s6")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x18)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x18)" (( "(") (binary_expression "(int)register0x00000074 + -0x18" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x18")) () ")")))) (= "=") (identifier "unaff_s4")) (; ";")) (expression_statement "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;" (assignment_expression "*(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3" (pointer_expression "*(undefined4 *)((int)register0x00000074 + -0x1c)" (* "*") (cast_expression "(undefined4 *)((int)register0x00000074 + -0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x1c)" (( "(") (binary_expression "(int)register0x00000074 + -0x1c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x1c")) () ")")))) (= "=") (identifier "unaff_s3")) (; ";")) (expression_statement "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;" (assignment_expression "*(uint *)(pbVar4 + 0x5c) = param_3 + iVar1" (pointer_expression "*(uint *)(pbVar4 + 0x5c)" (* "*") (cast_expression "(uint *)(pbVar4 + 0x5c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x5c)" (( "(") (binary_expression "pbVar4 + 0x5c" (identifier "pbVar4") (+ "+") (number_literal "0x5c")) () ")")))) (= "=") (binary_expression "param_3 + iVar1" (identifier "param_3") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "unaff_s0 = iVar5 + param_3;" (assignment_expression "unaff_s0 = iVar5 + param_3" (identifier "unaff_s0") (= "=") (binary_expression "iVar5 + param_3" (identifier "iVar5") (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);" (assignment_expression "*(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3)" (pointer_expression "*(uint *)(pbVar4 + 0x58)" (* "*") (cast_expression "(uint *)(pbVar4 + 0x58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x58)" (( "(") (binary_expression "pbVar4 + 0x58" (identifier "pbVar4") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (binary_expression "iVar2 + (uint)(param_3 + iVar1 < param_3)" (identifier "iVar2") (+ "+") (call_expression "(uint)(param_3 + iVar1 < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + iVar1 < param_3)" (( "(") (binary_expression "param_3 + iVar1 < param_3" (binary_expression "param_3 + iVar1" (identifier "param_3") (+ "+") (identifier "iVar1")) (< "<") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;" (assignment_expression "*(int *)((int)register0x00000074 + -0x2c) = *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x2c)" (( "(") (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x2c")) () ")")))) (= "=") (pointer_expression "*unaff_s5" (* "*") (identifier "unaff_s5"))) (; ";")) (if_statement "if (iVar5 == 0) {\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }\n    else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;\nLAB_0004b86c:\n      param_1 = unaff_s2;\n      iVar1 = param_2;\n      (**(code **)(pcVar10 + -0x7790))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      unaff_s1 = param_2;\n    }" ({ "{") (if_statement "if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;" (if "if") (parenthesized_expression "(0x3f < (int)unaff_s0)" (( "(") (binary_expression "0x3f < (int)unaff_s0" (number_literal "0x3f") (< "<") (cast_expression "(int)unaff_s0" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s0"))) () ")")) (goto_statement "goto LAB_0004b7d0;" (goto "goto") (statement_identifier "LAB_0004b7d0") (; ";"))) (labeled_statement "LAB_0004b86c:\n      param_1 = unaff_s2;" (statement_identifier "LAB_0004b86c") (: ":") (expression_statement "param_1 = unaff_s2;" (assignment_expression "param_1 = unaff_s2" (identifier "param_1") (= "=") (identifier "unaff_s2")) (; ";"))) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" (identifier "iVar1") (= "=") (identifier "param_2")) (; ";")) (expression_statement "(**(code **)(pcVar10 + -0x7790))();" (call_expression "(**(code **)(pcVar10 + -0x7790))()" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" (( "(") (pointer_expression "**(code **)(pcVar10 + -0x7790)" (* "*") (pointer_expression "*(code **)(pcVar10 + -0x7790)" (* "*") (cast_expression "(code **)(pcVar10 + -0x7790)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + -0x7790)" (( "(") (binary_expression "pcVar10 + -0x7790" (identifier "pcVar10") (+ "+") (number_literal "-0x7790")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x78)" (( "(") (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x78")) () ")"))))) (; ";")) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" (* "*") (cast_expression "(uint *)(pbVar4 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" (identifier "unaff_s1") (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else {\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" (else "else") (compound_statement "{\n      if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }\n      param_1 = unaff_s2 + iVar5;\n      iVar1 = param_2;\n      uVar8 = param_3;\n      (**(code **)(pcVar9 + 0x2e1a0))();\n      iVar2 = *(int *)((int)register0x00000074 + -0x78);\n      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;\n      *(uint *)(pbVar4 + 0x54) = unaff_s0;\n      param_3 = uVar8;\n      unaff_s1 = param_2;\n    }" ({ "{") (if_statement "if (0x3f < (int)unaff_s0) {\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" (if "if") (parenthesized_expression "(0x3f < (int)unaff_s0)" (( "(") (binary_expression "0x3f < (int)unaff_s0" (number_literal "0x3f") (< "<") (cast_expression "(int)unaff_s0" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_s0"))) () ")")) (compound_statement "{\nLAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);\n        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);\n        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);\n        unaff_s3 = 0x40;\n        do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);\n        goto LAB_0004b86c;\n      }" ({ "{") (labeled_statement "LAB_0004b7d0:\n        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" (statement_identifier "LAB_0004b7d0") (: ":") (expression_statement "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);" (assignment_expression "unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60)" (identifier "unaff_s4") (= "=") (pointer_expression "*(undefined4 *)(pcVar9 + 0x2de60)" (* "*") (cast_expression "(undefined4 *)(pcVar9 + 0x2de60)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar9 + 0x2de60)" (( "(") (binary_expression "pcVar9 + 0x2de60" (identifier "pcVar9") (+ "+") (number_literal "0x2de60")) () ")"))))) (; ";"))) (expression_statement "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);" (assignment_expression "unaff_s8 = (uint *)((int)register0x00000074 + -0x6c)" (identifier "unaff_s8") (= "=") (cast_expression "(uint *)((int)register0x00000074 + -0x6c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x6c)" (( "(") (binary_expression "(int)register0x00000074 + -0x6c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x6c")) () ")")))) (; ";")) (expression_statement "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);" (assignment_expression "unaff_s6 = (uint *)((int)register0x00000074 + -0x2c)" (identifier "unaff_s6") (= "=") (cast_expression "(uint *)((int)register0x00000074 + -0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x2c)" (( "(") (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x2c")) () ")")))) (; ";")) (expression_statement "unaff_s3 = 0x40;" (assignment_expression "unaff_s3 = 0x40" (identifier "unaff_s3") (= "=") (number_literal "0x40")) (; ";")) (do_statement "do {\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        } while (0x3f < (int)param_3);" (do "do") (compound_statement "{\n          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);\n          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));\n          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));\n          pbVar3 = unaff_s2;\n          puVar6 = unaff_s8;\n          do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);\n          SHATransform(pbVar4,unaff_s8);\n          pcVar10 = *(code **)((int)register0x00000074 + -0x78);\n          iVar5 = 0;\n          pbVar4[0x54] = 0;\n          pbVar4[0x55] = 0;\n          pbVar4[0x56] = 0;\n          pbVar4[0x57] = 0;\n          unaff_s0 = param_3;\n        }" ({ "{") (expression_statement "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);" (call_expression "(**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5)" (parenthesized_expression "(**(code **)(pcVar10 + -0x7790))" (( "(") (pointer_expression "**(code **)(pcVar10 + -0x7790)" (* "*") (pointer_expression "*(code **)(pcVar10 + -0x7790)" (* "*") (cast_expression "(code **)(pcVar10 + -0x7790)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar10 + -0x7790)" (( "(") (binary_expression "pcVar10 + -0x7790" (identifier "pcVar10") (+ "+") (number_literal "-0x7790")) () ")"))))) () ")")) (argument_list "(unaff_s2 + iVar5,param_2,0x40 - iVar5)" (( "(") (binary_expression "unaff_s2 + iVar5" (identifier "unaff_s2") (+ "+") (identifier "iVar5")) (, ",") (identifier "param_2") (, ",") (binary_expression "0x40 - iVar5" (number_literal "0x40") (- "-") (identifier "iVar5")) () ")"))) (; ";")) (expression_statement "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" (identifier "param_2") (= "=") (binary_expression "param_2 + (0x40 - *(int *)(pbVar4 + 0x54))" (identifier "param_2") (+ "+") (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" (( "(") (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" (number_literal "0x40") (- "-") (pointer_expression "*(int *)(pbVar4 + 0x54)" (* "*") (cast_expression "(int *)(pbVar4 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")"))))) () ")")))) (; ";")) (expression_statement "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));" (assignment_expression "param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" (identifier "param_3") (= "=") (binary_expression "param_3 - (0x40 - *(int *)(pbVar4 + 0x54))" (identifier "param_3") (- "-") (parenthesized_expression "(0x40 - *(int *)(pbVar4 + 0x54))" (( "(") (binary_expression "0x40 - *(int *)(pbVar4 + 0x54)" (number_literal "0x40") (- "-") (pointer_expression "*(int *)(pbVar4 + 0x54)" (* "*") (cast_expression "(int *)(pbVar4 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")"))))) () ")")))) (; ";")) (expression_statement "pbVar3 = unaff_s2;" (assignment_expression "pbVar3 = unaff_s2" (identifier "pbVar3") (= "=") (identifier "unaff_s2")) (; ";")) (expression_statement "puVar6 = unaff_s8;" (assignment_expression "puVar6 = unaff_s8" (identifier "puVar6") (= "=") (identifier "unaff_s8")) (; ";")) (do_statement "do {\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          } while (unaff_s6 != puVar7);" (do "do") (compound_statement "{\n            puVar7 = puVar6 + 1;\n            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;\n            pbVar3 = pbVar3 + 4;\n            puVar6 = puVar7;\n          }" ({ "{") (expression_statement "puVar7 = puVar6 + 1;" (assignment_expression "puVar7 = puVar6 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8;" (assignment_expression "*puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |\n                      (uint)pbVar3[2] << 8" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3]" (binary_expression "(uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10" (binary_expression "(uint)*pbVar3 << 0x18" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")) (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uint)pbVar3[1] << 0x10" (cast_expression "(uint)pbVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[1]" (identifier "pbVar3") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (cast_expression "(uint)pbVar3[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[3]" (identifier "pbVar3") ([ "[") (number_literal "3") (] "]")))) (| "|") (binary_expression "(uint)pbVar3[2] << 8" (cast_expression "(uint)pbVar3[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar3[2]" (identifier "pbVar3") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "pbVar3 = pbVar3 + 4;" (assignment_expression "pbVar3 = pbVar3 + 4" (identifier "pbVar3") (= "=") (binary_expression "pbVar3 + 4" (identifier "pbVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "puVar6 = puVar7;" (assignment_expression "puVar6 = puVar7" (identifier "puVar6") (= "=") (identifier "puVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(unaff_s6 != puVar7)" (( "(") (binary_expression "unaff_s6 != puVar7" (identifier "unaff_s6") (!= "!=") (identifier "puVar7")) () ")")) (; ";")) (expression_statement "SHATransform(pbVar4,unaff_s8);" (call_expression "SHATransform(pbVar4,unaff_s8)" (identifier "SHATransform") (argument_list "(pbVar4,unaff_s8)" (( "(") (identifier "pbVar4") (, ",") (identifier "unaff_s8") () ")"))) (; ";")) (expression_statement "pcVar10 = *(code **)((int)register0x00000074 + -0x78);" (assignment_expression "pcVar10 = *(code **)((int)register0x00000074 + -0x78)" (identifier "pcVar10") (= "=") (pointer_expression "*(code **)((int)register0x00000074 + -0x78)" (* "*") (cast_expression "(code **)((int)register0x00000074 + -0x78)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x78)" (( "(") (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x78")) () ")"))))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4[0x54] = 0;" (assignment_expression "pbVar4[0x54] = 0" (subscript_expression "pbVar4[0x54]" (identifier "pbVar4") ([ "[") (number_literal "0x54") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4[0x55] = 0;" (assignment_expression "pbVar4[0x55] = 0" (subscript_expression "pbVar4[0x55]" (identifier "pbVar4") ([ "[") (number_literal "0x55") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4[0x56] = 0;" (assignment_expression "pbVar4[0x56] = 0" (subscript_expression "pbVar4[0x56]" (identifier "pbVar4") ([ "[") (number_literal "0x56") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4[0x57] = 0;" (assignment_expression "pbVar4[0x57] = 0" (subscript_expression "pbVar4[0x57]" (identifier "pbVar4") ([ "[") (number_literal "0x57") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_s0 = param_3;" (assignment_expression "unaff_s0 = param_3" (identifier "unaff_s0") (= "=") (identifier "param_3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0x3f < (int)param_3)" (( "(") (binary_expression "0x3f < (int)param_3" (number_literal "0x3f") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (; ";")) (goto_statement "goto LAB_0004b86c;" (goto "goto") (statement_identifier "LAB_0004b86c") (; ";")) (} "}"))) (expression_statement "param_1 = unaff_s2 + iVar5;" (assignment_expression "param_1 = unaff_s2 + iVar5" (identifier "param_1") (= "=") (binary_expression "unaff_s2 + iVar5" (identifier "unaff_s2") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar1 = param_2;" (assignment_expression "iVar1 = param_2" (identifier "iVar1") (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar8 = param_3;" (assignment_expression "uVar8 = param_3" (identifier "uVar8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "(**(code **)(pcVar9 + 0x2e1a0))();" (call_expression "(**(code **)(pcVar9 + 0x2e1a0))()" (parenthesized_expression "(**(code **)(pcVar9 + 0x2e1a0))" (( "(") (pointer_expression "**(code **)(pcVar9 + 0x2e1a0)" (* "*") (pointer_expression "*(code **)(pcVar9 + 0x2e1a0)" (* "*") (cast_expression "(code **)(pcVar9 + 0x2e1a0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar9 + 0x2e1a0)" (( "(") (binary_expression "pcVar9 + 0x2e1a0" (identifier "pcVar9") (+ "+") (number_literal "0x2e1a0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)((int)register0x00000074 + -0x78);" (assignment_expression "iVar2 = *(int *)((int)register0x00000074 + -0x78)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((int)register0x00000074 + -0x78)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x78)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x78)" (( "(") (binary_expression "(int)register0x00000074 + -0x78" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x78")) () ")"))))) (; ";")) (expression_statement "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;" (assignment_expression "unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3" (identifier "unaff_s0") (= "=") (binary_expression "*(int *)(pbVar4 + 0x54) + param_3" (pointer_expression "*(int *)(pbVar4 + 0x54)" (* "*") (cast_expression "(int *)(pbVar4 + 0x54)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")")))) (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "*(uint *)(pbVar4 + 0x54) = unaff_s0;" (assignment_expression "*(uint *)(pbVar4 + 0x54) = unaff_s0" (pointer_expression "*(uint *)(pbVar4 + 0x54)" (* "*") (cast_expression "(uint *)(pbVar4 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pbVar4 + 0x54)" (( "(") (binary_expression "pbVar4 + 0x54" (identifier "pbVar4") (+ "+") (number_literal "0x54")) () ")")))) (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "param_3 = uVar8;" (assignment_expression "param_3 = uVar8" (identifier "param_3") (= "=") (identifier "uVar8")) (; ";")) (expression_statement "unaff_s1 = param_2;" (assignment_expression "unaff_s1 = param_2" (identifier "unaff_s1") (= "=") (identifier "param_2")) (; ";")) (} "}")))) (expression_statement "param_2 = iVar1;" (assignment_expression "param_2 = iVar1" (identifier "param_2") (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5)" (( "(") (binary_expression "*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5" (pointer_expression "*(int *)((int)register0x00000074 + -0x2c)" (* "*") (cast_expression "(int *)((int)register0x00000074 + -0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x2c)" (( "(") (binary_expression "(int)register0x00000074 + -0x2c" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x2c")) () ")")))) (== "==") (pointer_expression "*unaff_s5" (* "*") (identifier "unaff_s5"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar9 = *(code **)(iVar2 + -0x7880);" (assignment_expression "pcVar9 = *(code **)(iVar2 + -0x7880)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(iVar2 + -0x7880)" (* "*") (cast_expression "(code **)(iVar2 + -0x7880)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + -0x7880)" (( "(") (binary_expression "iVar2 + -0x7880" (identifier "iVar2") (+ "+") (number_literal "-0x7880")) () ")"))))) (; ";")) (expression_statement "unaff_retaddr = 0x4b8fc;" (assignment_expression "unaff_retaddr = 0x4b8fc" (identifier "unaff_retaddr") (= "=") (number_literal "0x4b8fc")) (; ";")) (expression_statement "(*pcVar9)();" (call_expression "(*pcVar9)()" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "pcVar9 = *(code **)(pcVar9 + 0x2dbb8);" (assignment_expression "pcVar9 = *(code **)(pcVar9 + 0x2dbb8)" (identifier "pcVar9") (= "=") (pointer_expression "*(code **)(pcVar9 + 0x2dbb8)" (* "*") (cast_expression "(code **)(pcVar9 + 0x2dbb8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar9 + 0x2dbb8)" (( "(") (binary_expression "pcVar9 + 0x2dbb8" (identifier "pcVar9") (+ "+") (number_literal "0x2dbb8")) () ")"))))) (; ";")) (expression_statement "unaff_s7 = pbVar4;" (assignment_expression "unaff_s7 = pbVar4" (identifier "unaff_s7") (= "=") (identifier "pbVar4")) (; ";")) (expression_statement "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);" (assignment_expression "register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88)" (identifier "register0x00000074") (= "=") (cast_expression "(BADSPACEBASE *)((int)register0x00000074 + -0x88)" (( "(") (type_descriptor "BADSPACEBASE *" (type_identifier "BADSPACEBASE") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)register0x00000074 + -0x88)" (( "(") (binary_expression "(int)register0x00000074 + -0x88" (cast_expression "(int)register0x00000074" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "register0x00000074")) (+ "+") (number_literal "-0x88")) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

{
  type_2 *puVar1;
  type_3 var_3;
  int var_4;
  type_4 *var_7;
  int var_2;
  type_5 *var_6;
  type_3 *var_8;
  type_1 *s_00;
  int var_5;
  type_6 wordblock [16];
  type_3 var_10;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  var_3 = var_1 + s->lenlo;
  s_00 = (type_1 *)s->block;
  var_2 = s->blkused;
  s->lenlo = var_3;
  var_4 = var_2 + var_1;
  s->lenhi = s->lenhi + (type_3)(var_3 < (type_3)var_1);
  var_10 = *(type_3 *)puVar1;
  var_5 = var_1;
  if (var_2 == 0) {
    if (0x3f < var_4) goto LAB_0004b7d0;
  }
  else {
    if (var_4 < 0x40) {
      s_00 = (type_1 *)((int)s_00 + var_2);
      (*(type_7 *)PTR_memcpy_000798e0)();
      s->blkused = s->blkused + var_1;
      goto LAB_0004b888;
    }
LAB_0004b7d0:
    do {
      (*(type_7 *)PTR_memcpy_000798e0)((type_4 *)((int)s_00 + var_2),p,0x40 - var_2);
      var_4 = 0x40 - s->blkused;
      p = (void *)((int)p + var_4);
      var_5 = var_5 - var_4;
      var_7 = (type_4 *)s_00;
      var_6 = wordblock;
      do {
        var_8 = var_6 + 1;
        *var_6 = (type_3)*var_7 << 0x18 | (type_3)var_7[1] << 0x10 | (type_3)var_7[3] |
                  (type_3)var_7[2] << 8;
        var_7 = var_7 + 4;
        var_6 = var_8;
      } while (&var_10 != var_8);
      var_9(s->h,wordblock);
      var_2 = 0;
      s->blkused = 0;
      var_4 = var_5;
    } while (0x3f < var_5);
  }
  (*(type_7 *)PTR_memcpy_000798e0)();
  s->blkused = var_4;
LAB_0004b888:
  if (var_10 != *(type_3 *)puVar1) {
    (*(type_7 *)PTR___stack_chk_fail_000797f0)();
    function_1(s_00,p,var_5);
    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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (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: (parenthesized_expression (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier) (binary_expression left: (number_literal) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) condition: (parenthesized_expression (true))))))

void MASKED(byte *param_1,int param_2,uint param_3)

{
  int iVar1;
  int iVar2;
  byte *pbVar3;
  byte *pbVar4;
  int iVar5;
  uint *puVar6;
  uint *puVar7;
  uint uVar8;
  uint unaff_s0;
  int unaff_s1;
  byte *unaff_s2;
  undefined4 unaff_s3;
  undefined4 unaff_s4;
  int *unaff_s5;
  uint *unaff_s6;
  byte *unaff_s7;
  code *pcVar9;
  code *pcVar10;
  uint *unaff_s8;
  undefined4 unaff_retaddr;
  undefined1 auStackX_0 [16];
  
  pcVar9 = MASKED;
  do {
    pbVar4 = param_1;
    pcVar10 = pcVar9 + 0x35930;
    iVar1 = *(int *)(pbVar4 + 0x5c);
    iVar2 = *(int *)(pbVar4 + 0x58);
    *(int **)((int)register0x00000074 + -0x14) = unaff_s5;
    *(byte **)((int)register0x00000074 + -0xc) = unaff_s7;
    *(byte **)((int)register0x00000074 + -0x20) = unaff_s2;
    unaff_s5 = *(int **)(pcVar9 + 0x2e1f0);
    unaff_s2 = pbVar4 + 0x14;
    iVar5 = *(int *)(pbVar4 + 0x54);
    *(code **)((int)register0x00000074 + -0x78) = pcVar10;
    *(int *)((int)register0x00000074 + -0x24) = unaff_s1;
    *(uint *)((int)register0x00000074 + -0x28) = unaff_s0;
    *(undefined4 *)((int)register0x00000074 + -4) = unaff_retaddr;
    *(uint **)((int)register0x00000074 + -8) = unaff_s8;
    *(uint **)((int)register0x00000074 + -0x10) = unaff_s6;
    *(undefined4 *)((int)register0x00000074 + -0x18) = unaff_s4;
    *(undefined4 *)((int)register0x00000074 + -0x1c) = unaff_s3;
    *(uint *)(pbVar4 + 0x5c) = param_3 + iVar1;
    unaff_s0 = iVar5 + param_3;
    *(uint *)(pbVar4 + 0x58) = iVar2 + (uint)(param_3 + iVar1 < param_3);
    *(int *)((int)register0x00000074 + -0x2c) = *unaff_s5;
    if (iVar5 == 0) {
      if (0x3f < (int)unaff_s0) goto LAB_0004b7d0;
LAB_0004b86c:
      param_1 = unaff_s2;
      iVar1 = param_2;
      (**(code **)(pcVar10 + -0x7790))();
      iVar2 = *(int *)((int)register0x00000074 + -0x78);
      *(uint *)(pbVar4 + 0x54) = unaff_s0;
      unaff_s1 = param_2;
    }
    else {
      if (0x3f < (int)unaff_s0) {
LAB_0004b7d0:
        unaff_s4 = *(undefined4 *)(pcVar9 + 0x2de60);
        unaff_s8 = (uint *)((int)register0x00000074 + -0x6c);
        unaff_s6 = (uint *)((int)register0x00000074 + -0x2c);
        unaff_s3 = 0x40;
        do {
          (**(code **)(pcVar10 + -0x7790))(unaff_s2 + iVar5,param_2,0x40 - iVar5);
          param_2 = param_2 + (0x40 - *(int *)(pbVar4 + 0x54));
          param_3 = param_3 - (0x40 - *(int *)(pbVar4 + 0x54));
          pbVar3 = unaff_s2;
          puVar6 = unaff_s8;
          do {
            puVar7 = puVar6 + 1;
            *puVar6 = (uint)*pbVar3 << 0x18 | (uint)pbVar3[1] << 0x10 | (uint)pbVar3[3] |
                      (uint)pbVar3[2] << 8;
            pbVar3 = pbVar3 + 4;
            puVar6 = puVar7;
          } while (unaff_s6 != puVar7);
          SHATransform(pbVar4,unaff_s8);
          pcVar10 = *(code **)((int)register0x00000074 + -0x78);
          iVar5 = 0;
          pbVar4[0x54] = 0;
          pbVar4[0x55] = 0;
          pbVar4[0x56] = 0;
          pbVar4[0x57] = 0;
          unaff_s0 = param_3;
        } while (0x3f < (int)param_3);
        goto LAB_0004b86c;
      }
      param_1 = unaff_s2 + iVar5;
      iVar1 = param_2;
      uVar8 = param_3;
      (**(code **)(pcVar9 + 0x2e1a0))();
      iVar2 = *(int *)((int)register0x00000074 + -0x78);
      unaff_s0 = *(int *)(pbVar4 + 0x54) + param_3;
      *(uint *)(pbVar4 + 0x54) = unaff_s0;
      param_3 = uVar8;
      unaff_s1 = param_2;
    }
    param_2 = iVar1;
    if (*(int *)((int)register0x00000074 + -0x2c) == *unaff_s5) {
      return;
    }
    pcVar9 = *(code **)(iVar2 + -0x7880);
    unaff_retaddr = 0x4b8fc;
    (*pcVar9)();
    pcVar9 = *(code **)(pcVar9 + 0x2dbb8);
    unaff_s7 = pbVar4;
    register0x00000074 = (BADSPACEBASE *)((int)register0x00000074 + -0x88);
  } while( true );
}

