
Expr * __regparm3 substExpr(SubstContext *pSubst,Expr *pExpr)

{
  int iVar1;
  i16 iVar2;
  Select *p;
  sqlite3 *db;
  u8 uVar3;
  Expr *pEVar4;
  int iVar5;
  Expr *p_00;
  u8 uVar6;
  Expr *pEVar7;
  int in_GS_OFFSET;
  Expr ifNullRow;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (pExpr == (Expr *)0x0) goto LAB_00057a37;
  if (((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable)) {
    uVar3 = pExpr->op;
    if (uVar3 != 0x9e) goto LAB_000579f8;
LAB_00057a70:
    if (pExpr->iTable == pSubst->iTable) {
      if (pExpr->iColumn < 0) {
        pExpr->op = 'n';
        goto LAB_00057a37;
      }
      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;
      uVar3 = pEVar4->op;
      uVar6 = uVar3;
      if (uVar3 == 0xa4) {
        uVar6 = pEVar4->op2;
      }
      if (uVar6 == 0xa5) {
        iVar5 = ((pEVar4->x).pList)->nExpr;
LAB_00057b75:
        if (1 < iVar5) {
          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);
          goto LAB_00057a37;
        }
      }
      else if (uVar6 == '\x7f') {
        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;
        goto LAB_00057b75;
      }
      db = pSubst->pParse->db;
      p_00 = pEVar4;
      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {
        p_00 = &ifNullRow;
        pEVar7 = p_00;
        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {
          pEVar7->op = '\0';
          pEVar7->affinity = '\0';
          *(undefined2 *)&pEVar7->field_0x2 = 0;
          pEVar7 = (Expr *)&pEVar7->flags;
        }
        ifNullRow.iTable = pSubst->iNewTable;
        ifNullRow.op = 0xa7;
        ifNullRow.pLeft = pEVar4;
      }
      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);
      if (pEVar4 != (Expr *)0x0) {
        if (pSubst->isLeftJoin != 0) {
          pEVar4->flags = pEVar4->flags | 0x100000;
        }
        if ((pExpr->flags & 1) != 0) {
          iVar2 = pExpr->iRightJoinTable;
          pEVar4->flags = pEVar4->flags | 1;
          pEVar4->iRightJoinTable = iVar2;
        }
      }
      sqlite3ExprDeleteNN(db,pExpr);
      pExpr = pEVar4;
      goto LAB_00057a37;
    }
  }
  else {
    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;
    uVar3 = pExpr->op;
    if (uVar3 == 0x9e) goto LAB_00057a70;
LAB_000579f8:
    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {
      pExpr->iTable = pSubst->iNewTable;
    }
  }
  pEVar4 = substExpr(pSubst,pExpr->pLeft);
  pExpr->pLeft = pEVar4;
  pEVar4 = substExpr(pSubst,pExpr->pRight);
  p = (Select *)(pExpr->x).pList;
  pExpr->pRight = pEVar4;
  if ((pExpr->flags & 0x800) == 0) {
    if (p != (Select *)0x0) {
      substExprList(pSubst,(ExprList *)p);
    }
  }
  else if (p != (Select *)0x0) {
    substSelect(pSubst,p,1);
  }
LAB_00057a37:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pExpr;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



char * __regparm3 FUN_000579d0(int param_1,char *param_2)

{
  char cVar1;
  undefined2 uVar2;
  char cVar3;
  undefined4 uVar4;
  char *pcVar5;
  int iVar6;
  char **ppcVar7;
  int in_GS_OFFSET;
  char *local_58 [7];
  undefined4 local_3c;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == (char *)0x0) goto LAB_00057a37;
  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {
    cVar3 = *param_2;
    if (cVar3 != -0x62) goto LAB_000579f8;
LAB_00057a70:
    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {
      if (*(int *)(param_2 + 0x20) < 0) {
        *param_2 = 'n';
        goto LAB_00057a37;
      }
      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);
      cVar3 = *pcVar5;
      cVar1 = cVar3;
      if (cVar3 == -0x5c) {
        cVar1 = pcVar5[0x28];
      }
      if (cVar1 == -0x5b) {
        iVar6 = **(int **)(pcVar5 + 0x14);
LAB_00057b75:
        if (1 < iVar6) {
          FUN_00057980();
          goto LAB_00057a37;
        }
      }
      else if (cVar1 == '\x7f') {
        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);
        goto LAB_00057b75;
      }
      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {
        ppcVar7 = local_58;
        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {
          *ppcVar7 = (char *)0x0;
          ppcVar7 = ppcVar7 + 1;
        }
        local_3c = *(undefined4 *)(param_1 + 8);
        local_58[0]._0_1_ = 0xa7;
        local_58[3] = pcVar5;
      }
      pcVar5 = (char *)FUN_0003c4c0(0);
      if (pcVar5 != (char *)0x0) {
        if (*(int *)(param_1 + 0xc) != 0) {
          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;
        }
        if ((param_2[4] & 1U) != 0) {
          uVar2 = *(undefined2 *)(param_2 + 0x26);
          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;
          *(undefined2 *)(pcVar5 + 0x26) = uVar2;
        }
      }
      FUN_000387d0();
      param_2 = pcVar5;
      goto LAB_00057a37;
    }
  }
  else {
    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);
    cVar3 = *param_2;
    if (cVar3 == -0x62) goto LAB_00057a70;
LAB_000579f8:
    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {
      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);
    }
  }
  uVar4 = FUN_000579d0();
  *(undefined4 *)(param_2 + 0xc) = uVar4;
  uVar4 = FUN_000579d0();
  *(undefined4 *)(param_2 + 0x10) = uVar4;
  if ((param_2[5] & 8U) == 0) {
    if (*(int *)(param_2 + 0x14) != 0) {
      FUN_00057bb0();
    }
  }
  else if (*(int *)(param_2 + 0x14) != 0) {
    FUN_00057c00();
  }
LAB_00057a37:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EBX,EDX
SUB ESP,0x5c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4c],EAX
XOR EAX,EAX
TEST EDX,EDX
JZ 0x00057a37
TEST byte ptr [EDX + 0x4],0x1
JNZ 0x00057a58
MOVZX EAX,byte ptr [EBX]
CMP AL,0x9e
JZ 0x00057a70
CMP AL,0xa7
JZ 0x00057b48
MOV EDX,dword ptr [EBX + 0xc]
MOV EAX,ESI
CALL 0x000579d0
MOV EDX,dword ptr [EBX + 0x10]
MOV dword ptr [EBX + 0xc],EAX
MOV EAX,ESI
CALL 0x000579d0
TEST byte ptr [EBX + 0x5],0x8
MOV EDX,dword ptr [EBX + 0x14]
MOV dword ptr [EBX + 0x10],EAX
JZ 0x00057b30
TEST EDX,EDX
JZ 0x00057a37
MOV ECX,0x1
MOV EAX,ESI
CALL 0x00057c00
MOV EDI,dword ptr [ESP + 0x4c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,EBX
JNZ 0x00057ba9
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVSX EAX,word ptr [EDX + 0x26]
CMP EAX,dword ptr [ESI + 0x4]
JNZ 0x000579f1
MOV EAX,dword ptr [ESI + 0x8]
MOV word ptr [EDX + 0x26],AX
MOVZX EAX,byte ptr [EBX]
CMP AL,0x9e
JNZ 0x000579f8
NOP
MOV EAX,dword ptr [ESI + 0x4]
CMP dword ptr [EBX + 0x1c],EAX
JNZ 0x00057a00
MOV EAX,dword ptr [EBX + 0x20]
TEST EAX,EAX
JS 0x00057b90
MOV EBP,dword ptr [ESI + 0x10]
LEA EAX,[EAX + EAX*0x4]
LEA EAX,[EBP + EAX*0x4]
MOV EDX,dword ptr [EAX + 0x4]
MOVZX ECX,byte ptr [EDX]
MOV EDI,ECX
CMP CL,0xa4
JZ 0x00057b60
MOV EAX,EDI
MOV EBP,dword ptr [ESI]
CMP AL,0xa5
JZ 0x00057b70
CMP AL,0x7f
JZ 0x00057ba0
MOV EDI,dword ptr [ESI + 0xc]
MOV EBP,dword ptr [EBP]
TEST EDI,EDI
JZ 0x00057ae6
CMP CL,0x9e
JZ 0x00057ae6
LEA EDI,[ESP + 0x14]
XOR EAX,EAX
MOV ECX,0xe
MOV dword ptr [ESP + 0xc],EDI
STOSD.REP ES:EDI
MOV EAX,dword ptr [ESI + 0x8]
MOV byte ptr [ESP + 0x14],0xa7
MOV dword ptr [ESP + 0x20],EDX
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x30],EAX
SUB ESP,0xc
XOR ECX,ECX
MOV EAX,EBP
PUSH 0x0
CALL 0x0003c4c0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00057b1d
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x00057b0b
OR dword ptr [EDI + 0x4],0x100000
TEST byte ptr [EBX + 0x4],0x1
JZ 0x00057b1d
MOVZX EAX,word ptr [EBX + 0x26]
OR dword ptr [EDI + 0x4],0x1
MOV word ptr [EDI + 0x26],AX
MOV EDX,EBX
MOV EAX,EBP
MOV EBX,EDI
CALL 0x000387d0
JMP 0x00057a37
TEST EDX,EDX
JZ 0x00057a37
MOV EAX,ESI
CALL 0x00057bb0
JMP 0x00057a37
MOV EAX,dword ptr [ESI + 0x4]
CMP dword ptr [EBX + 0x1c],EAX
JNZ 0x00057a00
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EBX + 0x1c],EAX
JMP 0x00057a00
MOVZX EDI,byte ptr [EDX + 0x28]
JMP 0x00057a9e
MOV EDI,dword ptr [EDX + 0x14]
MOV EDI,dword ptr [EDI]
CMP EDI,0x1
JLE 0x00057ab2
LEA ECX,[EDX + 0x14]
MOV EDX,dword ptr [EDX + 0x4]
MOV EAX,EBP
CALL 0x00057980
JMP 0x00057a37
MOV byte ptr [EBX],0x6e
JMP 0x00057a37
MOV EDI,dword ptr [EDX + 0x14]
MOV EDI,dword ptr [EDI]
MOV EDI,dword ptr [EDI]
JMP 0x00057b75
CALL 0x000f4bf0
(translation_unit "char * __regparm3 FUN_000579d0(int param_1,char *param_2)\n\n{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}\n\n" (function_definition "char * __regparm3 FUN_000579d0(int param_1,char *param_2)\n\n{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000579d0(int param_1,char *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000579d0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_58 [7];" primitive_type (pointer_declarator "*local_58 [7]" * (array_declarator "local_58 [7]" identifier [ number_literal ])) ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (char *)0x0) goto LAB_00057a37;" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;)) (if_statement "if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" if (parenthesized_expression "(((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)))" ( (binary_expression "((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" (parenthesized_expression "((param_2[4] & 1U) == 0)" ( (binary_expression "(param_2[4] & 1U) == 0" (parenthesized_expression "(param_2[4] & 1U)" ( (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) || (parenthesized_expression "((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" ( (binary_expression "(int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)" (cast_expression "(int)*(short *)(param_2 + 0x26)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_2 + 0x26)" * (cast_expression "(short *)(param_2 + 0x26)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) ))))) != (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }" { (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 != -0x62) goto LAB_000579f8;" if (parenthesized_expression "(cVar3 != -0x62)" ( (binary_expression "cVar3 != -0x62" identifier != number_literal) )) (goto_statement "goto LAB_000579f8;" goto statement_identifier ;)) (labeled_statement "LAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" statement_identifier : (if_statement "if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" { (if_statement "if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x20) < 0)" ( (binary_expression "*(int *)(param_2 + 0x20) < 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" { (expression_statement "*param_2 = 'n';" (assignment_expression "*param_2 = 'n'" (pointer_expression "*param_2" * identifier) = (char_literal "'n'" ' character ')) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) })) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4" (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "*(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) * number_literal)) + number_literal) ))))) ;) (expression_statement "cVar3 = *pcVar5;" (assignment_expression "cVar3 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "cVar1 = cVar3;" (assignment_expression "cVar1 = cVar3" identifier = identifier) ;) (if_statement "if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }" if (parenthesized_expression "(cVar3 == -0x5c)" ( (binary_expression "cVar3 == -0x5c" identifier == number_literal) )) (compound_statement "{\n        cVar1 = pcVar5[0x28];\n      }" { (expression_statement "cVar1 = pcVar5[0x28];" (assignment_expression "cVar1 = pcVar5[0x28]" identifier = (subscript_expression "pcVar5[0x28]" identifier [ number_literal ])) ;) })) (if_statement "if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(cVar1 == -0x5b)" ( (binary_expression "cVar1 == -0x5b" identifier == number_literal) )) (compound_statement "{\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }" { (expression_statement "iVar6 = **(int **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = **(int **)(pcVar5 + 0x14)" identifier = (pointer_expression "**(int **)(pcVar5 + 0x14)" * (pointer_expression "*(int **)(pcVar5 + 0x14)" * (cast_expression "(int **)(pcVar5 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0x14)" ( (binary_expression "pcVar5 + 0x14" identifier + number_literal) )))))) ;) (labeled_statement "LAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" statement_identifier : (if_statement "if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" if (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) )) (compound_statement "{\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" { (expression_statement "FUN_00057980();" (call_expression "FUN_00057980()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" else (if_statement "if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(cVar1 == '\x7f')" ( (binary_expression "cVar1 == '\x7f'" identifier == (char_literal "'\x7f'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" { (expression_statement "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14)" identifier = (pointer_expression "*(int *)**(undefined4 **)(pcVar5 + 0x14)" * (cast_expression "(int *)**(undefined4 **)(pcVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(pcVar5 + 0x14)" * (pointer_expression "*(undefined4 **)(pcVar5 + 0x14)" * (cast_expression "(undefined4 **)(pcVar5 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0x14)" ( (binary_expression "pcVar5 + 0x14" identifier + number_literal) )))))))) ;) (goto_statement "goto LAB_00057b75;" goto statement_identifier ;) })))) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(cVar3 != -0x62)" ( (binary_expression "cVar3 != -0x62" identifier != number_literal) ))) )) (compound_statement "{\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" { (expression_statement "ppcVar7 = local_58;" (assignment_expression "ppcVar7 = local_58" identifier = identifier) ;) (for_statement "for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" for ( (assignment_expression "iVar6 = 0xe" identifier = number_literal) ; (binary_expression "iVar6 != 0" identifier != number_literal) ; (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ) (compound_statement "{\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" { (expression_statement "*ppcVar7 = (char *)0x0;" (assignment_expression "*ppcVar7 = (char *)0x0" (pointer_expression "*ppcVar7" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "local_3c = *(undefined4 *)(param_1 + 8);" (assignment_expression "local_3c = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_58[0]._0_1_ = 0xa7;" (assignment_expression "local_58[0]._0_1_ = 0xa7" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "local_58[3] = pcVar5;" (assignment_expression "local_58[3] = pcVar5" (subscript_expression "local_58[3]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "pcVar5 = (char *)FUN_0003c4c0(0);" (assignment_expression "pcVar5 = (char *)FUN_0003c4c0(0)" identifier = (cast_expression "(char *)FUN_0003c4c0(0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003c4c0(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) (if_statement "if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" if (parenthesized_expression "(pcVar5 != (char *)0x0)" ( (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" { (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" if (parenthesized_expression "((param_2[4] & 1U) != 0)" ( (binary_expression "(param_2[4] & 1U) != 0" (parenthesized_expression "(param_2[4] & 1U)" ( (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" { (expression_statement "uVar2 = *(undefined2 *)(param_2 + 0x26);" (assignment_expression "uVar2 = *(undefined2 *)(param_2 + 0x26)" identifier = (pointer_expression "*(undefined2 *)(param_2 + 0x26)" * (cast_expression "(undefined2 *)(param_2 + 0x26)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined2 *)(pcVar5 + 0x26) = uVar2;" (assignment_expression "*(undefined2 *)(pcVar5 + 0x26) = uVar2" (pointer_expression "*(undefined2 *)(pcVar5 + 0x26)" * (cast_expression "(undefined2 *)(pcVar5 + 0x26)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 0x26)" ( (binary_expression "pcVar5 + 0x26" identifier + number_literal) )))) = identifier) ;) })) })) (expression_statement "FUN_000387d0();" (call_expression "FUN_000387d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = pcVar5;" (assignment_expression "param_2 = pcVar5" identifier = identifier) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" else (compound_statement "{\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" { (expression_statement "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);" (assignment_expression "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8)" (pointer_expression "*(short *)(param_2 + 0x26)" * (cast_expression "(short *)(param_2 + 0x26)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) )))) = (cast_expression "(short)*(undefined4 *)(param_1 + 8)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 == -0x62) goto LAB_00057a70;" if (parenthesized_expression "(cVar3 == -0x62)" ( (binary_expression "cVar3 == -0x62" identifier == number_literal) )) (goto_statement "goto LAB_00057a70;" goto statement_identifier ;)) (labeled_statement "LAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" statement_identifier : (if_statement "if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" if (parenthesized_expression "((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)))" ( (binary_expression "(cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" (parenthesized_expression "(cVar3 == -0x59)" ( (binary_expression "cVar3 == -0x59" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" { (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) }))) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" identifier = (call_expression "FUN_000579d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" identifier = (call_expression "FUN_000579d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" if (parenthesized_expression "((param_2[5] & 8U) == 0)" ( (binary_expression "(param_2[5] & 8U) == 0" (parenthesized_expression "(param_2[5] & 8U)" ( (binary_expression "param_2[5] & 8U" (subscript_expression "param_2[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }" { (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" ( (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00057bb0();\n    }" { (expression_statement "FUN_00057bb0();" (call_expression "FUN_00057bb0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" else (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" ( (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00057c00();\n  }" { (expression_statement "FUN_00057c00();" (call_expression "FUN_00057c00()" identifier (argument_list "()" ( ))) ;) })))) (labeled_statement "LAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) }))) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "Expr * __regparm3 substExpr(SubstContext *pSubst,Expr *pExpr)\n\n{\n  int iVar1;\n  i16 iVar2;\n  Select *p;\n  sqlite3 *db;\n  u8 uVar3;\n  Expr *pEVar4;\n  int iVar5;\n  Expr *p_00;\n  u8 uVar6;\n  Expr *pEVar7;\n  int in_GS_OFFSET;\n  Expr ifNullRow;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pExpr == (Expr *)0x0) goto LAB_00057a37;\n  if (((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable)) {\n    uVar3 = pExpr->op;\n    if (uVar3 != 0x9e) goto LAB_000579f8;\nLAB_00057a70:\n    if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;\n    uVar3 = pExpr->op;\n    if (uVar3 == 0x9e) goto LAB_00057a70;\nLAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }\n  }\n  pEVar4 = substExpr(pSubst,pExpr->pLeft);\n  pExpr->pLeft = pEVar4;\n  pEVar4 = substExpr(pSubst,pExpr->pRight);\n  p = (Select *)(pExpr->x).pList;\n  pExpr->pRight = pEVar4;\n  if ((pExpr->flags & 0x800) == 0) {\n    if (p != (Select *)0x0) {\n      substExprList(pSubst,(ExprList *)p);\n    }\n  }\n  else if (p != (Select *)0x0) {\n    substSelect(pSubst,p,1);\n  }\nLAB_00057a37:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pExpr;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (ERROR "Expr * __regparm3 substExpr(SubstContext *pSubst,Expr *pExpr)" (binary_expression "Expr * __regparm3 substExpr(SubstContext *pSubst,Expr *pExpr)" identifier * (ERROR "__regparm3" identifier) (call_expression "substExpr(SubstContext *pSubst,Expr *pExpr)" identifier (argument_list "(SubstContext *pSubst,Expr *pExpr)" ( (binary_expression "SubstContext *pSubst" identifier * identifier) , (binary_expression "Expr *pExpr" identifier * identifier) ))))) (compound_statement "{\n  int iVar1;\n  i16 iVar2;\n  Select *p;\n  sqlite3 *db;\n  u8 uVar3;\n  Expr *pEVar4;\n  int iVar5;\n  Expr *p_00;\n  u8 uVar6;\n  Expr *pEVar7;\n  int in_GS_OFFSET;\n  Expr ifNullRow;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pExpr == (Expr *)0x0) goto LAB_00057a37;\n  if (((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable)) {\n    uVar3 = pExpr->op;\n    if (uVar3 != 0x9e) goto LAB_000579f8;\nLAB_00057a70:\n    if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;\n    uVar3 = pExpr->op;\n    if (uVar3 == 0x9e) goto LAB_00057a70;\nLAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }\n  }\n  pEVar4 = substExpr(pSubst,pExpr->pLeft);\n  pExpr->pLeft = pEVar4;\n  pEVar4 = substExpr(pSubst,pExpr->pRight);\n  p = (Select *)(pExpr->x).pList;\n  pExpr->pRight = pEVar4;\n  if ((pExpr->flags & 0x800) == 0) {\n    if (p != (Select *)0x0) {\n      substExprList(pSubst,(ExprList *)p);\n    }\n  }\n  else if (p != (Select *)0x0) {\n    substSelect(pSubst,p,1);\n  }\nLAB_00057a37:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pExpr;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "i16 iVar2;" type_identifier identifier ;) (declaration "Select *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "u8 uVar3;" type_identifier identifier ;) (declaration "Expr *pEVar4;" type_identifier (pointer_declarator "*pEVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Expr *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "u8 uVar6;" type_identifier identifier ;) (declaration "Expr *pEVar7;" type_identifier (pointer_declarator "*pEVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Expr ifNullRow;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (pExpr == (Expr *)0x0) goto LAB_00057a37;" if (parenthesized_expression "(pExpr == (Expr *)0x0)" ( (binary_expression "pExpr == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;)) (if_statement "if (((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable)) {\n    uVar3 = pExpr->op;\n    if (uVar3 != 0x9e) goto LAB_000579f8;\nLAB_00057a70:\n    if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;\n    uVar3 = pExpr->op;\n    if (uVar3 == 0x9e) goto LAB_00057a70;\nLAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }\n  }" if (parenthesized_expression "(((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable))" ( (binary_expression "((pExpr->flags & 1) == 0) || ((int)pExpr->iRightJoinTable != pSubst->iTable)" (parenthesized_expression "((pExpr->flags & 1) == 0)" ( (binary_expression "(pExpr->flags & 1) == 0" (parenthesized_expression "(pExpr->flags & 1)" ( (binary_expression "pExpr->flags & 1" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) || (parenthesized_expression "((int)pExpr->iRightJoinTable != pSubst->iTable)" ( (binary_expression "(int)pExpr->iRightJoinTable != pSubst->iTable" (cast_expression "(int)pExpr->iRightJoinTable" ( (type_descriptor "int" primitive_type) ) (field_expression "pExpr->iRightJoinTable" identifier -> field_identifier)) != (field_expression "pSubst->iTable" identifier -> field_identifier)) ))) )) (compound_statement "{\n    uVar3 = pExpr->op;\n    if (uVar3 != 0x9e) goto LAB_000579f8;\nLAB_00057a70:\n    if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }\n  }" { (expression_statement "uVar3 = pExpr->op;" (assignment_expression "uVar3 = pExpr->op" identifier = (field_expression "pExpr->op" identifier -> field_identifier)) ;) (if_statement "if (uVar3 != 0x9e) goto LAB_000579f8;" if (parenthesized_expression "(uVar3 != 0x9e)" ( (binary_expression "uVar3 != 0x9e" identifier != number_literal) )) (goto_statement "goto LAB_000579f8;" goto statement_identifier ;)) (labeled_statement "LAB_00057a70:\n    if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }" statement_identifier : (if_statement "if (pExpr->iTable == pSubst->iTable) {\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }" if (parenthesized_expression "(pExpr->iTable == pSubst->iTable)" ( (binary_expression "pExpr->iTable == pSubst->iTable" (field_expression "pExpr->iTable" identifier -> field_identifier) == (field_expression "pSubst->iTable" identifier -> field_identifier)) )) (compound_statement "{\n      if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }\n      pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;\n      uVar3 = pEVar4->op;\n      uVar6 = uVar3;\n      if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }\n      if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }\n      db = pSubst->pParse->db;\n      p_00 = pEVar4;\n      if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }\n      pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);\n      if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }\n      sqlite3ExprDeleteNN(db,pExpr);\n      pExpr = pEVar4;\n      goto LAB_00057a37;\n    }" { (if_statement "if (pExpr->iColumn < 0) {\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }" if (parenthesized_expression "(pExpr->iColumn < 0)" ( (binary_expression "pExpr->iColumn < 0" (field_expression "pExpr->iColumn" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n        pExpr->op = 'n';\n        goto LAB_00057a37;\n      }" { (expression_statement "pExpr->op = 'n';" (assignment_expression "pExpr->op = 'n'" (field_expression "pExpr->op" identifier -> field_identifier) = (char_literal "'n'" ' character ')) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) })) (expression_statement "pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr;" (assignment_expression "pEVar4 = pSubst->pEList->a[pExpr->iColumn].pExpr" identifier = (field_expression "pSubst->pEList->a[pExpr->iColumn].pExpr" (subscript_expression "pSubst->pEList->a[pExpr->iColumn]" (field_expression "pSubst->pEList->a" (field_expression "pSubst->pEList" identifier -> field_identifier) -> field_identifier) [ (field_expression "pExpr->iColumn" identifier -> field_identifier) ]) . field_identifier)) ;) (expression_statement "uVar3 = pEVar4->op;" (assignment_expression "uVar3 = pEVar4->op" identifier = (field_expression "pEVar4->op" identifier -> field_identifier)) ;) (expression_statement "uVar6 = uVar3;" (assignment_expression "uVar6 = uVar3" identifier = identifier) ;) (if_statement "if (uVar3 == 0xa4) {\n        uVar6 = pEVar4->op2;\n      }" if (parenthesized_expression "(uVar3 == 0xa4)" ( (binary_expression "uVar3 == 0xa4" identifier == number_literal) )) (compound_statement "{\n        uVar6 = pEVar4->op2;\n      }" { (expression_statement "uVar6 = pEVar4->op2;" (assignment_expression "uVar6 = pEVar4->op2" identifier = (field_expression "pEVar4->op2" identifier -> field_identifier)) ;) })) (if_statement "if (uVar6 == 0xa5) {\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }\n      else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(uVar6 == 0xa5)" ( (binary_expression "uVar6 == 0xa5" identifier == number_literal) )) (compound_statement "{\n        iVar5 = ((pEVar4->x).pList)->nExpr;\nLAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }\n      }" { (expression_statement "iVar5 = ((pEVar4->x).pList)->nExpr;" (assignment_expression "iVar5 = ((pEVar4->x).pList)->nExpr" identifier = (field_expression "((pEVar4->x).pList)->nExpr" (parenthesized_expression "((pEVar4->x).pList)" ( (field_expression "(pEVar4->x).pList" (parenthesized_expression "(pEVar4->x)" ( (field_expression "pEVar4->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (labeled_statement "LAB_00057b75:\n        if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }" statement_identifier : (if_statement "if (1 < iVar5) {\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }" if (parenthesized_expression "(1 < iVar5)" ( (binary_expression "1 < iVar5" number_literal < identifier) )) (compound_statement "{\n          sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);\n          goto LAB_00057a37;\n        }" { (expression_statement "sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x);" (call_expression "sqlite3VectorErrorMsg(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x)" identifier (argument_list "(pSubst->pParse,(Expr *)pEVar4->flags,(Expr *)&pEVar4->x)" ( (field_expression "pSubst->pParse" identifier -> field_identifier) , (cast_expression "(Expr *)pEVar4->flags" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pEVar4->flags" identifier -> field_identifier)) , (cast_expression "(Expr *)&pEVar4->x" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar4->x" & (field_expression "pEVar4->x" identifier -> field_identifier))) ))) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }" else (if_statement "if (uVar6 == '\x7f') {\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(uVar6 == '\x7f')" ( (binary_expression "uVar6 == '\x7f'" identifier == (char_literal "'\x7f'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;\n        goto LAB_00057b75;\n      }" { (expression_statement "iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr;" (assignment_expression "iVar5 = ((pEVar4->x).pSelect)->pEList->nExpr" identifier = (field_expression "((pEVar4->x).pSelect)->pEList->nExpr" (field_expression "((pEVar4->x).pSelect)->pEList" (parenthesized_expression "((pEVar4->x).pSelect)" ( (field_expression "(pEVar4->x).pSelect" (parenthesized_expression "(pEVar4->x)" ( (field_expression "pEVar4->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) -> field_identifier)) ;) (goto_statement "goto LAB_00057b75;" goto statement_identifier ;) })))) (expression_statement "db = pSubst->pParse->db;" (assignment_expression "db = pSubst->pParse->db" identifier = (field_expression "pSubst->pParse->db" (field_expression "pSubst->pParse" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "p_00 = pEVar4;" (assignment_expression "p_00 = pEVar4" identifier = identifier) ;) (if_statement "if ((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)) {\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }" if (parenthesized_expression "((pSubst->isLeftJoin != 0) && (uVar3 != 0x9e))" ( (binary_expression "(pSubst->isLeftJoin != 0) && (uVar3 != 0x9e)" (parenthesized_expression "(pSubst->isLeftJoin != 0)" ( (binary_expression "pSubst->isLeftJoin != 0" (field_expression "pSubst->isLeftJoin" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(uVar3 != 0x9e)" ( (binary_expression "uVar3 != 0x9e" identifier != number_literal) ))) )) (compound_statement "{\n        p_00 = &ifNullRow;\n        pEVar7 = p_00;\n        for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }\n        ifNullRow.iTable = pSubst->iNewTable;\n        ifNullRow.op = 0xa7;\n        ifNullRow.pLeft = pEVar4;\n      }" { (expression_statement "p_00 = &ifNullRow;" (assignment_expression "p_00 = &ifNullRow" identifier = (pointer_expression "&ifNullRow" & identifier)) ;) (expression_statement "pEVar7 = p_00;" (assignment_expression "pEVar7 = p_00" identifier = identifier) ;) (for_statement "for (iVar5 = 0xe; iVar5 != 0; iVar5 = iVar5 + -1) {\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }" for ( (assignment_expression "iVar5 = 0xe" identifier = number_literal) ; (binary_expression "iVar5 != 0" identifier != number_literal) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n          pEVar7->op = '\0';\n          pEVar7->affinity = '\0';\n          *(undefined2 *)&pEVar7->field_0x2 = 0;\n          pEVar7 = (Expr *)&pEVar7->flags;\n        }" { (expression_statement "pEVar7->op = '\0';" (assignment_expression "pEVar7->op = '\0'" (field_expression "pEVar7->op" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pEVar7->affinity = '\0';" (assignment_expression "pEVar7->affinity = '\0'" (field_expression "pEVar7->affinity" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined2 *)&pEVar7->field_0x2 = 0;" (assignment_expression "*(undefined2 *)&pEVar7->field_0x2 = 0" (pointer_expression "*(undefined2 *)&pEVar7->field_0x2" * (cast_expression "(undefined2 *)&pEVar7->field_0x2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar7->field_0x2" & (field_expression "pEVar7->field_0x2" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pEVar7 = (Expr *)&pEVar7->flags;" (assignment_expression "pEVar7 = (Expr *)&pEVar7->flags" identifier = (cast_expression "(Expr *)&pEVar7->flags" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar7->flags" & (field_expression "pEVar7->flags" identifier -> field_identifier)))) ;) })) (expression_statement "ifNullRow.iTable = pSubst->iNewTable;" (assignment_expression "ifNullRow.iTable = pSubst->iNewTable" (field_expression "ifNullRow.iTable" identifier . field_identifier) = (field_expression "pSubst->iNewTable" identifier -> field_identifier)) ;) (expression_statement "ifNullRow.op = 0xa7;" (assignment_expression "ifNullRow.op = 0xa7" (field_expression "ifNullRow.op" identifier . field_identifier) = number_literal) ;) (expression_statement "ifNullRow.pLeft = pEVar4;" (assignment_expression "ifNullRow.pLeft = pEVar4" (field_expression "ifNullRow.pLeft" identifier . field_identifier) = identifier) ;) })) (expression_statement "pEVar4 = exprDup(db,p_00,0,(u8 **)0x0);" (assignment_expression "pEVar4 = exprDup(db,p_00,0,(u8 **)0x0)" identifier = (call_expression "exprDup(db,p_00,0,(u8 **)0x0)" identifier (argument_list "(db,p_00,0,(u8 **)0x0)" ( identifier , identifier , number_literal , (cast_expression "(u8 **)0x0" ( (type_descriptor "u8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (pEVar4 != (Expr *)0x0) {\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }" if (parenthesized_expression "(pEVar4 != (Expr *)0x0)" ( (binary_expression "pEVar4 != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }\n        if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }\n      }" { (if_statement "if (pSubst->isLeftJoin != 0) {\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }" if (parenthesized_expression "(pSubst->isLeftJoin != 0)" ( (binary_expression "pSubst->isLeftJoin != 0" (field_expression "pSubst->isLeftJoin" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n          pEVar4->flags = pEVar4->flags | 0x100000;\n        }" { (expression_statement "pEVar4->flags = pEVar4->flags | 0x100000;" (assignment_expression "pEVar4->flags = pEVar4->flags | 0x100000" (field_expression "pEVar4->flags" identifier -> field_identifier) = (binary_expression "pEVar4->flags | 0x100000" (field_expression "pEVar4->flags" identifier -> field_identifier) | number_literal)) ;) })) (if_statement "if ((pExpr->flags & 1) != 0) {\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }" if (parenthesized_expression "((pExpr->flags & 1) != 0)" ( (binary_expression "(pExpr->flags & 1) != 0" (parenthesized_expression "(pExpr->flags & 1)" ( (binary_expression "pExpr->flags & 1" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          iVar2 = pExpr->iRightJoinTable;\n          pEVar4->flags = pEVar4->flags | 1;\n          pEVar4->iRightJoinTable = iVar2;\n        }" { (expression_statement "iVar2 = pExpr->iRightJoinTable;" (assignment_expression "iVar2 = pExpr->iRightJoinTable" identifier = (field_expression "pExpr->iRightJoinTable" identifier -> field_identifier)) ;) (expression_statement "pEVar4->flags = pEVar4->flags | 1;" (assignment_expression "pEVar4->flags = pEVar4->flags | 1" (field_expression "pEVar4->flags" identifier -> field_identifier) = (binary_expression "pEVar4->flags | 1" (field_expression "pEVar4->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "pEVar4->iRightJoinTable = iVar2;" (assignment_expression "pEVar4->iRightJoinTable = iVar2" (field_expression "pEVar4->iRightJoinTable" identifier -> field_identifier) = identifier) ;) })) })) (expression_statement "sqlite3ExprDeleteNN(db,pExpr);" (call_expression "sqlite3ExprDeleteNN(db,pExpr)" identifier (argument_list "(db,pExpr)" ( identifier , identifier ))) ;) (expression_statement "pExpr = pEVar4;" (assignment_expression "pExpr = pEVar4" identifier = identifier) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else {\n    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;\n    uVar3 = pExpr->op;\n    if (uVar3 == 0x9e) goto LAB_00057a70;\nLAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }\n  }" else (compound_statement "{\n    pExpr->iRightJoinTable = (i16)pSubst->iNewTable;\n    uVar3 = pExpr->op;\n    if (uVar3 == 0x9e) goto LAB_00057a70;\nLAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }\n  }" { (expression_statement "pExpr->iRightJoinTable = (i16)pSubst->iNewTable;" (assignment_expression "pExpr->iRightJoinTable = (i16)pSubst->iNewTable" (field_expression "pExpr->iRightJoinTable" identifier -> field_identifier) = (cast_expression "(i16)pSubst->iNewTable" ( (type_descriptor "i16" type_identifier) ) (field_expression "pSubst->iNewTable" identifier -> field_identifier))) ;) (expression_statement "uVar3 = pExpr->op;" (assignment_expression "uVar3 = pExpr->op" identifier = (field_expression "pExpr->op" identifier -> field_identifier)) ;) (if_statement "if (uVar3 == 0x9e) goto LAB_00057a70;" if (parenthesized_expression "(uVar3 == 0x9e)" ( (binary_expression "uVar3 == 0x9e" identifier == number_literal) )) (goto_statement "goto LAB_00057a70;" goto statement_identifier ;)) (labeled_statement "LAB_000579f8:\n    if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }" statement_identifier : (if_statement "if ((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)) {\n      pExpr->iTable = pSubst->iNewTable;\n    }" if (parenthesized_expression "((uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable))" ( (binary_expression "(uVar3 == 0xa7) && (pExpr->iTable == pSubst->iTable)" (parenthesized_expression "(uVar3 == 0xa7)" ( (binary_expression "uVar3 == 0xa7" identifier == number_literal) )) && (parenthesized_expression "(pExpr->iTable == pSubst->iTable)" ( (binary_expression "pExpr->iTable == pSubst->iTable" (field_expression "pExpr->iTable" identifier -> field_identifier) == (field_expression "pSubst->iTable" identifier -> field_identifier)) ))) )) (compound_statement "{\n      pExpr->iTable = pSubst->iNewTable;\n    }" { (expression_statement "pExpr->iTable = pSubst->iNewTable;" (assignment_expression "pExpr->iTable = pSubst->iNewTable" (field_expression "pExpr->iTable" identifier -> field_identifier) = (field_expression "pSubst->iNewTable" identifier -> field_identifier)) ;) }))) }))) (expression_statement "pEVar4 = substExpr(pSubst,pExpr->pLeft);" (assignment_expression "pEVar4 = substExpr(pSubst,pExpr->pLeft)" identifier = (call_expression "substExpr(pSubst,pExpr->pLeft)" identifier (argument_list "(pSubst,pExpr->pLeft)" ( identifier , (field_expression "pExpr->pLeft" identifier -> field_identifier) )))) ;) (expression_statement "pExpr->pLeft = pEVar4;" (assignment_expression "pExpr->pLeft = pEVar4" (field_expression "pExpr->pLeft" identifier -> field_identifier) = identifier) ;) (expression_statement "pEVar4 = substExpr(pSubst,pExpr->pRight);" (assignment_expression "pEVar4 = substExpr(pSubst,pExpr->pRight)" identifier = (call_expression "substExpr(pSubst,pExpr->pRight)" identifier (argument_list "(pSubst,pExpr->pRight)" ( identifier , (field_expression "pExpr->pRight" identifier -> field_identifier) )))) ;) (expression_statement "p = (Select *)(pExpr->x).pList;" (assignment_expression "p = (Select *)(pExpr->x).pList" identifier = (cast_expression "(Select *)(pExpr->x).pList" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pExpr->x).pList" (parenthesized_expression "(pExpr->x)" ( (field_expression "pExpr->x" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "pExpr->pRight = pEVar4;" (assignment_expression "pExpr->pRight = pEVar4" (field_expression "pExpr->pRight" identifier -> field_identifier) = identifier) ;) (if_statement "if ((pExpr->flags & 0x800) == 0) {\n    if (p != (Select *)0x0) {\n      substExprList(pSubst,(ExprList *)p);\n    }\n  }\n  else if (p != (Select *)0x0) {\n    substSelect(pSubst,p,1);\n  }" if (parenthesized_expression "((pExpr->flags & 0x800) == 0)" ( (binary_expression "(pExpr->flags & 0x800) == 0" (parenthesized_expression "(pExpr->flags & 0x800)" ( (binary_expression "pExpr->flags & 0x800" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (p != (Select *)0x0) {\n      substExprList(pSubst,(ExprList *)p);\n    }\n  }" { (if_statement "if (p != (Select *)0x0) {\n      substExprList(pSubst,(ExprList *)p);\n    }" if (parenthesized_expression "(p != (Select *)0x0)" ( (binary_expression "p != (Select *)0x0" identifier != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      substExprList(pSubst,(ExprList *)p);\n    }" { (expression_statement "substExprList(pSubst,(ExprList *)p);" (call_expression "substExprList(pSubst,(ExprList *)p)" identifier (argument_list "(pSubst,(ExprList *)p)" ( identifier , (cast_expression "(ExprList *)p" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) }) (else_clause "else if (p != (Select *)0x0) {\n    substSelect(pSubst,p,1);\n  }" else (if_statement "if (p != (Select *)0x0) {\n    substSelect(pSubst,p,1);\n  }" if (parenthesized_expression "(p != (Select *)0x0)" ( (binary_expression "p != (Select *)0x0" identifier != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    substSelect(pSubst,p,1);\n  }" { (expression_statement "substSelect(pSubst,p,1);" (call_expression "substSelect(pSubst,p,1)" identifier (argument_list "(pSubst,p,1)" ( identifier , identifier , number_literal ))) ;) })))) (labeled_statement "LAB_00057a37:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pExpr;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pExpr;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pExpr;\n  }" { (return_statement "return pExpr;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))
(translation_unit "char * __regparm3 FUN_000579d0(int param_1,char *param_2)\n\n{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_000f4bf0();\n}\n\n" (function_definition "char * __regparm3 FUN_000579d0(int param_1,char *param_2)\n\n{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_000f4bf0();\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000579d0(int param_1,char *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000579d0(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_000f4bf0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined2 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char **ppcVar7;" primitive_type (pointer_declarator "**ppcVar7" * (pointer_declarator "*ppcVar7" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_58 [7];" primitive_type (pointer_declarator "*local_58 [7]" * (array_declarator "local_58 [7]" identifier [ number_literal ])) ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (char *)0x0) goto LAB_00057a37;" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;)) (if_statement "if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" if (parenthesized_expression "(((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)))" ( (binary_expression "((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" (parenthesized_expression "((param_2[4] & 1U) == 0)" ( (binary_expression "(param_2[4] & 1U) == 0" (parenthesized_expression "(param_2[4] & 1U)" ( (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) || (parenthesized_expression "((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" ( (binary_expression "(int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)" (cast_expression "(int)*(short *)(param_2 + 0x26)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_2 + 0x26)" * (cast_expression "(short *)(param_2 + 0x26)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) ))))) != (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }" { (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 != -0x62) goto LAB_000579f8;" if (parenthesized_expression "(cVar3 != -0x62)" ( (binary_expression "cVar3 != -0x62" identifier != number_literal) )) (goto_statement "goto LAB_000579f8;" goto statement_identifier ;)) (labeled_statement "LAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" statement_identifier : (if_statement "if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" { (if_statement "if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x20) < 0)" ( (binary_expression "*(int *)(param_2 + 0x20) < 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" { (expression_statement "*param_2 = 'n';" (assignment_expression "*param_2 = 'n'" (pointer_expression "*param_2" * identifier) = (char_literal "'n'" ' character ')) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) })) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" identifier = (pointer_expression "*(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4" (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "*(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) * number_literal)) + number_literal) ))))) ;) (expression_statement "cVar3 = *pcVar5;" (assignment_expression "cVar3 = *pcVar5" identifier = (pointer_expression "*pcVar5" * identifier)) ;) (expression_statement "cVar1 = cVar3;" (assignment_expression "cVar1 = cVar3" identifier = identifier) ;) (if_statement "if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }" if (parenthesized_expression "(cVar3 == -0x5c)" ( (binary_expression "cVar3 == -0x5c" identifier == number_literal) )) (compound_statement "{\n        cVar1 = pcVar5[0x28];\n      }" { (expression_statement "cVar1 = pcVar5[0x28];" (assignment_expression "cVar1 = pcVar5[0x28]" identifier = (subscript_expression "pcVar5[0x28]" identifier [ number_literal ])) ;) })) (if_statement "if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(cVar1 == -0x5b)" ( (binary_expression "cVar1 == -0x5b" identifier == number_literal) )) (compound_statement "{\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }" { (expression_statement "iVar6 = **(int **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = **(int **)(pcVar5 + 0x14)" identifier = (pointer_expression "**(int **)(pcVar5 + 0x14)" * (pointer_expression "*(int **)(pcVar5 + 0x14)" * (cast_expression "(int **)(pcVar5 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0x14)" ( (binary_expression "pcVar5 + 0x14" identifier + number_literal) )))))) ;) (labeled_statement "LAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" statement_identifier : (if_statement "if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" if (parenthesized_expression "(1 < iVar6)" ( (binary_expression "1 < iVar6" number_literal < identifier) )) (compound_statement "{\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" { (expression_statement "FUN_00057980();" (call_expression "FUN_00057980()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" else (if_statement "if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" if (parenthesized_expression "(cVar1 == '\x7f')" ( (binary_expression "cVar1 == '\x7f'" identifier == (char_literal "'\x7f'" ' escape_sequence ')) )) (compound_statement "{\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" { (expression_statement "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14)" identifier = (pointer_expression "*(int *)**(undefined4 **)(pcVar5 + 0x14)" * (cast_expression "(int *)**(undefined4 **)(pcVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(pcVar5 + 0x14)" * (pointer_expression "*(undefined4 **)(pcVar5 + 0x14)" * (cast_expression "(undefined4 **)(pcVar5 + 0x14)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar5 + 0x14)" ( (binary_expression "pcVar5 + 0x14" identifier + number_literal) )))))))) ;) (goto_statement "goto LAB_00057b75;" goto statement_identifier ;) })))) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(cVar3 != -0x62)" ( (binary_expression "cVar3 != -0x62" identifier != number_literal) ))) )) (compound_statement "{\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" { (expression_statement "ppcVar7 = local_58;" (assignment_expression "ppcVar7 = local_58" identifier = identifier) ;) (for_statement "for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" for ( (assignment_expression "iVar6 = 0xe" identifier = number_literal) ; (binary_expression "iVar6 != 0" identifier != number_literal) ; (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ) (compound_statement "{\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" { (expression_statement "*ppcVar7 = (char *)0x0;" (assignment_expression "*ppcVar7 = (char *)0x0" (pointer_expression "*ppcVar7" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" identifier = (binary_expression "ppcVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "local_3c = *(undefined4 *)(param_1 + 8);" (assignment_expression "local_3c = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "local_58[0]._0_1_ = 0xa7;" (assignment_expression "local_58[0]._0_1_ = 0xa7" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "local_58[3] = pcVar5;" (assignment_expression "local_58[3] = pcVar5" (subscript_expression "local_58[3]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "pcVar5 = (char *)FUN_0003c4c0(0);" (assignment_expression "pcVar5 = (char *)FUN_0003c4c0(0)" identifier = (cast_expression "(char *)FUN_0003c4c0(0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003c4c0(0)" identifier (argument_list "(0)" ( number_literal ))))) ;) (if_statement "if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" if (parenthesized_expression "(pcVar5 != (char *)0x0)" ( (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" { (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" if (parenthesized_expression "((param_2[4] & 1U) != 0)" ( (binary_expression "(param_2[4] & 1U) != 0" (parenthesized_expression "(param_2[4] & 1U)" ( (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" { (expression_statement "uVar2 = *(undefined2 *)(param_2 + 0x26);" (assignment_expression "uVar2 = *(undefined2 *)(param_2 + 0x26)" identifier = (pointer_expression "*(undefined2 *)(param_2 + 0x26)" * (cast_expression "(undefined2 *)(param_2 + 0x26)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" * (cast_expression "(uint *)(pcVar5 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 4)" ( (binary_expression "pcVar5 + 4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(undefined2 *)(pcVar5 + 0x26) = uVar2;" (assignment_expression "*(undefined2 *)(pcVar5 + 0x26) = uVar2" (pointer_expression "*(undefined2 *)(pcVar5 + 0x26)" * (cast_expression "(undefined2 *)(pcVar5 + 0x26)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar5 + 0x26)" ( (binary_expression "pcVar5 + 0x26" identifier + number_literal) )))) = identifier) ;) })) })) (expression_statement "FUN_000387d0();" (call_expression "FUN_000387d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = pcVar5;" (assignment_expression "param_2 = pcVar5" identifier = identifier) ;) (goto_statement "goto LAB_00057a37;" goto statement_identifier ;) }))) }) (else_clause "else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" else (compound_statement "{\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" { (expression_statement "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);" (assignment_expression "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8)" (pointer_expression "*(short *)(param_2 + 0x26)" * (cast_expression "(short *)(param_2 + 0x26)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x26)" ( (binary_expression "param_2 + 0x26" identifier + number_literal) )))) = (cast_expression "(short)*(undefined4 *)(param_1 + 8)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))))) ;) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar3 == -0x62) goto LAB_00057a70;" if (parenthesized_expression "(cVar3 == -0x62)" ( (binary_expression "cVar3 == -0x62" identifier == number_literal) )) (goto_statement "goto LAB_00057a70;" goto statement_identifier ;)) (labeled_statement "LAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" statement_identifier : (if_statement "if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" if (parenthesized_expression "((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)))" ( (binary_expression "(cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" (parenthesized_expression "(cVar3 == -0x59)" ( (binary_expression "cVar3 == -0x59" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" ( (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) == (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" { (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" * (cast_expression "(undefined4 *)(param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) }))) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" identifier = (call_expression "FUN_000579d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" identifier = (call_expression "FUN_000579d0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" if (parenthesized_expression "((param_2[5] & 8U) == 0)" ( (binary_expression "(param_2[5] & 8U) == 0" (parenthesized_expression "(param_2[5] & 8U)" ( (binary_expression "param_2[5] & 8U" (subscript_expression "param_2[5]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }" { (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" ( (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_00057bb0();\n    }" { (expression_statement "FUN_00057bb0();" (call_expression "FUN_00057bb0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" else (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" if (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" ( (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00057c00();\n  }" { (expression_statement "FUN_00057c00();" (call_expression "FUN_00057c00()" identifier (argument_list "()" ( ))) ;) })))) (labeled_statement "LAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) }))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (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 (pointer_expression * IDENT) = (char_literal ' character ')) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))))) ;) (goto_statement goto statement_identifier ;) })))) (if_statement if (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 ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (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 (call_expression IDENT (argument_list ( ))) ;) })) }) (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 (call_expression IDENT (argument_list ( ))) ;) })))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "char * __regparm3 FUN_000579d0(int param_1,char *param_2)\n\n{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_000f4bf0();\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_000579d0(int param_1,char *param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000579d0(int param_1,char *param_2)" (identifier "FUN_000579d0") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  char cVar1;\n  undefined2 uVar2;\n  char cVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  char **ppcVar7;\n  int in_GS_OFFSET;\n  char *local_58 [7];\n  undefined4 local_3c;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_2 == (char *)0x0) goto LAB_00057a37;\n  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0xc) = uVar4;\n  uVar4 = FUN_000579d0();\n  *(undefined4 *)(param_2 + 0x10) = uVar4;\n  if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }\nLAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }\n                    \n  FUN_000f4bf0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined2 uVar2;" (type_identifier "undefined2") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "char **ppcVar7;" (primitive_type "char") (pointer_declarator "**ppcVar7" (* "*") (pointer_declarator "*ppcVar7" (* "*") (identifier "ppcVar7"))) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_58 [7];" (primitive_type "char") (pointer_declarator "*local_58 [7]" (* "*") (array_declarator "local_58 [7]" (identifier "local_58") ([ "[") (number_literal "7") (] "]"))) (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_2 == (char *)0x0) goto LAB_00057a37;" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00057a37;" (goto "goto") (statement_identifier "LAB_00057a37") (; ";"))) (if_statement "if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }\n  else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" (if "if") (parenthesized_expression "(((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)))" (( "(") (binary_expression "((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" (parenthesized_expression "((param_2[4] & 1U) == 0)" (( "(") (binary_expression "(param_2[4] & 1U) == 0" (parenthesized_expression "(param_2[4] & 1U)" (( "(") (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (& "&") (number_literal "1U")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))" (( "(") (binary_expression "(int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4)" (cast_expression "(int)*(short *)(param_2 + 0x26)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(param_2 + 0x26)" (* "*") (cast_expression "(short *)(param_2 + 0x26)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x26)" (( "(") (binary_expression "param_2 + 0x26" (identifier "param_2") (+ "+") (number_literal "0x26")) () ")"))))) (!= "!=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    cVar3 = *param_2;\n    if (cVar3 != -0x62) goto LAB_000579f8;\nLAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }\n  }" ({ "{") (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar3 != -0x62) goto LAB_000579f8;" (if "if") (parenthesized_expression "(cVar3 != -0x62)" (( "(") (binary_expression "cVar3 != -0x62" (identifier "cVar3") (!= "!=") (number_literal "-0x62")) () ")")) (goto_statement "goto LAB_000579f8;" (goto "goto") (statement_identifier "LAB_000579f8") (; ";"))) (labeled_statement "LAB_00057a70:\n    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" (statement_identifier "LAB_00057a70") (: ":") (if_statement "if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }\n      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);\n      cVar3 = *pcVar5;\n      cVar1 = cVar3;\n      if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }\n      if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }\n      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }\n      pcVar5 = (char *)FUN_0003c4c0(0);\n      if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }\n      FUN_000387d0();\n      param_2 = pcVar5;\n      goto LAB_00057a37;\n    }" ({ "{") (if_statement "if (*(int *)(param_2 + 0x20) < 0) {\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x20) < 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x20) < 0" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        *param_2 = 'n';\n        goto LAB_00057a37;\n      }" ({ "{") (expression_statement "*param_2 = 'n';" (assignment_expression "*param_2 = 'n'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (char_literal "'n'" (' "'") (character "n") (' "'"))) (; ";")) (goto_statement "goto LAB_00057a37;" (goto "goto") (statement_identifier "LAB_00057a37") (; ";")) (} "}"))) (expression_statement "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);" (assignment_expression "pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4" (binary_expression "*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "*(int *)(param_2 + 0x20) * 0x14" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (* "*") (number_literal "0x14"))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "cVar3 = *pcVar5;" (assignment_expression "cVar3 = *pcVar5" (identifier "cVar3") (= "=") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5"))) (; ";")) (expression_statement "cVar1 = cVar3;" (assignment_expression "cVar1 = cVar3" (identifier "cVar1") (= "=") (identifier "cVar3")) (; ";")) (if_statement "if (cVar3 == -0x5c) {\n        cVar1 = pcVar5[0x28];\n      }" (if "if") (parenthesized_expression "(cVar3 == -0x5c)" (( "(") (binary_expression "cVar3 == -0x5c" (identifier "cVar3") (== "==") (number_literal "-0x5c")) () ")")) (compound_statement "{\n        cVar1 = pcVar5[0x28];\n      }" ({ "{") (expression_statement "cVar1 = pcVar5[0x28];" (assignment_expression "cVar1 = pcVar5[0x28]" (identifier "cVar1") (= "=") (subscript_expression "pcVar5[0x28]" (identifier "pcVar5") ([ "[") (number_literal "0x28") (] "]"))) (; ";")) (} "}"))) (if_statement "if (cVar1 == -0x5b) {\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }\n      else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" (if "if") (parenthesized_expression "(cVar1 == -0x5b)" (( "(") (binary_expression "cVar1 == -0x5b" (identifier "cVar1") (== "==") (number_literal "-0x5b")) () ")")) (compound_statement "{\n        iVar6 = **(int **)(pcVar5 + 0x14);\nLAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }\n      }" ({ "{") (expression_statement "iVar6 = **(int **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = **(int **)(pcVar5 + 0x14)" (identifier "iVar6") (= "=") (pointer_expression "**(int **)(pcVar5 + 0x14)" (* "*") (pointer_expression "*(int **)(pcVar5 + 0x14)" (* "*") (cast_expression "(int **)(pcVar5 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0x14)" (( "(") (binary_expression "pcVar5 + 0x14" (identifier "pcVar5") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (labeled_statement "LAB_00057b75:\n        if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" (statement_identifier "LAB_00057b75") (: ":") (if_statement "if (1 < iVar6) {\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" (if "if") (parenthesized_expression "(1 < iVar6)" (( "(") (binary_expression "1 < iVar6" (number_literal "1") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n          FUN_00057980();\n          goto LAB_00057a37;\n        }" ({ "{") (expression_statement "FUN_00057980();" (call_expression "FUN_00057980()" (identifier "FUN_00057980") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_00057a37;" (goto "goto") (statement_identifier "LAB_00057a37") (; ";")) (} "}")))) (} "}")) (else_clause "else if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" (else "else") (if_statement "if (cVar1 == '\x7f') {\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\x7f')" (( "(") (binary_expression "cVar1 == '\x7f'" (identifier "cVar1") (== "==") (char_literal "'\x7f'" (' "'") (escape_sequence "\x7f") (' "'"))) () ")")) (compound_statement "{\n        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);\n        goto LAB_00057b75;\n      }" ({ "{") (expression_statement "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);" (assignment_expression "iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)**(undefined4 **)(pcVar5 + 0x14)" (* "*") (cast_expression "(int *)**(undefined4 **)(pcVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(pcVar5 + 0x14)" (* "*") (pointer_expression "*(undefined4 **)(pcVar5 + 0x14)" (* "*") (cast_expression "(undefined4 **)(pcVar5 + 0x14)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar5 + 0x14)" (( "(") (binary_expression "pcVar5 + 0x14" (identifier "pcVar5") (+ "+") (number_literal "0x14")) () ")")))))))) (; ";")) (goto_statement "goto LAB_00057b75;" (goto "goto") (statement_identifier "LAB_00057b75") (; ";")) (} "}"))))) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(cVar3 != -0x62)" (( "(") (binary_expression "cVar3 != -0x62" (identifier "cVar3") (!= "!=") (number_literal "-0x62")) () ")"))) () ")")) (compound_statement "{\n        ppcVar7 = local_58;\n        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }\n        local_3c = *(undefined4 *)(param_1 + 8);\n        local_58[0]._0_1_ = 0xa7;\n        local_58[3] = pcVar5;\n      }" ({ "{") (expression_statement "ppcVar7 = local_58;" (assignment_expression "ppcVar7 = local_58" (identifier "ppcVar7") (= "=") (identifier "local_58")) (; ";")) (for_statement "for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" (for "for") (( "(") (assignment_expression "iVar6 = 0xe" (identifier "iVar6") (= "=") (number_literal "0xe")) (; ";") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n          *ppcVar7 = (char *)0x0;\n          ppcVar7 = ppcVar7 + 1;\n        }" ({ "{") (expression_statement "*ppcVar7 = (char *)0x0;" (assignment_expression "*ppcVar7 = (char *)0x0" (pointer_expression "*ppcVar7" (* "*") (identifier "ppcVar7")) (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "ppcVar7 = ppcVar7 + 1;" (assignment_expression "ppcVar7 = ppcVar7 + 1" (identifier "ppcVar7") (= "=") (binary_expression "ppcVar7 + 1" (identifier "ppcVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "local_3c = *(undefined4 *)(param_1 + 8);" (assignment_expression "local_3c = *(undefined4 *)(param_1 + 8)" (identifier "local_3c") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "local_58[0]._0_1_ = 0xa7;" (assignment_expression "local_58[0]._0_1_ = 0xa7" (field_expression "local_58[0]._0_1_" (subscript_expression "local_58[0]" (identifier "local_58") ([ "[") (number_literal "0") (] "]")) (. ".") (field_identifier "_0_1_")) (= "=") (number_literal "0xa7")) (; ";")) (expression_statement "local_58[3] = pcVar5;" (assignment_expression "local_58[3] = pcVar5" (subscript_expression "local_58[3]" (identifier "local_58") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "pcVar5")) (; ";")) (} "}"))) (expression_statement "pcVar5 = (char *)FUN_0003c4c0(0);" (assignment_expression "pcVar5 = (char *)FUN_0003c4c0(0)" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_0003c4c0(0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003c4c0(0)" (identifier "FUN_0003c4c0") (argument_list "(0)" (( "(") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (pcVar5 != (char *)0x0) {\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" (if "if") (parenthesized_expression "(pcVar5 != (char *)0x0)" (( "(") (binary_expression "pcVar5 != (char *)0x0" (identifier "pcVar5") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }\n        if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }\n      }" ({ "{") (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;\n        }" ({ "{") (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" (* "*") (cast_expression "(uint *)(pcVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 4)" (( "(") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(pcVar5 + 4) | 0x100000" (pointer_expression "*(uint *)(pcVar5 + 4)" (* "*") (cast_expression "(uint *)(pcVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 4)" (( "(") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4")) () ")")))) (| "|") (number_literal "0x100000"))) (; ";")) (} "}"))) (if_statement "if ((param_2[4] & 1U) != 0) {\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" (if "if") (parenthesized_expression "((param_2[4] & 1U) != 0)" (( "(") (binary_expression "(param_2[4] & 1U) != 0" (parenthesized_expression "(param_2[4] & 1U)" (( "(") (binary_expression "param_2[4] & 1U" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (& "&") (number_literal "1U")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar2 = *(undefined2 *)(param_2 + 0x26);\n          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;\n          *(undefined2 *)(pcVar5 + 0x26) = uVar2;\n        }" ({ "{") (expression_statement "uVar2 = *(undefined2 *)(param_2 + 0x26);" (assignment_expression "uVar2 = *(undefined2 *)(param_2 + 0x26)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined2 *)(param_2 + 0x26)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x26)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x26)" (( "(") (binary_expression "param_2 + 0x26" (identifier "param_2") (+ "+") (number_literal "0x26")) () ")"))))) (; ";")) (expression_statement "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;" (assignment_expression "*(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" (* "*") (cast_expression "(uint *)(pcVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 4)" (( "(") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(pcVar5 + 4) | 1" (pointer_expression "*(uint *)(pcVar5 + 4)" (* "*") (cast_expression "(uint *)(pcVar5 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 4)" (( "(") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(undefined2 *)(pcVar5 + 0x26) = uVar2;" (assignment_expression "*(undefined2 *)(pcVar5 + 0x26) = uVar2" (pointer_expression "*(undefined2 *)(pcVar5 + 0x26)" (* "*") (cast_expression "(undefined2 *)(pcVar5 + 0x26)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar5 + 0x26)" (( "(") (binary_expression "pcVar5 + 0x26" (identifier "pcVar5") (+ "+") (number_literal "0x26")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_000387d0();" (call_expression "FUN_000387d0()" (identifier "FUN_000387d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_2 = pcVar5;" (assignment_expression "param_2 = pcVar5" (identifier "param_2") (= "=") (identifier "pcVar5")) (; ";")) (goto_statement "goto LAB_00057a37;" (goto "goto") (statement_identifier "LAB_00057a37") (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" (else "else") (compound_statement "{\n    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);\n    cVar3 = *param_2;\n    if (cVar3 == -0x62) goto LAB_00057a70;\nLAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }\n  }" ({ "{") (expression_statement "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);" (assignment_expression "*(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8)" (pointer_expression "*(short *)(param_2 + 0x26)" (* "*") (cast_expression "(short *)(param_2 + 0x26)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x26)" (( "(") (binary_expression "param_2 + 0x26" (identifier "param_2") (+ "+") (number_literal "0x26")) () ")")))) (= "=") (cast_expression "(short)*(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))))) (; ";")) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar3 == -0x62) goto LAB_00057a70;" (if "if") (parenthesized_expression "(cVar3 == -0x62)" (( "(") (binary_expression "cVar3 == -0x62" (identifier "cVar3") (== "==") (number_literal "-0x62")) () ")")) (goto_statement "goto LAB_00057a70;" (goto "goto") (statement_identifier "LAB_00057a70") (; ";"))) (labeled_statement "LAB_000579f8:\n    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" (statement_identifier "LAB_000579f8") (: ":") (if_statement "if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" (if "if") (parenthesized_expression "((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)))" (( "(") (binary_expression "(cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" (parenthesized_expression "(cVar3 == -0x59)" (( "(") (binary_expression "cVar3 == -0x59" (identifier "cVar3") (== "==") (number_literal "-0x59")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(param_2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (} "}")))) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" (identifier "uVar4") (= "=") (call_expression "FUN_000579d0()" (identifier "FUN_000579d0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = FUN_000579d0();" (assignment_expression "uVar4 = FUN_000579d0()" (identifier "uVar4") (= "=") (call_expression "FUN_000579d0()" (identifier "FUN_000579d0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x10) = uVar4;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = uVar4" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if ((param_2[5] & 8U) == 0) {\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }\n  else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" (if "if") (parenthesized_expression "((param_2[5] & 8U) == 0)" (( "(") (binary_expression "(param_2[5] & 8U) == 0" (parenthesized_expression "(param_2[5] & 8U)" (( "(") (binary_expression "param_2[5] & 8U" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "8U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n      FUN_00057bb0();\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00057bb0();\n    }" ({ "{") (expression_statement "FUN_00057bb0();" (call_expression "FUN_00057bb0()" (identifier "FUN_00057bb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" (else "else") (if_statement "if (*(int *)(param_2 + 0x14) != 0) {\n    FUN_00057c00();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) != 0" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00057c00();\n  }" ({ "{") (expression_statement "FUN_00057c00();" (call_expression "FUN_00057c00()" (identifier "FUN_00057c00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))))) (labeled_statement "LAB_00057a37:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" (statement_identifier "LAB_00057a37") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return param_2;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return param_2;\n  }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_5 * __regparm3 var_10(SubstContext *pSubst,type_5 *var_2)

{
  int var_14;
  type_1 iVar2;
  type_2 *var_11;
  type_3 *db;
  type_4 var_3;
  type_5 *var_8;
  int var_5;
  type_5 *p_00;
  type_4 var_4;
  type_5 *pEVar7;
  int var_1;
  type_5 ifNullRow;
  
  var_14 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_5 *)0x0) goto LAB_00057a37;
  if (((var_2->flags & 1) == 0) || ((int)var_2->iRightJoinTable != pSubst->iTable)) {
    var_3 = var_2->op;
    if (var_3 != 0x9e) goto LAB_000579f8;
LAB_00057a70:
    if (var_2->iTable == pSubst->iTable) {
      if (var_2->iColumn < 0) {
        var_2->op = 'n';
        goto LAB_00057a37;
      }
      var_8 = pSubst->pEList->a[var_2->iColumn].var_2;
      var_3 = var_8->op;
      var_4 = var_3;
      if (var_3 == 0xa4) {
        var_4 = var_8->op2;
      }
      if (var_4 == 0xa5) {
        var_5 = ((var_8->x).pList)->nExpr;
LAB_00057b75:
        if (1 < var_5) {
          var_6(pSubst->pParse,(type_5 *)var_8->flags,(type_5 *)&var_8->x);
          goto LAB_00057a37;
        }
      }
      else if (var_4 == '\x7f') {
        var_5 = ((var_8->x).pSelect)->pEList->nExpr;
        goto LAB_00057b75;
      }
      db = pSubst->pParse->db;
      p_00 = var_8;
      if ((pSubst->isLeftJoin != 0) && (var_3 != 0x9e)) {
        p_00 = &ifNullRow;
        pEVar7 = p_00;
        for (var_5 = 0xe; var_5 != 0; var_5 = var_5 + -1) {
          pEVar7->op = '\0';
          pEVar7->affinity = '\0';
          *(type_6 *)&pEVar7->field_0x2 = 0;
          pEVar7 = (type_5 *)&pEVar7->flags;
        }
        ifNullRow.iTable = pSubst->iNewTable;
        ifNullRow.op = 0xa7;
        ifNullRow.pLeft = var_8;
      }
      var_8 = var_7(db,p_00,0,(type_4 **)0x0);
      if (var_8 != (type_5 *)0x0) {
        if (pSubst->isLeftJoin != 0) {
          var_8->flags = var_8->flags | 0x100000;
        }
        if ((var_2->flags & 1) != 0) {
          iVar2 = var_2->iRightJoinTable;
          var_8->flags = var_8->flags | 1;
          var_8->iRightJoinTable = iVar2;
        }
      }
      var_9(db,var_2);
      var_2 = var_8;
      goto LAB_00057a37;
    }
  }
  else {
    var_2->iRightJoinTable = (type_1)pSubst->iNewTable;
    var_3 = var_2->op;
    if (var_3 == 0x9e) goto LAB_00057a70;
LAB_000579f8:
    if ((var_3 == 0xa7) && (var_2->iTable == pSubst->iTable)) {
      var_2->iTable = pSubst->iNewTable;
    }
  }
  var_8 = var_10(pSubst,var_2->pLeft);
  var_2->pLeft = var_8;
  var_8 = var_10(pSubst,var_2->pRight);
  var_11 = (type_2 *)(var_2->x).pList;
  var_2->pRight = var_8;
  if ((var_2->flags & 0x800) == 0) {
    if (var_11 != (type_2 *)0x0) {
      var_12(pSubst,(type_7 *)var_11);
    }
  }
  else if (var_11 != (type_2 *)0x0) {
    var_13(pSubst,var_11,1);
  }
LAB_00057a37:
  if (var_14 == *(int *)(var_1 + 0x14)) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_15();
}


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

char * __regparm3 MASKED(int param_1,char *param_2)

{
  char cVar1;
  undefined2 uVar2;
  char cVar3;
  undefined4 uVar4;
  char *pcVar5;
  int iVar6;
  char **ppcVar7;
  int in_GS_OFFSET;
  char *local_58 [7];
  undefined4 local_3c;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_2 == (char *)0x0) goto LAB_00057a37;
  if (((param_2[4] & 1U) == 0) || ((int)*(short *)(param_2 + 0x26) != *(int *)(param_1 + 4))) {
    cVar3 = *param_2;
    if (cVar3 != -0x62) goto LAB_000579f8;
LAB_00057a70:
    if (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4)) {
      if (*(int *)(param_2 + 0x20) < 0) {
        *param_2 = 'n';
        goto LAB_00057a37;
      }
      pcVar5 = *(char **)(*(int *)(param_1 + 0x10) + *(int *)(param_2 + 0x20) * 0x14 + 4);
      cVar3 = *pcVar5;
      cVar1 = cVar3;
      if (cVar3 == -0x5c) {
        cVar1 = pcVar5[0x28];
      }
      if (cVar1 == -0x5b) {
        iVar6 = **(int **)(pcVar5 + 0x14);
LAB_00057b75:
        if (1 < iVar6) {
          FUN_00057980();
          goto LAB_00057a37;
        }
      }
      else if (cVar1 == '\x7f') {
        iVar6 = *(int *)**(undefined4 **)(pcVar5 + 0x14);
        goto LAB_00057b75;
      }
      if ((*(int *)(param_1 + 0xc) != 0) && (cVar3 != -0x62)) {
        ppcVar7 = local_58;
        for (iVar6 = 0xe; iVar6 != 0; iVar6 = iVar6 + -1) {
          *ppcVar7 = (char *)0x0;
          ppcVar7 = ppcVar7 + 1;
        }
        local_3c = *(undefined4 *)(param_1 + 8);
        local_58[0]._0_1_ = 0xa7;
        local_58[3] = pcVar5;
      }
      pcVar5 = (char *)FUN_0003c4c0(0);
      if (pcVar5 != (char *)0x0) {
        if (*(int *)(param_1 + 0xc) != 0) {
          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 0x100000;
        }
        if ((param_2[4] & 1U) != 0) {
          uVar2 = *(undefined2 *)(param_2 + 0x26);
          *(uint *)(pcVar5 + 4) = *(uint *)(pcVar5 + 4) | 1;
          *(undefined2 *)(pcVar5 + 0x26) = uVar2;
        }
      }
      FUN_000387d0();
      param_2 = pcVar5;
      goto LAB_00057a37;
    }
  }
  else {
    *(short *)(param_2 + 0x26) = (short)*(undefined4 *)(param_1 + 8);
    cVar3 = *param_2;
    if (cVar3 == -0x62) goto LAB_00057a70;
LAB_000579f8:
    if ((cVar3 == -0x59) && (*(int *)(param_2 + 0x1c) == *(int *)(param_1 + 4))) {
      *(undefined4 *)(param_2 + 0x1c) = *(undefined4 *)(param_1 + 8);
    }
  }
  uVar4 = MASKED();
  *(undefined4 *)(param_2 + 0xc) = uVar4;
  uVar4 = MASKED();
  *(undefined4 *)(param_2 + 0x10) = uVar4;
  if ((param_2[5] & 8U) == 0) {
    if (*(int *)(param_2 + 0x14) != 0) {
      FUN_00057bb0();
    }
  }
  else if (*(int *)(param_2 + 0x14) != 0) {
    FUN_00057c00();
  }
LAB_00057a37:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return param_2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
}

