
VdbeCursor * allocateCursor(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)

{
  undefined *puVar1;
  VdbeCursor *pVVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  Mem *pMVar6;
  
  pMVar6 = p->aMem;
  if (0 < iCur) {
    pMVar6 = pMVar6 + (p->nMem - iCur);
  }
  iVar5 = (nField + 0xc) * 8;
  iVar3 = iVar5;
  if (eCurType == '\0') {
    iVar3 = iVar5 + 200;
  }
  pVVar2 = p->apCsr[iCur];
  if (pVVar2 != (VdbeCursor *)0x0) {
    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;
    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);
    p->apCsr[iCur] = (VdbeCursor *)0x0;
  }
  if (pMVar6->szMalloc < iVar3) {
    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);
    if (iVar3 != 0) {
      return (VdbeCursor *)0x0;
    }
    pVVar2 = (VdbeCursor *)pMVar6->z;
  }
  else {
    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;
    pMVar6->z = (char *)pVVar2;
    pMVar6->flags = pMVar6->flags & 0xd;
  }
  puVar1 = PTR_memset_00190d58;
  p->apCsr[iCur] = pVVar2;
  (*(code *)puVar1)(&pVVar2->nullRow,0,0x22);
  pVVar2->eCurType = eCurType;
  pVVar2->iDb = (i8)iDb;
  pVVar2->nField = (i16)nField;
  pVVar2->aOffset = pVVar2->aType + nField;
  puVar1 = PTR_memset_00190d58;
  if (eCurType != '\0') {
    return pVVar2;
  }
  pcVar4 = pMVar6->z;
  (pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5);
  (*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14);
  return pVVar2;
}



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

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  
  iVar6 = *(int *)(param_1 + 0x58);
  if (0 < param_2) {
    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;
  }
  iVar5 = (param_3 + 0xc) * 8;
  iVar3 = iVar5;
  if (param_5 == '\0') {
    iVar3 = iVar5 + 200;
  }
  param_2 = param_2 * 4;
  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);
  if (iVar2 != 0) {
    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;
    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));
    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;
  }
  if (*(int *)(iVar6 + 0x18) < iVar3) {
    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);
    if (iVar3 != 0) {
      return (char *)0x0;
    }
    pcVar4 = *(char **)(iVar6 + 0x10);
  }
  else {
    pcVar4 = *(char **)(iVar6 + 0x14);
    *(char **)(iVar6 + 0x10) = pcVar4;
    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;
  }
  puVar1 = PTR_memset_00190d58;
  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;
  (*(code *)puVar1)(pcVar4 + 2,0,0x22);
  *pcVar4 = param_5;
  pcVar4[1] = param_4;
  *(short *)(pcVar4 + 0x38) = (short)param_3;
  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;
  puVar1 = PTR_memset_00190d58;
  if (param_5 != '\0') {
    return pcVar4;
  }
  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;
  *(int *)(pcVar4 + 0x28) = iVar5;
  (*(code *)puVar1)(iVar5,0,0x14);
  return pcVar4;
}


lui gp,0xc
addiu gp,gp,0x1130
addu gp,gp,t9
addiu sp,sp,-0x40
sw s7,0x38(sp)
or s7,a2,zero
sw s6,0x34(sp)
sw s5,0x30(sp)
or s5,a0,zero
sw s3,0x28(sp)
or s3,a3,zero
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s4,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lbu s6,0x53(sp)
blez a1,0x000d7858
_lw s4,0x58(a0)
lw v0,0x18(a0)
subu v1,v0,a1
sll v0,v1,0x2
addu v0,v0,v1
sll v0,v0,0x3
addu s4,s4,v0
addiu s2,s7,0xc
beq s6,zero,0x000d794c
_sll s2,s2,0x3
or s0,s2,zero
lw v0,0x60(s5)
sll s1,a1,0x2
addu v0,v0,s1
lw v0,0x0(v0)
beq v0,zero,0x000d78b4
_or a0,s5,zero
lbu v1,0x5(v0)
lw t9,-0x7d64(gp)
ins v1,zero,0x7,0x1
addiu t9,t9,0x751c
sb v1,0x5(v0)
lw v0,0x60(s5)
addu v0,v0,s1
bal 0x000d751c
_lw a1,0x0(v0)
lw v0,0x60(s5)
lw gp,0x10(sp)
addu v0,v0,s1
sw zero,0x0(v0)
lw v0,0x18(s4)
slt v0,v0,s0
bne v0,zero,0x000d79a0
_lw t9,-0x7d60(gp)
lhu v0,0x8(s4)
lw s0,0x14(s4)
andi v0,v0,0xd
sw s0,0x10(s4)
sh v0,0x8(s4)
lw v0,0x60(s5)
li a2,0x22
lw t9,-0x7bc8(gp)
or a1,zero,zero
addiu a0,s0,0x2
addu s1,v0,s1
jalr t9
_sw s0,0x0(s1)
addiu v0,s7,0x16
lw gp,0x10(sp)
sll v0,v0,0x2
sb s6,0x0(s0)
sb s3,0x1(s0)
addu v0,s0,v0
sh s7,0x38(s0)
beq s6,zero,0x000d7954
_sw v0,0x48(s0)
lw ra,0x3c(sp)
or v0,s0,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
b 0x000d7868
_addiu s0,s2,0xc8
lw a0,0x10(s4)
li a2,0x14
lw t9,-0x7bc8(gp)
or a1,zero,zero
addu a0,a0,s2
jalr t9
_sw a0,0x28(s0)
or v0,s0,zero
lw ra,0x3c(sp)
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
or a1,s0,zero
addiu t9,t9,-0x4184
jalr t9
_or a0,s4,zero
bne v0,zero,0x000d79c0
_lw gp,0x10(sp)
b 0x000d78d8
_lw s0,0x10(s4)
b 0x000d791c
_or s0,zero,zero
(translation_unit "char * FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" * (function_declarator "FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,char param_4,char param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x58)" identifier = (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" { (expression_statement "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;" (assignment_expression "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" identifier = (binary_expression "iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" identifier + (binary_expression "(*(int *)(param_1 + 0x18) - param_2) * 0x28" (parenthesized_expression "(*(int *)(param_1 + 0x18) - param_2)" ( (binary_expression "*(int *)(param_1 + 0x18) - param_2" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) - identifier) )) * number_literal))) ;) })) (expression_statement "iVar5 = (param_3 + 0xc) * 8;" (assignment_expression "iVar5 = (param_3 + 0xc) * 8" identifier = (binary_expression "(param_3 + 0xc) * 8" (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = iVar5 + 200;\n  }" { (expression_statement "iVar3 = iVar5 + 200;" (assignment_expression "iVar3 = iVar5 + 200" identifier = (binary_expression "iVar5 + 200" identifier + number_literal)) ;) })) (expression_statement "param_2 = param_2 * 4;" (assignment_expression "param_2 = param_2 * 4" identifier = (binary_expression "param_2 * 4" identifier * number_literal)) ;) (expression_statement "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" { (expression_statement "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;" (assignment_expression "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" * (cast_expression "(byte *)(iVar2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 5)" ( (binary_expression "iVar2 + 5" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" * (cast_expression "(byte *)(iVar2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 5)" ( (binary_expression "iVar2 + 5" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));" (call_expression "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" identifier (argument_list "(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" ( identifier , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x18) < iVar3)" ( (binary_expression "*(int *)(iVar6 + 0x18) < iVar3" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }" { (expression_statement "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);" (assignment_expression "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + -0x4184)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + -0x4184)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + -0x4184)" ( (binary_expression "PTR_LAB_00190bc0 + -0x4184" identifier + number_literal) )))) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar4 = *(char **)(iVar6 + 0x10);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x10)" identifier = (pointer_expression "*(char **)(iVar6 + 0x10)" * (cast_expression "(char **)(iVar6 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" else (compound_statement "{\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" { (expression_statement "pcVar4 = *(char **)(iVar6 + 0x14);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x14)" identifier = (pointer_expression "*(char **)(iVar6 + 0x14)" * (cast_expression "(char **)(iVar6 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(iVar6 + 0x10) = pcVar4;" (assignment_expression "*(char **)(iVar6 + 0x10) = pcVar4" (pointer_expression "*(char **)(iVar6 + 0x10)" * (cast_expression "(char **)(iVar6 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;" (assignment_expression "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" * (cast_expression "(ushort *)(iVar6 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" * (cast_expression "(ushort *)(iVar6 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) & number_literal)) ;) }))) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (expression_statement "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(char **)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(pcVar4 + 2,0,0x22);" (call_expression "(*(code *)puVar1)(pcVar4 + 2,0,0x22)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4 + 2,0,0x22)" ( (binary_expression "pcVar4 + 2" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "*pcVar4 = param_5;" (assignment_expression "*pcVar4 = param_5" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4[1] = param_4;" (assignment_expression "pcVar4[1] = param_4" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)(pcVar4 + 0x38) = (short)param_3;" (assignment_expression "*(short *)(pcVar4 + 0x38) = (short)param_3" (pointer_expression "*(short *)(pcVar4 + 0x38)" * (cast_expression "(short *)(pcVar4 + 0x38)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x38)" ( (binary_expression "pcVar4 + 0x38" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;" (assignment_expression "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4" (pointer_expression "*(char **)(pcVar4 + 0x48)" * (cast_expression "(char **)(pcVar4 + 0x48)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar4 + 0x48)" ( (binary_expression "pcVar4 + 0x48" identifier + number_literal) )))) = (binary_expression "pcVar4 + (param_3 + 0x16) * 4" identifier + (binary_expression "(param_3 + 0x16) * 4" (parenthesized_expression "(param_3 + 0x16)" ( (binary_expression "param_3 + 0x16" identifier + number_literal) )) * number_literal))) ;) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (if_statement "if (param_5 != '\0') {\n    return pcVar4;\n  }" if (parenthesized_expression "(param_5 != '\0')" ( (binary_expression "param_5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return pcVar4;\n  }" { (return_statement "return pcVar4;" return identifier ;) })) (expression_statement "iVar5 = *(int *)(iVar6 + 0x10) + iVar5;" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x10) + iVar5" identifier = (binary_expression "*(int *)(iVar6 + 0x10) + iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(int *)(pcVar4 + 0x28) = iVar5;" (assignment_expression "*(int *)(pcVar4 + 0x28) = iVar5" (pointer_expression "*(int *)(pcVar4 + 0x28)" * (cast_expression "(int *)(pcVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x28)" ( (binary_expression "pcVar4 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar5,0,0x14);" (call_expression "(*(code *)puVar1)(iVar5,0,0x14)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,0,0x14)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "VdbeCursor * allocateCursor(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)\n\n{\n  undefined *puVar1;\n  VdbeCursor *pVVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  Mem *pMVar6;\n  \n  pMVar6 = p->aMem;\n  if (0 < iCur) {\n    pMVar6 = pMVar6 + (p->nMem - iCur);\n  }\n  iVar5 = (nField + 0xc) * 8;\n  iVar3 = iVar5;\n  if (eCurType == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  pVVar2 = p->apCsr[iCur];\n  if (pVVar2 != (VdbeCursor *)0x0) {\n    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;\n    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);\n    p->apCsr[iCur] = (VdbeCursor *)0x0;\n  }\n  if (pMVar6->szMalloc < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);\n    if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }\n    pVVar2 = (VdbeCursor *)pMVar6->z;\n  }\n  else {\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  p->apCsr[iCur] = pVVar2;\n  (*(code *)puVar1)(&pVVar2->nullRow,0,0x22);\n  pVVar2->eCurType = eCurType;\n  pVVar2->iDb = (i8)iDb;\n  pVVar2->nField = (i16)nField;\n  pVVar2->aOffset = pVVar2->aType + nField;\n  puVar1 = PTR_memset_00190d58;\n  if (eCurType != '\0') {\n    return pVVar2;\n  }\n  pcVar4 = pMVar6->z;\n  (pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5);\n  (*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14);\n  return pVVar2;\n}\n\n" (function_definition "VdbeCursor * allocateCursor(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)\n\n{\n  undefined *puVar1;\n  VdbeCursor *pVVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  Mem *pMVar6;\n  \n  pMVar6 = p->aMem;\n  if (0 < iCur) {\n    pMVar6 = pMVar6 + (p->nMem - iCur);\n  }\n  iVar5 = (nField + 0xc) * 8;\n  iVar3 = iVar5;\n  if (eCurType == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  pVVar2 = p->apCsr[iCur];\n  if (pVVar2 != (VdbeCursor *)0x0) {\n    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;\n    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);\n    p->apCsr[iCur] = (VdbeCursor *)0x0;\n  }\n  if (pMVar6->szMalloc < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);\n    if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }\n    pVVar2 = (VdbeCursor *)pMVar6->z;\n  }\n  else {\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  p->apCsr[iCur] = pVVar2;\n  (*(code *)puVar1)(&pVVar2->nullRow,0,0x22);\n  pVVar2->eCurType = eCurType;\n  pVVar2->iDb = (i8)iDb;\n  pVVar2->nField = (i16)nField;\n  pVVar2->aOffset = pVVar2->aType + nField;\n  puVar1 = PTR_memset_00190d58;\n  if (eCurType != '\0') {\n    return pVVar2;\n  }\n  pcVar4 = pMVar6->z;\n  (pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5);\n  (*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14);\n  return pVVar2;\n}" type_identifier (pointer_declarator "* allocateCursor(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)" * (function_declarator "allocateCursor(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)" identifier (parameter_list "(Vdbe *p,int iCur,int nField,int iDb,u8 eCurType)" ( (parameter_declaration "Vdbe *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int iCur" primitive_type identifier) , (parameter_declaration "int nField" primitive_type identifier) , (parameter_declaration "int iDb" primitive_type identifier) , (parameter_declaration "u8 eCurType" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  VdbeCursor *pVVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  Mem *pMVar6;\n  \n  pMVar6 = p->aMem;\n  if (0 < iCur) {\n    pMVar6 = pMVar6 + (p->nMem - iCur);\n  }\n  iVar5 = (nField + 0xc) * 8;\n  iVar3 = iVar5;\n  if (eCurType == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  pVVar2 = p->apCsr[iCur];\n  if (pVVar2 != (VdbeCursor *)0x0) {\n    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;\n    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);\n    p->apCsr[iCur] = (VdbeCursor *)0x0;\n  }\n  if (pMVar6->szMalloc < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);\n    if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }\n    pVVar2 = (VdbeCursor *)pMVar6->z;\n  }\n  else {\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  p->apCsr[iCur] = pVVar2;\n  (*(code *)puVar1)(&pVVar2->nullRow,0,0x22);\n  pVVar2->eCurType = eCurType;\n  pVVar2->iDb = (i8)iDb;\n  pVVar2->nField = (i16)nField;\n  pVVar2->aOffset = pVVar2->aType + nField;\n  puVar1 = PTR_memset_00190d58;\n  if (eCurType != '\0') {\n    return pVVar2;\n  }\n  pcVar4 = pMVar6->z;\n  (pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5);\n  (*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14);\n  return pVVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "VdbeCursor *pVVar2;" type_identifier (pointer_declarator "*pVVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Mem *pMVar6;" type_identifier (pointer_declarator "*pMVar6" * identifier) ;) (expression_statement "pMVar6 = p->aMem;" (assignment_expression "pMVar6 = p->aMem" identifier = (field_expression "p->aMem" identifier -> field_identifier)) ;) (if_statement "if (0 < iCur) {\n    pMVar6 = pMVar6 + (p->nMem - iCur);\n  }" if (parenthesized_expression "(0 < iCur)" ( (binary_expression "0 < iCur" number_literal < identifier) )) (compound_statement "{\n    pMVar6 = pMVar6 + (p->nMem - iCur);\n  }" { (expression_statement "pMVar6 = pMVar6 + (p->nMem - iCur);" (assignment_expression "pMVar6 = pMVar6 + (p->nMem - iCur)" identifier = (binary_expression "pMVar6 + (p->nMem - iCur)" identifier + (parenthesized_expression "(p->nMem - iCur)" ( (binary_expression "p->nMem - iCur" (field_expression "p->nMem" identifier -> field_identifier) - identifier) )))) ;) })) (expression_statement "iVar5 = (nField + 0xc) * 8;" (assignment_expression "iVar5 = (nField + 0xc) * 8" identifier = (binary_expression "(nField + 0xc) * 8" (parenthesized_expression "(nField + 0xc)" ( (binary_expression "nField + 0xc" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (eCurType == '\0') {\n    iVar3 = iVar5 + 200;\n  }" if (parenthesized_expression "(eCurType == '\0')" ( (binary_expression "eCurType == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = iVar5 + 200;\n  }" { (expression_statement "iVar3 = iVar5 + 200;" (assignment_expression "iVar3 = iVar5 + 200" identifier = (binary_expression "iVar5 + 200" identifier + number_literal)) ;) })) (expression_statement "pVVar2 = p->apCsr[iCur];" (assignment_expression "pVVar2 = p->apCsr[iCur]" identifier = (subscript_expression "p->apCsr[iCur]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (pVVar2 != (VdbeCursor *)0x0) {\n    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;\n    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);\n    p->apCsr[iCur] = (VdbeCursor *)0x0;\n  }" if (parenthesized_expression "(pVVar2 != (VdbeCursor *)0x0)" ( (binary_expression "pVVar2 != (VdbeCursor *)0x0" identifier != (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;\n    sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);\n    p->apCsr[iCur] = (VdbeCursor *)0x0;\n  }" { (expression_statement "pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f;" (assignment_expression "pVVar2->field_0x5 = pVVar2->field_0x5 & 0x7f" (field_expression "pVVar2->field_0x5" identifier -> field_identifier) = (binary_expression "pVVar2->field_0x5 & 0x7f" (field_expression "pVVar2->field_0x5" identifier -> field_identifier) & number_literal)) ;) (expression_statement "sqlite3VdbeFreeCursor(p,p->apCsr[iCur]);" (call_expression "sqlite3VdbeFreeCursor(p,p->apCsr[iCur])" identifier (argument_list "(p,p->apCsr[iCur])" ( identifier , (subscript_expression "p->apCsr[iCur]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "p->apCsr[iCur] = (VdbeCursor *)0x0;" (assignment_expression "p->apCsr[iCur] = (VdbeCursor *)0x0" (subscript_expression "p->apCsr[iCur]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ]) = (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (pMVar6->szMalloc < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);\n    if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }\n    pVVar2 = (VdbeCursor *)pMVar6->z;\n  }\n  else {\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }" if (parenthesized_expression "(pMVar6->szMalloc < iVar3)" ( (binary_expression "pMVar6->szMalloc < iVar3" (field_expression "pMVar6->szMalloc" identifier -> field_identifier) < identifier) )) (compound_statement "{\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);\n    if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }\n    pVVar2 = (VdbeCursor *)pMVar6->z;\n  }" { (expression_statement "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3);" (assignment_expression "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))(pMVar6,iVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + -0x4184)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + -0x4184)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + -0x4184)" ( (binary_expression "PTR_LAB_00190bc0 + -0x4184" identifier + number_literal) )))) )) (argument_list "(pMVar6,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      return (VdbeCursor *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return (VdbeCursor *)0x0;\n    }" { (return_statement "return (VdbeCursor *)0x0;" return (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pVVar2 = (VdbeCursor *)pMVar6->z;" (assignment_expression "pVVar2 = (VdbeCursor *)pMVar6->z" identifier = (cast_expression "(VdbeCursor *)pMVar6->z" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMVar6->z" identifier -> field_identifier))) ;) }) (else_clause "else {\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }" else (compound_statement "{\n    pVVar2 = (VdbeCursor *)pMVar6->zMalloc;\n    pMVar6->z = (char *)pVVar2;\n    pMVar6->flags = pMVar6->flags & 0xd;\n  }" { (expression_statement "pVVar2 = (VdbeCursor *)pMVar6->zMalloc;" (assignment_expression "pVVar2 = (VdbeCursor *)pMVar6->zMalloc" identifier = (cast_expression "(VdbeCursor *)pMVar6->zMalloc" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pMVar6->zMalloc" identifier -> field_identifier))) ;) (expression_statement "pMVar6->z = (char *)pVVar2;" (assignment_expression "pMVar6->z = (char *)pVVar2" (field_expression "pMVar6->z" identifier -> field_identifier) = (cast_expression "(char *)pVVar2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pMVar6->flags = pMVar6->flags & 0xd;" (assignment_expression "pMVar6->flags = pMVar6->flags & 0xd" (field_expression "pMVar6->flags" identifier -> field_identifier) = (binary_expression "pMVar6->flags & 0xd" (field_expression "pMVar6->flags" identifier -> field_identifier) & number_literal)) ;) }))) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (expression_statement "p->apCsr[iCur] = pVVar2;" (assignment_expression "p->apCsr[iCur] = pVVar2" (subscript_expression "p->apCsr[iCur]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(&pVVar2->nullRow,0,0x22);" (call_expression "(*(code *)puVar1)(&pVVar2->nullRow,0,0x22)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&pVVar2->nullRow,0,0x22)" ( (pointer_expression "&pVVar2->nullRow" & (field_expression "pVVar2->nullRow" identifier -> field_identifier)) , number_literal , number_literal ))) ;) (expression_statement "pVVar2->eCurType = eCurType;" (assignment_expression "pVVar2->eCurType = eCurType" (field_expression "pVVar2->eCurType" identifier -> field_identifier) = identifier) ;) (expression_statement "pVVar2->iDb = (i8)iDb;" (assignment_expression "pVVar2->iDb = (i8)iDb" (field_expression "pVVar2->iDb" identifier -> field_identifier) = (cast_expression "(i8)iDb" ( (type_descriptor "i8" type_identifier) ) identifier)) ;) (expression_statement "pVVar2->nField = (i16)nField;" (assignment_expression "pVVar2->nField = (i16)nField" (field_expression "pVVar2->nField" identifier -> field_identifier) = (cast_expression "(i16)nField" ( (type_descriptor "i16" type_identifier) ) identifier)) ;) (expression_statement "pVVar2->aOffset = pVVar2->aType + nField;" (assignment_expression "pVVar2->aOffset = pVVar2->aType + nField" (field_expression "pVVar2->aOffset" identifier -> field_identifier) = (binary_expression "pVVar2->aType + nField" (field_expression "pVVar2->aType" identifier -> field_identifier) + identifier)) ;) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (if_statement "if (eCurType != '\0') {\n    return pVVar2;\n  }" if (parenthesized_expression "(eCurType != '\0')" ( (binary_expression "eCurType != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return pVVar2;\n  }" { (return_statement "return pVVar2;" return identifier ;) })) (expression_statement "pcVar4 = pMVar6->z;" (assignment_expression "pcVar4 = pMVar6->z" identifier = (field_expression "pMVar6->z" identifier -> field_identifier)) ;) (expression_statement "(pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5);" (assignment_expression "(pVVar2->uc).pCursor = (BtCursor *)(pcVar4 + iVar5)" (field_expression "(pVVar2->uc).pCursor" (parenthesized_expression "(pVVar2->uc)" ( (field_expression "pVVar2->uc" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(BtCursor *)(pcVar4 + iVar5)" ( (type_descriptor "BtCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + iVar5)" ( (binary_expression "pcVar4 + iVar5" identifier + identifier) )))) ;) (expression_statement "(*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14);" (call_expression "(*(code *)puVar1)((BtCursor *)(pcVar4 + iVar5),0,0x14)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((BtCursor *)(pcVar4 + iVar5),0,0x14)" ( (cast_expression "(BtCursor *)(pcVar4 + iVar5)" ( (type_descriptor "BtCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + iVar5)" ( (binary_expression "pcVar4 + iVar5" identifier + identifier) ))) , number_literal , number_literal ))) ;) (return_statement "return pVVar2;" return identifier ;) })))
(translation_unit "char * FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" * (function_declarator "FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,char param_4,char param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char param_4" primitive_type identifier) , (parameter_declaration "char param_5" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x58)" identifier = (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" { (expression_statement "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;" (assignment_expression "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" identifier = (binary_expression "iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" identifier + (binary_expression "(*(int *)(param_1 + 0x18) - param_2) * 0x28" (parenthesized_expression "(*(int *)(param_1 + 0x18) - param_2)" ( (binary_expression "*(int *)(param_1 + 0x18) - param_2" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) - identifier) )) * number_literal))) ;) })) (expression_statement "iVar5 = (param_3 + 0xc) * 8;" (assignment_expression "iVar5 = (param_3 + 0xc) * 8" identifier = (binary_expression "(param_3 + 0xc) * 8" (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" identifier = identifier) ;) (if_statement "if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = iVar5 + 200;\n  }" { (expression_statement "iVar3 = iVar5 + 200;" (assignment_expression "iVar3 = iVar5 + 200" identifier = (binary_expression "iVar5 + 200" identifier + number_literal)) ;) })) (expression_statement "param_2 = param_2 * 4;" (assignment_expression "param_2 = param_2 * 4" identifier = (binary_expression "param_2 * 4" identifier * number_literal)) ;) (expression_statement "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" { (expression_statement "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;" (assignment_expression "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" * (cast_expression "(byte *)(iVar2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 5)" ( (binary_expression "iVar2 + 5" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" * (cast_expression "(byte *)(iVar2 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 5)" ( (binary_expression "iVar2 + 5" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));" (call_expression "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" identifier (argument_list "(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" ( identifier , (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })) (if_statement "if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" if (parenthesized_expression "(*(int *)(iVar6 + 0x18) < iVar3)" ( (binary_expression "*(int *)(iVar6 + 0x18) < iVar3" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }" { (expression_statement "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);" (assignment_expression "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" identifier = (call_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))" ( (pointer_expression "*(code *)(PTR_LAB_00190bc0 + -0x4184)" * (cast_expression "(code *)(PTR_LAB_00190bc0 + -0x4184)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190bc0 + -0x4184)" ( (binary_expression "PTR_LAB_00190bc0 + -0x4184" identifier + number_literal) )))) )) (argument_list "(iVar6,iVar3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar4 = *(char **)(iVar6 + 0x10);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x10)" identifier = (pointer_expression "*(char **)(iVar6 + 0x10)" * (cast_expression "(char **)(iVar6 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" else (compound_statement "{\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" { (expression_statement "pcVar4 = *(char **)(iVar6 + 0x14);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x14)" identifier = (pointer_expression "*(char **)(iVar6 + 0x14)" * (cast_expression "(char **)(iVar6 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(iVar6 + 0x10) = pcVar4;" (assignment_expression "*(char **)(iVar6 + 0x10) = pcVar4" (pointer_expression "*(char **)(iVar6 + 0x10)" * (cast_expression "(char **)(iVar6 + 0x10)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;" (assignment_expression "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" * (cast_expression "(ushort *)(iVar6 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" * (cast_expression "(ushort *)(iVar6 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) & number_literal)) ;) }))) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (expression_statement "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2)" * (cast_expression "(char **)(*(int *)(param_1 + 0x60) + param_2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" ( (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(pcVar4 + 2,0,0x22);" (call_expression "(*(code *)puVar1)(pcVar4 + 2,0,0x22)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4 + 2,0,0x22)" ( (binary_expression "pcVar4 + 2" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "*pcVar4 = param_5;" (assignment_expression "*pcVar4 = param_5" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (expression_statement "pcVar4[1] = param_4;" (assignment_expression "pcVar4[1] = param_4" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)(pcVar4 + 0x38) = (short)param_3;" (assignment_expression "*(short *)(pcVar4 + 0x38) = (short)param_3" (pointer_expression "*(short *)(pcVar4 + 0x38)" * (cast_expression "(short *)(pcVar4 + 0x38)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x38)" ( (binary_expression "pcVar4 + 0x38" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;" (assignment_expression "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4" (pointer_expression "*(char **)(pcVar4 + 0x48)" * (cast_expression "(char **)(pcVar4 + 0x48)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar4 + 0x48)" ( (binary_expression "pcVar4 + 0x48" identifier + number_literal) )))) = (binary_expression "pcVar4 + (param_3 + 0x16) * 4" identifier + (binary_expression "(param_3 + 0x16) * 4" (parenthesized_expression "(param_3 + 0x16)" ( (binary_expression "param_3 + 0x16" identifier + number_literal) )) * number_literal))) ;) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" identifier = identifier) ;) (if_statement "if (param_5 != '\0') {\n    return pcVar4;\n  }" if (parenthesized_expression "(param_5 != '\0')" ( (binary_expression "param_5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return pcVar4;\n  }" { (return_statement "return pcVar4;" return identifier ;) })) (expression_statement "iVar5 = *(int *)(iVar6 + 0x10) + iVar5;" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x10) + iVar5" identifier = (binary_expression "*(int *)(iVar6 + 0x10) + iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" * (cast_expression "(int *)(iVar6 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(int *)(pcVar4 + 0x28) = iVar5;" (assignment_expression "*(int *)(pcVar4 + 0x28) = iVar5" (pointer_expression "*(int *)(pcVar4 + 0x28)" * (cast_expression "(int *)(pcVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar4 + 0x28)" ( (binary_expression "pcVar4 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar5,0,0x14);" (call_expression "(*(code *)puVar1)(iVar5,0,0x14)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5,0,0x14)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) * LIT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return 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)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" (primitive_type "char") (pointer_declarator "* FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" (* "*") (function_declarator "FUN_000d77f0(int param_1,int param_2,int param_3,char param_4,char param_5)" (identifier "FUN_000d77f0") (parameter_list "(int param_1,int param_2,int param_3,char param_4,char param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar6 = *(int *)(param_1 + 0x58);\n  if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }\n  iVar5 = (param_3 + 0xc) * 8;\n  iVar3 = iVar5;\n  if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }\n  param_2 = param_2 * 4;\n  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);\n  if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }\n  if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }\n  puVar1 = PTR_memset_00190d58;\n  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;\n  (*(code *)puVar1)(pcVar4 + 2,0,0x22);\n  *pcVar4 = param_5;\n  pcVar4[1] = param_4;\n  *(short *)(pcVar4 + 0x38) = (short)param_3;\n  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;\n  puVar1 = PTR_memset_00190d58;\n  if (param_5 != '\0') {\n    return pcVar4;\n  }\n  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;\n  *(int *)(pcVar4 + 0x28) = iVar5;\n  (*(code *)puVar1)(iVar5,0,0x14);\n  return pcVar4;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x58)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (if_statement "if (0 < param_2) {\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;\n  }" ({ "{") (expression_statement "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;" (assignment_expression "iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" (identifier "iVar6") (= "=") (binary_expression "iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28" (identifier "iVar6") (+ "+") (binary_expression "(*(int *)(param_1 + 0x18) - param_2) * 0x28" (parenthesized_expression "(*(int *)(param_1 + 0x18) - param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x18) - param_2" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (- "-") (identifier "param_2")) () ")")) (* "*") (number_literal "0x28")))) (; ";")) (} "}"))) (expression_statement "iVar5 = (param_3 + 0xc) * 8;" (assignment_expression "iVar5 = (param_3 + 0xc) * 8" (identifier "iVar5") (= "=") (binary_expression "(param_3 + 0xc) * 8" (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")")) (* "*") (number_literal "8"))) (; ";")) (expression_statement "iVar3 = iVar5;" (assignment_expression "iVar3 = iVar5" (identifier "iVar3") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (param_5 == '\0') {\n    iVar3 = iVar5 + 200;\n  }" (if "if") (parenthesized_expression "(param_5 == '\0')" (( "(") (binary_expression "param_5 == '\0'" (identifier "param_5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar3 = iVar5 + 200;\n  }" ({ "{") (expression_statement "iVar3 = iVar5 + 200;" (assignment_expression "iVar3 = iVar5 + 200" (identifier "iVar3") (= "=") (binary_expression "iVar5 + 200" (identifier "iVar5") (+ "+") (number_literal "200"))) (; ";")) (} "}"))) (expression_statement "param_2 = param_2 * 4;" (assignment_expression "param_2 = param_2 * 4" (identifier "param_2") (= "=") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + param_2)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x60) + param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (identifier "param_2")) () ")"))))) (; ";")) (if_statement "if (iVar2 != 0) {\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;\n    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));\n    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;\n  }" ({ "{") (expression_statement "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;" (assignment_expression "*(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" (* "*") (cast_expression "(byte *)(iVar2 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 5)" (( "(") (binary_expression "iVar2 + 5" (identifier "iVar2") (+ "+") (number_literal "5")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar2 + 5) & 0x7f" (pointer_expression "*(byte *)(iVar2 + 5)" (* "*") (cast_expression "(byte *)(iVar2 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 5)" (( "(") (binary_expression "iVar2 + 5" (identifier "iVar2") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));" (call_expression "FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" (identifier "FUN_000d751c") (argument_list "(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (identifier "param_2")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (identifier "param_2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar6 + 0x18) < iVar3) {\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }\n  else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar6 + 0x18) < iVar3)" (( "(") (binary_expression "*(int *)(iVar6 + 0x18) < iVar3" (pointer_expression "*(int *)(iVar6 + 0x18)" (* "*") (cast_expression "(int *)(iVar6 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")")))) (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);\n    if (iVar3 != 0) {\n      return (char *)0x0;\n    }\n    pcVar4 = *(char **)(iVar6 + 0x10);\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);" (assignment_expression "iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3)" (parenthesized_expression "(*(code *)(PTR_LAB_00190bc0 + -0x4184))" (( "(") (pointer_expression "*(code *)(PTR_LAB_00190bc0 + -0x4184)" (* "*") (cast_expression "(code *)(PTR_LAB_00190bc0 + -0x4184)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190bc0 + -0x4184)" (( "(") (binary_expression "PTR_LAB_00190bc0 + -0x4184" (identifier "PTR_LAB_00190bc0") (+ "+") (number_literal "-0x4184")) () ")")))) () ")")) (argument_list "(iVar6,iVar3)" (( "(") (identifier "iVar6") (, ",") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      return (char *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return (char *)0x0;\n    }" ({ "{") (return_statement "return (char *)0x0;" (return "return") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "pcVar4 = *(char **)(iVar6 + 0x10);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x10)" (identifier "pcVar4") (= "=") (pointer_expression "*(char **)(iVar6 + 0x10)" (* "*") (cast_expression "(char **)(iVar6 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" (else "else") (compound_statement "{\n    pcVar4 = *(char **)(iVar6 + 0x14);\n    *(char **)(iVar6 + 0x10) = pcVar4;\n    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;\n  }" ({ "{") (expression_statement "pcVar4 = *(char **)(iVar6 + 0x14);" (assignment_expression "pcVar4 = *(char **)(iVar6 + 0x14)" (identifier "pcVar4") (= "=") (pointer_expression "*(char **)(iVar6 + 0x14)" (* "*") (cast_expression "(char **)(iVar6 + 0x14)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x14)" (( "(") (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(char **)(iVar6 + 0x10) = pcVar4;" (assignment_expression "*(char **)(iVar6 + 0x10) = pcVar4" (pointer_expression "*(char **)(iVar6 + 0x10)" (* "*") (cast_expression "(char **)(iVar6 + 0x10)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;" (assignment_expression "*(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" (* "*") (cast_expression "(ushort *)(iVar6 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar6 + 8) & 0xd" (pointer_expression "*(ushort *)(iVar6 + 8)" (* "*") (cast_expression "(ushort *)(iVar6 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0xd"))) (; ";")) (} "}")))) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" (identifier "puVar1") (= "=") (identifier "PTR_memset_00190d58")) (; ";")) (expression_statement "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x60) + param_2)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 0x60) + param_2)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + param_2)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + param_2" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (identifier "param_2")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "(*(code *)puVar1)(pcVar4 + 2,0,0x22);" (call_expression "(*(code *)puVar1)(pcVar4 + 2,0,0x22)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(pcVar4 + 2,0,0x22)" (( "(") (binary_expression "pcVar4 + 2" (identifier "pcVar4") (+ "+") (number_literal "2")) (, ",") (number_literal "0") (, ",") (number_literal "0x22") () ")"))) (; ";")) (expression_statement "*pcVar4 = param_5;" (assignment_expression "*pcVar4 = param_5" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "pcVar4[1] = param_4;" (assignment_expression "pcVar4[1] = param_4" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(short *)(pcVar4 + 0x38) = (short)param_3;" (assignment_expression "*(short *)(pcVar4 + 0x38) = (short)param_3" (pointer_expression "*(short *)(pcVar4 + 0x38)" (* "*") (cast_expression "(short *)(pcVar4 + 0x38)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar4 + 0x38)" (( "(") (binary_expression "pcVar4 + 0x38" (identifier "pcVar4") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (cast_expression "(short)param_3" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_3"))) (; ";")) (expression_statement "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;" (assignment_expression "*(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4" (pointer_expression "*(char **)(pcVar4 + 0x48)" (* "*") (cast_expression "(char **)(pcVar4 + 0x48)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar4 + 0x48)" (( "(") (binary_expression "pcVar4 + 0x48" (identifier "pcVar4") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (binary_expression "pcVar4 + (param_3 + 0x16) * 4" (identifier "pcVar4") (+ "+") (binary_expression "(param_3 + 0x16) * 4" (parenthesized_expression "(param_3 + 0x16)" (( "(") (binary_expression "param_3 + 0x16" (identifier "param_3") (+ "+") (number_literal "0x16")) () ")")) (* "*") (number_literal "4")))) (; ";")) (expression_statement "puVar1 = PTR_memset_00190d58;" (assignment_expression "puVar1 = PTR_memset_00190d58" (identifier "puVar1") (= "=") (identifier "PTR_memset_00190d58")) (; ";")) (if_statement "if (param_5 != '\0') {\n    return pcVar4;\n  }" (if "if") (parenthesized_expression "(param_5 != '\0')" (( "(") (binary_expression "param_5 != '\0'" (identifier "param_5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return pcVar4;\n  }" ({ "{") (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar6 + 0x10) + iVar5;" (assignment_expression "iVar5 = *(int *)(iVar6 + 0x10) + iVar5" (identifier "iVar5") (= "=") (binary_expression "*(int *)(iVar6 + 0x10) + iVar5" (pointer_expression "*(int *)(iVar6 + 0x10)" (* "*") (cast_expression "(int *)(iVar6 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "*(int *)(pcVar4 + 0x28) = iVar5;" (assignment_expression "*(int *)(pcVar4 + 0x28) = iVar5" (pointer_expression "*(int *)(pcVar4 + 0x28)" (* "*") (cast_expression "(int *)(pcVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(pcVar4 + 0x28)" (( "(") (binary_expression "pcVar4 + 0x28" (identifier "pcVar4") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar5,0,0x14);" (call_expression "(*(code *)puVar1)(iVar5,0,0x14)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar5,0,0x14)" (( "(") (identifier "iVar5") (, ",") (number_literal "0") (, ",") (number_literal "0x14") () ")"))) (; ";")) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (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: (identifier))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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))))) right: (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: (identifier))) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (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 (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (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)))) (expression_statement (assignment_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))) (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) (number_literal) (number_literal)))) (return_statement (identifier)))))

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

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  
  iVar6 = *(int *)(param_1 + 0x58);
  if (0 < param_2) {
    iVar6 = iVar6 + (*(int *)(param_1 + 0x18) - param_2) * 0x28;
  }
  iVar5 = (param_3 + 0xc) * 8;
  iVar3 = iVar5;
  if (param_5 == '\0') {
    iVar3 = iVar5 + 200;
  }
  param_2 = param_2 * 4;
  iVar2 = *(int *)(*(int *)(param_1 + 0x60) + param_2);
  if (iVar2 != 0) {
    *(byte *)(iVar2 + 5) = *(byte *)(iVar2 + 5) & 0x7f;
    FUN_000d751c(param_1,*(undefined4 *)(*(int *)(param_1 + 0x60) + param_2));
    *(undefined4 *)(*(int *)(param_1 + 0x60) + param_2) = 0;
  }
  if (*(int *)(iVar6 + 0x18) < iVar3) {
    iVar3 = (*(code *)(PTR_LAB_00190bc0 + -0x4184))(iVar6,iVar3);
    if (iVar3 != 0) {
      return (char *)0x0;
    }
    pcVar4 = *(char **)(iVar6 + 0x10);
  }
  else {
    pcVar4 = *(char **)(iVar6 + 0x14);
    *(char **)(iVar6 + 0x10) = pcVar4;
    *(ushort *)(iVar6 + 8) = *(ushort *)(iVar6 + 8) & 0xd;
  }
  puVar1 = PTR_memset_00190d58;
  *(char **)(*(int *)(param_1 + 0x60) + param_2) = pcVar4;
  (*(code *)puVar1)(pcVar4 + 2,0,0x22);
  *pcVar4 = param_5;
  pcVar4[1] = param_4;
  *(short *)(pcVar4 + 0x38) = (short)param_3;
  *(char **)(pcVar4 + 0x48) = pcVar4 + (param_3 + 0x16) * 4;
  puVar1 = PTR_memset_00190d58;
  if (param_5 != '\0') {
    return pcVar4;
  }
  iVar5 = *(int *)(iVar6 + 0x10) + iVar5;
  *(int *)(pcVar4 + 0x28) = iVar5;
  (*(code *)puVar1)(iVar5,0,0x14);
  return pcVar4;
}

