
void __regparm3 sqlite3SrcListIndexedBy(Parse *pParse,SrcList *p,Token *pIndexedBy)

{
  undefined1 *puVar1;
  int iVar2;
  char *pcVar3;
  
  if ((p != (SrcList *)0x0) && (pIndexedBy->n != 0)) {
    iVar2 = p->nSrc;
    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {
      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);
      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;
      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;
      *puVar1 = *puVar1 | 2;
      return;
    }
    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;
    *puVar1 = *puVar1 | 1;
  }
  return;
}



void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)

{
  byte *pbVar1;
  int iVar2;
  int iVar3;
  
  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {
    iVar3 = *param_2 + -1;
    if ((param_3[1] != 1) || (*param_3 != 0)) {
      iVar2 = FUN_00028a50();
      param_2[iVar3 * 0x11 + 0x11] = iVar2;
      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);
      *pbVar1 = *pbVar1 | 2;
      return;
    }
    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);
    *pbVar1 = *pbVar1 | 1;
  }
  return;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
TEST EDX,EDX
JZ 0x0002ffb8
MOV ESI,dword ptr [ECX + 0x4]
TEST ESI,ESI
JZ 0x0002ffb8
MOV EBX,dword ptr [EDX]
SUB EBX,0x1
CMP ESI,0x1
JNZ 0x0002ffc0
MOV ESI,dword ptr [ECX]
TEST ESI,ESI
JNZ 0x0002ffc0
IMUL EBX,EBX,0x44
OR byte ptr [EDX + EBX*0x1 + 0x2d],0x1
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EAX]
MOV ESI,EDX
MOV EDX,ECX
CALL 0x00028a50
IMUL EDX,EBX,0x44
ADD EDX,ESI
MOV dword ptr [EDX + 0x44],EAX
OR byte ptr [EDX + 0x2d],0x2
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (param_3[1] != 0))" ( (binary_expression "(param_2 != (int *)0x0) && (param_3[1] != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_3[1] != 0)" ( (binary_expression "param_3[1] != 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" { (expression_statement "iVar3 = *param_2 + -1;" (assignment_expression "iVar3 = *param_2 + -1" identifier = (binary_expression "*param_2 + -1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (if_statement "if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" if (parenthesized_expression "((param_3[1] != 1) || (*param_3 != 0))" ( (binary_expression "(param_3[1] != 1) || (*param_3 != 0)" (parenthesized_expression "(param_3[1] != 1)" ( (binary_expression "param_3[1] != 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" { (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2[iVar3 * 0x11 + 0x11] = iVar2;" (assignment_expression "param_2[iVar3 * 0x11 + 0x11] = iVar2" (subscript_expression "param_2[iVar3 * 0x11 + 0x11]" identifier [ (binary_expression "iVar3 * 0x11 + 0x11" (binary_expression "iVar3 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" identifier = (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 0x44" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 | 2;" (assignment_expression "*pbVar1 = *pbVar1 | 2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | 2" (pointer_expression "*pbVar1" * identifier) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" identifier = (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 0x44" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 | 1;" (assignment_expression "*pbVar1 = *pbVar1 | 1" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | 1" (pointer_expression "*pbVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3SrcListIndexedBy(Parse *pParse,SrcList *p,Token *pIndexedBy)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((p != (SrcList *)0x0) && (pIndexedBy->n != 0)) {\n    iVar2 = p->nSrc;\n    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }\n    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n    *puVar1 = *puVar1 | 1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3SrcListIndexedBy(Parse *pParse,SrcList *p,Token *pIndexedBy)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((p != (SrcList *)0x0) && (pIndexedBy->n != 0)) {\n    iVar2 = p->nSrc;\n    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }\n    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n    *puVar1 = *puVar1 | 1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3SrcListIndexedBy(Parse *pParse,SrcList *p,Token *pIndexedBy)" identifier (parameter_list "(Parse *pParse,SrcList *p,Token *pIndexedBy)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "SrcList *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Token *pIndexedBy" type_identifier (pointer_declarator "*pIndexedBy" * identifier)) ))) (compound_statement "{\n  undefined1 *puVar1;\n  int iVar2;\n  char *pcVar3;\n  \n  if ((p != (SrcList *)0x0) && (pIndexedBy->n != 0)) {\n    iVar2 = p->nSrc;\n    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }\n    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n    *puVar1 = *puVar1 | 1;\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((p != (SrcList *)0x0) && (pIndexedBy->n != 0)) {\n    iVar2 = p->nSrc;\n    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }\n    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n    *puVar1 = *puVar1 | 1;\n  }" if (parenthesized_expression "((p != (SrcList *)0x0) && (pIndexedBy->n != 0))" ( (binary_expression "(p != (SrcList *)0x0) && (pIndexedBy->n != 0)" (parenthesized_expression "(p != (SrcList *)0x0)" ( (binary_expression "p != (SrcList *)0x0" identifier != (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pIndexedBy->n != 0)" ( (binary_expression "pIndexedBy->n != 0" (field_expression "pIndexedBy->n" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = p->nSrc;\n    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }\n    puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n    *puVar1 = *puVar1 | 1;\n  }" { (expression_statement "iVar2 = p->nSrc;" (assignment_expression "iVar2 = p->nSrc" identifier = (field_expression "p->nSrc" identifier -> field_identifier)) ;) (if_statement "if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }" if (parenthesized_expression "((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0))" ( (binary_expression "(pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)" (parenthesized_expression "(pIndexedBy->n != 1)" ( (binary_expression "pIndexedBy->n != 1" (field_expression "pIndexedBy->n" identifier -> field_identifier) != number_literal) )) || (parenthesized_expression "(pIndexedBy->z != (char *)0x0)" ( (binary_expression "pIndexedBy->z != (char *)0x0" (field_expression "pIndexedBy->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);\n      p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;\n      puVar1 = &p->a[iVar2 + -1].fg.field_0x1;\n      *puVar1 = *puVar1 | 2;\n      return;\n    }" { (expression_statement "pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy);" (assignment_expression "pcVar3 = sqlite3NameFromToken(pParse->db,pIndexedBy)" identifier = (call_expression "sqlite3NameFromToken(pParse->db,pIndexedBy)" identifier (argument_list "(pParse->db,pIndexedBy)" ( (field_expression "pParse->db" identifier -> field_identifier) , identifier )))) ;) (expression_statement "p->a[iVar2 + -1].u1.zIndexedBy = pcVar3;" (assignment_expression "p->a[iVar2 + -1].u1.zIndexedBy = pcVar3" (field_expression "p->a[iVar2 + -1].u1.zIndexedBy" (field_expression "p->a[iVar2 + -1].u1" (subscript_expression "p->a[iVar2 + -1]" (field_expression "p->a" identifier -> field_identifier) [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "puVar1 = &p->a[iVar2 + -1].fg.field_0x1;" (assignment_expression "puVar1 = &p->a[iVar2 + -1].fg.field_0x1" identifier = (pointer_expression "&p->a[iVar2 + -1].fg.field_0x1" & (field_expression "p->a[iVar2 + -1].fg.field_0x1" (field_expression "p->a[iVar2 + -1].fg" (subscript_expression "p->a[iVar2 + -1]" (field_expression "p->a" identifier -> field_identifier) [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) . field_identifier) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 2;" (assignment_expression "*puVar1 = *puVar1 | 2" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 2" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = &p->a[iVar2 + -1].fg.field_0x1;" (assignment_expression "puVar1 = &p->a[iVar2 + -1].fg.field_0x1" identifier = (pointer_expression "&p->a[iVar2 + -1].fg.field_0x1" & (field_expression "p->a[iVar2 + -1].fg.field_0x1" (field_expression "p->a[iVar2 + -1].fg" (subscript_expression "p->a[iVar2 + -1]" (field_expression "p->a" identifier -> field_identifier) [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) . field_identifier) . field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 | 1;" (assignment_expression "*puVar1 = *puVar1 | 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 1" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (if_statement "if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (param_3[1] != 0))" ( (binary_expression "(param_2 != (int *)0x0) && (param_3[1] != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_3[1] != 0)" ( (binary_expression "param_3[1] != 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" { (expression_statement "iVar3 = *param_2 + -1;" (assignment_expression "iVar3 = *param_2 + -1" identifier = (binary_expression "*param_2 + -1" (pointer_expression "*param_2" * identifier) + number_literal)) ;) (if_statement "if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" if (parenthesized_expression "((param_3[1] != 1) || (*param_3 != 0))" ( (binary_expression "(param_3[1] != 1) || (*param_3 != 0)" (parenthesized_expression "(param_3[1] != 1)" ( (binary_expression "param_3[1] != 1" (subscript_expression "param_3[1]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" { (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2[iVar3 * 0x11 + 0x11] = iVar2;" (assignment_expression "param_2[iVar3 * 0x11 + 0x11] = iVar2" (subscript_expression "param_2[iVar3 * 0x11 + 0x11]" identifier [ (binary_expression "iVar3 * 0x11 + 0x11" (binary_expression "iVar3 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" identifier = (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 0x44" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 | 2;" (assignment_expression "*pbVar1 = *pbVar1 | 2" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | 2" (pointer_expression "*pbVar1" * identifier) | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" identifier = (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" ( (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar3 * 0x44" identifier * number_literal)) + number_literal) )))) ;) (expression_statement "*pbVar1 = *pbVar1 | 1;" (assignment_expression "*pbVar1 = *pbVar1 | 1" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | 1" (pointer_expression "*pbVar1" * identifier) | number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (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) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (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) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002ff90(undefined4 param_1,int *param_2,int *param_3)" (identifier "FUN_0002ff90") (parameter_list "(undefined4 param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  \n  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }\n  return;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (if_statement "if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" (if "if") (parenthesized_expression "((param_2 != (int *)0x0) && (param_3[1] != 0))" (( "(") (binary_expression "(param_2 != (int *)0x0) && (param_3[1] != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_3[1] != 0)" (( "(") (binary_expression "param_3[1] != 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = *param_2 + -1;\n    if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }\n    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n    *pbVar1 = *pbVar1 | 1;\n  }" ({ "{") (expression_statement "iVar3 = *param_2 + -1;" (assignment_expression "iVar3 = *param_2 + -1" (identifier "iVar3") (= "=") (binary_expression "*param_2 + -1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((param_3[1] != 1) || (*param_3 != 0)) {\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" (if "if") (parenthesized_expression "((param_3[1] != 1) || (*param_3 != 0))" (( "(") (binary_expression "(param_3[1] != 1) || (*param_3 != 0)" (parenthesized_expression "(param_3[1] != 1)" (( "(") (binary_expression "param_3[1] != 1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar2 = FUN_00028a50();\n      param_2[iVar3 * 0x11 + 0x11] = iVar2;\n      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);\n      *pbVar1 = *pbVar1 | 2;\n      return;\n    }" ({ "{") (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" (identifier "iVar2") (= "=") (call_expression "FUN_00028a50()" (identifier "FUN_00028a50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_2[iVar3 * 0x11 + 0x11] = iVar2;" (assignment_expression "param_2[iVar3 * 0x11 + 0x11] = iVar2" (subscript_expression "param_2[iVar3 * 0x11 + 0x11]" (identifier "param_2") ([ "[") (binary_expression "iVar3 * 0x11 + 0x11" (binary_expression "iVar3 * 0x11" (identifier "iVar3") (* "*") (number_literal "0x11")) (+ "+") (number_literal "0x11")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" (( "(") (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (binary_expression "iVar3 * 0x44" (identifier "iVar3") (* "*") (number_literal "0x44"))) (+ "+") (number_literal "0x2d")) () ")")))) (; ";")) (expression_statement "*pbVar1 = *pbVar1 | 2;" (assignment_expression "*pbVar1 = *pbVar1 | 2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 | 2" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (| "|") (number_literal "2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);" (assignment_expression "pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)((int)param_2 + iVar3 * 0x44 + 0x2d)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + iVar3 * 0x44 + 0x2d)" (( "(") (binary_expression "(int)param_2 + iVar3 * 0x44 + 0x2d" (binary_expression "(int)param_2 + iVar3 * 0x44" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (binary_expression "iVar3 * 0x44" (identifier "iVar3") (* "*") (number_literal "0x44"))) (+ "+") (number_literal "0x2d")) () ")")))) (; ";")) (expression_statement "*pbVar1 = *pbVar1 | 1;" (assignment_expression "*pbVar1 = *pbVar1 | 1" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 | 1" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pParse,type_2 *var_1,type_3 *pIndexedBy)

{
  type_4 *puVar1;
  int var_3;
  char *pcVar3;
  
  if ((var_1 != (type_2 *)0x0) && (pIndexedBy->n != 0)) {
    var_3 = var_1->nSrc;
    if ((pIndexedBy->n != 1) || (pIndexedBy->z != (char *)0x0)) {
      pcVar3 = var_2(pParse->db,pIndexedBy);
      var_1->a[var_3 + -1].u1.zIndexedBy = pcVar3;
      puVar1 = &var_1->a[var_3 + -1].fg.field_0x1;
      *puVar1 = *puVar1 | 2;
      return;
    }
    puVar1 = &var_1->a[var_3 + -1].fg.field_0x1;
    *puVar1 = *puVar1 | 1;
  }
  return;
}


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

void __regparm3 MASKED(undefined4 param_1,int *param_2,int *param_3)

{
  byte *pbVar1;
  int iVar2;
  int iVar3;
  
  if ((param_2 != (int *)0x0) && (param_3[1] != 0)) {
    iVar3 = *param_2 + -1;
    if ((param_3[1] != 1) || (*param_3 != 0)) {
      iVar2 = FUN_00028a50();
      param_2[iVar3 * 0x11 + 0x11] = iVar2;
      pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);
      *pbVar1 = *pbVar1 | 2;
      return;
    }
    pbVar1 = (byte *)((int)param_2 + iVar3 * 0x44 + 0x2d);
    *pbVar1 = *pbVar1 | 1;
  }
  return;
}

