
int btreeOverwriteContent(MemPage *pPage,u8 *pDest,BtreePayload *pX,int iOffset,int iAmt)

{
  u8 uVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = pX->nData - iOffset;
  if (iVar2 < 1) {
    iVar3 = 0;
    if (0 < iAmt) {
      iVar2 = 0;
      uVar1 = *pDest;
      while (uVar1 == '\0') {
        iVar2 = iVar2 + 1;
        if (iAmt == iVar2) {
          return 0;
        }
        uVar1 = pDest[iVar2];
      }
      iVar3 = sqlite3PagerWrite(pPage->pDbPage);
      if (iVar3 == 0) {
        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);
      }
    }
  }
  else if ((iAmt <= iVar2) ||
          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),
          iAmt = iVar2, iVar3 == 0)) {
    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);
    if (iVar2 == 0) {
      iVar3 = 0;
    }
    else {
      iVar3 = sqlite3PagerWrite(pPage->pDbPage);
      if (iVar3 == 0) {
        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);
        return iVar2;
      }
    }
  }
  return iVar3;
}



int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(param_3 + 0x1c) - param_4;
  if (iVar2 < 1) {
    iVar3 = 0;
    if (0 < param_5) {
      iVar2 = 0;
      cVar1 = *param_2;
      while (cVar1 == '\0') {
        iVar2 = iVar2 + 1;
        if (param_5 == iVar2) {
          return 0;
        }
        cVar1 = param_2[iVar2];
      }
      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));
      if (iVar3 == 0) {
        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);
      }
    }
  }
  else if ((param_5 <= iVar2) ||
          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),
                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {
    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);
    if (iVar2 == 0) {
      iVar3 = 0;
    }
    else {
      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));
      if (iVar3 == 0) {
        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);
      }
    }
  }
  return iVar3;
}


lui gp,0xd
addiu gp,gp,-0x1978
addu gp,gp,t9
addiu sp,sp,-0x40
sw s4,0x30(sp)
or s4,a3,zero
sw s3,0x2c(sp)
or s3,a0,zero
sw s2,0x28(sp)
or s2,a1,zero
sw s1,0x24(sp)
sw gp,0x18(sp)
sw ra,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s0,0x20(sp)
lw a3,0x1c(a2)
subu v0,a3,s4
blez v0,0x000ca348
_lw s1,0x50(sp)
slt v1,v0,s1
bne v1,zero,0x000ca384
_or s5,a2,zero
or s0,s1,zero
lw a1,0x10(s5)
or a2,s0,zero
lw t9,-0x7b14(gp)
or a0,s2,zero
jalr t9
_addu a1,a1,s4
bne v0,zero,0x000ca3b4
_lw gp,0x18(sp)
or s6,zero,zero
lw ra,0x3c(sp)
or v0,s6,zero
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x40
blez s1,0x000ca31c
_or s6,zero,zero
lbu v0,0x0(a1)
beq v0,zero,0x000ca370
_or s0,zero,zero
b 0x000ca3f0
_lw t9,-0x7d54(gp)
lbu v0,0x0(v0)
bne v0,zero,0x000ca3f0
_lw t9,-0x7d54(gp)
addiu s0,s0,0x1
bne s1,s0,0x000ca364
_addu v0,s2,s0
b 0x000ca31c
_or s6,zero,zero
lw t9,-0x7d64(gp)
subu s1,s1,v0
addu a1,a1,v0
sw s1,0x10(sp)
addiu t9,t9,-0x5d68
bal 0x000ca298
_or s0,v0,zero
lw gp,0x18(sp)
beq v0,zero,0x000ca2f8
_or s6,v0,zero
b 0x000ca320
_lw ra,0x3c(sp)
lw t9,-0x7d54(gp)
addiu t9,t9,0x3260
bal 0x000c3260
_lw a0,0x48(s3)
lw gp,0x18(sp)
bne v0,zero,0x000ca31c
_or s6,v0,zero
lw a1,0x10(s5)
or a2,s0,zero
lw t9,-0x7ae4(gp)
or a0,s2,zero
jalr t9
_addu a1,a1,s4
b 0x000ca320
_lw ra,0x3c(sp)
addiu t9,t9,0x3260
bal 0x000c3260
_lw a0,0x48(s3)
lw gp,0x18(sp)
bne v0,zero,0x000ca31c
_or s6,v0,zero
lw t9,-0x7bc8(gp)
subu a2,s1,s0
or a1,zero,zero
jalr t9
_addu a0,s2,s0
b 0x000ca320
_lw ra,0x3c(sp)
(translation_unit "int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x1c) - param_4;" (assignment_expression "iVar2 = *(int *)(param_3 + 0x1c) - param_4" identifier = (binary_expression "*(int *)(param_3 + 0x1c) - param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" if (parenthesized_expression "(0 < param_5)" ( (binary_expression "0 < param_5" number_literal < identifier) )) (compound_statement "{\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (param_5 == iVar2) {\n          return 0;\n        }" if (parenthesized_expression "(param_5 == iVar2)" ( (binary_expression "param_5 == iVar2" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = param_2[iVar2];" (assignment_expression "cVar1 = param_2[iVar2]" identifier = (subscript_expression "param_2[iVar2]" identifier [ identifier ])) ;) })) (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier = (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" { (expression_statement "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);" (call_expression "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + iVar2,0,param_5 - iVar2)" ( (binary_expression "param_2 + iVar2" identifier + identifier) , number_literal , (binary_expression "param_5 - iVar2" identifier - identifier) ))) ;) })) })) }) (else_clause "else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" else (if_statement "if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" if (parenthesized_expression "((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0))" ( (binary_expression "(param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" (parenthesized_expression "(param_5 <= iVar2)" ( (binary_expression "param_5 <= iVar2" identifier <= identifier) )) || (parenthesized_expression "(iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0" (assignment_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" identifier = (call_expression "FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" identifier (argument_list "(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" ( identifier , (binary_expression "param_2 + iVar2" identifier + identifier) , identifier , (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) , (binary_expression "param_5 - iVar2" identifier - identifier) )))) , (comma_expression "param_5 = iVar2, iVar3 == 0" (assignment_expression "param_5 = iVar2" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" ( identifier , (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" else (compound_statement "{\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" { (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier = (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" { (expression_statement "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (call_expression "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memmove_00190e3c)" ( (pointer_expression "*(code *)PTR_memmove_00190e3c" * (cast_expression "(code *)PTR_memmove_00190e3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" ( identifier , (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + identifier) , identifier ))) ;) })) }))) })))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int btreeOverwriteContent(MemPage *pPage,u8 *pDest,BtreePayload *pX,int iOffset,int iAmt)\n\n{\n  u8 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = pX->nData - iOffset;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }\n  }\n  else if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int btreeOverwriteContent(MemPage *pPage,u8 *pDest,BtreePayload *pX,int iOffset,int iAmt)\n\n{\n  u8 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = pX->nData - iOffset;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }\n  }\n  else if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "btreeOverwriteContent(MemPage *pPage,u8 *pDest,BtreePayload *pX,int iOffset,int iAmt)" identifier (parameter_list "(MemPage *pPage,u8 *pDest,BtreePayload *pX,int iOffset,int iAmt)" ( (parameter_declaration "MemPage *pPage" type_identifier (pointer_declarator "*pPage" * identifier)) , (parameter_declaration "u8 *pDest" type_identifier (pointer_declarator "*pDest" * identifier)) , (parameter_declaration "BtreePayload *pX" type_identifier (pointer_declarator "*pX" * identifier)) , (parameter_declaration "int iOffset" primitive_type identifier) , (parameter_declaration "int iAmt" primitive_type identifier) ))) (compound_statement "{\n  u8 uVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = pX->nData - iOffset;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }\n  }\n  else if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = pX->nData - iOffset;" (assignment_expression "iVar2 = pX->nData - iOffset" identifier = (binary_expression "pX->nData - iOffset" (field_expression "pX->nData" identifier -> field_identifier) - identifier)) ;) (if_statement "if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }\n  }\n  else if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < iAmt) {\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }" if (parenthesized_expression "(0 < iAmt)" ( (binary_expression "0 < iAmt" number_literal < identifier) )) (compound_statement "{\n      iVar2 = 0;\n      uVar1 = *pDest;\n      while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar1 = *pDest;" (assignment_expression "uVar1 = *pDest" identifier = (pointer_expression "*pDest" * identifier)) ;) (while_statement "while (uVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }" while (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (iAmt == iVar2) {\n          return 0;\n        }\n        uVar1 = pDest[iVar2];\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (iAmt == iVar2) {\n          return 0;\n        }" if (parenthesized_expression "(iAmt == iVar2)" ( (binary_expression "iAmt == iVar2" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = pDest[iVar2];" (assignment_expression "uVar1 = pDest[iVar2]" identifier = (subscript_expression "pDest[iVar2]" identifier [ identifier ])) ;) })) (expression_statement "iVar3 = sqlite3PagerWrite(pPage->pDbPage);" (assignment_expression "iVar3 = sqlite3PagerWrite(pPage->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);\n      }" { (expression_statement "(*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2);" (call_expression "(*(code *)PTR_memset_00190d58)(pDest + iVar2,0,iAmt - iVar2)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pDest + iVar2,0,iAmt - iVar2)" ( (binary_expression "pDest + iVar2" identifier + identifier) , number_literal , (binary_expression "iAmt - iVar2" identifier - identifier) ))) ;) })) })) }) (else_clause "else if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }" else (if_statement "if ((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }" if (parenthesized_expression "((iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0))" ( (binary_expression "(iAmt <= iVar2) ||\n          (iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)" (parenthesized_expression "(iAmt <= iVar2)" ( (binary_expression "iAmt <= iVar2" identifier <= identifier) )) || (parenthesized_expression "(iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0)" ( (comma_expression "iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2),\n          iAmt = iVar2, iVar3 == 0" (assignment_expression "iVar3 = btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2)" identifier = (call_expression "btreeOverwriteContent(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2)" identifier (argument_list "(pPage,pDest + iVar2,pX,pX->nData,iAmt - iVar2)" ( identifier , (binary_expression "pDest + iVar2" identifier + identifier) , identifier , (field_expression "pX->nData" identifier -> field_identifier) , (binary_expression "iAmt - iVar2" identifier - identifier) )))) , (comma_expression "iAmt = iVar2, iVar3 == 0" (assignment_expression "iAmt = iVar2" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)(pDest,(int)pX->pData + iOffset,iAmt)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pDest,(int)pX->pData + iOffset,iAmt)" ( identifier , (binary_expression "(int)pX->pData + iOffset" (cast_expression "(int)pX->pData" ( (type_descriptor "int" primitive_type) ) (field_expression "pX->pData" identifier -> field_identifier)) + identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }" else (compound_statement "{\n      iVar3 = sqlite3PagerWrite(pPage->pDbPage);\n      if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }\n    }" { (expression_statement "iVar3 = sqlite3PagerWrite(pPage->pDbPage);" (assignment_expression "iVar3 = sqlite3PagerWrite(pPage->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);\n        return iVar2;\n      }" { (expression_statement "iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt);" (assignment_expression "iVar2 = (*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt)" identifier = (call_expression "(*(code *)PTR_memmove_00190e3c)(pDest,(int)pX->pData + iOffset,iAmt)" (parenthesized_expression "(*(code *)PTR_memmove_00190e3c)" ( (pointer_expression "*(code *)PTR_memmove_00190e3c" * (cast_expression "(code *)PTR_memmove_00190e3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pDest,(int)pX->pData + iOffset,iAmt)" ( identifier , (binary_expression "(int)pX->pData + iOffset" (cast_expression "(int)pX->pData" ( (type_descriptor "int" primitive_type) ) (field_expression "pX->pData" identifier -> field_identifier)) + identifier) , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) }))) })))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_3 + 0x1c) - param_4;" (assignment_expression "iVar2 = *(int *)(param_3 + 0x1c) - param_4" identifier = (binary_expression "*(int *)(param_3 + 0x1c) - param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" if (parenthesized_expression "(0 < param_5)" ( (binary_expression "0 < param_5" number_literal < identifier) )) (compound_statement "{\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" while (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" { (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (if_statement "if (param_5 == iVar2) {\n          return 0;\n        }" if (parenthesized_expression "(param_5 == iVar2)" ( (binary_expression "param_5 == iVar2" identifier == identifier) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = param_2[iVar2];" (assignment_expression "cVar1 = param_2[iVar2]" identifier = (subscript_expression "param_2[iVar2]" identifier [ identifier ])) ;) })) (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier = (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" { (expression_statement "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);" (call_expression "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + iVar2,0,param_5 - iVar2)" ( (binary_expression "param_2 + iVar2" identifier + identifier) , number_literal , (binary_expression "param_5 - iVar2" identifier - identifier) ))) ;) })) })) }) (else_clause "else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" else (if_statement "if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" if (parenthesized_expression "((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0))" ( (binary_expression "(param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" (parenthesized_expression "(param_5 <= iVar2)" ( (binary_expression "param_5 <= iVar2" identifier <= identifier) )) || (parenthesized_expression "(iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" ( (comma_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0" (assignment_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" identifier = (call_expression "FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" identifier (argument_list "(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" ( identifier , (binary_expression "param_2 + iVar2" identifier + identifier) , identifier , (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) , (binary_expression "param_5 - iVar2" identifier - identifier) )))) , (comma_expression "param_5 = iVar2, iVar3 == 0" (assignment_expression "param_5 = iVar2" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" identifier = (call_expression "(*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" ( (pointer_expression "*(code *)PTR_memcmp_00190e0c" * (cast_expression "(code *)PTR_memcmp_00190e0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" ( identifier , (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" else (compound_statement "{\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" { (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier = (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" { (expression_statement "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (call_expression "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memmove_00190e3c)" ( (pointer_expression "*(code *)PTR_memmove_00190e3c" * (cast_expression "(code *)PTR_memmove_00190e3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" ( identifier , (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" * (cast_expression "(int *)(param_3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x10)" ( (binary_expression "param_3 + 0x10" identifier + number_literal) )))) + identifier) , identifier ))) ;) })) }))) })))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression IDENT - IDENT) ))) ;) })) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT - IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) , IDENT ))) ;) })) }))) })))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000ca298(int param_1,char *param_2,int param_3,int param_4,int param_5)" (identifier "FUN_000ca298") (parameter_list "(int param_1,char *param_2,int param_3,int param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_3 + 0x1c) - param_4;\n  if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }\n  return iVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = *(int *)(param_3 + 0x1c) - param_4;" (assignment_expression "iVar2 = *(int *)(param_3 + 0x1c) - param_4" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_3 + 0x1c) - param_4" (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (- "-") (identifier "param_4"))) (; ";")) (if_statement "if (iVar2 < 1) {\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }\n  else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < param_5) {\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" (if "if") (parenthesized_expression "(0 < param_5)" (( "(") (binary_expression "0 < param_5" (number_literal "0") (< "<") (identifier "param_5")) () ")")) (compound_statement "{\n      iVar2 = 0;\n      cVar1 = *param_2;\n      while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" (identifier "cVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (while_statement "while (cVar1 == '\0') {\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" (while "while") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar2 = iVar2 + 1;\n        if (param_5 == iVar2) {\n          return 0;\n        }\n        cVar1 = param_2[iVar2];\n      }" ({ "{") (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_5 == iVar2) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(param_5 == iVar2)" (( "(") (binary_expression "param_5 == iVar2" (identifier "param_5") (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "cVar1 = param_2[iVar2];" (assignment_expression "cVar1 = param_2[iVar2]" (identifier "cVar1") (= "=") (subscript_expression "param_2[iVar2]" (identifier "param_2") ([ "[") (identifier "iVar2") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" (identifier "iVar3") (= "=") (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" (identifier "FUN_000c3260") (argument_list "(*(undefined4 *)(param_1 + 0x48))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);\n      }" ({ "{") (expression_statement "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);" (call_expression "(*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" (( "(") (pointer_expression "*(code *)PTR_memset_00190d58" (* "*") (cast_expression "(code *)PTR_memset_00190d58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00190d58"))) () ")")) (argument_list "(param_2 + iVar2,0,param_5 - iVar2)" (( "(") (binary_expression "param_2 + iVar2" (identifier "param_2") (+ "+") (identifier "iVar2")) (, ",") (number_literal "0") (, ",") (binary_expression "param_5 - iVar2" (identifier "param_5") (- "-") (identifier "iVar2")) () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" (else "else") (if_statement "if ((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0))" (( "(") (binary_expression "(param_5 <= iVar2) ||\n          (iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" (parenthesized_expression "(param_5 <= iVar2)" (( "(") (binary_expression "param_5 <= iVar2" (identifier "param_5") (<= "<=") (identifier "iVar2")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)" (( "(") (comma_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0" (assignment_expression "iVar3 = FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" (identifier "iVar3") (= "=") (call_expression "FUN_000ca298(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" (identifier "FUN_000ca298") (argument_list "(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),\n                                param_5 - iVar2)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + iVar2" (identifier "param_2") (+ "+") (identifier "iVar2")) (, ",") (identifier "param_3") (, ",") (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (binary_expression "param_5 - iVar2" (identifier "param_5") (- "-") (identifier "iVar2")) () ")")))) (, ",") (comma_expression "param_5 = iVar2, iVar3 == 0" (assignment_expression "param_5 = iVar2" (identifier "param_5") (= "=") (identifier "iVar2")) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n    if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memcmp_00190e0c)" (( "(") (pointer_expression "*(code *)PTR_memcmp_00190e0c" (* "*") (cast_expression "(code *)PTR_memcmp_00190e0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_00190e0c"))) () ")")) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (( "(") (identifier "param_2") (, ",") (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" (* "*") (cast_expression "(int *)(param_3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "param_4")) (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" (else "else") (compound_statement "{\n      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));\n      if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }\n    }" ({ "{") (expression_statement "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));" (assignment_expression "iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" (identifier "iVar3") (= "=") (call_expression "FUN_000c3260(*(undefined4 *)(param_1 + 0x48))" (identifier "FUN_000c3260") (argument_list "(*(undefined4 *)(param_1 + 0x48))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);\n      }" ({ "{") (expression_statement "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);" (call_expression "(*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (parenthesized_expression "(*(code *)PTR_memmove_00190e3c)" (( "(") (pointer_expression "*(code *)PTR_memmove_00190e3c" (* "*") (cast_expression "(code *)PTR_memmove_00190e3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_00190e3c"))) () ")")) (argument_list "(param_2,*(int *)(param_3 + 0x10) + param_4,param_5)" (( "(") (identifier "param_2") (, ",") (binary_expression "*(int *)(param_3 + 0x10) + param_4" (pointer_expression "*(int *)(param_3 + 0x10)" (* "*") (cast_expression "(int *)(param_3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x10)" (( "(") (binary_expression "param_3 + 0x10" (identifier "param_3") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "param_4")) (, ",") (identifier "param_5") () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}"))))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (identifier)))))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier) (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))))) (binary_expression left: (identifier) right: (identifier))))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (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: (identifier)) (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: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (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: (identifier)) (identifier))))))))))))) (return_statement (identifier)))))

int MASKED(int param_1,char *param_2,int param_3,int param_4,int param_5)

{
  char cVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(param_3 + 0x1c) - param_4;
  if (iVar2 < 1) {
    iVar3 = 0;
    if (0 < param_5) {
      iVar2 = 0;
      cVar1 = *param_2;
      while (cVar1 == '\0') {
        iVar2 = iVar2 + 1;
        if (param_5 == iVar2) {
          return 0;
        }
        cVar1 = param_2[iVar2];
      }
      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));
      if (iVar3 == 0) {
        (*(code *)PTR_memset_00190d58)(param_2 + iVar2,0,param_5 - iVar2);
      }
    }
  }
  else if ((param_5 <= iVar2) ||
          (iVar3 = MASKED(param_1,param_2 + iVar2,param_3,*(int *)(param_3 + 0x1c),
                                param_5 - iVar2), param_5 = iVar2, iVar3 == 0)) {
    iVar2 = (*(code *)PTR_memcmp_00190e0c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);
    if (iVar2 == 0) {
      iVar3 = 0;
    }
    else {
      iVar3 = FUN_000c3260(*(undefined4 *)(param_1 + 0x48));
      if (iVar3 == 0) {
        (*(code *)PTR_memmove_00190e3c)(param_2,*(int *)(param_3 + 0x10) + param_4,param_5);
      }
    }
  }
  return iVar3;
}

