
Expr * sqlite3Expr(sqlite3 *db,int op,char *zToken)

{
  sqlite3 *db_00;
  uint uVar1;
  Expr *pEVar2;
  void *pvVar3;
  char *pcVar4;
  undefined4 *puVar5;
  undefined4 *puVar6;
  int iVar7;
  undefined *puVar8;
  undefined4 in_stack_ffffffa4;
  Token x;
  
  puVar8 = PTR___stack_chk_guard_0015ba2c;
  db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c;
  x.z = zToken;
  if (zToken == (char *)0x0) {
    x.n = 0;
  }
  else {
    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);
    x.n = uVar1 & 0x3fffffff;
  }
  pEVar2 = sqlite3ExprAlloc(db,op,&x,0);
  if (db_00 == *(sqlite3 **)puVar8) {
    return pEVar2;
  }
  puVar8 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  puVar8 = puVar8 + 0x134ed8;
  if ((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&
     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),
     pEVar2 != (Expr *)0x0)) {
    pEVar2->flags = *(u32 *)(op + 4);
    if (db_00->mallocFailed == '\0') {
      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));
      *(void **)pEVar2 = pvVar3;
      if (pvVar3 != (void *)0x0) {
        if (0 < *(int *)(op + 4)) {
          iVar7 = 0;
          while( true ) {
            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);
            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);
            iVar7 = iVar7 + 1;
            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);
            *puVar5 = pcVar4;
            puVar5[1] = puVar6[1];
            if (*(int *)(op + 4) <= iVar7) break;
            pvVar3 = *(void **)pEVar2;
          }
        }
        return pEVar2;
      }
    }
    else {
      pEVar2->op = '\0';
      pEVar2->affinity = '\0';
      *(undefined2 *)&pEVar2->field_0x2 = 0;
    }
                    /* WARNING: Subroutine does not return */
    sqlite3DbFreeNN(db_00,pEVar2);
  }
  return (Expr *)0x0;
}



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

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  int iVar8;
  int local_1c;
  uint local_18;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;
  local_1c = param_3;
  if (param_3 == 0) {
    local_18 = 0;
  }
  else {
    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);
    local_18 = local_18 & 0x3fffffff;
  }
  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);
  if (local_14 != *(int *)puVar1) {
    iVar5 = local_14;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&
       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {
      piVar2[1] = param_2[1];
      if (*(char *)(iVar5 + 0x51) == '\0') {
        iVar3 = FUN_0002d4f0(iVar5);
        *piVar2 = iVar3;
        if (iVar3 != 0) {
          if (param_2[1] < 1) {
            return piVar2;
          }
          iVar8 = 0;
          while( true ) {
            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);
            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);
            iVar8 = iVar8 + 1;
            uVar4 = FUN_0002dc60(iVar5,*puVar7);
            *puVar6 = uVar4;
            puVar6[1] = puVar7[1];
            if (param_2[1] <= iVar8) break;
            iVar3 = *piVar2;
          }
          return piVar2;
        }
      }
      else {
        *piVar2 = 0;
      }
      FUN_0002a924(iVar5,piVar2);
      return (int *)0x0;
    }
    return (int *)0x0;
  }
  return piVar2;
}


lui gp,0x13
addiu gp,gp,0x4f80
addu gp,gp,t9
addiu sp,sp,-0x38
sw s0,0x2c(sp)
sw s1,0x30(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x34(sp)
lw s0,-0x7b84(gp)
sw a2,0x1c(sp)
lw v0,0x0(s0)
sw v0,0x24(sp)
beq a2,zero,0x0002e6c4
_lw t9,-0x7bec(gp)
or a0,a2,zero
jalr t9
_sw a1,0x3c(sp)
lw gp,0x10(sp)
ext v0,v0,0x0,0x1e
lw a1,0x3c(sp)
lw t9,-0x7ed8(gp)
or a3,zero,zero
addiu a2,sp,0x1c
sw v0,0x20(sp)
addiu t9,t9,-0x1cc0
bal 0x0002e340
_or a0,s1,zero
lw a0,0x24(sp)
lw v1,0x0(s0)
bne a0,v1,0x0002e6cc
_lw gp,0x10(sp)
lw ra,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x38
b 0x0002e684
_or v0,zero,zero
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "int * FUN_0002e630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}\n\n" (function_definition "int * FUN_0002e630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" * (function_declarator "FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * 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) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" identifier = identifier) ;) (if_statement "if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_18 = 0;\n  }" { (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" else (compound_statement "{\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" { (expression_statement "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);" (assignment_expression "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_18 = local_18 & 0x3fffffff;" (assignment_expression "local_18 = local_18 & 0x3fffffff" identifier = (binary_expression "local_18 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);" (assignment_expression "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0)" identifier = (cast_expression "(int *)FUN_0002e340(param_1,param_2,&local_1c,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e340(param_1,param_2,&local_1c,0)" identifier (argument_list "(param_1,param_2,&local_1c,0)" ( identifier , identifier , (pointer_expression "&local_1c" & identifier) , number_literal ))))) ;) (if_statement "if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar1)" ( (binary_expression "local_14 != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" { (expression_statement "iVar5 = local_14;" (assignment_expression "iVar5 = local_14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0))" ( (binary_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0'))" ( (binary_expression "(param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\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 *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" ( (comma_expression "piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_0002d4f0()" identifier = (cast_expression "(int *)FUN_0002d4f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d4f0()" 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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }" { (expression_statement "iVar3 = FUN_0002d4f0(iVar5);" (assignment_expression "iVar3 = FUN_0002d4f0(iVar5)" identifier = (call_expression "FUN_0002d4f0(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }" { (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 ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" { (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar8 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar8 * 8)" ( (binary_expression "iVar3 + iVar8 * 8" identifier + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);" (assignment_expression "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8)" identifier = (cast_expression "(undefined4 *)(*param_2 + iVar8 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar8 * 8)" ( (binary_expression "*param_2 + iVar8 * 8" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = FUN_0002dc60(iVar5,*puVar7);" (assignment_expression "uVar4 = FUN_0002dc60(iVar5,*puVar7)" identifier = (call_expression "FUN_0002dc60(iVar5,*puVar7)" identifier (argument_list "(iVar5,*puVar7)" ( identifier , (pointer_expression "*puVar7" * identifier) )))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = puVar7[1];" (assignment_expression "puVar6[1] = puVar7[1]" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2[1] <= iVar8) break;" if (parenthesized_expression "(param_2[1] <= iVar8)" ( (binary_expression "param_2[1] <= iVar8" (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_0002a924(iVar5,piVar2);" (call_expression "FUN_0002a924(iVar5,piVar2)" identifier (argument_list "(iVar5,piVar2)" ( identifier , identifier ))) ;) (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) ;) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "Expr * sqlite3Expr(sqlite3 *db,int op,char *zToken)\n\n{\n  sqlite3 *db_00;\n  uint uVar1;\n  Expr *pEVar2;\n  void *pvVar3;\n  char *pcVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 in_stack_ffffffa4;\n  Token x;\n  \n  puVar8 = PTR___stack_chk_guard_0015ba2c;\n  db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c;\n  x.z = zToken;\n  if (zToken == (char *)0x0) {\n    x.n = 0;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }\n  pEVar2 = sqlite3ExprAlloc(db,op,&x,0);\n  if (db_00 == *(sqlite3 **)puVar8) {\n    return pEVar2;\n  }\n  puVar8 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar8 = puVar8 + 0x134ed8;\n  if ((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)) {\n    pEVar2->flags = *(u32 *)(op + 4);\n    if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(db_00,pEVar2);\n  }\n  return (Expr *)0x0;\n}\n\n" (function_definition "Expr * sqlite3Expr(sqlite3 *db,int op,char *zToken)\n\n{\n  sqlite3 *db_00;\n  uint uVar1;\n  Expr *pEVar2;\n  void *pvVar3;\n  char *pcVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 in_stack_ffffffa4;\n  Token x;\n  \n  puVar8 = PTR___stack_chk_guard_0015ba2c;\n  db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c;\n  x.z = zToken;\n  if (zToken == (char *)0x0) {\n    x.n = 0;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }\n  pEVar2 = sqlite3ExprAlloc(db,op,&x,0);\n  if (db_00 == *(sqlite3 **)puVar8) {\n    return pEVar2;\n  }\n  puVar8 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar8 = puVar8 + 0x134ed8;\n  if ((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)) {\n    pEVar2->flags = *(u32 *)(op + 4);\n    if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(db_00,pEVar2);\n  }\n  return (Expr *)0x0;\n}" type_identifier (pointer_declarator "* sqlite3Expr(sqlite3 *db,int op,char *zToken)" * (function_declarator "sqlite3Expr(sqlite3 *db,int op,char *zToken)" identifier (parameter_list "(sqlite3 *db,int op,char *zToken)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int op" primitive_type identifier) , (parameter_declaration "char *zToken" primitive_type (pointer_declarator "*zToken" * identifier)) )))) (compound_statement "{\n  sqlite3 *db_00;\n  uint uVar1;\n  Expr *pEVar2;\n  void *pvVar3;\n  char *pcVar4;\n  undefined4 *puVar5;\n  undefined4 *puVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined4 in_stack_ffffffa4;\n  Token x;\n  \n  puVar8 = PTR___stack_chk_guard_0015ba2c;\n  db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c;\n  x.z = zToken;\n  if (zToken == (char *)0x0) {\n    x.n = 0;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }\n  pEVar2 = sqlite3ExprAlloc(db,op,&x,0);\n  if (db_00 == *(sqlite3 **)puVar8) {\n    return pEVar2;\n  }\n  puVar8 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar8 = puVar8 + 0x134ed8;\n  if ((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)) {\n    pEVar2->flags = *(u32 *)(op + 4);\n    if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(db_00,pEVar2);\n  }\n  return (Expr *)0x0;\n}" { (declaration "sqlite3 *db_00;" type_identifier (pointer_declarator "*db_00" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "Expr *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 in_stack_ffffffa4;" type_identifier identifier ;) (declaration "Token x;" type_identifier identifier ;) (expression_statement "puVar8 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar8 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "db_00 = *(sqlite3 **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(sqlite3 **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(sqlite3 **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "x.z = zToken;" (assignment_expression "x.z = zToken" (field_expression "x.z" identifier . field_identifier) = identifier) ;) (if_statement "if (zToken == (char *)0x0) {\n    x.n = 0;\n  }\n  else {\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }" if (parenthesized_expression "(zToken == (char *)0x0)" ( (binary_expression "zToken == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    x.n = 0;\n  }" { (expression_statement "x.n = 0;" (assignment_expression "x.n = 0" (field_expression "x.n" identifier . field_identifier) = number_literal) ;) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);\n    x.n = uVar1 & 0x3fffffff;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_0015b9c4)(zToken)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(zToken)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(zToken)" ( identifier )))) ;) (expression_statement "x.n = uVar1 & 0x3fffffff;" (assignment_expression "x.n = uVar1 & 0x3fffffff" (field_expression "x.n" identifier . field_identifier) = (binary_expression "uVar1 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "pEVar2 = sqlite3ExprAlloc(db,op,&x,0);" (assignment_expression "pEVar2 = sqlite3ExprAlloc(db,op,&x,0)" identifier = (call_expression "sqlite3ExprAlloc(db,op,&x,0)" identifier (argument_list "(db,op,&x,0)" ( identifier , identifier , (pointer_expression "&x" & identifier) , number_literal )))) ;) (if_statement "if (db_00 == *(sqlite3 **)puVar8) {\n    return pEVar2;\n  }" if (parenthesized_expression "(db_00 == *(sqlite3 **)puVar8)" ( (binary_expression "db_00 == *(sqlite3 **)puVar8" identifier == (pointer_expression "*(sqlite3 **)puVar8" * (cast_expression "(sqlite3 **)puVar8" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pEVar2;\n  }" { (return_statement "return pEVar2;" return identifier ;) })) (expression_statement "puVar8 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar8 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar8 = puVar8 + 0x134ed8;" (assignment_expression "puVar8 = puVar8 + 0x134ed8" identifier = (binary_expression "puVar8 + 0x134ed8" identifier + number_literal)) ;) (if_statement "if ((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)) {\n    pEVar2->flags = *(u32 *)(op + 4);\n    if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(db_00,pEVar2);\n  }" if (parenthesized_expression "((((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0))" ( (binary_expression "(((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')) &&\n     (pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)" (parenthesized_expression "(((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0'))" ( (binary_expression "((int *)op != (int *)0x0) && (db_00->mallocFailed == '\0')" (parenthesized_expression "((int *)op != (int *)0x0)" ( (binary_expression "(int *)op != (int *)0x0" (cast_expression "(int *)op" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(db_00->mallocFailed == '\0')" ( (binary_expression "db_00->mallocFailed == '\0'" (field_expression "db_00->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0)" ( (comma_expression "pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4)),\n     pEVar2 != (Expr *)0x0" (assignment_expression "pEVar2 = (Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" identifier = (cast_expression "(Expr *)dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" identifier (argument_list "(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" ( identifier , (call_expression "CONCAT44(puVar8,in_stack_ffffffa4)" identifier (argument_list "(puVar8,in_stack_ffffffa4)" ( identifier , identifier ))) ))))) , (binary_expression "pEVar2 != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pEVar2->flags = *(u32 *)(op + 4);\n    if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }\n                    /* WARNING: Subroutine does not return */\n    sqlite3DbFreeNN(db_00,pEVar2);\n  }" { (expression_statement "pEVar2->flags = *(u32 *)(op + 4);" (assignment_expression "pEVar2->flags = *(u32 *)(op + 4)" (field_expression "pEVar2->flags" identifier -> field_identifier) = (pointer_expression "*(u32 *)(op + 4)" * (cast_expression "(u32 *)(op + 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + 4)" ( (binary_expression "op + 4" identifier + number_literal) ))))) ;) (if_statement "if (db_00->mallocFailed == '\0') {\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }\n    else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }" if (parenthesized_expression "(db_00->mallocFailed == '\0')" ( (binary_expression "db_00->mallocFailed == '\0'" (field_expression "db_00->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));\n      *(void **)pEVar2 = pvVar3;\n      if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }\n    }" { (expression_statement "pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4));" (assignment_expression "pvVar3 = dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" identifier = (call_expression "dbMallocRawFinish(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" identifier (argument_list "(db_00,CONCAT44(puVar8,in_stack_ffffffa4))" ( identifier , (call_expression "CONCAT44(puVar8,in_stack_ffffffa4)" identifier (argument_list "(puVar8,in_stack_ffffffa4)" ( identifier , identifier ))) )))) ;) (expression_statement "*(void **)pEVar2 = pvVar3;" (assignment_expression "*(void **)pEVar2 = pvVar3" (pointer_expression "*(void **)pEVar2" * (cast_expression "(void **)pEVar2" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (if_statement "if (pvVar3 != (void *)0x0) {\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }\n        return pEVar2;\n      }" { (if_statement "if (0 < *(int *)(op + 4)) {\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }" if (parenthesized_expression "(0 < *(int *)(op + 4))" ( (binary_expression "0 < *(int *)(op + 4)" number_literal < (pointer_expression "*(int *)(op + 4)" * (cast_expression "(int *)(op + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + 4)" ( (binary_expression "op + 4" identifier + number_literal) ))))) )) (compound_statement "{\n          iVar7 = 0;\n          while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);\n            puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);\n            iVar7 = iVar7 + 1;\n            pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);\n            *puVar5 = pcVar4;\n            puVar5[1] = puVar6[1];\n            if (*(int *)(op + 4) <= iVar7) break;\n            pvVar3 = *(void **)pEVar2;\n          }" { (expression_statement "puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8);" (assignment_expression "puVar5 = (undefined4 *)((int)pvVar3 + iVar7 * 8)" identifier = (cast_expression "(undefined4 *)((int)pvVar3 + iVar7 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar3 + iVar7 * 8)" ( (binary_expression "(int)pvVar3 + iVar7 * 8" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar7 * 8" identifier * number_literal)) )))) ;) (expression_statement "puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8);" (assignment_expression "puVar6 = (undefined4 *)(*(int *)op + iVar7 * 8)" identifier = (cast_expression "(undefined4 *)(*(int *)op + iVar7 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)op + iVar7 * 8)" ( (binary_expression "*(int *)op + iVar7 * 8" (pointer_expression "*(int *)op" * (cast_expression "(int *)op" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (binary_expression "iVar7 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6);" (assignment_expression "pcVar4 = sqlite3DbStrDup(db_00,(char *)*puVar6)" identifier = (call_expression "sqlite3DbStrDup(db_00,(char *)*puVar6)" identifier (argument_list "(db_00,(char *)*puVar6)" ( identifier , (cast_expression "(char *)*puVar6" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar6" * identifier)) )))) ;) (expression_statement "*puVar5 = pcVar4;" (assignment_expression "*puVar5 = pcVar4" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5[1] = puVar6[1];" (assignment_expression "puVar5[1] = puVar6[1]" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(op + 4) <= iVar7) break;" if (parenthesized_expression "(*(int *)(op + 4) <= iVar7)" ( (binary_expression "*(int *)(op + 4) <= iVar7" (pointer_expression "*(int *)(op + 4)" * (cast_expression "(int *)(op + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + 4)" ( (binary_expression "op + 4" identifier + number_literal) )))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "pvVar3 = *(void **)pEVar2;" (assignment_expression "pvVar3 = *(void **)pEVar2" identifier = (pointer_expression "*(void **)pEVar2" * (cast_expression "(void **)pEVar2" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) })) })) (return_statement "return pEVar2;" return identifier ;) })) }) (else_clause "else {\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }" else (compound_statement "{\n      pEVar2->op = '\0';\n      pEVar2->affinity = '\0';\n      *(undefined2 *)&pEVar2->field_0x2 = 0;\n    }" { (expression_statement "pEVar2->op = '\0';" (assignment_expression "pEVar2->op = '\0'" (field_expression "pEVar2->op" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pEVar2->affinity = '\0';" (assignment_expression "pEVar2->affinity = '\0'" (field_expression "pEVar2->affinity" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(undefined2 *)&pEVar2->field_0x2 = 0;" (assignment_expression "*(undefined2 *)&pEVar2->field_0x2 = 0" (pointer_expression "*(undefined2 *)&pEVar2->field_0x2" * (cast_expression "(undefined2 *)&pEVar2->field_0x2" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar2->field_0x2" & (field_expression "pEVar2->field_0x2" identifier -> field_identifier)))) = number_literal) ;) }))) comment (expression_statement "sqlite3DbFreeNN(db_00,pEVar2);" (call_expression "sqlite3DbFreeNN(db_00,pEVar2)" identifier (argument_list "(db_00,pEVar2)" ( identifier , identifier ))) ;) })) (return_statement "return (Expr *)0x0;" return (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_0002e630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}\n\n" (function_definition "int * FUN_0002e630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" primitive_type (pointer_declarator "* FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" * (function_declarator "FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * 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) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "uint local_18;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" identifier = identifier) ;) (if_statement "if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_18 = 0;\n  }" { (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" else (compound_statement "{\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" { (expression_statement "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);" (assignment_expression "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "local_18 = local_18 & 0x3fffffff;" (assignment_expression "local_18 = local_18 & 0x3fffffff" identifier = (binary_expression "local_18 & 0x3fffffff" identifier & number_literal)) ;) }))) (expression_statement "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);" (assignment_expression "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0)" identifier = (cast_expression "(int *)FUN_0002e340(param_1,param_2,&local_1c,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e340(param_1,param_2,&local_1c,0)" identifier (argument_list "(param_1,param_2,&local_1c,0)" ( identifier , identifier , (pointer_expression "&local_1c" & identifier) , number_literal ))))) ;) (if_statement "if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" if (parenthesized_expression "(local_14 != *(int *)puVar1)" ( (binary_expression "local_14 != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" { (expression_statement "iVar5 = local_14;" (assignment_expression "iVar5 = local_14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0))" ( (binary_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0'))" ( (binary_expression "(param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\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 *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" ( (comma_expression "piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_0002d4f0()" identifier = (cast_expression "(int *)FUN_0002d4f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d4f0()" 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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }" { (expression_statement "iVar3 = FUN_0002d4f0(iVar5);" (assignment_expression "iVar3 = FUN_0002d4f0(iVar5)" identifier = (call_expression "FUN_0002d4f0(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }" { (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 ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" { (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar8 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar8 * 8)" ( (binary_expression "iVar3 + iVar8 * 8" identifier + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);" (assignment_expression "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8)" identifier = (cast_expression "(undefined4 *)(*param_2 + iVar8 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar8 * 8)" ( (binary_expression "*param_2 + iVar8 * 8" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar8 * 8" identifier * number_literal)) )))) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = FUN_0002dc60(iVar5,*puVar7);" (assignment_expression "uVar4 = FUN_0002dc60(iVar5,*puVar7)" identifier = (call_expression "FUN_0002dc60(iVar5,*puVar7)" identifier (argument_list "(iVar5,*puVar7)" ( identifier , (pointer_expression "*puVar7" * identifier) )))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "puVar6[1] = puVar7[1];" (assignment_expression "puVar6[1] = puVar7[1]" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = (subscript_expression "puVar7[1]" identifier [ number_literal ])) ;) (if_statement "if (param_2[1] <= iVar8) break;" if (parenthesized_expression "(param_2[1] <= iVar8)" ( (binary_expression "param_2[1] <= iVar8" (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_0002a924(iVar5,piVar2);" (call_expression "FUN_0002a924(iVar5,piVar2)" identifier (argument_list "(iVar5,piVar2)" ( identifier , identifier ))) ;) (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) ;) })) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 = (binary_expression IDENT & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (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 ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression 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 ( IDENT , IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0002e630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" (* "*") (function_declarator "FUN_0002e630(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_0002e630") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  int local_1c;\n  uint local_18;\n  int local_14;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  local_1c = param_3;\n  if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }\n  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);\n  if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }\n  return piVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (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")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int local_1c;" (primitive_type "int") (identifier "local_1c") (; ";")) (declaration "uint local_18;" (type_identifier "uint") (identifier "local_18") (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_0015ba2c" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "local_1c = param_3;" (assignment_expression "local_1c = param_3" (identifier "local_1c") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 == 0) {\n    local_18 = 0;\n  }\n  else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_18 = 0;\n  }" ({ "{") (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" (identifier "local_18") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" (else "else") (compound_statement "{\n    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);\n    local_18 = local_18 & 0x3fffffff;\n  }" ({ "{") (expression_statement "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);" (assignment_expression "local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3)" (identifier "local_18") (= "=") (call_expression "(*(code *)PTR_strlen_0015b9c4)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0015b9c4" (* "*") (cast_expression "(code *)PTR_strlen_0015b9c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0015b9c4"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "local_18 = local_18 & 0x3fffffff;" (assignment_expression "local_18 = local_18 & 0x3fffffff" (identifier "local_18") (= "=") (binary_expression "local_18 & 0x3fffffff" (identifier "local_18") (& "&") (number_literal "0x3fffffff"))) (; ";")) (} "}")))) (expression_statement "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);" (assignment_expression "piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0002e340(param_1,param_2,&local_1c,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002e340(param_1,param_2,&local_1c,0)" (identifier "FUN_0002e340") (argument_list "(param_1,param_2,&local_1c,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_1c" (& "&") (identifier "local_1c")) (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (local_14 != *(int *)puVar1) {\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(local_14 != *(int *)puVar1)" (( "(") (binary_expression "local_14 != *(int *)puVar1" (identifier "local_14") (!= "!=") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    iVar5 = local_14;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }\n    return (int *)0x0;\n  }" ({ "{") (expression_statement "iVar5 = local_14;" (assignment_expression "iVar5 = local_14" (identifier "iVar5") (= "=") (identifier "local_14")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {\n      piVar2[1] = param_2[1];\n      if (*(char *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0))" (( "(") (binary_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&\n       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" (parenthesized_expression "((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0'))" (( "(") (binary_expression "(param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\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 *)(iVar5 + 0x51) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" (* "*") (cast_expression "(char *)(iVar5 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x51)" (( "(") (binary_expression "iVar5 + 0x51" (identifier "iVar5") (+ "+") (number_literal "0x51")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)" (( "(") (comma_expression "piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0" (assignment_expression "piVar2 = (int *)FUN_0002d4f0()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0002d4f0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002d4f0()" (identifier "FUN_0002d4f0") (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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }\n      FUN_0002a924(iVar5,piVar2);\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 *)(iVar5 + 0x51) == '\0') {\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }\n      else {\n        *piVar2 = 0;\n      }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" (* "*") (cast_expression "(char *)(iVar5 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x51)" (( "(") (binary_expression "iVar5 + 0x51" (identifier "iVar5") (+ "+") (number_literal "0x51")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = FUN_0002d4f0(iVar5);\n        *piVar2 = iVar3;\n        if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }\n      }" ({ "{") (expression_statement "iVar3 = FUN_0002d4f0(iVar5);" (assignment_expression "iVar3 = FUN_0002d4f0(iVar5)" (identifier "iVar3") (= "=") (call_expression "FUN_0002d4f0(iVar5)" (identifier "FUN_0002d4f0") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) 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          if (param_2[1] < 1) {\n            return piVar2;\n          }\n          iVar8 = 0;\n          while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }\n          return piVar2;\n        }" ({ "{") (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") (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (while_statement "while( true ) {\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);\n            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);\n            iVar8 = iVar8 + 1;\n            uVar4 = FUN_0002dc60(iVar5,*puVar7);\n            *puVar6 = uVar4;\n            puVar6[1] = puVar7[1];\n            if (param_2[1] <= iVar8) break;\n            iVar3 = *piVar2;\n          }" ({ "{") (expression_statement "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);" (assignment_expression "puVar6 = (undefined4 *)(iVar3 + iVar8 * 8)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(iVar3 + iVar8 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar8 * 8)" (( "(") (binary_expression "iVar3 + iVar8 * 8" (identifier "iVar3") (+ "+") (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);" (assignment_expression "puVar7 = (undefined4 *)(*param_2 + iVar8 * 8)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(*param_2 + iVar8 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + iVar8 * 8)" (( "(") (binary_expression "*param_2 + iVar8 * 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = FUN_0002dc60(iVar5,*puVar7);" (assignment_expression "uVar4 = FUN_0002dc60(iVar5,*puVar7)" (identifier "uVar4") (= "=") (call_expression "FUN_0002dc60(iVar5,*puVar7)" (identifier "FUN_0002dc60") (argument_list "(iVar5,*puVar7)" (( "(") (identifier "iVar5") (, ",") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) () ")")))) (; ";")) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar6[1] = puVar7[1];" (assignment_expression "puVar6[1] = puVar7[1]" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_2[1] <= iVar8) break;" (if "if") (parenthesized_expression "(param_2[1] <= iVar8)" (( "(") (binary_expression "param_2[1] <= iVar8" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "iVar8")) () ")")) (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_0002a924(iVar5,piVar2);" (call_expression "FUN_0002a924(iVar5,piVar2)" (identifier "FUN_0002a924") (argument_list "(iVar5,piVar2)" (( "(") (identifier "iVar5") (, ",") (identifier "piVar2") () ")"))) (; ";")) (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")) (; ";")) (} "}"))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator 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))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (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))) (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 (identifier))))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (pointer_expression argument: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (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: (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 (identifier) (identifier)))) (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))))) (return_statement (identifier)))))

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

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  int iVar8;
  int local_1c;
  uint local_18;
  int local_14;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  local_14 = *(int *)PTR___stack_chk_guard_0015ba2c;
  local_1c = param_3;
  if (param_3 == 0) {
    local_18 = 0;
  }
  else {
    local_18 = (*(code *)PTR_strlen_0015b9c4)(param_3);
    local_18 = local_18 & 0x3fffffff;
  }
  piVar2 = (int *)FUN_0002e340(param_1,param_2,&local_1c,0);
  if (local_14 != *(int *)puVar1) {
    iVar5 = local_14;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    if (((param_2 != (int *)0x0) && (*(char *)(iVar5 + 0x51) == '\0')) &&
       (piVar2 = (int *)FUN_0002d4f0(), piVar2 != (int *)0x0)) {
      piVar2[1] = param_2[1];
      if (*(char *)(iVar5 + 0x51) == '\0') {
        iVar3 = FUN_0002d4f0(iVar5);
        *piVar2 = iVar3;
        if (iVar3 != 0) {
          if (param_2[1] < 1) {
            return piVar2;
          }
          iVar8 = 0;
          while( true ) {
            puVar6 = (undefined4 *)(iVar3 + iVar8 * 8);
            puVar7 = (undefined4 *)(*param_2 + iVar8 * 8);
            iVar8 = iVar8 + 1;
            uVar4 = FUN_0002dc60(iVar5,*puVar7);
            *puVar6 = uVar4;
            puVar6[1] = puVar7[1];
            if (param_2[1] <= iVar8) break;
            iVar3 = *piVar2;
          }
          return piVar2;
        }
      }
      else {
        *piVar2 = 0;
      }
      FUN_0002a924(iVar5,piVar2);
      return (int *)0x0;
    }
    return (int *)0x0;
  }
  return piVar2;
}

