
void windowAggFinal(Parse *pParse,Window *pMWin,int bFinal)

{
  ExprList *pEVar1;
  int iVar2;
  Vdbe *p;
  
  p = pParse->pVdbe;
  if (p == (Vdbe *)0x0) {
    p = sqlite3GetVdbe(pParse);
  }
  if (pMWin != (Window *)0x0) {
    do {
      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {
                    /* WARNING: Subroutine does not return */
        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);
      }
      if (pMWin->regApp == 0) {
        pEVar1 = (pMWin->pOwner->x).pList;
        if (bFinal == 0) {
          iVar2 = 0;
          if (pEVar1 != (ExprList *)0x0) {
            iVar2 = pEVar1->nExpr;
          }
                    /* WARNING: Subroutine does not return */
          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);
        }
        iVar2 = 0;
        if (pEVar1 != (ExprList *)0x0) {
          iVar2 = pEVar1->nExpr;
        }
                    /* WARNING: Subroutine does not return */
        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);
      }
      pMWin = pMWin->pNextWin;
    } while (pMWin != (Window *)0x0);
  }
  return;
}



void FUN_0005d89c(int param_1,int param_2,int param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int *piVar8;
  code *pcVar9;
  
  piVar8 = *(int **)(param_1 + 8);
  if (piVar8 == (int *)0x0) {
    piVar8 = (int *)FUN_0005c8e4();
  }
  puVar1 = PTR_DAT_0015b5d8;
  if (param_2 != 0) {
    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);
    do {
      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&
             (*(char *)(param_2 + 0xd) != 'W'))) {
        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);
        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);
        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));
        iVar2 = piVar8[0x1b];
        iVar4 = iVar2 + -2;
        if (iVar4 < 0) {
          iVar4 = iVar2 + -1;
        }
        if (*(char *)(*piVar8 + 0x51) == '\0') {
          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;
        }
        else {
          *(int *)(puVar1 + -0x450c) = iVar2;
        }
        if (param_3 == 0) {
LAB_0005d9ac:
          param_2 = *(int *)(param_2 + 0x18);
          goto LAB_0005d9b0;
        }
        uVar5 = *(undefined4 *)(param_2 + 0x30);
        uVar7 = 0;
        uVar6 = 0x8a;
LAB_0005da40:
        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);
        param_2 = *(int *)(param_2 + 0x18);
        if (param_2 == 0) {
          return;
        }
      }
      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;
      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);
      if (param_3 != 0) {
        uVar6 = 0;
        if (puVar3 != (undefined4 *)0x0) {
          uVar6 = *puVar3;
        }
        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);
        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);
        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);
        uVar5 = 0;
        uVar7 = *(undefined4 *)(param_2 + 0x28);
        uVar6 = 0x49;
        goto LAB_0005da40;
      }
      uVar6 = 0;
      if (puVar3 != (undefined4 *)0x0) {
        uVar6 = *puVar3;
      }
      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)
                  );
      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);
      param_2 = *(int *)(param_2 + 0x18);
LAB_0005d9b0:
    } while (param_2 != 0);
  }
  return;
}


lui gp,0x10
addiu gp,gp,0x5d14
addu gp,gp,t9
addiu sp,sp,-0x40
sw s3,0x30(sp)
or s3,a2,zero
sw s0,0x24(sp)
sw gp,0x18(sp)
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s2,0x2c(sp)
sw s1,0x28(sp)
lw s1,0x8(a0)
bne s1,zero,0x0005d8f4
_or s0,a1,zero
lw t9,-0x7ea0(gp)
addiu t9,t9,-0x371c
bal 0x0005c8e4
_nop
lw gp,0x18(sp)
or s1,v0,zero
beq s0,zero,0x0005da5c
_lw s2,-0x7ea0(gp)
lw s4,-0x7ef0(gp)
lw s5,-0x7fd8(gp)
addiu s2,s2,-0x3890
b 0x0005d9b8
_addiu s4,s4,-0x5958
lbu v1,0xd(s0)
beq v1,v0,0x0005d9cc
_or a2,zero,zero
lw a3,0x2c(s0)
li a1,0x49
sw zero,0x10(sp)
or t9,s2,zero
bal 0x0005c770
_or a0,s1,zero
or a3,zero,zero
lw a2,0x30(s0)
li a1,0x20
or a0,s1,zero
or t9,s2,zero
bal 0x0005c770
_sw zero,0x10(sp)
or a3,zero,zero
lw v0,0x2c(s0)
li a1,0x5a
lw a2,0x30(s0)
or a0,s1,zero
or t9,s2,zero
bal 0x0005c770
_sw v0,0x10(sp)
lw v0,0x6c(s1)
addiu v1,v0,-0x2
bgez v1,0x0005d984
_nop
addiu v1,v0,-0x1
lw a0,0x0(s1)
lbu a0,0x51(a0)
bne a0,zero,0x0005dac0
_sll a1,v1,0x2
lw a0,0x68(s1)
addu v1,a1,v1
sll v1,v1,0x2
addu v1,a0,v1
bne s3,zero,0x0005dacc
_sw v0,0x8(v1)
lw s0,0x18(s0)
beq s0,zero,0x0005da60
_lw ra,0x3c(sp)
lw v0,0x20(s0)
lw v0,0x4(v0)
andi v0,v0,0x1000
bne v0,zero,0x0005d910
_li v0,0x57
lw a3,0x34(s0)
bne a3,zero,0x0005d9ac
_nop
lw v0,0x3c(s0)
lw a2,0x28(s0)
beq s3,zero,0x0005da80
_lw v0,0x14(v0)
beq v0,zero,0x0005d9f4
_li a1,0x9d
lw a3,0x0(v0)
sw zero,0x10(sp)
or t9,s2,zero
bal 0x0005c770
_or a0,s1,zero
li a2,-0x8
lw a1,0x20(s0)
or t9,s4,zero
jalr t9
_or a0,s1,zero
li a1,0x4e
lw a3,0x2c(s0)
or a0,s1,zero
lw a2,0x28(s0)
or t9,s2,zero
bal 0x0005c770
_sw zero,0x10(sp)
or a2,zero,zero
lw a3,0x28(s0)
li a1,0x49
sw zero,0x10(sp)
or t9,s2,zero
bal 0x0005c770
_or a0,s1,zero
lw s0,0x18(s0)
bne s0,zero,0x0005d9b8
_nop
lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
beq v0,zero,0x0005da8c
_or a3,zero,zero
lw a3,0x0(v0)
lw v0,0x2c(s0)
li a1,0x9c
or a0,s1,zero
or t9,s2,zero
bal 0x0005c770
_sw v0,0x10(sp)
li a2,-0x8
lw a1,0x20(s0)
or t9,s4,zero
jalr t9
_or a0,s1,zero
b 0x0005d9b0
_lw s0,0x18(s0)
addiu v1,s5,-0x4514
beq s3,zero,0x0005d9ac
_sw v0,0x8(v1)
lw a2,0x30(s0)
or a3,zero,zero
b 0x0005da40
_li a1,0x8a
(translation_unit "void FUN_0005d89c(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005d89c(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005d89c(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "piVar8 = *(int **)(param_1 + 8);" (assignment_expression "piVar8 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }" if (parenthesized_expression "(piVar8 == (int *)0x0)" ( (binary_expression "piVar8 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar8 = (int *)FUN_0005c8e4();\n  }" { (expression_statement "piVar8 = (int *)FUN_0005c8e4();" (assignment_expression "piVar8 = (int *)FUN_0005c8e4()" identifier = (cast_expression "(int *)FUN_0005c8e4()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c8e4()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "puVar1 = PTR_DAT_0015b5d8;" (assignment_expression "puVar1 = PTR_DAT_0015b5d8" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" { (expression_statement "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + -0x5958)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + -0x5958)" ( (binary_expression "PTR_LAB_0015b6c0 + -0x5958" identifier + number_literal) )))) ;) (do_statement "do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);" do (compound_statement "{\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    }" { (while_statement "while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" while (parenthesized_expression "(((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')))" ( (parenthesized_expression "((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))" ( (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')" (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000)" ( (binary_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000" (pointer_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4)" * (cast_expression "(uint *)(*(int *)(param_2 + 0x20) + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x20) + 4)" ( (binary_expression "*(int *)(param_2 + 0x20) + 4" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) && (parenthesized_expression "(*(char *)(param_2 + 0xd) != 'W')" ( (binary_expression "*(char *)(param_2 + 0xd) != 'W'" (pointer_expression "*(char *)(param_2 + 0xd)" * (cast_expression "(char *)(param_2 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) != (char_literal "'W'" ' character ')) ))) )) )) (compound_statement "{\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" { (expression_statement "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);" (call_expression "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" identifier (argument_list "(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = piVar8[0x1b];" (assignment_expression "iVar2 = piVar8[0x1b]" identifier = (subscript_expression "piVar8[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = iVar2 + -2;" (assignment_expression "iVar4 = iVar2 + -2" identifier = (binary_expression "iVar2 + -2" identifier + number_literal)) ;) (if_statement "if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar4 = iVar2 + -1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" if (parenthesized_expression "(*(char *)(*piVar8 + 0x51) == '\0')" ( (binary_expression "*(char *)(*piVar8 + 0x51) == '\0'" (pointer_expression "*(char *)(*piVar8 + 0x51)" * (cast_expression "(char *)(*piVar8 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar8 + 0x51)" ( (binary_expression "*piVar8 + 0x51" (pointer_expression "*piVar8" * identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }" { (expression_statement "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;" (assignment_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2" (pointer_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" * (cast_expression "(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8[0x1a] + iVar4 * 0x14 + 8)" ( (binary_expression "piVar8[0x1a] + iVar4 * 0x14 + 8" (binary_expression "piVar8[0x1a] + iVar4 * 0x14" (subscript_expression "piVar8[0x1a]" identifier [ number_literal ]) + (binary_expression "iVar4 * 0x14" identifier * number_literal)) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" else (compound_statement "{\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" { (expression_statement "*(int *)(puVar1 + -0x450c) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x450c) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x450c)" * (cast_expression "(int *)(puVar1 + -0x450c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x450c)" ( (binary_expression "puVar1 + -0x450c" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" { (labeled_statement "LAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);" statement_identifier : (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;)) (goto_statement "goto LAB_0005d9b0;" goto statement_identifier ;) })) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x30);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0x8a;" (assignment_expression "uVar6 = 0x8a" identifier = number_literal) ;) (labeled_statement "LAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" statement_identifier : (expression_statement "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" (call_expression "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0)" identifier (argument_list "(piVar8,uVar6,uVar5,uVar7,0)" ( identifier , identifier , identifier , identifier , number_literal ))) ;)) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n          return;\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (if_statement "if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;" if (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0005d9ac;" goto statement_identifier ;)) (expression_statement "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" * (cast_expression "(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" * (cast_expression "(int *)(param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar6 = *puVar3;\n        }" { (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) })) (expression_statement "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);" (call_expression "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" identifier (argument_list "(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , identifier , number_literal ))) ;) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = *(undefined4 *)(param_2 + 0x28);" (assignment_expression "uVar7 = *(undefined4 *)(param_2 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0x49;" (assignment_expression "uVar6 = 0x49" identifier = number_literal) ;) (goto_statement "goto LAB_0005da40;" goto statement_identifier ;) })) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar6 = *puVar3;\n      }" { (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) })) (expression_statement "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );" (call_expression "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" identifier (argument_list "(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (labeled_statement "LAB_0005d9b0:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void windowAggFinal(Parse *pParse,Window *pMWin,int bFinal)\n\n{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  if (pMWin != (Window *)0x0) {\n    do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);\n  }\n  return;\n}\n\n" (function_definition "void windowAggFinal(Parse *pParse,Window *pMWin,int bFinal)\n\n{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  if (pMWin != (Window *)0x0) {\n    do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);\n  }\n  return;\n}" primitive_type (function_declarator "windowAggFinal(Parse *pParse,Window *pMWin,int bFinal)" identifier (parameter_list "(Parse *pParse,Window *pMWin,int bFinal)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Window *pMWin" type_identifier (pointer_declarator "*pMWin" * identifier)) , (parameter_declaration "int bFinal" primitive_type identifier) ))) (compound_statement "{\n  ExprList *pEVar1;\n  int iVar2;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  if (pMWin != (Window *)0x0) {\n    do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);\n  }\n  return;\n}" { (declaration "ExprList *pEVar1;" type_identifier (pointer_declarator "*pEVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Vdbe *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "p = pParse->pVdbe;" (assignment_expression "p = pParse->pVdbe" identifier = (field_expression "pParse->pVdbe" identifier -> field_identifier)) ;) (if_statement "if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }" if (parenthesized_expression "(p == (Vdbe *)0x0)" ( (binary_expression "p == (Vdbe *)0x0" identifier == (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = sqlite3GetVdbe(pParse);\n  }" { (expression_statement "p = sqlite3GetVdbe(pParse);" (assignment_expression "p = sqlite3GetVdbe(pParse)" identifier = (call_expression "sqlite3GetVdbe(pParse)" identifier (argument_list "(pParse)" ( identifier )))) ;) })) (if_statement "if (pMWin != (Window *)0x0) {\n    do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);\n  }" if (parenthesized_expression "(pMWin != (Window *)0x0)" ( (binary_expression "pMWin != (Window *)0x0" identifier != (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);\n  }" { (do_statement "do {\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    } while (pMWin != (Window *)0x0);" do (compound_statement "{\n      if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }\n      if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }\n      pMWin = pMWin->pNextWin;\n    }" { (if_statement "if (((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }" if (parenthesized_expression "(((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W'))" ( (binary_expression "((pMWin->pFunc->funcFlags & 0x1000) != 0) && (pMWin->eStart != 'W')" (parenthesized_expression "((pMWin->pFunc->funcFlags & 0x1000) != 0)" ( (binary_expression "(pMWin->pFunc->funcFlags & 0x1000) != 0" (parenthesized_expression "(pMWin->pFunc->funcFlags & 0x1000)" ( (binary_expression "pMWin->pFunc->funcFlags & 0x1000" (field_expression "pMWin->pFunc->funcFlags" (field_expression "pMWin->pFunc" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(pMWin->eStart != 'W')" ( (binary_expression "pMWin->eStart != 'W'" (field_expression "pMWin->eStart" identifier -> field_identifier) != (char_literal "'W'" ' character ')) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);\n      }" { comment (expression_statement "sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0);" (call_expression "sqlite3VdbeAddOp3(p,0x49,0,pMWin->regResult,0)" identifier (argument_list "(p,0x49,0,pMWin->regResult,0)" ( identifier , number_literal , number_literal , (field_expression "pMWin->regResult" identifier -> field_identifier) , number_literal ))) ;) })) (if_statement "if (pMWin->regApp == 0) {\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }" if (parenthesized_expression "(pMWin->regApp == 0)" ( (binary_expression "pMWin->regApp == 0" (field_expression "pMWin->regApp" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        pEVar1 = (pMWin->pOwner->x).pList;\n        if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }\n        iVar2 = 0;\n        if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }\n                    /* WARNING: Subroutine does not return */\n        sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);\n      }" { (expression_statement "pEVar1 = (pMWin->pOwner->x).pList;" (assignment_expression "pEVar1 = (pMWin->pOwner->x).pList" identifier = (field_expression "(pMWin->pOwner->x).pList" (parenthesized_expression "(pMWin->pOwner->x)" ( (field_expression "pMWin->pOwner->x" (field_expression "pMWin->pOwner" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) ;) (if_statement "if (bFinal == 0) {\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }" if (parenthesized_expression "(bFinal == 0)" ( (binary_expression "bFinal == 0" identifier == number_literal) )) (compound_statement "{\n          iVar2 = 0;\n          if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }\n                    /* WARNING: Subroutine does not return */\n          sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);\n        }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (pEVar1 != (ExprList *)0x0) {\n            iVar2 = pEVar1->nExpr;\n          }" if (parenthesized_expression "(pEVar1 != (ExprList *)0x0)" ( (binary_expression "pEVar1 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar2 = pEVar1->nExpr;\n          }" { (expression_statement "iVar2 = pEVar1->nExpr;" (assignment_expression "iVar2 = pEVar1->nExpr" identifier = (field_expression "pEVar1->nExpr" identifier -> field_identifier)) ;) })) comment (expression_statement "sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult);" (call_expression "sqlite3VdbeAddOp3(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult)" identifier (argument_list "(p,0x9c,pMWin->regAccum,iVar2,pMWin->regResult)" ( identifier , number_literal , (field_expression "pMWin->regAccum" identifier -> field_identifier) , identifier , (field_expression "pMWin->regResult" identifier -> field_identifier) ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (pEVar1 != (ExprList *)0x0) {\n          iVar2 = pEVar1->nExpr;\n        }" if (parenthesized_expression "(pEVar1 != (ExprList *)0x0)" ( (binary_expression "pEVar1 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar2 = pEVar1->nExpr;\n        }" { (expression_statement "iVar2 = pEVar1->nExpr;" (assignment_expression "iVar2 = pEVar1->nExpr" identifier = (field_expression "pEVar1->nExpr" identifier -> field_identifier)) ;) })) comment (expression_statement "sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0);" (call_expression "sqlite3VdbeAddOp3(p,0x9d,pMWin->regAccum,iVar2,0)" identifier (argument_list "(p,0x9d,pMWin->regAccum,iVar2,0)" ( identifier , number_literal , (field_expression "pMWin->regAccum" identifier -> field_identifier) , identifier , number_literal ))) ;) })) (expression_statement "pMWin = pMWin->pNextWin;" (assignment_expression "pMWin = pMWin->pNextWin" identifier = (field_expression "pMWin->pNextWin" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pMWin != (Window *)0x0)" ( (binary_expression "pMWin != (Window *)0x0" identifier != (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005d89c(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005d89c(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005d89c(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (expression_statement "piVar8 = *(int **)(param_1 + 8);" (assignment_expression "piVar8 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }" if (parenthesized_expression "(piVar8 == (int *)0x0)" ( (binary_expression "piVar8 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar8 = (int *)FUN_0005c8e4();\n  }" { (expression_statement "piVar8 = (int *)FUN_0005c8e4();" (assignment_expression "piVar8 = (int *)FUN_0005c8e4()" identifier = (cast_expression "(int *)FUN_0005c8e4()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005c8e4()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "puVar1 = PTR_DAT_0015b5d8;" (assignment_expression "puVar1 = PTR_DAT_0015b5d8" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" { (expression_statement "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + -0x5958)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + -0x5958)" ( (binary_expression "PTR_LAB_0015b6c0 + -0x5958" identifier + number_literal) )))) ;) (do_statement "do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);" do (compound_statement "{\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    }" { (while_statement "while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" while (parenthesized_expression "(((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')))" ( (parenthesized_expression "((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))" ( (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')" (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000)" ( (binary_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000" (pointer_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4)" * (cast_expression "(uint *)(*(int *)(param_2 + 0x20) + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x20) + 4)" ( (binary_expression "*(int *)(param_2 + 0x20) + 4" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) && (parenthesized_expression "(*(char *)(param_2 + 0xd) != 'W')" ( (binary_expression "*(char *)(param_2 + 0xd) != 'W'" (pointer_expression "*(char *)(param_2 + 0xd)" * (cast_expression "(char *)(param_2 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) != (char_literal "'W'" ' character ')) ))) )) )) (compound_statement "{\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" { (expression_statement "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);" (call_expression "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" identifier (argument_list "(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" identifier (argument_list "(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "iVar2 = piVar8[0x1b];" (assignment_expression "iVar2 = piVar8[0x1b]" identifier = (subscript_expression "piVar8[0x1b]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = iVar2 + -2;" (assignment_expression "iVar4 = iVar2 + -2" identifier = (binary_expression "iVar2 + -2" identifier + number_literal)) ;) (if_statement "if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar4 = iVar2 + -1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" if (parenthesized_expression "(*(char *)(*piVar8 + 0x51) == '\0')" ( (binary_expression "*(char *)(*piVar8 + 0x51) == '\0'" (pointer_expression "*(char *)(*piVar8 + 0x51)" * (cast_expression "(char *)(*piVar8 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar8 + 0x51)" ( (binary_expression "*piVar8 + 0x51" (pointer_expression "*piVar8" * identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }" { (expression_statement "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;" (assignment_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2" (pointer_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" * (cast_expression "(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8[0x1a] + iVar4 * 0x14 + 8)" ( (binary_expression "piVar8[0x1a] + iVar4 * 0x14 + 8" (binary_expression "piVar8[0x1a] + iVar4 * 0x14" (subscript_expression "piVar8[0x1a]" identifier [ number_literal ]) + (binary_expression "iVar4 * 0x14" identifier * number_literal)) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" else (compound_statement "{\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" { (expression_statement "*(int *)(puVar1 + -0x450c) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x450c) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x450c)" * (cast_expression "(int *)(puVar1 + -0x450c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x450c)" ( (binary_expression "puVar1 + -0x450c" identifier + number_literal) )))) = identifier) ;) }))) (if_statement "if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" { (labeled_statement "LAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);" statement_identifier : (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;)) (goto_statement "goto LAB_0005d9b0;" goto statement_identifier ;) })) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x30);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x30)" * (cast_expression "(undefined4 *)(param_2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0x8a;" (assignment_expression "uVar6 = 0x8a" identifier = number_literal) ;) (labeled_statement "LAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" statement_identifier : (expression_statement "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" (call_expression "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0)" identifier (argument_list "(piVar8,uVar6,uVar5,uVar7,0)" ( identifier , identifier , identifier , identifier , number_literal ))) ;)) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == 0) {\n          return;\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) })) (if_statement "if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;" if (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" ( (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" * (cast_expression "(int *)(param_2 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x34)" ( (binary_expression "param_2 + 0x34" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0005d9ac;" goto statement_identifier ;)) (expression_statement "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" * (cast_expression "(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" ( (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" * (cast_expression "(int *)(param_2 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3c)" ( (binary_expression "param_2 + 0x3c" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          uVar6 = *puVar3;\n        }" { (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) })) (expression_statement "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);" (call_expression "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" identifier (argument_list "(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , identifier , number_literal ))) ;) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" identifier (argument_list "(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = *(undefined4 *)(param_2 + 0x28);" (assignment_expression "uVar7 = *(undefined4 *)(param_2 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0x49;" (assignment_expression "uVar6 = 0x49" identifier = number_literal) ;) (goto_statement "goto LAB_0005da40;" goto statement_identifier ;) })) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar6 = *puVar3;\n      }" { (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" identifier = (pointer_expression "*puVar3" * identifier)) ;) })) (expression_statement "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );" (call_expression "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" identifier (argument_list "(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" * (cast_expression "(undefined4 *)(param_2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) ))) ;) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (labeled_statement "LAB_0005d9b0:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) != LIT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' character ')) ))) )) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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) ))))) ;)) (goto_statement goto 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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , LIT ))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005d89c(int param_1,int param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005d89c(int param_1,int param_2,int param_3)" (identifier "FUN_0005d89c") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined4 uVar6;\n  undefined4 uVar7;\n  int *piVar8;\n  code *pcVar9;\n  \n  piVar8 = *(int **)(param_1 + 8);\n  if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }\n  puVar1 = PTR_DAT_0015b5d8;\n  if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (expression_statement "piVar8 = *(int **)(param_1 + 8);" (assignment_expression "piVar8 = *(int **)(param_1 + 8)" (identifier "piVar8") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (piVar8 == (int *)0x0) {\n    piVar8 = (int *)FUN_0005c8e4();\n  }" (if "if") (parenthesized_expression "(piVar8 == (int *)0x0)" (( "(") (binary_expression "piVar8 == (int *)0x0" (identifier "piVar8") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar8 = (int *)FUN_0005c8e4();\n  }" ({ "{") (expression_statement "piVar8 = (int *)FUN_0005c8e4();" (assignment_expression "piVar8 = (int *)FUN_0005c8e4()" (identifier "piVar8") (= "=") (cast_expression "(int *)FUN_0005c8e4()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005c8e4()" (identifier "FUN_0005c8e4") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_DAT_0015b5d8;" (assignment_expression "puVar1 = PTR_DAT_0015b5d8" (identifier "puVar1") (= "=") (identifier "PTR_DAT_0015b5d8")) (; ";")) (if_statement "if (param_2 != 0) {\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);\n    do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);\n  }" ({ "{") (expression_statement "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);" (assignment_expression "pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958)" (identifier "pcVar9") (= "=") (cast_expression "(code *)(PTR_LAB_0015b6c0 + -0x5958)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6c0 + -0x5958)" (( "(") (binary_expression "PTR_LAB_0015b6c0 + -0x5958" (identifier "PTR_LAB_0015b6c0") (+ "+") (number_literal "-0x5958")) () ")")))) (; ";")) (do_statement "do {\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }\n      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;\n      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);\n      if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }\n      uVar6 = 0;\n      if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }\n      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );\n      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n      param_2 = *(int *)(param_2 + 0x18);\nLAB_0005d9b0:\n    }" ({ "{") (while_statement "while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))) {\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" (while "while") (parenthesized_expression "(((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')))" (( "(") (parenthesized_expression "((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W'))" (( "(") (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&\n             (*(char *)(param_2 + 0xd) != 'W')" (binary_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0" (parenthesized_expression "(*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000)" (( "(") (binary_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000" (pointer_expression "*(uint *)(*(int *)(param_2 + 0x20) + 4)" (* "*") (cast_expression "(uint *)(*(int *)(param_2 + 0x20) + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x20) + 4)" (( "(") (binary_expression "*(int *)(param_2 + 0x20) + 4" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(*(char *)(param_2 + 0xd) != 'W')" (( "(") (binary_expression "*(char *)(param_2 + 0xd) != 'W'" (pointer_expression "*(char *)(param_2 + 0xd)" (* "*") (cast_expression "(char *)(param_2 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))) (!= "!=") (char_literal "'W'" (' "'") (character "W") (' "'"))) () ")"))) () ")")) () ")")) (compound_statement "{\n        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);\n        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);\n        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));\n        iVar2 = piVar8[0x1b];\n        iVar4 = iVar2 + -2;\n        if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }\n        if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }\n        if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }\n        uVar5 = *(undefined4 *)(param_2 + 0x30);\n        uVar7 = 0;\n        uVar6 = 0x8a;\nLAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);\n        param_2 = *(int *)(param_2 + 0x18);\n        if (param_2 == 0) {\n          return;\n        }\n      }" ({ "{") (expression_statement "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" (identifier "FUN_0005c770") (argument_list "(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0)" (( "(") (identifier "piVar8") (, ",") (number_literal "0x49") (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);" (call_expression "FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" (identifier "FUN_0005c770") (argument_list "(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0)" (( "(") (identifier "piVar8") (, ",") (number_literal "0x20") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));" (call_expression "FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" (identifier "FUN_0005c770") (argument_list "(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c))" (( "(") (identifier "piVar8") (, ",") (number_literal "0x5a") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = piVar8[0x1b];" (assignment_expression "iVar2 = piVar8[0x1b]" (identifier "iVar2") (= "=") (subscript_expression "piVar8[0x1b]" (identifier "piVar8") ([ "[") (number_literal "0x1b") (] "]"))) (; ";")) (expression_statement "iVar4 = iVar2 + -2;" (assignment_expression "iVar4 = iVar2 + -2" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -2" (identifier "iVar2") (+ "+") (number_literal "-2"))) (; ";")) (if_statement "if (iVar4 < 0) {\n          iVar4 = iVar2 + -1;\n        }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          iVar4 = iVar2 + -1;\n        }" ({ "{") (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*piVar8 + 0x51) == '\0') {\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }\n        else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" (if "if") (parenthesized_expression "(*(char *)(*piVar8 + 0x51) == '\0')" (( "(") (binary_expression "*(char *)(*piVar8 + 0x51) == '\0'" (pointer_expression "*(char *)(*piVar8 + 0x51)" (* "*") (cast_expression "(char *)(*piVar8 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar8 + 0x51)" (( "(") (binary_expression "*piVar8 + 0x51" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (+ "+") (number_literal "0x51")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;\n        }" ({ "{") (expression_statement "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;" (assignment_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2" (pointer_expression "*(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" (* "*") (cast_expression "(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar8[0x1a] + iVar4 * 0x14 + 8)" (( "(") (binary_expression "piVar8[0x1a] + iVar4 * 0x14 + 8" (binary_expression "piVar8[0x1a] + iVar4 * 0x14" (subscript_expression "piVar8[0x1a]" (identifier "piVar8") ([ "[") (number_literal "0x1a") (] "]")) (+ "+") (binary_expression "iVar4 * 0x14" (identifier "iVar4") (* "*") (number_literal "0x14"))) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (else_clause "else {\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" (else "else") (compound_statement "{\n          *(int *)(puVar1 + -0x450c) = iVar2;\n        }" ({ "{") (expression_statement "*(int *)(puVar1 + -0x450c) = iVar2;" (assignment_expression "*(int *)(puVar1 + -0x450c) = iVar2" (pointer_expression "*(int *)(puVar1 + -0x450c)" (* "*") (cast_expression "(int *)(puVar1 + -0x450c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x450c)" (( "(") (binary_expression "puVar1 + -0x450c" (identifier "puVar1") (+ "+") (number_literal "-0x450c")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (if_statement "if (param_3 == 0) {\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);\n          goto LAB_0005d9b0;\n        }" ({ "{") (labeled_statement "LAB_0005d9ac:\n          param_2 = *(int *)(param_2 + 0x18);" (statement_identifier "LAB_0005d9ac") (: ":") (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";"))) (goto_statement "goto LAB_0005d9b0;" (goto "goto") (statement_identifier "LAB_0005d9b0") (; ";")) (} "}"))) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x30);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x30)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0x8a;" (assignment_expression "uVar6 = 0x8a" (identifier "uVar6") (= "=") (number_literal "0x8a")) (; ";")) (labeled_statement "LAB_0005da40:\n        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" (statement_identifier "LAB_0005da40") (: ":") (expression_statement "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);" (call_expression "FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0)" (identifier "FUN_0005c770") (argument_list "(piVar8,uVar6,uVar5,uVar7,0)" (( "(") (identifier "piVar8") (, ",") (identifier "uVar6") (, ",") (identifier "uVar5") (, ",") (identifier "uVar7") (, ",") (number_literal "0") () ")"))) (; ";"))) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (param_2 == 0) {\n          return;\n        }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x34) != 0" (pointer_expression "*(int *)(param_2 + 0x34)" (* "*") (cast_expression "(int *)(param_2 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x34)" (( "(") (binary_expression "param_2 + 0x34" (identifier "param_2") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005d9ac;" (goto "goto") (statement_identifier "LAB_0005d9ac") (; ";"))) (expression_statement "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);" (assignment_expression "puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" (* "*") (cast_expression "(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x3c) + 0x14)" (( "(") (binary_expression "*(int *)(param_2 + 0x3c) + 0x14" (pointer_expression "*(int *)(param_2 + 0x3c)" (* "*") (cast_expression "(int *)(param_2 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3c)" (( "(") (binary_expression "param_2 + 0x3c" (identifier "param_2") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_3 != 0) {\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = 0;\n        if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }\n        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);\n        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);\n        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);\n        uVar5 = 0;\n        uVar7 = *(undefined4 *)(param_2 + 0x28);\n        uVar6 = 0x49;\n        goto LAB_0005da40;\n      }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n          uVar6 = *puVar3;\n        }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          uVar6 = *puVar3;\n        }" ({ "{") (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" (identifier "uVar6") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (} "}"))) (expression_statement "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);" (call_expression "FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" (identifier "FUN_0005c770") (argument_list "(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0)" (( "(") (identifier "piVar8") (, ",") (number_literal "0x9d") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "uVar6") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (( "(") (identifier "piVar8") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (number_literal "0xfffffff8") () ")"))) (; ";")) (expression_statement "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);" (call_expression "FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" (identifier "FUN_0005c770") (argument_list "(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0)" (( "(") (identifier "piVar8") (, ",") (number_literal "0x4e") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(param_2 + 0x28);" (assignment_expression "uVar7 = *(undefined4 *)(param_2 + 0x28)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar6 = 0x49;" (assignment_expression "uVar6 = 0x49" (identifier "uVar6") (= "=") (number_literal "0x49")) (; ";")) (goto_statement "goto LAB_0005da40;" (goto "goto") (statement_identifier "LAB_0005da40") (; ";")) (} "}"))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n        uVar6 = *puVar3;\n      }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar6 = *puVar3;\n      }" ({ "{") (expression_statement "uVar6 = *puVar3;" (assignment_expression "uVar6 = *puVar3" (identifier "uVar6") (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (} "}"))) (expression_statement "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  );" (call_expression "FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" (identifier "FUN_0005c770") (argument_list "(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)\n                  )" (( "(") (identifier "piVar8") (, ",") (number_literal "0x9c") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "uVar6") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (expression_statement "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);" (call_expression "(*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8)" (( "(") (identifier "piVar8") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (number_literal "0xfffffff8") () ")"))) (; ";")) (expression_statement "param_2 = *(int *)(param_2 + 0x18);" (assignment_expression "param_2 = *(int *)(param_2 + 0x18)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (labeled_statement "LAB_0005d9b0:" (statement_identifier "LAB_0005d9b0") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pParse,type_2 *var_3,int var_5)

{
  type_3 *var_6;
  int iVar2;
  type_4 *var_1;
  
  var_1 = pParse->pVdbe;
  if (var_1 == (type_4 *)0x0) {
    var_1 = var_2(pParse);
  }
  if (var_3 != (type_2 *)0x0) {
    do {
      if (((var_3->pFunc->funcFlags & 0x1000) != 0) && (var_3->eStart != 'W')) {
                    /* WARNING: Subroutine does not return */
        var_4(var_1,0x49,0,var_3->regResult,0);
      }
      if (var_3->regApp == 0) {
        var_6 = (var_3->pOwner->x).pList;
        if (var_5 == 0) {
          iVar2 = 0;
          if (var_6 != (type_3 *)0x0) {
            iVar2 = var_6->nExpr;
          }
                    /* WARNING: Subroutine does not return */
          var_4(var_1,0x9c,var_3->regAccum,iVar2,var_3->regResult);
        }
        iVar2 = 0;
        if (var_6 != (type_3 *)0x0) {
          iVar2 = var_6->nExpr;
        }
                    /* WARNING: Subroutine does not return */
        var_4(var_1,0x9d,var_3->regAccum,iVar2,0);
      }
      var_3 = var_3->pNextWin;
    } while (var_3 != (type_2 *)0x0);
  }
  return;
}


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

void MASKED(int param_1,int param_2,int param_3)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined4 uVar5;
  undefined4 uVar6;
  undefined4 uVar7;
  int *piVar8;
  code *pcVar9;
  
  piVar8 = *(int **)(param_1 + 8);
  if (piVar8 == (int *)0x0) {
    piVar8 = (int *)FUN_0005c8e4();
  }
  puVar1 = PTR_DAT_0015b5d8;
  if (param_2 != 0) {
    pcVar9 = (code *)(PTR_LAB_0015b6c0 + -0x5958);
    do {
      while (((*(uint *)(*(int *)(param_2 + 0x20) + 4) & 0x1000) != 0 &&
             (*(char *)(param_2 + 0xd) != 'W'))) {
        FUN_0005c770(piVar8,0x49,0,*(undefined4 *)(param_2 + 0x2c),0);
        FUN_0005c770(piVar8,0x20,*(undefined4 *)(param_2 + 0x30),0,0);
        FUN_0005c770(piVar8,0x5a,*(undefined4 *)(param_2 + 0x30),0,*(undefined4 *)(param_2 + 0x2c));
        iVar2 = piVar8[0x1b];
        iVar4 = iVar2 + -2;
        if (iVar4 < 0) {
          iVar4 = iVar2 + -1;
        }
        if (*(char *)(*piVar8 + 0x51) == '\0') {
          *(int *)(piVar8[0x1a] + iVar4 * 0x14 + 8) = iVar2;
        }
        else {
          *(int *)(puVar1 + -0x450c) = iVar2;
        }
        if (param_3 == 0) {
LAB_0005d9ac:
          param_2 = *(int *)(param_2 + 0x18);
          goto LAB_0005d9b0;
        }
        uVar5 = *(undefined4 *)(param_2 + 0x30);
        uVar7 = 0;
        uVar6 = 0x8a;
LAB_0005da40:
        FUN_0005c770(piVar8,uVar6,uVar5,uVar7,0);
        param_2 = *(int *)(param_2 + 0x18);
        if (param_2 == 0) {
          return;
        }
      }
      if (*(int *)(param_2 + 0x34) != 0) goto LAB_0005d9ac;
      puVar3 = *(undefined4 **)(*(int *)(param_2 + 0x3c) + 0x14);
      if (param_3 != 0) {
        uVar6 = 0;
        if (puVar3 != (undefined4 *)0x0) {
          uVar6 = *puVar3;
        }
        FUN_0005c770(piVar8,0x9d,*(undefined4 *)(param_2 + 0x28),uVar6,0);
        (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);
        FUN_0005c770(piVar8,0x4e,*(undefined4 *)(param_2 + 0x28),*(undefined4 *)(param_2 + 0x2c),0);
        uVar5 = 0;
        uVar7 = *(undefined4 *)(param_2 + 0x28);
        uVar6 = 0x49;
        goto LAB_0005da40;
      }
      uVar6 = 0;
      if (puVar3 != (undefined4 *)0x0) {
        uVar6 = *puVar3;
      }
      FUN_0005c770(piVar8,0x9c,*(undefined4 *)(param_2 + 0x28),uVar6,*(undefined4 *)(param_2 + 0x2c)
                  );
      (*pcVar9)(piVar8,*(undefined4 *)(param_2 + 0x20),0xfffffff8);
      param_2 = *(int *)(param_2 + 0x18);
LAB_0005d9b0:
    } while (param_2 != 0);
  }
  return;
}

