
char * sqlite3Fts5Strndup(int *pRc,char *pIn,int nIn)

{
  void *pvVar1;
  char *pcVar2;
  
  if (*pRc != 0) {
    return (char *)0x0;
  }
  if (nIn < 0) {
    nIn = (*(code *)PTR_strlen_00190d80)(pIn);
    pvVar1 = sqlite3_malloc(nIn + 1);
  }
  else {
    pvVar1 = sqlite3_malloc(nIn + 1);
  }
  if (pvVar1 != (void *)0x0) {
    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);
    pcVar2[nIn] = '\0';
    return pcVar2;
  }
  *pRc = 7;
  return (char *)0x0;
}



int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  if (*param_1 != 0) {
    return 0;
  }
  if (param_3 < 0) {
    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);
    iVar1 = sqlite3_malloc(param_3 + 1);
  }
  else {
    iVar1 = sqlite3_malloc(param_3 + 1);
  }
  if (iVar1 != 0) {
    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);
    *(undefined1 *)(iVar1 + param_3) = 0;
    return iVar1;
  }
  *param_1 = 7;
  return 0;
}


lui gp,0x12
addiu gp,gp,0x4970
addu gp,gp,t9
lw v0,0x0(a0)
bne v0,zero,0x00074094
_or v1,zero,zero
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a1,zero
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a2,zero
bltz a2,0x00074044
_sw ra,0x24(sp)
lw t9,-0x7f3c(gp)
bal 0x000739e4
_addiu a0,s0,0x1
lw gp,0x10(sp)
beq v0,zero,0x00074070
_or v1,v0,zero
lw t9,-0x7af4(gp)
or a2,s0,zero
or a1,s2,zero
jalr t9
_or a0,v0,zero
addu s0,v0,s0
or v1,v0,zero
or v0,v1,zero
sb zero,0x0(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7ba0(gp)
jalr t9
_or a0,a1,zero
lw gp,0x10(sp)
or s0,v0,zero
lw t9,-0x7f3c(gp)
bal 0x000739e4
_addiu a0,s0,0x1
lw gp,0x10(sp)
bne v0,zero,0x00074008
_or v1,v0,zero
li v0,0x7
sw v0,0x0(s1)
or v0,v1,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,v1,zero
(translation_unit "int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}\n\n" (function_definition "int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" primitive_type (function_declarator "FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" { (expression_statement "param_3 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "param_3 = (*(code *)PTR_strlen_00190d80)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" identifier = (call_expression "sqlite3_malloc(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" else (compound_statement "{\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" { (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" identifier = (call_expression "sqlite3_malloc(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" * (cast_expression "(undefined1 *)(iVar1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3)" ( (binary_expression "iVar1 + param_3" identifier + identifier) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "char * sqlite3Fts5Strndup(int *pRc,char *pIn,int nIn)\n\n{\n  void *pvVar1;\n  char *pcVar2;\n  \n  if (*pRc != 0) {\n    return (char *)0x0;\n  }\n  if (nIn < 0) {\n    nIn = (*(code *)PTR_strlen_00190d80)(pIn);\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  else {\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  if (pvVar1 != (void *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);\n    pcVar2[nIn] = '\0';\n    return pcVar2;\n  }\n  *pRc = 7;\n  return (char *)0x0;\n}\n\n" (function_definition "char * sqlite3Fts5Strndup(int *pRc,char *pIn,int nIn)\n\n{\n  void *pvVar1;\n  char *pcVar2;\n  \n  if (*pRc != 0) {\n    return (char *)0x0;\n  }\n  if (nIn < 0) {\n    nIn = (*(code *)PTR_strlen_00190d80)(pIn);\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  else {\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  if (pvVar1 != (void *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);\n    pcVar2[nIn] = '\0';\n    return pcVar2;\n  }\n  *pRc = 7;\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* sqlite3Fts5Strndup(int *pRc,char *pIn,int nIn)" * (function_declarator "sqlite3Fts5Strndup(int *pRc,char *pIn,int nIn)" identifier (parameter_list "(int *pRc,char *pIn,int nIn)" ( (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) , (parameter_declaration "char *pIn" primitive_type (pointer_declarator "*pIn" * identifier)) , (parameter_declaration "int nIn" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  char *pcVar2;\n  \n  if (*pRc != 0) {\n    return (char *)0x0;\n  }\n  if (nIn < 0) {\n    nIn = (*(code *)PTR_strlen_00190d80)(pIn);\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  else {\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  if (pvVar1 != (void *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);\n    pcVar2[nIn] = '\0';\n    return pcVar2;\n  }\n  *pRc = 7;\n  return (char *)0x0;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (*pRc != 0) {\n    return (char *)0x0;\n  }" if (parenthesized_expression "(*pRc != 0)" ( (binary_expression "*pRc != 0" (pointer_expression "*pRc" * identifier) != number_literal) )) (compound_statement "{\n    return (char *)0x0;\n  }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (nIn < 0) {\n    nIn = (*(code *)PTR_strlen_00190d80)(pIn);\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }\n  else {\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }" if (parenthesized_expression "(nIn < 0)" ( (binary_expression "nIn < 0" identifier < number_literal) )) (compound_statement "{\n    nIn = (*(code *)PTR_strlen_00190d80)(pIn);\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }" { (expression_statement "nIn = (*(code *)PTR_strlen_00190d80)(pIn);" (assignment_expression "nIn = (*(code *)PTR_strlen_00190d80)(pIn)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(pIn)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pIn)" ( identifier )))) ;) (expression_statement "pvVar1 = sqlite3_malloc(nIn + 1);" (assignment_expression "pvVar1 = sqlite3_malloc(nIn + 1)" identifier = (call_expression "sqlite3_malloc(nIn + 1)" identifier (argument_list "(nIn + 1)" ( (binary_expression "nIn + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }" else (compound_statement "{\n    pvVar1 = sqlite3_malloc(nIn + 1);\n  }" { (expression_statement "pvVar1 = sqlite3_malloc(nIn + 1);" (assignment_expression "pvVar1 = sqlite3_malloc(nIn + 1)" identifier = (call_expression "sqlite3_malloc(nIn + 1)" identifier (argument_list "(nIn + 1)" ( (binary_expression "nIn + 1" identifier + number_literal) )))) ;) }))) (if_statement "if (pvVar1 != (void *)0x0) {\n    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);\n    pcVar2[nIn] = '\0';\n    return pcVar2;\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);\n    pcVar2[nIn] = '\0';\n    return pcVar2;\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn)" identifier = (cast_expression "(char *)(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_00190e2c)(pvVar1,pIn,nIn)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar1,pIn,nIn)" ( identifier , identifier , identifier ))))) ;) (expression_statement "pcVar2[nIn] = '\0';" (assignment_expression "pcVar2[nIn] = '\0'" (subscript_expression "pcVar2[nIn]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "*pRc = 7;" (assignment_expression "*pRc = 7" (pointer_expression "*pRc" * identifier) = number_literal) ;) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}\n\n" (function_definition "int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" primitive_type (function_declarator "FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" { (expression_statement "param_3 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "param_3 = (*(code *)PTR_strlen_00190d80)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" ( (pointer_expression "*(code *)PTR_strlen_00190d80" * (cast_expression "(code *)PTR_strlen_00190d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" identifier = (call_expression "sqlite3_malloc(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" else (compound_statement "{\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" { (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" identifier = (call_expression "sqlite3_malloc(param_3 + 1)" identifier (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) }))) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" identifier = (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" ( (pointer_expression "*(code *)PTR_memcpy_00190e2c" * (cast_expression "(code *)PTR_memcpy_00190e2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" * (cast_expression "(undefined1 *)(iVar1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3)" ( (binary_expression "iVar1 + param_3" identifier + identifier) )))) = number_literal) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00073fb0(int *param_1,undefined4 param_2,int param_3)" (identifier "FUN_00073fb0") (parameter_list "(int *param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*param_1 != 0) {\n    return 0;\n  }\n  if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }\n  *param_1 = 7;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*param_1 != 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_3 < 0) {\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }\n  else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" ({ "{") (expression_statement "param_3 = (*(code *)PTR_strlen_00190d80)(param_2);" (assignment_expression "param_3 = (*(code *)PTR_strlen_00190d80)(param_2)" (identifier "param_3") (= "=") (call_expression "(*(code *)PTR_strlen_00190d80)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00190d80)" (( "(") (pointer_expression "*(code *)PTR_strlen_00190d80" (* "*") (cast_expression "(code *)PTR_strlen_00190d80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00190d80"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" (identifier "iVar1") (= "=") (call_expression "sqlite3_malloc(param_3 + 1)" (identifier "sqlite3_malloc") (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" (else "else") (compound_statement "{\n    iVar1 = sqlite3_malloc(param_3 + 1);\n  }" ({ "{") (expression_statement "iVar1 = sqlite3_malloc(param_3 + 1);" (assignment_expression "iVar1 = sqlite3_malloc(param_3 + 1)" (identifier "iVar1") (= "=") (call_expression "sqlite3_malloc(param_3 + 1)" (identifier "sqlite3_malloc") (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);\n    *(undefined1 *)(iVar1 + param_3) = 0;\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);" (assignment_expression "iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_00190e2c)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00190e2c" (* "*") (cast_expression "(code *)PTR_memcpy_00190e2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00190e2c"))) () ")")) (argument_list "(iVar1,param_2,param_3)" (( "(") (identifier "iVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + param_3) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3)" (* "*") (cast_expression "(undefined1 *)(iVar1 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_3)" (( "(") (binary_expression "iVar1 + param_3" (identifier "iVar1") (+ "+") (identifier "param_3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "7")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))))

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

{
  int iVar1;
  
  if (*param_1 != 0) {
    return 0;
  }
  if (param_3 < 0) {
    param_3 = (*(code *)PTR_strlen_00190d80)(param_2);
    iVar1 = sqlite3_malloc(param_3 + 1);
  }
  else {
    iVar1 = sqlite3_malloc(param_3 + 1);
  }
  if (iVar1 != 0) {
    iVar1 = (*(code *)PTR_memcpy_00190e2c)(iVar1,param_2,param_3);
    *(undefined1 *)(iVar1 + param_3) = 0;
    return iVar1;
  }
  *param_1 = 7;
  return 0;
}

