
int __regparm3 sqlite3ExprCodeAtInit(Parse *pParse,Expr *pExpr,int regDest)

{
  Expr *pA;
  sqlite3 *db;
  ExprList *pEVar1;
  int iVar2;
  ExprList_item *pEVar3;
  int iVar4;
  u8 **in_stack_ffffffd4;
  int local_28;
  byte local_20;
  
  pEVar1 = pParse->pConstExpr;
  if ((pEVar1 != (ExprList *)0x0) && (regDest < 0)) {
    pEVar3 = pEVar1->a;
    iVar4 = pEVar1->nExpr;
    if (0 < iVar4) {
      do {
        if ((pEVar3->field_0xd & 4) != 0) {
          pA = pEVar3->pExpr;
          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {
            if (pA == pExpr) goto LAB_00087bfc;
          }
          else {
            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);
            if (iVar2 == 0) {
LAB_00087bfc:
              return (pEVar3->u).iConstExprReg;
            }
          }
        }
        pEVar3 = pEVar3 + 1;
        iVar4 = iVar4 + -1;
      } while (iVar4 != 0);
    }
  }
  db = pParse->db;
  if (pExpr != (Expr *)0x0) {
    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);
    db = pParse->db;
  }
  pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr);
  if (pEVar1 != (ExprList *)0x0) {
    iVar4 = pEVar1->nExpr;
    local_20 = (byte)((uint)regDest >> 0x1f);
    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;
    local_28 = regDest;
    if (regDest < 0) {
      local_28 = pParse->nMem + 1;
      pParse->nMem = local_28;
    }
    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;
    regDest = local_28;
  }
  pParse->pConstExpr = pEVar1;
  return regDest;
}



int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int local_28;
  byte local_20;
  
  piVar1 = *(int **)(param_1 + 0x44);
  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {
    piVar4 = piVar1 + 1;
    iVar2 = *piVar1;
    if (0 < iVar2) {
      do {
        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {
          if ((*piVar4 == 0) || (param_2 == 0)) {
            if (*piVar4 == param_2) goto LAB_00087bfc;
          }
          else {
            iVar3 = FUN_00087500(0xffffffff);
            if (iVar3 == 0) {
LAB_00087bfc:
              return piVar4[4];
            }
          }
        }
        piVar4 = piVar4 + 5;
        iVar2 = iVar2 + -1;
      } while (iVar2 != 0);
    }
  }
  if (param_2 != 0) {
    FUN_0005e9a0();
  }
  piVar1 = (int *)FUN_0006d980();
  if (piVar1 != (int *)0x0) {
    local_20 = (byte)((uint)param_3 >> 0x1f);
    iVar2 = *piVar1 + -1;
    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =
         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;
    local_28 = param_3;
    if (param_3 < 0) {
      local_28 = *(int *)(param_1 + 0x2c) + 1;
      *(int *)(param_1 + 0x2c) = local_28;
    }
    piVar1[iVar2 * 5 + 5] = local_28;
    param_3 = local_28;
  }
  *(int **)(param_1 + 0x44) = piVar1;
  return param_3;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x44]
MOV EAX,ECX
SHR EAX,0x1f
MOV dword ptr [ESP + 0x4],ECX
MOV dword ptr [ESP + 0x8],ESI
MOV dword ptr [ESP + 0xc],EAX
TEST ESI,ESI
JZ 0x00087b58
TEST AL,AL
JZ 0x00087b58
LEA EBX,[ESI + 0x4]
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JG 0x00087beb
LEA ESI,[ESI]
MOV EAX,dword ptr [EBP]
TEST EDI,EDI
JZ 0x00087b6d
MOV EDX,EDI
XOR ECX,ECX
CALL 0x0005e9a0
MOV EDI,EAX
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,EDI
CALL 0x0006d980
MOV EDI,dword ptr [ESP + 0x4]
MOV EDX,EAX
MOV EAX,EDI
TEST EDX,EDX
JZ 0x00087bb4
MOV EAX,dword ptr [EDX]
MOVZX ESI,byte ptr [ESP + 0xc]
SUB EAX,0x1
SHL ESI,0x2
LEA ECX,[EAX + EAX*0x4]
LEA EBX,[EDX + ECX*0x4]
MOVZX ECX,byte ptr [EBX + 0x11]
AND ECX,0xfffffffb
OR ECX,ESI
MOV byte ptr [EBX + 0x11],CL
TEST EDI,EDI
JS 0x00087c10
MOV ECX,dword ptr [ESP + 0x4]
LEA EAX,[EAX + EAX*0x4]
MOV dword ptr [EDX + EAX*0x4 + 0x14],ECX
MOV EAX,ECX
MOV dword ptr [EBP + 0x44],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EBX]
TEST EDX,EDX
JZ 0x00087bf8
TEST EDI,EDI
JZ 0x00087bf8
SUB ESP,0xc
MOV ECX,EDI
XOR EAX,EAX
PUSH -0x1
CALL 0x00087500
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00087bfc
ADD EBX,0x14
SUB ESI,0x1
JZ 0x00087b58
TEST byte ptr [EBX + 0xd],0x4
JZ 0x00087bdf
JMP 0x00087bc0
CMP EDX,EDI
JNZ 0x00087bdf
MOV EAX,dword ptr [EBX + 0x10]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [EBP + 0x2c]
ADD EDI,0x1
MOV dword ptr [ESP + 0x4],EDI
MOV dword ptr [EBP + 0x2c],EDI
JMP 0x00087ba7
(translation_unit "int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}\n\n" (function_definition "int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00087b20(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "byte local_20;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x44);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x44)" identifier = (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (param_3 < 0))" ( (binary_expression "(piVar1 != (int *)0x0) && (param_3 < 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" { (expression_statement "piVar4 = piVar1 + 1;" (assignment_expression "piVar4 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" { (do_statement "do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);" do (compound_statement "{\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      }" { (if_statement "if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" if (parenthesized_expression "((*(byte *)((int)piVar4 + 0xd) & 4) != 0)" ( (binary_expression "(*(byte *)((int)piVar4 + 0xd) & 4) != 0" (parenthesized_expression "(*(byte *)((int)piVar4 + 0xd) & 4)" ( (binary_expression "*(byte *)((int)piVar4 + 0xd) & 4" (pointer_expression "*(byte *)((int)piVar4 + 0xd)" * (cast_expression "(byte *)((int)piVar4 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + 0xd)" ( (binary_expression "(int)piVar4 + 0xd" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" { (if_statement "if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" if (parenthesized_expression "((*piVar4 == 0) || (param_2 == 0))" ( (binary_expression "(*piVar4 == 0) || (param_2 == 0)" (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }" { (if_statement "if (*piVar4 == param_2) goto LAB_00087bfc;" if (parenthesized_expression "(*piVar4 == param_2)" ( (binary_expression "*piVar4 == param_2" (pointer_expression "*piVar4" * identifier) == identifier) )) (goto_statement "goto LAB_00087bfc;" goto statement_identifier ;)) }) (else_clause "else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" else (compound_statement "{\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" { (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" identifier = (call_expression "FUN_00087500(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00087bfc:\n              return piVar4[4];\n            }" { (labeled_statement "LAB_00087bfc:\n              return piVar4[4];" statement_identifier : (return_statement "return piVar4[4];" return (subscript_expression "piVar4[4]" identifier [ number_literal ]) ;)) })) }))) })) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" identifier = (binary_expression "piVar4 + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) })) })) (if_statement "if (param_2 != 0) {\n    FUN_0005e9a0();\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0005e9a0();\n  }" { (expression_statement "FUN_0005e9a0();" (call_expression "FUN_0005e9a0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)FUN_0006d980();" (assignment_expression "piVar1 = (int *)FUN_0006d980()" identifier = (cast_expression "(int *)FUN_0006d980()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006d980()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" { (expression_statement "local_20 = (byte)((uint)param_3 >> 0x1f);" (assignment_expression "local_20 = (byte)((uint)param_3 >> 0x1f)" identifier = (call_expression "(byte)((uint)param_3 >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_3 >> 0x1f)" ( (binary_expression "(uint)param_3 >> 0x1f" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar2 = *piVar1 + -1;" (assignment_expression "iVar2 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;" (assignment_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" * (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 0x14" identifier * number_literal)) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" * (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 0x14" identifier * number_literal)) + number_literal) )))) & number_literal) | (binary_expression "local_20 << 2" identifier << number_literal))) ;) (expression_statement "local_28 = param_3;" (assignment_expression "local_28 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" { (expression_statement "local_28 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_28 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_28;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_28" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar1[iVar2 * 5 + 5] = local_28;" (assignment_expression "piVar1[iVar2 * 5 + 5] = local_28" (subscript_expression "piVar1[iVar2 * 5 + 5]" identifier [ (binary_expression "iVar2 * 5 + 5" (binary_expression "iVar2 * 5" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "param_3 = local_28;" (assignment_expression "param_3 = local_28" identifier = identifier) ;) })) (expression_statement "*(int **)(param_1 + 0x44) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar1" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "int __regparm3 sqlite3ExprCodeAtInit(Parse *pParse,Expr *pExpr,int regDest)\n\n{\n  Expr *pA;\n  sqlite3 *db;\n  ExprList *pEVar1;\n  int iVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  u8 **in_stack_ffffffd4;\n  int local_28;\n  byte local_20;\n  \n  pEVar1 = pParse->pConstExpr;\n  if ((pEVar1 != (ExprList *)0x0) && (regDest < 0)) {\n    pEVar3 = pEVar1->a;\n    iVar4 = pEVar1->nExpr;\n    if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }\n  }\n  db = pParse->db;\n  if (pExpr != (Expr *)0x0) {\n    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);\n    db = pParse->db;\n  }\n  pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr);\n  if (pEVar1 != (ExprList *)0x0) {\n    iVar4 = pEVar1->nExpr;\n    local_20 = (byte)((uint)regDest >> 0x1f);\n    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;\n    local_28 = regDest;\n    if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }\n    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;\n    regDest = local_28;\n  }\n  pParse->pConstExpr = pEVar1;\n  return regDest;\n}\n\n" (function_definition "int __regparm3 sqlite3ExprCodeAtInit(Parse *pParse,Expr *pExpr,int regDest)\n\n{\n  Expr *pA;\n  sqlite3 *db;\n  ExprList *pEVar1;\n  int iVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  u8 **in_stack_ffffffd4;\n  int local_28;\n  byte local_20;\n  \n  pEVar1 = pParse->pConstExpr;\n  if ((pEVar1 != (ExprList *)0x0) && (regDest < 0)) {\n    pEVar3 = pEVar1->a;\n    iVar4 = pEVar1->nExpr;\n    if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }\n  }\n  db = pParse->db;\n  if (pExpr != (Expr *)0x0) {\n    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);\n    db = pParse->db;\n  }\n  pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr);\n  if (pEVar1 != (ExprList *)0x0) {\n    iVar4 = pEVar1->nExpr;\n    local_20 = (byte)((uint)regDest >> 0x1f);\n    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;\n    local_28 = regDest;\n    if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }\n    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;\n    regDest = local_28;\n  }\n  pParse->pConstExpr = pEVar1;\n  return regDest;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3ExprCodeAtInit(Parse *pParse,Expr *pExpr,int regDest)" identifier (parameter_list "(Parse *pParse,Expr *pExpr,int regDest)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) , (parameter_declaration "int regDest" primitive_type identifier) ))) (compound_statement "{\n  Expr *pA;\n  sqlite3 *db;\n  ExprList *pEVar1;\n  int iVar2;\n  ExprList_item *pEVar3;\n  int iVar4;\n  u8 **in_stack_ffffffd4;\n  int local_28;\n  byte local_20;\n  \n  pEVar1 = pParse->pConstExpr;\n  if ((pEVar1 != (ExprList *)0x0) && (regDest < 0)) {\n    pEVar3 = pEVar1->a;\n    iVar4 = pEVar1->nExpr;\n    if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }\n  }\n  db = pParse->db;\n  if (pExpr != (Expr *)0x0) {\n    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);\n    db = pParse->db;\n  }\n  pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr);\n  if (pEVar1 != (ExprList *)0x0) {\n    iVar4 = pEVar1->nExpr;\n    local_20 = (byte)((uint)regDest >> 0x1f);\n    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;\n    local_28 = regDest;\n    if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }\n    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;\n    regDest = local_28;\n  }\n  pParse->pConstExpr = pEVar1;\n  return regDest;\n}" { (declaration "Expr *pA;" type_identifier (pointer_declarator "*pA" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "ExprList *pEVar1;" type_identifier (pointer_declarator "*pEVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ExprList_item *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "u8 **in_stack_ffffffd4;" type_identifier (pointer_declarator "**in_stack_ffffffd4" * (pointer_declarator "*in_stack_ffffffd4" * identifier)) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "byte local_20;" type_identifier identifier ;) (expression_statement "pEVar1 = pParse->pConstExpr;" (assignment_expression "pEVar1 = pParse->pConstExpr" identifier = (field_expression "pParse->pConstExpr" identifier -> field_identifier)) ;) (if_statement "if ((pEVar1 != (ExprList *)0x0) && (regDest < 0)) {\n    pEVar3 = pEVar1->a;\n    iVar4 = pEVar1->nExpr;\n    if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }\n  }" if (parenthesized_expression "((pEVar1 != (ExprList *)0x0) && (regDest < 0))" ( (binary_expression "(pEVar1 != (ExprList *)0x0) && (regDest < 0)" (parenthesized_expression "(pEVar1 != (ExprList *)0x0)" ( (binary_expression "pEVar1 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(regDest < 0)" ( (binary_expression "regDest < 0" identifier < number_literal) ))) )) (compound_statement "{\n    pEVar3 = pEVar1->a;\n    iVar4 = pEVar1->nExpr;\n    if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }\n  }" { (expression_statement "pEVar3 = pEVar1->a;" (assignment_expression "pEVar3 = pEVar1->a" identifier = (field_expression "pEVar1->a" identifier -> field_identifier)) ;) (expression_statement "iVar4 = pEVar1->nExpr;" (assignment_expression "iVar4 = pEVar1->nExpr" identifier = (field_expression "pEVar1->nExpr" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar4) {\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);\n    }" { (do_statement "do {\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      } while (iVar4 != 0);" do (compound_statement "{\n        if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }\n        pEVar3 = pEVar3 + 1;\n        iVar4 = iVar4 + -1;\n      }" { (if_statement "if ((pEVar3->field_0xd & 4) != 0) {\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }" if (parenthesized_expression "((pEVar3->field_0xd & 4) != 0)" ( (binary_expression "(pEVar3->field_0xd & 4) != 0" (parenthesized_expression "(pEVar3->field_0xd & 4)" ( (binary_expression "pEVar3->field_0xd & 4" (field_expression "pEVar3->field_0xd" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n          pA = pEVar3->pExpr;\n          if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }\n        }" { (expression_statement "pA = pEVar3->pExpr;" (assignment_expression "pA = pEVar3->pExpr" identifier = (field_expression "pEVar3->pExpr" identifier -> field_identifier)) ;) (if_statement "if ((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)) {\n            if (pA == pExpr) goto LAB_00087bfc;\n          }\n          else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }" if (parenthesized_expression "((pA == (Expr *)0x0) || (pExpr == (Expr *)0x0))" ( (binary_expression "(pA == (Expr *)0x0) || (pExpr == (Expr *)0x0)" (parenthesized_expression "(pA == (Expr *)0x0)" ( (binary_expression "pA == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (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)) ))) )) (compound_statement "{\n            if (pA == pExpr) goto LAB_00087bfc;\n          }" { (if_statement "if (pA == pExpr) goto LAB_00087bfc;" if (parenthesized_expression "(pA == pExpr)" ( (binary_expression "pA == pExpr" identifier == identifier) )) (goto_statement "goto LAB_00087bfc;" goto statement_identifier ;)) }) (else_clause "else {\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }" else (compound_statement "{\n            iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);\n            if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }\n          }" { (expression_statement "iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1);" (assignment_expression "iVar2 = sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1)" identifier = (call_expression "sqlite3ExprCompare((Parse *)0x0,pA,pExpr,-1)" identifier (argument_list "((Parse *)0x0,pA,pExpr,-1)" ( (cast_expression "(Parse *)0x0" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;\n            }" { (labeled_statement "LAB_00087bfc:\n              return (pEVar3->u).iConstExprReg;" statement_identifier : (return_statement "return (pEVar3->u).iConstExprReg;" return (field_expression "(pEVar3->u).iConstExprReg" (parenthesized_expression "(pEVar3->u)" ( (field_expression "pEVar3->u" identifier -> field_identifier) )) . field_identifier) ;)) })) }))) })) (expression_statement "pEVar3 = pEVar3 + 1;" (assignment_expression "pEVar3 = pEVar3 + 1" identifier = (binary_expression "pEVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) })) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (if_statement "if (pExpr != (Expr *)0x0) {\n    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);\n    db = pParse->db;\n  }" 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)) )) (compound_statement "{\n    pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);\n    db = pParse->db;\n  }" { (expression_statement "pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4);" (assignment_expression "pExpr = exprDup(db,pExpr,0,in_stack_ffffffd4)" identifier = (call_expression "exprDup(db,pExpr,0,in_stack_ffffffd4)" identifier (argument_list "(db,pExpr,0,in_stack_ffffffd4)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) })) (expression_statement "pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr);" (assignment_expression "pEVar1 = sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr)" identifier = (call_expression "sqlite3ExprListAppend((Parse *)db,pEVar1,pExpr)" identifier (argument_list "((Parse *)db,pEVar1,pExpr)" ( (cast_expression "(Parse *)db" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier )))) ;) (if_statement "if (pEVar1 != (ExprList *)0x0) {\n    iVar4 = pEVar1->nExpr;\n    local_20 = (byte)((uint)regDest >> 0x1f);\n    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;\n    local_28 = regDest;\n    if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }\n    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;\n    regDest = local_28;\n  }" if (parenthesized_expression "(pEVar1 != (ExprList *)0x0)" ( (binary_expression "pEVar1 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = pEVar1->nExpr;\n    local_20 = (byte)((uint)regDest >> 0x1f);\n    pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;\n    local_28 = regDest;\n    if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }\n    pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;\n    regDest = local_28;\n  }" { (expression_statement "iVar4 = pEVar1->nExpr;" (assignment_expression "iVar4 = pEVar1->nExpr" identifier = (field_expression "pEVar1->nExpr" identifier -> field_identifier)) ;) (expression_statement "local_20 = (byte)((uint)regDest >> 0x1f);" (assignment_expression "local_20 = (byte)((uint)regDest >> 0x1f)" identifier = (call_expression "(byte)((uint)regDest >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)regDest >> 0x1f)" ( (binary_expression "(uint)regDest >> 0x1f" (cast_expression "(uint)regDest" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2;" (assignment_expression "pEVar1->a[iVar4 + -1].field_0xd = pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2" (field_expression "pEVar1->a[iVar4 + -1].field_0xd" (subscript_expression "pEVar1->a[iVar4 + -1]" (field_expression "pEVar1->a" identifier -> field_identifier) [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) . field_identifier) = (binary_expression "pEVar1->a[iVar4 + -1].field_0xd & 0xfb | local_20 << 2" (binary_expression "pEVar1->a[iVar4 + -1].field_0xd & 0xfb" (field_expression "pEVar1->a[iVar4 + -1].field_0xd" (subscript_expression "pEVar1->a[iVar4 + -1]" (field_expression "pEVar1->a" identifier -> field_identifier) [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) . field_identifier) & number_literal) | (binary_expression "local_20 << 2" identifier << number_literal))) ;) (expression_statement "local_28 = regDest;" (assignment_expression "local_28 = regDest" identifier = identifier) ;) (if_statement "if (regDest < 0) {\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }" if (parenthesized_expression "(regDest < 0)" ( (binary_expression "regDest < 0" identifier < number_literal) )) (compound_statement "{\n      local_28 = pParse->nMem + 1;\n      pParse->nMem = local_28;\n    }" { (expression_statement "local_28 = pParse->nMem + 1;" (assignment_expression "local_28 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = local_28;" (assignment_expression "pParse->nMem = local_28" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28;" (assignment_expression "pEVar1->a[iVar4 + -1].u.iConstExprReg = local_28" (field_expression "pEVar1->a[iVar4 + -1].u.iConstExprReg" (field_expression "pEVar1->a[iVar4 + -1].u" (subscript_expression "pEVar1->a[iVar4 + -1]" (field_expression "pEVar1->a" identifier -> field_identifier) [ (binary_expression "iVar4 + -1" identifier + number_literal) ]) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "regDest = local_28;" (assignment_expression "regDest = local_28" identifier = identifier) ;) })) (expression_statement "pParse->pConstExpr = pEVar1;" (assignment_expression "pParse->pConstExpr = pEVar1" (field_expression "pParse->pConstExpr" identifier -> field_identifier) = identifier) ;) (return_statement "return regDest;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}\n\n" (function_definition "int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00087b20(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "byte local_20;" type_identifier identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x44);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x44)" identifier = (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (param_3 < 0))" ( (binary_expression "(piVar1 != (int *)0x0) && (param_3 < 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) ))) )) (compound_statement "{\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" { (expression_statement "piVar4 = piVar1 + 1;" (assignment_expression "piVar4 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" { (do_statement "do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);" do (compound_statement "{\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      }" { (if_statement "if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" if (parenthesized_expression "((*(byte *)((int)piVar4 + 0xd) & 4) != 0)" ( (binary_expression "(*(byte *)((int)piVar4 + 0xd) & 4) != 0" (parenthesized_expression "(*(byte *)((int)piVar4 + 0xd) & 4)" ( (binary_expression "*(byte *)((int)piVar4 + 0xd) & 4" (pointer_expression "*(byte *)((int)piVar4 + 0xd)" * (cast_expression "(byte *)((int)piVar4 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar4 + 0xd)" ( (binary_expression "(int)piVar4 + 0xd" (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" { (if_statement "if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" if (parenthesized_expression "((*piVar4 == 0) || (param_2 == 0))" ( (binary_expression "(*piVar4 == 0) || (param_2 == 0)" (parenthesized_expression "(*piVar4 == 0)" ( (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" * identifier) == number_literal) )) || (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }" { (if_statement "if (*piVar4 == param_2) goto LAB_00087bfc;" if (parenthesized_expression "(*piVar4 == param_2)" ( (binary_expression "*piVar4 == param_2" (pointer_expression "*piVar4" * identifier) == identifier) )) (goto_statement "goto LAB_00087bfc;" goto statement_identifier ;)) }) (else_clause "else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" else (compound_statement "{\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" { (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" identifier = (call_expression "FUN_00087500(0xffffffff)" identifier (argument_list "(0xffffffff)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00087bfc:\n              return piVar4[4];\n            }" { (labeled_statement "LAB_00087bfc:\n              return piVar4[4];" statement_identifier : (return_statement "return piVar4[4];" return (subscript_expression "piVar4[4]" identifier [ number_literal ]) ;)) })) }))) })) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" identifier = (binary_expression "piVar4 + 5" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) })) })) (if_statement "if (param_2 != 0) {\n    FUN_0005e9a0();\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0005e9a0();\n  }" { (expression_statement "FUN_0005e9a0();" (call_expression "FUN_0005e9a0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)FUN_0006d980();" (assignment_expression "piVar1 = (int *)FUN_0006d980()" identifier = (cast_expression "(int *)FUN_0006d980()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006d980()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" { (expression_statement "local_20 = (byte)((uint)param_3 >> 0x1f);" (assignment_expression "local_20 = (byte)((uint)param_3 >> 0x1f)" identifier = (call_expression "(byte)((uint)param_3 >> 0x1f)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "((uint)param_3 >> 0x1f)" ( (binary_expression "(uint)param_3 >> 0x1f" (cast_expression "(uint)param_3" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar2 = *piVar1 + -1;" (assignment_expression "iVar2 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;" (assignment_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" * (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 0x14" identifier * number_literal)) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" * (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" ( (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar2 * 0x14" identifier * number_literal)) + number_literal) )))) & number_literal) | (binary_expression "local_20 << 2" identifier << number_literal))) ;) (expression_statement "local_28 = param_3;" (assignment_expression "local_28 = param_3" identifier = identifier) ;) (if_statement "if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" { (expression_statement "local_28 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_28 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_28;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_28" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar1[iVar2 * 5 + 5] = local_28;" (assignment_expression "piVar1[iVar2 * 5 + 5] = local_28" (subscript_expression "piVar1[iVar2 * 5 + 5]" identifier [ (binary_expression "iVar2 * 5 + 5" (binary_expression "iVar2 * 5" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "param_3 = local_28;" (assignment_expression "param_3 = local_28" identifier = identifier) ;) })) (expression_statement "*(int **)(param_1 + 0x44) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar1" (pointer_expression "*(int **)(param_1 + 0x44)" * (cast_expression "(int **)(param_1 + 0x44)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (return_statement return (subscript_expression IDENT [ LIT ]) ;)) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) + LIT) )))) & LIT) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_00087b20(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00087b20(int param_1,int param_2,int param_3)" (identifier "FUN_00087b20") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int local_28;\n  byte local_20;\n  \n  piVar1 = *(int **)(param_1 + 0x44);\n  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }\n  if (param_2 != 0) {\n    FUN_0005e9a0();\n  }\n  piVar1 = (int *)FUN_0006d980();\n  if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }\n  *(int **)(param_1 + 0x44) = piVar1;\n  return param_3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "byte local_20;" (type_identifier "byte") (identifier "local_20") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x44);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x44)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x44)" (* "*") (cast_expression "(int **)(param_1 + 0x44)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && (param_3 < 0)) {\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && (param_3 < 0))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && (param_3 < 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    piVar4 = piVar1 + 1;\n    iVar2 = *piVar1;\n    if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }\n  }" ({ "{") (expression_statement "piVar4 = piVar1 + 1;" (assignment_expression "piVar4 = piVar1 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (0 < iVar2) {\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);\n    }" ({ "{") (do_statement "do {\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      } while (iVar2 != 0);" (do "do") (compound_statement "{\n        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }\n        piVar4 = piVar4 + 5;\n        iVar2 = iVar2 + -1;\n      }" ({ "{") (if_statement "if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" (if "if") (parenthesized_expression "((*(byte *)((int)piVar4 + 0xd) & 4) != 0)" (( "(") (binary_expression "(*(byte *)((int)piVar4 + 0xd) & 4) != 0" (parenthesized_expression "(*(byte *)((int)piVar4 + 0xd) & 4)" (( "(") (binary_expression "*(byte *)((int)piVar4 + 0xd) & 4" (pointer_expression "*(byte *)((int)piVar4 + 0xd)" (* "*") (cast_expression "(byte *)((int)piVar4 + 0xd)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar4 + 0xd)" (( "(") (binary_expression "(int)piVar4 + 0xd" (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4")) (+ "+") (number_literal "0xd")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }\n        }" ({ "{") (if_statement "if ((*piVar4 == 0) || (param_2 == 0)) {\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }\n          else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" (if "if") (parenthesized_expression "((*piVar4 == 0) || (param_2 == 0))" (( "(") (binary_expression "(*piVar4 == 0) || (param_2 == 0)" (parenthesized_expression "(*piVar4 == 0)" (( "(") (binary_expression "*piVar4 == 0" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            if (*piVar4 == param_2) goto LAB_00087bfc;\n          }" ({ "{") (if_statement "if (*piVar4 == param_2) goto LAB_00087bfc;" (if "if") (parenthesized_expression "(*piVar4 == param_2)" (( "(") (binary_expression "*piVar4 == param_2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (== "==") (identifier "param_2")) () ")")) (goto_statement "goto LAB_00087bfc;" (goto "goto") (statement_identifier "LAB_00087bfc") (; ";"))) (} "}")) (else_clause "else {\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" (else "else") (compound_statement "{\n            iVar3 = FUN_00087500(0xffffffff);\n            if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }\n          }" ({ "{") (expression_statement "iVar3 = FUN_00087500(0xffffffff);" (assignment_expression "iVar3 = FUN_00087500(0xffffffff)" (identifier "iVar3") (= "=") (call_expression "FUN_00087500(0xffffffff)" (identifier "FUN_00087500") (argument_list "(0xffffffff)" (( "(") (number_literal "0xffffffff") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\nLAB_00087bfc:\n              return piVar4[4];\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00087bfc:\n              return piVar4[4];\n            }" ({ "{") (labeled_statement "LAB_00087bfc:\n              return piVar4[4];" (statement_identifier "LAB_00087bfc") (: ":") (return_statement "return piVar4[4];" (return "return") (subscript_expression "piVar4[4]" (identifier "piVar4") ([ "[") (number_literal "4") (] "]")) (; ";"))) (} "}"))) (} "}")))) (} "}"))) (expression_statement "piVar4 = piVar4 + 5;" (assignment_expression "piVar4 = piVar4 + 5" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 5" (identifier "piVar4") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_2 != 0) {\n    FUN_0005e9a0();\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0005e9a0();\n  }" ({ "{") (expression_statement "FUN_0005e9a0();" (call_expression "FUN_0005e9a0()" (identifier "FUN_0005e9a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)FUN_0006d980();" (assignment_expression "piVar1 = (int *)FUN_0006d980()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0006d980()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0006d980()" (identifier "FUN_0006d980") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_20 = (byte)((uint)param_3 >> 0x1f);\n    iVar2 = *piVar1 + -1;\n    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;\n    local_28 = param_3;\n    if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }\n    piVar1[iVar2 * 5 + 5] = local_28;\n    param_3 = local_28;\n  }" ({ "{") (expression_statement "local_20 = (byte)((uint)param_3 >> 0x1f);" (assignment_expression "local_20 = (byte)((uint)param_3 >> 0x1f)" (identifier "local_20") (= "=") (call_expression "(byte)((uint)param_3 >> 0x1f)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "((uint)param_3 >> 0x1f)" (( "(") (binary_expression "(uint)param_3 >> 0x1f" (cast_expression "(uint)param_3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_3")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1 + -1;" (assignment_expression "iVar2 = *piVar1 + -1" (identifier "iVar2") (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;" (assignment_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =\n         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" (* "*") (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" (( "(") (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (binary_expression "iVar2 * 0x14" (identifier "iVar2") (* "*") (number_literal "0x14"))) (+ "+") (number_literal "0x11")) () ")")))) (= "=") (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2" (binary_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb" (pointer_expression "*(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" (* "*") (cast_expression "(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + iVar2 * 0x14 + 0x11)" (( "(") (binary_expression "(int)piVar1 + iVar2 * 0x14 + 0x11" (binary_expression "(int)piVar1 + iVar2 * 0x14" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (binary_expression "iVar2 * 0x14" (identifier "iVar2") (* "*") (number_literal "0x14"))) (+ "+") (number_literal "0x11")) () ")")))) (& "&") (number_literal "0xfb")) (| "|") (binary_expression "local_20 << 2" (identifier "local_20") (<< "<<") (number_literal "2")))) (; ";")) (expression_statement "local_28 = param_3;" (assignment_expression "local_28 = param_3" (identifier "local_28") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 < 0) {\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      local_28 = *(int *)(param_1 + 0x2c) + 1;\n      *(int *)(param_1 + 0x2c) = local_28;\n    }" ({ "{") (expression_statement "local_28 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_28 = *(int *)(param_1 + 0x2c) + 1" (identifier "local_28") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = local_28;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_28" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (} "}"))) (expression_statement "piVar1[iVar2 * 5 + 5] = local_28;" (assignment_expression "piVar1[iVar2 * 5 + 5] = local_28" (subscript_expression "piVar1[iVar2 * 5 + 5]" (identifier "piVar1") ([ "[") (binary_expression "iVar2 * 5 + 5" (binary_expression "iVar2 * 5" (identifier "iVar2") (* "*") (number_literal "5")) (+ "+") (number_literal "5")) (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "param_3 = local_28;" (assignment_expression "param_3 = local_28" (identifier "param_3") (= "=") (identifier "local_28")) (; ";")) (} "}"))) (expression_statement "*(int **)(param_1 + 0x44) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x44) = piVar1" (pointer_expression "*(int **)(param_1 + 0x44)" (* "*") (cast_expression "(int **)(param_1 + 0x44)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pParse,type_2 *var_5,int var_2)

{
  type_2 *var_4;
  type_3 *db;
  type_4 *var_1;
  int var_7;
  type_5 *var_8;
  int var_3;
  type_6 **in_stack_ffffffd4;
  int local_28;
  type_7 var_11;
  
  var_1 = pParse->pConstExpr;
  if ((var_1 != (type_4 *)0x0) && (var_2 < 0)) {
    var_8 = var_1->a;
    var_3 = var_1->nExpr;
    if (0 < var_3) {
      do {
        if ((var_8->field_0xd & 4) != 0) {
          var_4 = var_8->var_5;
          if ((var_4 == (type_2 *)0x0) || (var_5 == (type_2 *)0x0)) {
            if (var_4 == var_5) goto LAB_00087bfc;
          }
          else {
            var_7 = var_6((type_1 *)0x0,var_4,var_5,-1);
            if (var_7 == 0) {
LAB_00087bfc:
              return (var_8->u).iConstExprReg;
            }
          }
        }
        var_8 = var_8 + 1;
        var_3 = var_3 + -1;
      } while (var_3 != 0);
    }
  }
  db = pParse->db;
  if (var_5 != (type_2 *)0x0) {
    var_5 = var_9(db,var_5,0,in_stack_ffffffd4);
    db = pParse->db;
  }
  var_1 = var_10((type_1 *)db,var_1,var_5);
  if (var_1 != (type_4 *)0x0) {
    var_3 = var_1->nExpr;
    var_11 = (type_7)((type_8)var_2 >> 0x1f);
    var_1->a[var_3 + -1].field_0xd = var_1->a[var_3 + -1].field_0xd & 0xfb | var_11 << 2;
    local_28 = var_2;
    if (var_2 < 0) {
      local_28 = pParse->nMem + 1;
      pParse->nMem = local_28;
    }
    var_1->a[var_3 + -1].u.iConstExprReg = local_28;
    var_2 = local_28;
  }
  pParse->pConstExpr = var_1;
  return var_2;
}


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

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

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int local_28;
  byte local_20;
  
  piVar1 = *(int **)(param_1 + 0x44);
  if ((piVar1 != (int *)0x0) && (param_3 < 0)) {
    piVar4 = piVar1 + 1;
    iVar2 = *piVar1;
    if (0 < iVar2) {
      do {
        if ((*(byte *)((int)piVar4 + 0xd) & 4) != 0) {
          if ((*piVar4 == 0) || (param_2 == 0)) {
            if (*piVar4 == param_2) goto LAB_00087bfc;
          }
          else {
            iVar3 = FUN_00087500(0xffffffff);
            if (iVar3 == 0) {
LAB_00087bfc:
              return piVar4[4];
            }
          }
        }
        piVar4 = piVar4 + 5;
        iVar2 = iVar2 + -1;
      } while (iVar2 != 0);
    }
  }
  if (param_2 != 0) {
    FUN_0005e9a0();
  }
  piVar1 = (int *)FUN_0006d980();
  if (piVar1 != (int *)0x0) {
    local_20 = (byte)((uint)param_3 >> 0x1f);
    iVar2 = *piVar1 + -1;
    *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) =
         *(byte *)((int)piVar1 + iVar2 * 0x14 + 0x11) & 0xfb | local_20 << 2;
    local_28 = param_3;
    if (param_3 < 0) {
      local_28 = *(int *)(param_1 + 0x2c) + 1;
      *(int *)(param_1 + 0x2c) = local_28;
    }
    piVar1[iVar2 * 5 + 5] = local_28;
    param_3 = local_28;
  }
  *(int **)(param_1 + 0x44) = piVar1;
  return param_3;
}

