
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* DWARF original prototype: void windowAggFinal(WindowCodeArg * p, int bFin, WindowCodeArg * p) */

void __regparm3 windowAggFinal(WindowCodeArg *p,int bFin,WindowCodeArg *p_1)

{
  int iVar1;
  int *piVar2;
  Parse *pParse;
  Vdbe *p_00;
  Op *pOVar3;
  int iVar4;
  int iVar5;
  
  p_00 = p->pVdbe;
  if (p_00 == (Vdbe *)0x0) {
    p_00 = sqlite3GetVdbe((Parse *)p);
  }
  for (iVar5 = bFin; iVar5 != 0; iVar5 = *(int *)(iVar5 + 0x24)) {
    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&
       (*(char *)(iVar5 + 0x11) != 'Z')) {
      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);
      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);
      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));
      iVar1 = p_00->nOp;
      iVar4 = iVar1 + -2;
      if (iVar4 < 0) {
        iVar4 = iVar1 + -1;
      }
      pOVar3 = (Op *)&dummy_22674;
      if (p_00->db->mallocFailed == '\0') {
        pOVar3 = p_00->aOp + iVar4;
      }
      pOVar3->p2 = iVar1;
    }
    else if (*(int *)(iVar5 + 0x40) == 0) {
      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);
      iVar4 = 0;
      if (piVar2 != (int *)0x0) {
        iVar4 = *piVar2;
      }
      if (p_1 == (WindowCodeArg *)0x0) {
        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));
        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);
      }
      else {
        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);
        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);
        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);
        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);
      }
    }
  }
  return;
}



void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  int extraout_ECX;
  int iVar6;
  int iVar7;
  int iVar8;
  int unaff_EBP;
  
  iVar3 = FUN_000a9503();
  piVar4 = *(int **)(iVar3 + 8);
  if (piVar4 == (int *)0x0) {
    piVar4 = (int *)FUN_000318c0();
  }
  iVar3 = param_2;
  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {
    if (((*(int *)(param_2 + 0x58) == 0) &&
        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&
       (*(char *)(iVar8 + 0x11) != 'Z')) {
      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);
      FUN_000315c0(0,0);
      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));
      iVar1 = piVar4[0x1a];
      iVar7 = iVar1 + -2;
      if (iVar7 < 0) {
        iVar7 = iVar1 + -1;
      }
      iVar3 = *piVar4;
      iVar6 = unaff_EBP + 0xc851a;
      if (*(char *)(iVar3 + 0x4d) == '\0') {
        iVar6 = piVar4[0x19] + iVar7 * 0x14;
      }
      *(int *)(iVar6 + 8) = iVar1;
    }
    else if (*(int *)(iVar8 + 0x40) == 0) {
      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);
      uVar5 = 0;
      if (puVar2 != (undefined4 *)0x0) {
        uVar5 = *puVar2;
      }
      if (extraout_ECX == 0) {
        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);
        FUN_0002b210();
      }
      else {
        FUN_000315c0(uVar5,0,iVar3,iVar3);
        FUN_0002b210();
        iVar3 = 0;
        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));
        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);
      }
    }
  }
  return;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x000a9503
ADD EBP,0xc6f4a
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x8],ECX
TEST ESI,ESI
JNZ 0x000170d1
CALL 0x000318c0
MOV ESI,EAX
LEA EBP,[EBP + 0x15d0]
MOV EBX,EDI
MOV dword ptr [ESP + 0xc],EDI
TEST EBX,EBX
JZ 0x00017205
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [EAX + 0x58],0x0
JNZ 0x00017168
MOV EAX,dword ptr [EBX + 0x2c]
TEST byte ptr [EAX + 0x5],0x10
JZ 0x00017168
CMP byte ptr [EBX + 0x11],0x5a
JZ 0x00017168
PUSH EAX
PUSH EAX
XOR ECX,ECX
PUSH 0x0
PUSH dword ptr [EBX + 0x38]
MOV EDX,0x48
MOV EAX,ESI
CALL 0x000315c0
POP EAX
POP EDX
MOV ECX,dword ptr [EBX + 0x3c]
PUSH 0x0
MOV EDX,0x21
PUSH 0x0
MOV EAX,ESI
CALL 0x000315c0
POP EDI
POP EAX
MOV ECX,dword ptr [EBX + 0x3c]
PUSH dword ptr [EBX + 0x38]
MOV EDX,0x59
PUSH 0x0
MOV EAX,ESI
CALL 0x000315c0
MOV EAX,dword ptr [ESI + 0x68]
ADD ESP,0x10
MOV EDX,EAX
SUB EDX,0x2
JNS 0x0001714e
LEA EDX,[EAX + -0x1]
MOV EDI,dword ptr [ESI]
MOV ECX,EBP
CMP byte ptr [EDI + 0x4d],0x0
JNZ 0x00017160
IMUL EDX,EDX,0x14
MOV ECX,dword ptr [ESI + 0x64]
ADD ECX,EDX
MOV dword ptr [ECX + 0x8],EAX
JMP 0x000171fd
MOV EAX,dword ptr [EBX + 0x40]
TEST EAX,EAX
JNZ 0x000171fd
MOV EDX,dword ptr [EBX + 0x48]
MOV EDX,dword ptr [EDX + 0x14]
TEST EDX,EDX
JZ 0x0001717f
MOV EAX,dword ptr [EDX]
CMP dword ptr [ESP + 0x8],0x0
MOV ECX,dword ptr [EBX + 0x34]
JZ 0x000171d9
PUSH EDI
PUSH EDI
MOV EDX,0x9d
PUSH 0x0
PUSH EAX
MOV EAX,ESI
CALL 0x000315c0
MOV EDX,dword ptr [EBX + 0x2c]
MOV ECX,0xfffffff8
MOV EAX,ESI
CALL 0x0002b210
POP EAX
POP EDX
MOV ECX,dword ptr [EBX + 0x34]
PUSH 0x0
MOV EDX,0x4d
PUSH dword ptr [EBX + 0x38]
MOV EAX,ESI
CALL 0x000315c0
POP ECX
POP EDI
PUSH 0x0
PUSH dword ptr [EBX + 0x34]
XOR ECX,ECX
MOV EDX,0x48
MOV EAX,ESI
CALL 0x000315c0
ADD ESP,0x10
JMP 0x000171fd
PUSH EDX
PUSH EDX
MOV EDX,0x9c
PUSH dword ptr [EBX + 0x38]
PUSH EAX
MOV EAX,ESI
CALL 0x000315c0
MOV EDX,dword ptr [EBX + 0x2c]
MOV ECX,0xfffffff8
MOV EAX,ESI
CALL 0x0002b210
ADD ESP,0x10
MOV EBX,dword ptr [EBX + 0x24]
JMP 0x000170dd
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000170ab(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_000a9503();" (assignment_expression "iVar3 = FUN_000a9503()" identifier = (call_expression "FUN_000a9503()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4 = *(int **)(iVar3 + 8);" (assignment_expression "piVar4 = *(int **)(iVar3 + 8)" identifier = (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = (int *)FUN_000318c0();\n  }" { (expression_statement "piVar4 = (int *)FUN_000318c0();" (assignment_expression "piVar4 = (int *)FUN_000318c0()" identifier = (cast_expression "(int *)FUN_000318c0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000318c0()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "iVar3 = param_2;" (assignment_expression "iVar3 = param_2" identifier = identifier) ;) (for_statement "for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" for ( (assignment_expression "iVar8 = param_2" identifier = identifier) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = *(int *)(iVar8 + 0x24)" identifier = (pointer_expression "*(int *)(iVar8 + 0x24)" * (cast_expression "(int *)(iVar8 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x24)" ( (binary_expression "iVar8 + 0x24" identifier + number_literal) ))))) ) (compound_statement "{\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" { (if_statement "if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z'))" ( (binary_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')" (parenthesized_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0))" ( (binary_expression "(*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x58) == 0)" ( (binary_expression "*(int *)(param_2 + 0x58) == 0" (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" ( (comma_expression "iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x2c)" identifier = (pointer_expression "*(int *)(iVar8 + 0x2c)" * (cast_expression "(int *)(iVar8 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x2c)" ( (binary_expression "iVar8 + 0x2c" identifier + number_literal) ))))) , (binary_expression "(*(byte *)(iVar7 + 5) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 5) & 0x10)" ( (binary_expression "*(byte *)(iVar7 + 5) & 0x10" (pointer_expression "*(byte *)(iVar7 + 5)" * (cast_expression "(byte *)(iVar7 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 5)" ( (binary_expression "iVar7 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal)) ))) )) && (parenthesized_expression "(*(char *)(iVar8 + 0x11) != 'Z')" ( (binary_expression "*(char *)(iVar8 + 0x11) != 'Z'" (pointer_expression "*(char *)(iVar8 + 0x11)" * (cast_expression "(char *)(iVar8 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x11)" ( (binary_expression "iVar8 + 0x11" identifier + number_literal) )))) != (char_literal "'Z'" ' character ')) ))) )) (compound_statement "{\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }" { (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_000315c0(0,0);" (call_expression "FUN_000315c0(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38))" identifier (argument_list "(0,*(undefined4 *)(iVar8 + 0x38))" ( number_literal , (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = piVar4[0x1a];" (assignment_expression "iVar1 = piVar4[0x1a]" identifier = (subscript_expression "piVar4[0x1a]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = iVar1 + -2;" (assignment_expression "iVar7 = iVar1 + -2" identifier = (binary_expression "iVar1 + -2" identifier + number_literal)) ;) (if_statement "if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar7 = iVar1 + -1;\n      }" { (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar6 = unaff_EBP + 0xc851a;" (assignment_expression "iVar6 = unaff_EBP + 0xc851a" identifier = (binary_expression "unaff_EBP + 0xc851a" identifier + number_literal)) ;) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" if (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" * (cast_expression "(char *)(iVar3 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4d)" ( (binary_expression "iVar3 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" { (expression_statement "iVar6 = piVar4[0x19] + iVar7 * 0x14;" (assignment_expression "iVar6 = piVar4[0x19] + iVar7 * 0x14" identifier = (binary_expression "piVar4[0x19] + iVar7 * 0x14" (subscript_expression "piVar4[0x19]" identifier [ number_literal ]) + (binary_expression "iVar7 * 0x14" identifier * number_literal))) ;) })) (expression_statement "*(int *)(iVar6 + 8) = iVar1;" (assignment_expression "*(int *)(iVar6 + 8) = iVar1" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" else (if_statement "if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(*(int *)(iVar8 + 0x40) == 0)" ( (binary_expression "*(int *)(iVar8 + 0x40) == 0" (pointer_expression "*(int *)(iVar8 + 0x40)" * (cast_expression "(int *)(iVar8 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x40)" ( (binary_expression "iVar8 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" { (expression_statement "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" * (cast_expression "(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar8 + 0x48) + 0x14)" ( (binary_expression "*(int *)(iVar8 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar8 + 0x48)" * (cast_expression "(int *)(iVar8 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x48)" ( (binary_expression "iVar8 + 0x48" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = *puVar2;\n      }" { (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) })) (if_statement "if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }" { (expression_statement "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);" (call_expression "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" identifier (argument_list "(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" else (compound_statement "{\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" { (expression_statement "FUN_000315c0(uVar5,0,iVar3,iVar3);" (call_expression "FUN_000315c0(uVar5,0,iVar3,iVar3)" identifier (argument_list "(uVar5,0,iVar3,iVar3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38))" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x38))" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0)" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x34),0)" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x34)" * (cast_expression "(undefined4 *)(iVar8 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x34)" ( (binary_expression "iVar8 + 0x34" identifier + number_literal) )))) , number_literal ))) ;) }))) })))) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n/* DWARF original prototype: void windowAggFinal(WindowCodeArg * p, int bFin, WindowCodeArg * p) */\n\nvoid __regparm3 windowAggFinal(WindowCodeArg *p,int bFin,WindowCodeArg *p_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  Parse *pParse;\n  Vdbe *p_00;\n  Op *pOVar3;\n  int iVar4;\n  int iVar5;\n  \n  p_00 = p->pVdbe;\n  if (p_00 == (Vdbe *)0x0) {\n    p_00 = sqlite3GetVdbe((Parse *)p);\n  }\n  for (iVar5 = bFin; iVar5 != 0; iVar5 = *(int *)(iVar5 + 0x24)) {\n    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 windowAggFinal(WindowCodeArg *p,int bFin,WindowCodeArg *p_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  Parse *pParse;\n  Vdbe *p_00;\n  Op *pOVar3;\n  int iVar4;\n  int iVar5;\n  \n  p_00 = p->pVdbe;\n  if (p_00 == (Vdbe *)0x0) {\n    p_00 = sqlite3GetVdbe((Parse *)p);\n  }\n  for (iVar5 = bFin; iVar5 != 0; iVar5 = *(int *)(iVar5 + 0x24)) {\n    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "windowAggFinal(WindowCodeArg *p,int bFin,WindowCodeArg *p_1)" identifier (parameter_list "(WindowCodeArg *p,int bFin,WindowCodeArg *p_1)" ( (parameter_declaration "WindowCodeArg *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int bFin" primitive_type identifier) , (parameter_declaration "WindowCodeArg *p_1" type_identifier (pointer_declarator "*p_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  Parse *pParse;\n  Vdbe *p_00;\n  Op *pOVar3;\n  int iVar4;\n  int iVar5;\n  \n  p_00 = p->pVdbe;\n  if (p_00 == (Vdbe *)0x0) {\n    p_00 = sqlite3GetVdbe((Parse *)p);\n  }\n  for (iVar5 = bFin; iVar5 != 0; iVar5 = *(int *)(iVar5 + 0x24)) {\n    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "Parse *pParse;" type_identifier (pointer_declarator "*pParse" * identifier) ;) (declaration "Vdbe *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "Op *pOVar3;" type_identifier (pointer_declarator "*pOVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "p_00 = p->pVdbe;" (assignment_expression "p_00 = p->pVdbe" identifier = (field_expression "p->pVdbe" identifier -> field_identifier)) ;) (if_statement "if (p_00 == (Vdbe *)0x0) {\n    p_00 = sqlite3GetVdbe((Parse *)p);\n  }" if (parenthesized_expression "(p_00 == (Vdbe *)0x0)" ( (binary_expression "p_00 == (Vdbe *)0x0" identifier == (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_00 = sqlite3GetVdbe((Parse *)p);\n  }" { (expression_statement "p_00 = sqlite3GetVdbe((Parse *)p);" (assignment_expression "p_00 = sqlite3GetVdbe((Parse *)p)" identifier = (call_expression "sqlite3GetVdbe((Parse *)p)" identifier (argument_list "((Parse *)p)" ( (cast_expression "(Parse *)p" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) })) (for_statement "for (iVar5 = bFin; iVar5 != 0; iVar5 = *(int *)(iVar5 + 0x24)) {\n    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }\n  }" for ( (assignment_expression "iVar5 = bFin" identifier = identifier) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = *(int *)(iVar5 + 0x24)" identifier = (pointer_expression "*(int *)(iVar5 + 0x24)" * (cast_expression "(int *)(iVar5 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ) (compound_statement "{\n    if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }\n  }" { (if_statement "if (((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')) {\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }\n    else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z'))" ( (binary_expression "((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar5 + 0x11) != 'Z')" (parenthesized_expression "((*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0))" ( (binary_expression "(*(int *)(bFin + 0x58) == 0) && ((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)" (parenthesized_expression "(*(int *)(bFin + 0x58) == 0)" ( (binary_expression "*(int *)(bFin + 0x58) == 0" (pointer_expression "*(int *)(bFin + 0x58)" * (cast_expression "(int *)(bFin + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(bFin + 0x58)" ( (binary_expression "bFin + 0x58" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "((*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0)" ( (binary_expression "(*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10) != 0" (parenthesized_expression "(*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10)" ( (binary_expression "*(byte *)(*(int *)(iVar5 + 0x2c) + 5) & 0x10" (pointer_expression "*(byte *)(*(int *)(iVar5 + 0x2c) + 5)" * (cast_expression "(byte *)(*(int *)(iVar5 + 0x2c) + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0x2c) + 5)" ( (binary_expression "*(int *)(iVar5 + 0x2c) + 5" (pointer_expression "*(int *)(iVar5 + 0x2c)" * (cast_expression "(int *)(iVar5 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(*(char *)(iVar5 + 0x11) != 'Z')" ( (binary_expression "*(char *)(iVar5 + 0x11) != 'Z'" (pointer_expression "*(char *)(iVar5 + 0x11)" * (cast_expression "(char *)(iVar5 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x11)" ( (binary_expression "iVar5 + 0x11" identifier + number_literal) )))) != (char_literal "'Z'" ' character ')) ))) )) (compound_statement "{\n      sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);\n      sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);\n      sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));\n      iVar1 = p_00->nOp;\n      iVar4 = iVar1 + -2;\n      if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }\n      pOVar3 = (Op *)&dummy_22674;\n      if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }\n      pOVar3->p2 = iVar1;\n    }" { (expression_statement "sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0);" (call_expression "sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x38),0)" identifier (argument_list "(p_00,0x48,0,*(int *)(iVar5 + 0x38),0)" ( identifier , number_literal , number_literal , (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0);" (call_expression "sqlite3VdbeAddOp3(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0)" identifier (argument_list "(p_00,0x21,*(int *)(iVar5 + 0x3c),0,0)" ( identifier , number_literal , (pointer_expression "*(int *)(iVar5 + 0x3c)" * (cast_expression "(int *)(iVar5 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x3c)" ( (binary_expression "iVar5 + 0x3c" identifier + number_literal) )))) , number_literal , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38));" (call_expression "sqlite3VdbeAddOp3(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38))" identifier (argument_list "(p_00,0x59,*(int *)(iVar5 + 0x3c),0,*(int *)(iVar5 + 0x38))" ( identifier , number_literal , (pointer_expression "*(int *)(iVar5 + 0x3c)" * (cast_expression "(int *)(iVar5 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x3c)" ( (binary_expression "iVar5 + 0x3c" identifier + number_literal) )))) , number_literal , (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = p_00->nOp;" (assignment_expression "iVar1 = p_00->nOp" identifier = (field_expression "p_00->nOp" identifier -> field_identifier)) ;) (expression_statement "iVar4 = iVar1 + -2;" (assignment_expression "iVar4 = iVar1 + -2" identifier = (binary_expression "iVar1 + -2" identifier + number_literal)) ;) (if_statement "if (iVar4 < 0) {\n        iVar4 = iVar1 + -1;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar4 = iVar1 + -1;\n      }" { (expression_statement "iVar4 = iVar1 + -1;" (assignment_expression "iVar4 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) })) (expression_statement "pOVar3 = (Op *)&dummy_22674;" (assignment_expression "pOVar3 = (Op *)&dummy_22674" identifier = (cast_expression "(Op *)&dummy_22674" ( (type_descriptor "Op *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dummy_22674" & identifier))) ;) (if_statement "if (p_00->db->mallocFailed == '\0') {\n        pOVar3 = p_00->aOp + iVar4;\n      }" if (parenthesized_expression "(p_00->db->mallocFailed == '\0')" ( (binary_expression "p_00->db->mallocFailed == '\0'" (field_expression "p_00->db->mallocFailed" (field_expression "p_00->db" identifier -> field_identifier) -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        pOVar3 = p_00->aOp + iVar4;\n      }" { (expression_statement "pOVar3 = p_00->aOp + iVar4;" (assignment_expression "pOVar3 = p_00->aOp + iVar4" identifier = (binary_expression "p_00->aOp + iVar4" (field_expression "p_00->aOp" identifier -> field_identifier) + identifier)) ;) })) (expression_statement "pOVar3->p2 = iVar1;" (assignment_expression "pOVar3->p2 = iVar1" (field_expression "pOVar3->p2" identifier -> field_identifier) = identifier) ;) }) (else_clause "else if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }" else (if_statement "if (*(int *)(iVar5 + 0x40) == 0) {\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(*(int *)(iVar5 + 0x40) == 0)" ( (binary_expression "*(int *)(iVar5 + 0x40) == 0" (pointer_expression "*(int *)(iVar5 + 0x40)" * (cast_expression "(int *)(iVar5 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x40)" ( (binary_expression "iVar5 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);\n      iVar4 = 0;\n      if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }\n      if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }\n    }" { (expression_statement "piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14);" (assignment_expression "piVar2 = *(int **)(*(int *)(iVar5 + 0x48) + 0x14)" identifier = (pointer_expression "*(int **)(*(int *)(iVar5 + 0x48) + 0x14)" * (cast_expression "(int **)(*(int *)(iVar5 + 0x48) + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar5 + 0x48) + 0x14)" ( (binary_expression "*(int *)(iVar5 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar5 + 0x48)" * (cast_expression "(int *)(iVar5 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x48)" ( (binary_expression "iVar5 + 0x48" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (piVar2 != (int *)0x0) {\n        iVar4 = *piVar2;\n      }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar4 = *piVar2;\n      }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (if_statement "if (p_1 == (WindowCodeArg *)0x0) {\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }\n      else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }" if (parenthesized_expression "(p_1 == (WindowCodeArg *)0x0)" ( (binary_expression "p_1 == (WindowCodeArg *)0x0" identifier == (cast_expression "(WindowCodeArg *)0x0" ( (type_descriptor "WindowCodeArg *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n      }" { (expression_statement "sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38));" (call_expression "sqlite3VdbeAddOp3(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38))" identifier (argument_list "(p_00,0x9c,*(int *)(iVar5 + 0x34),iVar4,*(int *)(iVar5 + 0x38))" ( identifier , number_literal , (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) , identifier , (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);" (call_expression "sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8)" identifier (argument_list "(p_00,*(void **)(iVar5 + 0x2c),-8)" ( identifier , (pointer_expression "*(void **)(iVar5 + 0x2c)" * (cast_expression "(void **)(iVar5 + 0x2c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) }) (else_clause "else {\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }" else (compound_statement "{\n        sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);\n        sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);\n        sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);\n        sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);\n      }" { (expression_statement "sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0);" (call_expression "sqlite3VdbeAddOp3(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0)" identifier (argument_list "(p_00,0x9d,*(int *)(iVar5 + 0x34),iVar4,0)" ( identifier , number_literal , (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) , identifier , number_literal ))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8);" (call_expression "sqlite3VdbeAppendP4(p_00,*(void **)(iVar5 + 0x2c),-8)" identifier (argument_list "(p_00,*(void **)(iVar5 + 0x2c),-8)" ( identifier , (pointer_expression "*(void **)(iVar5 + 0x2c)" * (cast_expression "(void **)(iVar5 + 0x2c)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x2c)" ( (binary_expression "iVar5 + 0x2c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0);" (call_expression "sqlite3VdbeAddOp3(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0)" identifier (argument_list "(p_00,0x4d,*(int *)(iVar5 + 0x34),*(int *)(iVar5 + 0x38),0)" ( identifier , number_literal , (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) , (pointer_expression "*(int *)(iVar5 + 0x38)" * (cast_expression "(int *)(iVar5 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x38)" ( (binary_expression "iVar5 + 0x38" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0);" (call_expression "sqlite3VdbeAddOp3(p_00,0x48,0,*(int *)(iVar5 + 0x34),0)" identifier (argument_list "(p_00,0x48,0,*(int *)(iVar5 + 0x34),0)" ( identifier , number_literal , number_literal , (pointer_expression "*(int *)(iVar5 + 0x34)" * (cast_expression "(int *)(iVar5 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x34)" ( (binary_expression "iVar5 + 0x34" identifier + number_literal) )))) , number_literal ))) ;) }))) })))) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000170ab(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int extraout_ECX;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (expression_statement "iVar3 = FUN_000a9503();" (assignment_expression "iVar3 = FUN_000a9503()" identifier = (call_expression "FUN_000a9503()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar4 = *(int **)(iVar3 + 8);" (assignment_expression "piVar4 = *(int **)(iVar3 + 8)" identifier = (pointer_expression "*(int **)(iVar3 + 8)" * (cast_expression "(int **)(iVar3 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar4 = (int *)FUN_000318c0();\n  }" { (expression_statement "piVar4 = (int *)FUN_000318c0();" (assignment_expression "piVar4 = (int *)FUN_000318c0()" identifier = (cast_expression "(int *)FUN_000318c0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000318c0()" identifier (argument_list "()" ( ))))) ;) })) (expression_statement "iVar3 = param_2;" (assignment_expression "iVar3 = param_2" identifier = identifier) ;) (for_statement "for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" for ( (assignment_expression "iVar8 = param_2" identifier = identifier) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = *(int *)(iVar8 + 0x24)" identifier = (pointer_expression "*(int *)(iVar8 + 0x24)" * (cast_expression "(int *)(iVar8 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x24)" ( (binary_expression "iVar8 + 0x24" identifier + number_literal) ))))) ) (compound_statement "{\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" { (if_statement "if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z'))" ( (binary_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')" (parenthesized_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0))" ( (binary_expression "(*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x58) == 0)" ( (binary_expression "*(int *)(param_2 + 0x58) == 0" (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" ( (comma_expression "iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x2c)" identifier = (pointer_expression "*(int *)(iVar8 + 0x2c)" * (cast_expression "(int *)(iVar8 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x2c)" ( (binary_expression "iVar8 + 0x2c" identifier + number_literal) ))))) , (binary_expression "(*(byte *)(iVar7 + 5) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 5) & 0x10)" ( (binary_expression "*(byte *)(iVar7 + 5) & 0x10" (pointer_expression "*(byte *)(iVar7 + 5)" * (cast_expression "(byte *)(iVar7 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 5)" ( (binary_expression "iVar7 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal)) ))) )) && (parenthesized_expression "(*(char *)(iVar8 + 0x11) != 'Z')" ( (binary_expression "*(char *)(iVar8 + 0x11) != 'Z'" (pointer_expression "*(char *)(iVar8 + 0x11)" * (cast_expression "(char *)(iVar8 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x11)" ( (binary_expression "iVar8 + 0x11" identifier + number_literal) )))) != (char_literal "'Z'" ' character ')) ))) )) (compound_statement "{\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }" { (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_000315c0(0,0);" (call_expression "FUN_000315c0(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38))" identifier (argument_list "(0,*(undefined4 *)(iVar8 + 0x38))" ( number_literal , (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = piVar4[0x1a];" (assignment_expression "iVar1 = piVar4[0x1a]" identifier = (subscript_expression "piVar4[0x1a]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = iVar1 + -2;" (assignment_expression "iVar7 = iVar1 + -2" identifier = (binary_expression "iVar1 + -2" identifier + number_literal)) ;) (if_statement "if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar7 = iVar1 + -1;\n      }" { (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar6 = unaff_EBP + 0xc851a;" (assignment_expression "iVar6 = unaff_EBP + 0xc851a" identifier = (binary_expression "unaff_EBP + 0xc851a" identifier + number_literal)) ;) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" if (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" * (cast_expression "(char *)(iVar3 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x4d)" ( (binary_expression "iVar3 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" { (expression_statement "iVar6 = piVar4[0x19] + iVar7 * 0x14;" (assignment_expression "iVar6 = piVar4[0x19] + iVar7 * 0x14" identifier = (binary_expression "piVar4[0x19] + iVar7 * 0x14" (subscript_expression "piVar4[0x19]" identifier [ number_literal ]) + (binary_expression "iVar7 * 0x14" identifier * number_literal))) ;) })) (expression_statement "*(int *)(iVar6 + 8) = iVar1;" (assignment_expression "*(int *)(iVar6 + 8) = iVar1" (pointer_expression "*(int *)(iVar6 + 8)" * (cast_expression "(int *)(iVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" else (if_statement "if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" if (parenthesized_expression "(*(int *)(iVar8 + 0x40) == 0)" ( (binary_expression "*(int *)(iVar8 + 0x40) == 0" (pointer_expression "*(int *)(iVar8 + 0x40)" * (cast_expression "(int *)(iVar8 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x40)" ( (binary_expression "iVar8 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" { (expression_statement "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" * (cast_expression "(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar8 + 0x48) + 0x14)" ( (binary_expression "*(int *)(iVar8 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar8 + 0x48)" * (cast_expression "(int *)(iVar8 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x48)" ( (binary_expression "iVar8 + 0x48" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar5 = *puVar2;\n      }" { (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) })) (if_statement "if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" if (parenthesized_expression "(extraout_ECX == 0)" ( (binary_expression "extraout_ECX == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }" { (expression_statement "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);" (call_expression "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" identifier (argument_list "(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" ( identifier , (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" else (compound_statement "{\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" { (expression_statement "FUN_000315c0(uVar5,0,iVar3,iVar3);" (call_expression "FUN_000315c0(uVar5,0,iVar3,iVar3)" identifier (argument_list "(uVar5,0,iVar3,iVar3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38))" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x38))" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" * (cast_expression "(undefined4 *)(iVar8 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x38)" ( (binary_expression "iVar8 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0)" identifier (argument_list "(*(undefined4 *)(iVar8 + 0x34),0)" ( (pointer_expression "*(undefined4 *)(iVar8 + 0x34)" * (cast_expression "(undefined4 *)(iVar8 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x34)" ( (binary_expression "iVar8 + 0x34" identifier + number_literal) )))) , number_literal ))) ;) }))) })))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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) ;) (for_statement for ( (assignment_expression IDENT = IDENT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (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) ))))) ;) (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)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) }))) })))) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000170ab(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000170ab(undefined4 param_1,int param_2)" (identifier "FUN_000170ab") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 uVar5;\n  int extraout_ECX;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int unaff_EBP;\n  \n  iVar3 = FUN_000a9503();\n  piVar4 = *(int **)(iVar3 + 8);\n  if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }\n  iVar3 = param_2;\n  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int extraout_ECX;" (primitive_type "int") (identifier "extraout_ECX") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (expression_statement "iVar3 = FUN_000a9503();" (assignment_expression "iVar3 = FUN_000a9503()" (identifier "iVar3") (= "=") (call_expression "FUN_000a9503()" (identifier "FUN_000a9503") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar4 = *(int **)(iVar3 + 8);" (assignment_expression "piVar4 = *(int **)(iVar3 + 8)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(iVar3 + 8)" (* "*") (cast_expression "(int **)(iVar3 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) {\n    piVar4 = (int *)FUN_000318c0();\n  }" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar4 = (int *)FUN_000318c0();\n  }" ({ "{") (expression_statement "piVar4 = (int *)FUN_000318c0();" (assignment_expression "piVar4 = (int *)FUN_000318c0()" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_000318c0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000318c0()" (identifier "FUN_000318c0") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar3 = param_2;" (assignment_expression "iVar3 = param_2" (identifier "iVar3") (= "=") (identifier "param_2")) (; ";")) (for_statement "for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" (for "for") (( "(") (assignment_expression "iVar8 = param_2" (identifier "iVar8") (= "=") (identifier "param_2")) (; ";") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar8 = *(int *)(iVar8 + 0x24)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar8 + 0x24)" (* "*") (cast_expression "(int *)(iVar8 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x24)" (( "(") (binary_expression "iVar8 + 0x24" (identifier "iVar8") (+ "+") (number_literal "0x24")) () ")"))))) () ")") (compound_statement "{\n    if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }\n  }" ({ "{") (if_statement "if (((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')) {\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }\n    else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" (if "if") (parenthesized_expression "(((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z'))" (( "(") (binary_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&\n       (*(char *)(iVar8 + 0x11) != 'Z')" (parenthesized_expression "((*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0))" (( "(") (binary_expression "(*(int *)(param_2 + 0x58) == 0) &&\n        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x58) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x58) == 0" (pointer_expression "*(int *)(param_2 + 0x58)" (* "*") (cast_expression "(int *)(param_2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)" (( "(") (comma_expression "iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0" (assignment_expression "iVar7 = *(int *)(iVar8 + 0x2c)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar8 + 0x2c)" (* "*") (cast_expression "(int *)(iVar8 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x2c)" (( "(") (binary_expression "iVar8 + 0x2c" (identifier "iVar8") (+ "+") (number_literal "0x2c")) () ")"))))) (, ",") (binary_expression "(*(byte *)(iVar7 + 5) & 0x10) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 5) & 0x10)" (( "(") (binary_expression "*(byte *)(iVar7 + 5) & 0x10" (pointer_expression "*(byte *)(iVar7 + 5)" (* "*") (cast_expression "(byte *)(iVar7 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 5)" (( "(") (binary_expression "iVar7 + 5" (identifier "iVar7") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(iVar8 + 0x11) != 'Z')" (( "(") (binary_expression "*(char *)(iVar8 + 0x11) != 'Z'" (pointer_expression "*(char *)(iVar8 + 0x11)" (* "*") (cast_expression "(char *)(iVar8 + 0x11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x11)" (( "(") (binary_expression "iVar8 + 0x11" (identifier "iVar8") (+ "+") (number_literal "0x11")) () ")")))) (!= "!=") (char_literal "'Z'" (' "'") (character "Z") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);\n      FUN_000315c0(0,0);\n      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));\n      iVar1 = piVar4[0x1a];\n      iVar7 = iVar1 + -2;\n      if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }\n      iVar3 = *piVar4;\n      iVar6 = unaff_EBP + 0xc851a;\n      if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }\n      *(int *)(iVar6 + 8) = iVar1;\n    }" ({ "{") (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" (identifier "FUN_000315c0") (argument_list "(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7)" (( "(") (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x38)" (( "(") (binary_expression "iVar8 + 0x38" (identifier "iVar8") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (number_literal "0") (, ",") (identifier "iVar7") (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "FUN_000315c0(0,0);" (call_expression "FUN_000315c0(0,0)" (identifier "FUN_000315c0") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38))" (identifier "FUN_000315c0") (argument_list "(0,*(undefined4 *)(iVar8 + 0x38))" (( "(") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x38)" (( "(") (binary_expression "iVar8 + 0x38" (identifier "iVar8") (+ "+") (number_literal "0x38")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = piVar4[0x1a];" (assignment_expression "iVar1 = piVar4[0x1a]" (identifier "iVar1") (= "=") (subscript_expression "piVar4[0x1a]" (identifier "piVar4") ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "iVar7 = iVar1 + -2;" (assignment_expression "iVar7 = iVar1 + -2" (identifier "iVar7") (= "=") (binary_expression "iVar1 + -2" (identifier "iVar1") (+ "+") (number_literal "-2"))) (; ";")) (if_statement "if (iVar7 < 0) {\n        iVar7 = iVar1 + -1;\n      }" (if "if") (parenthesized_expression "(iVar7 < 0)" (( "(") (binary_expression "iVar7 < 0" (identifier "iVar7") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar7 = iVar1 + -1;\n      }" ({ "{") (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar6 = unaff_EBP + 0xc851a;" (assignment_expression "iVar6 = unaff_EBP + 0xc851a" (identifier "iVar6") (= "=") (binary_expression "unaff_EBP + 0xc851a" (identifier "unaff_EBP") (+ "+") (number_literal "0xc851a"))) (; ";")) (if_statement "if (*(char *)(iVar3 + 0x4d) == '\0') {\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar3 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(iVar3 + 0x4d) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x4d)" (* "*") (cast_expression "(char *)(iVar3 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x4d)" (( "(") (binary_expression "iVar3 + 0x4d" (identifier "iVar3") (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar6 = piVar4[0x19] + iVar7 * 0x14;\n      }" ({ "{") (expression_statement "iVar6 = piVar4[0x19] + iVar7 * 0x14;" (assignment_expression "iVar6 = piVar4[0x19] + iVar7 * 0x14" (identifier "iVar6") (= "=") (binary_expression "piVar4[0x19] + iVar7 * 0x14" (subscript_expression "piVar4[0x19]" (identifier "piVar4") ([ "[") (number_literal "0x19") (] "]")) (+ "+") (binary_expression "iVar7 * 0x14" (identifier "iVar7") (* "*") (number_literal "0x14")))) (; ";")) (} "}"))) (expression_statement "*(int *)(iVar6 + 8) = iVar1;" (assignment_expression "*(int *)(iVar6 + 8) = iVar1" (pointer_expression "*(int *)(iVar6 + 8)" (* "*") (cast_expression "(int *)(iVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" (else "else") (if_statement "if (*(int *)(iVar8 + 0x40) == 0) {\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar8 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(iVar8 + 0x40) == 0" (pointer_expression "*(int *)(iVar8 + 0x40)" (* "*") (cast_expression "(int *)(iVar8 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x40)" (( "(") (binary_expression "iVar8 + 0x40" (identifier "iVar8") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);\n      uVar5 = 0;\n      if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }\n      if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }\n    }" ({ "{") (expression_statement "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);" (assignment_expression "puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" (* "*") (cast_expression "(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar8 + 0x48) + 0x14)" (( "(") (binary_expression "*(int *)(iVar8 + 0x48) + 0x14" (pointer_expression "*(int *)(iVar8 + 0x48)" (* "*") (cast_expression "(int *)(iVar8 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x48)" (( "(") (binary_expression "iVar8 + 0x48" (identifier "iVar8") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n        uVar5 = *puVar2;\n      }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar5 = *puVar2;\n      }" ({ "{") (expression_statement "uVar5 = *puVar2;" (assignment_expression "uVar5 = *puVar2" (identifier "uVar5") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (} "}"))) (if_statement "if (extraout_ECX == 0) {\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }\n      else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" (if "if") (parenthesized_expression "(extraout_ECX == 0)" (( "(") (binary_expression "extraout_ECX == 0" (identifier "extraout_ECX") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);\n        FUN_0002b210();\n      }" ({ "{") (expression_statement "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);" (call_expression "FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" (identifier "FUN_000315c0") (argument_list "(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2)" (( "(") (identifier "uVar5") (, ",") (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x38)" (( "(") (binary_expression "iVar8 + 0x38" (identifier "iVar8") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "puVar2") (, ",") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" (identifier "FUN_0002b210") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" (else "else") (compound_statement "{\n        FUN_000315c0(uVar5,0,iVar3,iVar3);\n        FUN_0002b210();\n        iVar3 = 0;\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));\n        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);\n      }" ({ "{") (expression_statement "FUN_000315c0(uVar5,0,iVar3,iVar3);" (call_expression "FUN_000315c0(uVar5,0,iVar3,iVar3)" (identifier "FUN_000315c0") (argument_list "(uVar5,0,iVar3,iVar3)" (( "(") (identifier "uVar5") (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "FUN_0002b210();" (call_expression "FUN_0002b210()" (identifier "FUN_0002b210") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x38))" (identifier "FUN_000315c0") (argument_list "(*(undefined4 *)(iVar8 + 0x38))" (( "(") (pointer_expression "*(undefined4 *)(iVar8 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x38)" (( "(") (binary_expression "iVar8 + 0x38" (identifier "iVar8") (+ "+") (number_literal "0x38")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0)" (identifier "FUN_000315c0") (argument_list "(*(undefined4 *)(iVar8 + 0x34),0)" (( "(") (pointer_expression "*(undefined4 *)(iVar8 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x34)" (( "(") (binary_expression "iVar8 + 0x34" (identifier "iVar8") (+ "+") (number_literal "0x34")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")))) (} "}"))))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */
/* DWARF original prototype: void windowAggFinal(WindowCodeArg * p, int bFin, WindowCodeArg * p) */

void __regparm3 function_1(type_1 *p,int var_4,type_1 *var_9)

{
  int var_6;
  int *var_8;
  type_2 *pParse;
  type_3 *var_1;
  type_4 *pOVar3;
  int var_7;
  int var_3;
  
  var_1 = p->pVdbe;
  if (var_1 == (type_3 *)0x0) {
    var_1 = var_2((type_2 *)p);
  }
  for (var_3 = var_4; var_3 != 0; var_3 = *(int *)(var_3 + 0x24)) {
    if (((*(int *)(var_4 + 0x58) == 0) && ((*(type_5 *)(*(int *)(var_3 + 0x2c) + 5) & 0x10) != 0)) &&
       (*(char *)(var_3 + 0x11) != 'Z')) {
      var_5(var_1,0x48,0,*(int *)(var_3 + 0x38),0);
      var_5(var_1,0x21,*(int *)(var_3 + 0x3c),0,0);
      var_5(var_1,0x59,*(int *)(var_3 + 0x3c),0,*(int *)(var_3 + 0x38));
      var_6 = var_1->nOp;
      var_7 = var_6 + -2;
      if (var_7 < 0) {
        var_7 = var_6 + -1;
      }
      pOVar3 = (type_4 *)&dummy_22674;
      if (var_1->db->mallocFailed == '\0') {
        pOVar3 = var_1->aOp + var_7;
      }
      pOVar3->p2 = var_6;
    }
    else if (*(int *)(var_3 + 0x40) == 0) {
      var_8 = *(int **)(*(int *)(var_3 + 0x48) + 0x14);
      var_7 = 0;
      if (var_8 != (int *)0x0) {
        var_7 = *var_8;
      }
      if (var_9 == (type_1 *)0x0) {
        var_5(var_1,0x9c,*(int *)(var_3 + 0x34),var_7,*(int *)(var_3 + 0x38));
        var_10(var_1,*(void **)(var_3 + 0x2c),-8);
      }
      else {
        var_5(var_1,0x9d,*(int *)(var_3 + 0x34),var_7,0);
        var_10(var_1,*(void **)(var_3 + 0x2c),-8);
        var_5(var_1,0x4d,*(int *)(var_3 + 0x34),*(int *)(var_3 + 0x38),0);
        var_5(var_1,0x48,0,*(int *)(var_3 + 0x34),0);
      }
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator 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))) (for_statement initializer: (assignment_expression left: (identifier) right: (identifier)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (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)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (parenthesized_expression (comma_expression left: (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)))))) right: (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: (identifier) 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)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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))))))) (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (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))))) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))))))))))) (return_statement))))

void __regparm3 MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  int *piVar4;
  undefined4 uVar5;
  int extraout_ECX;
  int iVar6;
  int iVar7;
  int iVar8;
  int unaff_EBP;
  
  iVar3 = FUN_000a9503();
  piVar4 = *(int **)(iVar3 + 8);
  if (piVar4 == (int *)0x0) {
    piVar4 = (int *)FUN_000318c0();
  }
  iVar3 = param_2;
  for (iVar8 = param_2; iVar8 != 0; iVar8 = *(int *)(iVar8 + 0x24)) {
    if (((*(int *)(param_2 + 0x58) == 0) &&
        (iVar7 = *(int *)(iVar8 + 0x2c), (*(byte *)(iVar7 + 5) & 0x10) != 0)) &&
       (*(char *)(iVar8 + 0x11) != 'Z')) {
      FUN_000315c0(*(undefined4 *)(iVar8 + 0x38),0,iVar7,iVar7);
      FUN_000315c0(0,0);
      FUN_000315c0(0,*(undefined4 *)(iVar8 + 0x38));
      iVar1 = piVar4[0x1a];
      iVar7 = iVar1 + -2;
      if (iVar7 < 0) {
        iVar7 = iVar1 + -1;
      }
      iVar3 = *piVar4;
      iVar6 = unaff_EBP + 0xc851a;
      if (*(char *)(iVar3 + 0x4d) == '\0') {
        iVar6 = piVar4[0x19] + iVar7 * 0x14;
      }
      *(int *)(iVar6 + 8) = iVar1;
    }
    else if (*(int *)(iVar8 + 0x40) == 0) {
      puVar2 = *(undefined4 **)(*(int *)(iVar8 + 0x48) + 0x14);
      uVar5 = 0;
      if (puVar2 != (undefined4 *)0x0) {
        uVar5 = *puVar2;
      }
      if (extraout_ECX == 0) {
        FUN_000315c0(uVar5,*(undefined4 *)(iVar8 + 0x38),puVar2,puVar2);
        FUN_0002b210();
      }
      else {
        FUN_000315c0(uVar5,0,iVar3,iVar3);
        FUN_0002b210();
        iVar3 = 0;
        FUN_000315c0(*(undefined4 *)(iVar8 + 0x38));
        FUN_000315c0(*(undefined4 *)(iVar8 + 0x34),0);
      }
    }
  }
  return;
}

