
IdList * __regparm3 sqlite3IdListDup(sqlite3 *db,IdList *p)

{
  IdList_item *pIVar1;
  IdList *p_00;
  IdList_item *pIVar2;
  char *pcVar3;
  int iVar4;
  u64 in_stack_ffffffd4;
  
  if (((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&
     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)) {
    p_00->nId = p->nId;
    if (db->mallocFailed == '\0') {
      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);
      p_00->a = pIVar2;
      if (pIVar2 != (IdList_item *)0x0) {
        iVar4 = 0;
        if (p->nId < 1) {
          return p_00;
        }
        while( true ) {
          pIVar1 = p->a;
          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);
          pIVar2[iVar4].zName = pcVar3;
          pIVar2[iVar4].idx = pIVar1[iVar4].idx;
          if (p->nId <= iVar4 + 1) break;
          pIVar2 = p_00->a;
          iVar4 = iVar4 + 1;
        }
        return p_00;
      }
    }
    else {
      p_00->a = (IdList_item *)0x0;
    }
    sqlite3DbFreeNN(db,p_00);
    return (IdList *)0x0;
  }
  return (IdList *)0x0;
}



int * __regparm3 FUN_000450a0(int param_1,int *param_2)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  
  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&
     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {
    piVar2[1] = param_2[1];
    if (*(char *)(param_1 + 0x4d) == '\0') {
      iVar3 = FUN_000444b0();
      *piVar2 = iVar3;
      if (iVar3 != 0) {
        iVar5 = 0;
        if (param_2[1] < 1) {
          return piVar2;
        }
        while( true ) {
          iVar1 = iVar5 * 8;
          iVar5 = iVar5 + 1;
          puVar6 = (undefined4 *)(iVar3 + iVar1);
          iVar3 = *param_2;
          uVar4 = FUN_00044980();
          *puVar6 = uVar4;
          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);
          if (param_2[1] <= iVar5) break;
          iVar3 = *piVar2;
        }
        return piVar2;
      }
    }
    else {
      *piVar2 = 0;
    }
    FUN_000428d0();
    return (int *)0x0;
  }
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
TEST EDX,EDX
JZ 0x00045150
CMP byte ptr [EAX + 0x4d],0x0
JNZ 0x00045150
MOV EDI,EDX
XOR ECX,ECX
MOV EDX,0x8
MOV ESI,EAX
MOV dword ptr [ESP + 0xc],EAX
CALL 0x000444b0
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JZ 0x00045150
MOV EDX,dword ptr [EDI + 0x4]
MOV dword ptr [EAX + 0x4],EDX
CMP byte ptr [ESI + 0x4d],0x0
JNZ 0x00045168
MOV EAX,dword ptr [ESP + 0xc]
XOR ECX,ECX
SHL EDX,0x3
CALL 0x000444b0
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [ECX],EAX
TEST EAX,EAX
JZ 0x0004516e
MOV EDX,dword ptr [EDI + 0x4]
XOR EBP,EBP
MOV ESI,EAX
TEST EDX,EDX
JG 0x00045116
JMP 0x0004513c
MOV EAX,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [EAX]
LEA EBX,[EBP*0x8 + 0x0]
MOV EAX,dword ptr [ESP + 0xc]
ADD EBP,0x1
ADD ESI,EBX
ADD EBX,dword ptr [EDI]
MOV EDX,dword ptr [EBX]
CALL 0x00044980
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EBX + 0x4]
MOV dword ptr [ESI + 0x4],EAX
CMP dword ptr [EDI + 0x4],EBP
JG 0x00045110
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EAX],0x0
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x000428d0
MOV dword ptr [ESP + 0x8],0x0
JMP 0x0004513c
(translation_unit "int * __regparm3 FUN_000450a0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_000450a0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000450a0(int param_1,int *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000450a0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" if (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0))" ( (binary_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0'))" ( (binary_expression "(param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\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 "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" ( (comma_expression "piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_000444b0()" identifier = (cast_expression "(int *)FUN_000444b0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000444b0()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" { (expression_statement "piVar2[1] = param_2[1];" (assignment_expression "piVar2[1] = param_2[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }" { (expression_statement "iVar3 = FUN_000444b0();" (assignment_expression "iVar3 = FUN_000444b0()" identifier = (call_expression "FUN_000444b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_2[1] < 1) {\n          return piVar2;\n        }" if (parenthesized_expression "(param_2[1] < 1)" ( (binary_expression "param_2[1] < 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          return piVar2;\n        }" { (return_statement "return piVar2;" return identifier ;) })) (while_statement "while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" { (expression_statement "iVar1 = iVar5 * 8;" (assignment_expression "iVar1 = iVar5 * 8" identifier = (binary_expression "iVar5 * 8" identifier * number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar1);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar1)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar1)" ( (binary_expression "iVar3 + iVar1" identifier + identifier) )))) ;) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar4 = FUN_00044980();" (assignment_expression "uVar4 = FUN_00044980()" identifier = (call_expression "FUN_00044980()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);" (assignment_expression "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4)" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3 + 4)" ( (binary_expression "iVar1 + iVar3 + 4" (binary_expression "iVar1 + iVar3" identifier + identifier) + number_literal) ))))) ;) (if_statement "if (param_2[1] <= iVar5) break;" if (parenthesized_expression "(param_2[1] <= iVar5)" ( (binary_expression "param_2[1] <= iVar5" (subscript_expression "param_2[1]" identifier [ number_literal ]) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (return_statement "return piVar2;" return identifier ;) })) }) (else_clause "else {\n      *piVar2 = 0;\n    }" else (compound_statement "{\n      *piVar2 = 0;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (expression_statement "FUN_000428d0();" (call_expression "FUN_000428d0()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "IdList * __regparm3 sqlite3IdListDup(sqlite3 *db,IdList *p)\n\n{\n  IdList_item *pIVar1;\n  IdList *p_00;\n  IdList_item *pIVar2;\n  char *pcVar3;\n  int iVar4;\n  u64 in_stack_ffffffd4;\n  \n  if (((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&\n     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)) {\n    p_00->nId = p->nId;\n    if (db->mallocFailed == '\0') {\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }\n    else {\n      p_00->a = (IdList_item *)0x0;\n    }\n    sqlite3DbFreeNN(db,p_00);\n    return (IdList *)0x0;\n  }\n  return (IdList *)0x0;\n}\n\n" (ERROR "IdList * __regparm3 sqlite3IdListDup(sqlite3 *db,IdList *p)" (binary_expression "IdList * __regparm3 sqlite3IdListDup(sqlite3 *db,IdList *p)" identifier * (ERROR "__regparm3" identifier) (call_expression "sqlite3IdListDup(sqlite3 *db,IdList *p)" identifier (argument_list "(sqlite3 *db,IdList *p)" ( (binary_expression "sqlite3 *db" identifier * identifier) , (binary_expression "IdList *p" identifier * identifier) ))))) (compound_statement "{\n  IdList_item *pIVar1;\n  IdList *p_00;\n  IdList_item *pIVar2;\n  char *pcVar3;\n  int iVar4;\n  u64 in_stack_ffffffd4;\n  \n  if (((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&\n     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)) {\n    p_00->nId = p->nId;\n    if (db->mallocFailed == '\0') {\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }\n    else {\n      p_00->a = (IdList_item *)0x0;\n    }\n    sqlite3DbFreeNN(db,p_00);\n    return (IdList *)0x0;\n  }\n  return (IdList *)0x0;\n}" { (declaration "IdList_item *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "IdList *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "IdList_item *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffd4;" type_identifier identifier ;) (if_statement "if (((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&\n     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)) {\n    p_00->nId = p->nId;\n    if (db->mallocFailed == '\0') {\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }\n    else {\n      p_00->a = (IdList_item *)0x0;\n    }\n    sqlite3DbFreeNN(db,p_00);\n    return (IdList *)0x0;\n  }" if (parenthesized_expression "(((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&\n     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0))" ( (binary_expression "((p != (IdList *)0x0) && (db->mallocFailed == '\0')) &&\n     (p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)" (parenthesized_expression "((p != (IdList *)0x0) && (db->mallocFailed == '\0'))" ( (binary_expression "(p != (IdList *)0x0) && (db->mallocFailed == '\0')" (parenthesized_expression "(p != (IdList *)0x0)" ( (binary_expression "p != (IdList *)0x0" identifier != (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(db->mallocFailed == '\0')" ( (binary_expression "db->mallocFailed == '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0)" ( (comma_expression "p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4), p_00 != (IdList *)0x0" (assignment_expression "p_00 = (IdList *)dbMallocRawFinish(db,in_stack_ffffffd4)" identifier = (cast_expression "(IdList *)dbMallocRawFinish(db,in_stack_ffffffd4)" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db,in_stack_ffffffd4)" identifier (argument_list "(db,in_stack_ffffffd4)" ( identifier , identifier ))))) , (binary_expression "p_00 != (IdList *)0x0" identifier != (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    p_00->nId = p->nId;\n    if (db->mallocFailed == '\0') {\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }\n    else {\n      p_00->a = (IdList_item *)0x0;\n    }\n    sqlite3DbFreeNN(db,p_00);\n    return (IdList *)0x0;\n  }" { (expression_statement "p_00->nId = p->nId;" (assignment_expression "p_00->nId = p->nId" (field_expression "p_00->nId" identifier -> field_identifier) = (field_expression "p->nId" identifier -> field_identifier)) ;) (if_statement "if (db->mallocFailed == '\0') {\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }\n    else {\n      p_00->a = (IdList_item *)0x0;\n    }" if (parenthesized_expression "(db->mallocFailed == '\0')" ( (binary_expression "db->mallocFailed == '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);\n      p_00->a = pIVar2;\n      if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }\n    }" { (expression_statement "pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4);" (assignment_expression "pIVar2 = (IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4)" identifier = (cast_expression "(IdList_item *)dbMallocRawFinish(db,in_stack_ffffffd4)" ( (type_descriptor "IdList_item *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db,in_stack_ffffffd4)" identifier (argument_list "(db,in_stack_ffffffd4)" ( identifier , identifier ))))) ;) (expression_statement "p_00->a = pIVar2;" (assignment_expression "p_00->a = pIVar2" (field_expression "p_00->a" identifier -> field_identifier) = identifier) ;) (if_statement "if (pIVar2 != (IdList_item *)0x0) {\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }" if (parenthesized_expression "(pIVar2 != (IdList_item *)0x0)" ( (binary_expression "pIVar2 != (IdList_item *)0x0" identifier != (cast_expression "(IdList_item *)0x0" ( (type_descriptor "IdList_item *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar4 = 0;\n        if (p->nId < 1) {\n          return p_00;\n        }\n        while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }\n        return p_00;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (p->nId < 1) {\n          return p_00;\n        }" if (parenthesized_expression "(p->nId < 1)" ( (binary_expression "p->nId < 1" (field_expression "p->nId" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n          return p_00;\n        }" { (return_statement "return p_00;" return identifier ;) })) (while_statement "while( true ) {\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          pIVar1 = p->a;\n          pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);\n          pIVar2[iVar4].zName = pcVar3;\n          pIVar2[iVar4].idx = pIVar1[iVar4].idx;\n          if (p->nId <= iVar4 + 1) break;\n          pIVar2 = p_00->a;\n          iVar4 = iVar4 + 1;\n        }" { (expression_statement "pIVar1 = p->a;" (assignment_expression "pIVar1 = p->a" identifier = (field_expression "p->a" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName);" (assignment_expression "pcVar3 = sqlite3DbStrDup(db,pIVar1[iVar4].zName)" identifier = (call_expression "sqlite3DbStrDup(db,pIVar1[iVar4].zName)" identifier (argument_list "(db,pIVar1[iVar4].zName)" ( identifier , (field_expression "pIVar1[iVar4].zName" (subscript_expression "pIVar1[iVar4]" identifier [ identifier ]) . field_identifier) )))) ;) (expression_statement "pIVar2[iVar4].zName = pcVar3;" (assignment_expression "pIVar2[iVar4].zName = pcVar3" (field_expression "pIVar2[iVar4].zName" (subscript_expression "pIVar2[iVar4]" identifier [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pIVar2[iVar4].idx = pIVar1[iVar4].idx;" (assignment_expression "pIVar2[iVar4].idx = pIVar1[iVar4].idx" (field_expression "pIVar2[iVar4].idx" (subscript_expression "pIVar2[iVar4]" identifier [ identifier ]) . field_identifier) = (field_expression "pIVar1[iVar4].idx" (subscript_expression "pIVar1[iVar4]" identifier [ identifier ]) . field_identifier)) ;) (if_statement "if (p->nId <= iVar4 + 1) break;" if (parenthesized_expression "(p->nId <= iVar4 + 1)" ( (binary_expression "p->nId <= iVar4 + 1" (field_expression "p->nId" identifier -> field_identifier) <= (binary_expression "iVar4 + 1" identifier + number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pIVar2 = p_00->a;" (assignment_expression "pIVar2 = p_00->a" identifier = (field_expression "p_00->a" identifier -> field_identifier)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) })) (return_statement "return p_00;" return identifier ;) })) }) (else_clause "else {\n      p_00->a = (IdList_item *)0x0;\n    }" else (compound_statement "{\n      p_00->a = (IdList_item *)0x0;\n    }" { (expression_statement "p_00->a = (IdList_item *)0x0;" (assignment_expression "p_00->a = (IdList_item *)0x0" (field_expression "p_00->a" identifier -> field_identifier) = (cast_expression "(IdList_item *)0x0" ( (type_descriptor "IdList_item *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "sqlite3DbFreeNN(db,p_00);" (call_expression "sqlite3DbFreeNN(db,p_00)" identifier (argument_list "(db,p_00)" ( identifier , identifier ))) ;) (return_statement "return (IdList *)0x0;" return (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (IdList *)0x0;" return (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int * __regparm3 FUN_000450a0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_000450a0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000450a0(int param_1,int *param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000450a0(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" if (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0))" ( (binary_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0'))" ( (binary_expression "(param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\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 "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" ( (comma_expression "piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_000444b0()" identifier = (cast_expression "(int *)FUN_000444b0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000444b0()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" { (expression_statement "piVar2[1] = param_2[1];" (assignment_expression "piVar2[1] = param_2[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }" { (expression_statement "iVar3 = FUN_000444b0();" (assignment_expression "iVar3 = FUN_000444b0()" identifier = (call_expression "FUN_000444b0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (param_2[1] < 1) {\n          return piVar2;\n        }" if (parenthesized_expression "(param_2[1] < 1)" ( (binary_expression "param_2[1] < 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          return piVar2;\n        }" { (return_statement "return piVar2;" return identifier ;) })) (while_statement "while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" { (expression_statement "iVar1 = iVar5 * 8;" (assignment_expression "iVar1 = iVar5 * 8" identifier = (binary_expression "iVar5 * 8" identifier * number_literal)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar1);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar1)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar1)" ( (binary_expression "iVar3 + iVar1" identifier + identifier) )))) ;) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar4 = FUN_00044980();" (assignment_expression "uVar4 = FUN_00044980()" identifier = (call_expression "FUN_00044980()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);" (assignment_expression "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4)" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar1 + iVar3 + 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3 + 4)" ( (binary_expression "iVar1 + iVar3 + 4" (binary_expression "iVar1 + iVar3" identifier + identifier) + number_literal) ))))) ;) (if_statement "if (param_2[1] <= iVar5) break;" if (parenthesized_expression "(param_2[1] <= iVar5)" ( (binary_expression "param_2[1] <= iVar5" (subscript_expression "param_2[1]" identifier [ number_literal ]) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (return_statement "return piVar2;" return identifier ;) })) }) (else_clause "else {\n      *piVar2 = 0;\n    }" else (compound_statement "{\n      *piVar2 = 0;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) }))) (expression_statement "FUN_000428d0();" (call_expression "FUN_000428d0()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * __regparm3 FUN_000450a0(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_000450a0(int param_1,int *param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000450a0(int param_1,int *param_2)" (identifier "FUN_000450a0") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  \n  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0))" (( "(") (binary_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&\n     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0'))" (( "(") (binary_expression "(param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\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 "(*(char *)(param_1 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" (* "*") (cast_expression "(char *)(param_1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4d)" (( "(") (binary_expression "param_1 + 0x4d" (identifier "param_1") (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)" (( "(") (comma_expression "piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_000444b0()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_000444b0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000444b0()" (identifier "FUN_000444b0") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    piVar2[1] = param_2[1];\n    if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }\n    FUN_000428d0();\n    return (int *)0x0;\n  }" ({ "{") (expression_statement "piVar2[1] = param_2[1];" (assignment_expression "piVar2[1] = param_2[1]" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x4d) == '\0') {\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }\n    else {\n      *piVar2 = 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x4d) == '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" (* "*") (cast_expression "(char *)(param_1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4d)" (( "(") (binary_expression "param_1 + 0x4d" (identifier "param_1") (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar3 = FUN_000444b0();\n      *piVar2 = iVar3;\n      if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_000444b0();" (assignment_expression "iVar3 = FUN_000444b0()" (identifier "iVar3") (= "=") (call_expression "FUN_000444b0()" (identifier "FUN_000444b0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = 0;\n        if (param_2[1] < 1) {\n          return piVar2;\n        }\n        while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }\n        return piVar2;\n      }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2[1] < 1) {\n          return piVar2;\n        }" (if "if") (parenthesized_expression "(param_2[1] < 1)" (( "(") (binary_expression "param_2[1] < 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          return piVar2;\n        }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (while_statement "while( true ) {\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar1 = iVar5 * 8;\n          iVar5 = iVar5 + 1;\n          puVar6 = (undefined4 *)(iVar3 + iVar1);\n          iVar3 = *param_2;\n          uVar4 = FUN_00044980();\n          *puVar6 = uVar4;\n          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);\n          if (param_2[1] <= iVar5) break;\n          iVar3 = *piVar2;\n        }" ({ "{") (expression_statement "iVar1 = iVar5 * 8;" (assignment_expression "iVar1 = iVar5 * 8" (identifier "iVar1") (= "=") (binary_expression "iVar5 * 8" (identifier "iVar5") (* "*") (number_literal "8"))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar1);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar1)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(iVar3 + iVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar1)" (( "(") (binary_expression "iVar3 + iVar1" (identifier "iVar3") (+ "+") (identifier "iVar1")) () ")")))) (; ";")) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar4 = FUN_00044980();" (assignment_expression "uVar4 = FUN_00044980()" (identifier "uVar4") (= "=") (call_expression "FUN_00044980()" (identifier "FUN_00044980") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);" (assignment_expression "puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4)" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar1 + iVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar3 + 4)" (( "(") (binary_expression "iVar1 + iVar3 + 4" (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (param_2[1] <= iVar5) break;" (if "if") (parenthesized_expression "(param_2[1] <= iVar5)" (( "(") (binary_expression "param_2[1] <= iVar5" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "iVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *piVar2 = 0;\n    }" (else "else") (compound_statement "{\n      *piVar2 = 0;\n    }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "FUN_000428d0();" (call_expression "FUN_000428d0()" (identifier "FUN_000428d0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_2 * __regparm3 sqlite3IdListDup(sqlite3 *db,type_2 *var_1)

{
  type_1 *pIVar1;
  type_2 *var_3;
  type_1 *var_4;
  char *pcVar3;
  int var_6;
  type_3 in_stack_ffffffd4;
  
  if (((var_1 != (type_2 *)0x0) && (db->mallocFailed == '\0')) &&
     (var_3 = (type_2 *)var_2(db,in_stack_ffffffd4), var_3 != (type_2 *)0x0)) {
    var_3->nId = var_1->nId;
    if (db->mallocFailed == '\0') {
      var_4 = (type_1 *)var_2(db,in_stack_ffffffd4);
      var_3->a = var_4;
      if (var_4 != (type_1 *)0x0) {
        var_6 = 0;
        if (var_1->nId < 1) {
          return var_3;
        }
        while( true ) {
          pIVar1 = var_1->a;
          pcVar3 = var_5(db,pIVar1[var_6].zName);
          var_4[var_6].zName = pcVar3;
          var_4[var_6].idx = pIVar1[var_6].idx;
          if (var_1->nId <= var_6 + 1) break;
          var_4 = var_3->a;
          var_6 = var_6 + 1;
        }
        return var_3;
      }
    }
    else {
      var_3->a = (type_1 *)0x0;
    }
    var_7(db,var_3);
    return (type_2 *)0x0;
  }
  return (type_2 *)0x0;
}


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

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

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  
  if (((param_2 != (int *)0x0) && (*(char *)(param_1 + 0x4d) == '\0')) &&
     (piVar2 = (int *)FUN_000444b0(), piVar2 != (int *)0x0)) {
    piVar2[1] = param_2[1];
    if (*(char *)(param_1 + 0x4d) == '\0') {
      iVar3 = FUN_000444b0();
      *piVar2 = iVar3;
      if (iVar3 != 0) {
        iVar5 = 0;
        if (param_2[1] < 1) {
          return piVar2;
        }
        while( true ) {
          iVar1 = iVar5 * 8;
          iVar5 = iVar5 + 1;
          puVar6 = (undefined4 *)(iVar3 + iVar1);
          iVar3 = *param_2;
          uVar4 = FUN_00044980();
          *puVar6 = uVar4;
          puVar6[1] = *(undefined4 *)(iVar1 + iVar3 + 4);
          if (param_2[1] <= iVar5) break;
          iVar3 = *piVar2;
        }
        return piVar2;
      }
    }
    else {
      *piVar2 = 0;
    }
    FUN_000428d0();
    return (int *)0x0;
  }
  return (int *)0x0;
}

