
Expr * tokenExpr(Parse *pParse,int op,Token t)

{
  byte bVar1;
  Expr *pEVar2;
  int iVar3;
  uint uVar4;
  sqlite3 *in_a2;
  char *in_a3;
  code *pcVar5;
  sqlite3 *psStackX_8;
  char *pcStackX_c;
  undefined1 *puVar6;
  undefined4 in_stack_ffffffec;
  
  puVar6 = &_gp;
  if ((pParse->db->mallocFailed != '\0') ||
     (psStackX_8 = in_a2, pcStackX_c = in_a3,
     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),
     pEVar2 == (Expr *)0x0)) {
    return (Expr *)0x0;
  }
  pcVar5 = *(code **)(puVar6 + -0x7af4);
  pEVar2->op = (char)op;
  pEVar2->affinity = '\0';
  (pEVar2->u).zToken = (char *)(pEVar2 + 1);
  pEVar2->flags = 0x800000;
  pEVar2->pRight = (Expr *)0x0;
  pEVar2->iAgg = -1;
  pEVar2->pLeft = (Expr *)0x0;
  (pEVar2->x).pList = (ExprList *)0x0;
  pEVar2->pAggInfo = (AggInfo *)0x0;
  (pEVar2->y).sub.iAddr = 0;
  pEVar2->op2 = '\0';
  pEVar2->iTable = 0;
  pEVar2->iColumn = 0;
  iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c);
  pcStackX_c[iVar3] = '\0';
  bVar1 = *(pEVar2->u).zToken;
  if (*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0') {
    if (bVar1 == 0x22) {
      uVar4 = 0x4000040;
    }
    else {
      uVar4 = 0x4000000;
    }
    pEVar2->flags = pEVar2->flags | uVar4;
    sqlite3Dequote((pEVar2->u).zToken);
  }
  pEVar2->nHeight = 1;
  if (pParse->eParseMode < 2) {
    return pEVar2;
  }
  pEVar2 = (Expr *)sqlite3RenameTokenMap
                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,
                              (Parse *)&psStackX_8);
  return pEVar2;
}



undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  int iVar4;
  uint uVar5;
  undefined4 local_res8;
  int local_resc;
  
  if ((*(char *)(*param_1 + 0x51) != '\0') ||
     (local_res8 = param_3, local_resc = param_4,
     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,
     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {
    return (undefined1 *)0x0;
  }
  *puVar3 = (char)param_2;
  puVar3[1] = 0;
  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;
  *(undefined4 *)(puVar3 + 4) = 0x800000;
  *(undefined4 *)(puVar3 + 0x10) = 0;
  *(undefined2 *)(puVar3 + 0x24) = 0xffff;
  *(undefined4 *)(puVar3 + 0xc) = 0;
  *(undefined4 *)(puVar3 + 0x14) = 0;
  *(undefined4 *)(puVar3 + 0x2c) = 0;
  *(undefined4 *)(puVar3 + 0x30) = 0;
  puVar3[0x28] = 0;
  *(undefined4 *)(puVar3 + 0x1c) = 0;
  *(undefined4 *)(puVar3 + 0x20) = 0;
  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);
  *(undefined1 *)(iVar4 + iVar2) = 0;
  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {
    if (**(byte **)(puVar3 + 8) == 0x22) {
      uVar5 = 0x4000040;
    }
    else {
      uVar5 = 0x4000000;
    }
    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;
    FUN_0003f250();
  }
  *(undefined4 *)(puVar3 + 0x18) = 1;
  if (*(byte *)((int)param_1 + 0xc6) < 2) {
    return puVar3;
  }
  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);
  return puVar3;
}


lui gp,0x14
addiu gp,gp,-0x3138
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw v0,0x0(a0)
sw a2,0x30(sp)
sw a3,0x34(sp)
lbu v1,0x51(v0)
bne v1,zero,0x0005bb98
_lw t9,-0x7d78(gp)
or a2,zero,zero
addiu a3,a3,0x39
or s2,a0,zero
addiu t9,t9,0x854
or a0,v0,zero
bal 0x00050854
_or s1,a1,zero
lw gp,0x10(sp)
beq v0,zero,0x0005bb98
_or s0,v0,zero
lw t9,-0x7af4(gp)
addiu v1,v0,0x38
sb s1,0x0(v0)
sb zero,0x1(v0)
lui v0,0x80
sw v1,0x8(s0)
or a0,v1,zero
sw v0,0x4(s0)
li v0,-0x1
sw zero,0x10(s0)
sh v0,0x24(s0)
sw zero,0xc(s0)
sw zero,0x14(s0)
sw zero,0x2c(s0)
sw zero,0x30(s0)
sb zero,0x28(s0)
sw zero,0x1c(s0)
sw zero,0x20(s0)
lw s1,0x34(sp)
lw a1,0x30(sp)
jalr t9
_or a2,s1,zero
addu v1,v0,s1
lw gp,0x10(sp)
sb zero,0x0(v1)
lw a0,0x8(s0)
lw v1,-0x7d8c(gp)
lb a1,0x0(a0)
addiu v1,v1,-0x3d18
andi v0,a1,0xff
addu v0,v0,v1
lb v0,0x0(v0)
bltz v0,0x0005bbb8
_li v1,0x22
li v0,0x1
sw v0,0x18(s0)
lbu v0,0xc6(s2)
sltiu v0,v0,0x2
bne v0,zero,0x0005bba0
_lw ra,0x24(sp)
lw t9,-0x7d7c(gp)
addiu a3,sp,0x30
lw a0,0x0(s2)
addiu a1,s2,0x10c
addiu t9,t9,-0x4778
bal 0x0005b888
_or a2,s0,zero
lw ra,0x24(sp)
or s0,v0,zero
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
or s0,zero,zero
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
beq a1,v1,0x0005bbe0
_lw v0,0x4(s0)
lui v1,0x400
lw t9,-0x7de0(gp)
or v0,v0,v1
addiu t9,t9,-0xdb0
bal 0x0003f250
_sw v0,0x4(s0)
b 0x0005bb44
_lw gp,0x10(sp)
lui v1,0x400
b 0x0005bbc4
_addiu v1,v1,0x40
(translation_unit "undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}\n\n" (function_definition "undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" * (function_declarator "FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "int local_resc;" primitive_type identifier ;) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }" if (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0))" ( (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" ( (comma_expression "local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_res8 = param_3" identifier = identifier) , (comma_expression "local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_resc = param_4" identifier = identifier) , (comma_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" identifier = (cast_expression "(undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" identifier (argument_list "(*param_1,param_2,0,param_4 + 0x39)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal , (binary_expression "param_4 + 0x39" identifier + number_literal) ))))) , (comma_expression "iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "iVar2 = local_resc" identifier = identifier) , (comma_expression "puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar1 = PTR_memcpy_00190e2c" identifier = identifier) , (binary_expression "puVar3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))))))) ))) )) (compound_statement "{\n    return (undefined1 *)0x0;\n  }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*puVar3 = (char)param_2;" (assignment_expression "*puVar3 = (char)param_2" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;" (assignment_expression "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38" (pointer_expression "*(undefined1 **)(puVar3 + 8)" * (cast_expression "(undefined1 **)(puVar3 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))) = (binary_expression "puVar3 + 0x38" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar3 + 4) = 0x800000;" (assignment_expression "*(undefined4 *)(puVar3 + 4) = 0x800000" (pointer_expression "*(undefined4 *)(puVar3 + 4)" * (cast_expression "(undefined4 *)(puVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" * (cast_expression "(undefined4 *)(puVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar3 + 0x24) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x24) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x24)" * (cast_expression "(undefined2 *)(puVar3 + 0x24)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x24)" ( (binary_expression "puVar3 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" * (cast_expression "(undefined4 *)(puVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x14)" * (cast_expression "(undefined4 *)(puVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x2c)" * (cast_expression "(undefined4 *)(puVar3 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2c)" ( (binary_expression "puVar3 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x30)" * (cast_expression "(undefined4 *)(puVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x30)" ( (binary_expression "puVar3 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3[0x28] = 0;" (assignment_expression "puVar3[0x28] = 0" (subscript_expression "puVar3[0x28]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x1c)" * (cast_expression "(undefined4 *)(puVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1c)" ( (binary_expression "puVar3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x20)" * (cast_expression "(undefined4 *)(puVar3 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x20)" ( (binary_expression "puVar3 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);" (assignment_expression "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" identifier = (call_expression "(*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 0x38,local_res8,local_resc)" ( (binary_expression "puVar3 + 0x38" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar2)" * (cast_expression "(undefined1 *)(iVar4 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar2)" ( (binary_expression "iVar4 + iVar2" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" if (parenthesized_expression "((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0')" ( (binary_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0'" (cast_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" identifier [ (binary_expression "**(byte **)(puVar3 + 8) - 0x3d18" (pointer_expression "**(byte **)(puVar3 + 8)" * (pointer_expression "*(byte **)(puVar3 + 8)" * (cast_expression "(byte **)(puVar3 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) - number_literal) ])) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" { (if_statement "if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }" if (parenthesized_expression "(**(byte **)(puVar3 + 8) == 0x22)" ( (binary_expression "**(byte **)(puVar3 + 8) == 0x22" (pointer_expression "**(byte **)(puVar3 + 8)" * (pointer_expression "*(byte **)(puVar3 + 8)" * (cast_expression "(byte **)(puVar3 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) == number_literal) )) (compound_statement "{\n      uVar5 = 0x4000040;\n    }" { (expression_statement "uVar5 = 0x4000040;" (assignment_expression "uVar5 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n      uVar5 = 0x4000000;\n    }" else (compound_statement "{\n      uVar5 = 0x4000000;\n    }" { (expression_statement "uVar5 = 0x4000000;" (assignment_expression "uVar5 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;" (assignment_expression "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" * (cast_expression "(uint *)(puVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" * (cast_expression "(uint *)(puVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "FUN_0003f250();" (call_expression "FUN_0003f250()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" * (cast_expression "(undefined4 *)(puVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x18)" ( (binary_expression "puVar3 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }" if (parenthesized_expression "(*(byte *)((int)param_1 + 0xc6) < 2)" ( (binary_expression "*(byte *)((int)param_1 + 0xc6) < 2" (pointer_expression "*(byte *)((int)param_1 + 0xc6)" * (cast_expression "(byte *)((int)param_1 + 0xc6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc6)" ( (binary_expression "(int)param_1 + 0xc6" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return puVar3;\n  }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);" (assignment_expression "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" identifier = (cast_expression "(undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" identifier (argument_list "(*param_1,param_1 + 0x43,puVar3,&local_res8)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_1 + 0x43" identifier + number_literal) , identifier , (pointer_expression "&local_res8" & identifier) ))))) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "Expr * tokenExpr(Parse *pParse,int op,Token t)\n\n{\n  byte bVar1;\n  Expr *pEVar2;\n  int iVar3;\n  uint uVar4;\n  sqlite3 *in_a2;\n  char *in_a3;\n  code *pcVar5;\n  sqlite3 *psStackX_8;\n  char *pcStackX_c;\n  undefined1 *puVar6;\n  undefined4 in_stack_ffffffec;\n  \n  puVar6 = &_gp;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)) {\n    return (Expr *)0x0;\n  }\n  pcVar5 = *(code **)(puVar6 + -0x7af4);\n  pEVar2->op = (char)op;\n  pEVar2->affinity = '\0';\n  (pEVar2->u).zToken = (char *)(pEVar2 + 1);\n  pEVar2->flags = 0x800000;\n  pEVar2->pRight = (Expr *)0x0;\n  pEVar2->iAgg = -1;\n  pEVar2->pLeft = (Expr *)0x0;\n  (pEVar2->x).pList = (ExprList *)0x0;\n  pEVar2->pAggInfo = (AggInfo *)0x0;\n  (pEVar2->y).sub.iAddr = 0;\n  pEVar2->op2 = '\0';\n  pEVar2->iTable = 0;\n  pEVar2->iColumn = 0;\n  iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c);\n  pcStackX_c[iVar3] = '\0';\n  bVar1 = *(pEVar2->u).zToken;\n  if (*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0') {\n    if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }\n    pEVar2->flags = pEVar2->flags | uVar4;\n    sqlite3Dequote((pEVar2->u).zToken);\n  }\n  pEVar2->nHeight = 1;\n  if (pParse->eParseMode < 2) {\n    return pEVar2;\n  }\n  pEVar2 = (Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8);\n  return pEVar2;\n}\n\n" (function_definition "Expr * tokenExpr(Parse *pParse,int op,Token t)\n\n{\n  byte bVar1;\n  Expr *pEVar2;\n  int iVar3;\n  uint uVar4;\n  sqlite3 *in_a2;\n  char *in_a3;\n  code *pcVar5;\n  sqlite3 *psStackX_8;\n  char *pcStackX_c;\n  undefined1 *puVar6;\n  undefined4 in_stack_ffffffec;\n  \n  puVar6 = &_gp;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)) {\n    return (Expr *)0x0;\n  }\n  pcVar5 = *(code **)(puVar6 + -0x7af4);\n  pEVar2->op = (char)op;\n  pEVar2->affinity = '\0';\n  (pEVar2->u).zToken = (char *)(pEVar2 + 1);\n  pEVar2->flags = 0x800000;\n  pEVar2->pRight = (Expr *)0x0;\n  pEVar2->iAgg = -1;\n  pEVar2->pLeft = (Expr *)0x0;\n  (pEVar2->x).pList = (ExprList *)0x0;\n  pEVar2->pAggInfo = (AggInfo *)0x0;\n  (pEVar2->y).sub.iAddr = 0;\n  pEVar2->op2 = '\0';\n  pEVar2->iTable = 0;\n  pEVar2->iColumn = 0;\n  iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c);\n  pcStackX_c[iVar3] = '\0';\n  bVar1 = *(pEVar2->u).zToken;\n  if (*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0') {\n    if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }\n    pEVar2->flags = pEVar2->flags | uVar4;\n    sqlite3Dequote((pEVar2->u).zToken);\n  }\n  pEVar2->nHeight = 1;\n  if (pParse->eParseMode < 2) {\n    return pEVar2;\n  }\n  pEVar2 = (Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8);\n  return pEVar2;\n}" type_identifier (pointer_declarator "* tokenExpr(Parse *pParse,int op,Token t)" * (function_declarator "tokenExpr(Parse *pParse,int op,Token t)" identifier (parameter_list "(Parse *pParse,int op,Token t)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "int op" primitive_type identifier) , (parameter_declaration "Token t" type_identifier identifier) )))) (compound_statement "{\n  byte bVar1;\n  Expr *pEVar2;\n  int iVar3;\n  uint uVar4;\n  sqlite3 *in_a2;\n  char *in_a3;\n  code *pcVar5;\n  sqlite3 *psStackX_8;\n  char *pcStackX_c;\n  undefined1 *puVar6;\n  undefined4 in_stack_ffffffec;\n  \n  puVar6 = &_gp;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)) {\n    return (Expr *)0x0;\n  }\n  pcVar5 = *(code **)(puVar6 + -0x7af4);\n  pEVar2->op = (char)op;\n  pEVar2->affinity = '\0';\n  (pEVar2->u).zToken = (char *)(pEVar2 + 1);\n  pEVar2->flags = 0x800000;\n  pEVar2->pRight = (Expr *)0x0;\n  pEVar2->iAgg = -1;\n  pEVar2->pLeft = (Expr *)0x0;\n  (pEVar2->x).pList = (ExprList *)0x0;\n  pEVar2->pAggInfo = (AggInfo *)0x0;\n  (pEVar2->y).sub.iAddr = 0;\n  pEVar2->op2 = '\0';\n  pEVar2->iTable = 0;\n  pEVar2->iColumn = 0;\n  iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c);\n  pcStackX_c[iVar3] = '\0';\n  bVar1 = *(pEVar2->u).zToken;\n  if (*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0') {\n    if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }\n    pEVar2->flags = pEVar2->flags | uVar4;\n    sqlite3Dequote((pEVar2->u).zToken);\n  }\n  pEVar2->nHeight = 1;\n  if (pParse->eParseMode < 2) {\n    return pEVar2;\n  }\n  pEVar2 = (Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8);\n  return pEVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "Expr *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "sqlite3 *in_a2;" type_identifier (pointer_declarator "*in_a2" * identifier) ;) (declaration "char *in_a3;" primitive_type (pointer_declarator "*in_a3" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "sqlite3 *psStackX_8;" type_identifier (pointer_declarator "*psStackX_8" * identifier) ;) (declaration "char *pcStackX_c;" primitive_type (pointer_declarator "*pcStackX_c" * identifier) ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (expression_statement "puVar6 = &_gp;" (assignment_expression "puVar6 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (if_statement "if ((pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)) {\n    return (Expr *)0x0;\n  }" if (parenthesized_expression "((pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0))" ( (binary_expression "(pParse->db->mallocFailed != '\0') ||\n     (psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)" (parenthesized_expression "(pParse->db->mallocFailed != '\0')" ( (binary_expression "pParse->db->mallocFailed != '\0'" (field_expression "pParse->db->mallocFailed" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0)" ( (comma_expression "psStackX_8 = in_a2, pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0" (assignment_expression "psStackX_8 = in_a2" identifier = identifier) , (comma_expression "pcStackX_c = in_a3,\n     pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0" (assignment_expression "pcStackX_c = in_a3" identifier = identifier) , (comma_expression "pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec)),\n     pEVar2 == (Expr *)0x0" (assignment_expression "pEVar2 = (Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec))" identifier = (cast_expression "(Expr *)dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec))" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(pParse->db,CONCAT44(&_gp,in_stack_ffffffec))" identifier (argument_list "(pParse->db,CONCAT44(&_gp,in_stack_ffffffec))" ( (field_expression "pParse->db" identifier -> field_identifier) , (call_expression "CONCAT44(&_gp,in_stack_ffffffec)" identifier (argument_list "(&_gp,in_stack_ffffffec)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) , (binary_expression "pEVar2 == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))))) ))) )) (compound_statement "{\n    return (Expr *)0x0;\n  }" { (return_statement "return (Expr *)0x0;" return (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar5 = *(code **)(puVar6 + -0x7af4);" (assignment_expression "pcVar5 = *(code **)(puVar6 + -0x7af4)" identifier = (pointer_expression "*(code **)(puVar6 + -0x7af4)" * (cast_expression "(code **)(puVar6 + -0x7af4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + -0x7af4)" ( (binary_expression "puVar6 + -0x7af4" identifier + number_literal) ))))) ;) (expression_statement "pEVar2->op = (char)op;" (assignment_expression "pEVar2->op = (char)op" (field_expression "pEVar2->op" identifier -> field_identifier) = (cast_expression "(char)op" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "pEVar2->affinity = '\0';" (assignment_expression "pEVar2->affinity = '\0'" (field_expression "pEVar2->affinity" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(pEVar2->u).zToken = (char *)(pEVar2 + 1);" (assignment_expression "(pEVar2->u).zToken = (char *)(pEVar2 + 1)" (field_expression "(pEVar2->u).zToken" (parenthesized_expression "(pEVar2->u)" ( (field_expression "pEVar2->u" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)(pEVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pEVar2 + 1)" ( (binary_expression "pEVar2 + 1" identifier + number_literal) )))) ;) (expression_statement "pEVar2->flags = 0x800000;" (assignment_expression "pEVar2->flags = 0x800000" (field_expression "pEVar2->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pEVar2->pRight = (Expr *)0x0;" (assignment_expression "pEVar2->pRight = (Expr *)0x0" (field_expression "pEVar2->pRight" identifier -> field_identifier) = (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pEVar2->iAgg = -1;" (assignment_expression "pEVar2->iAgg = -1" (field_expression "pEVar2->iAgg" identifier -> field_identifier) = number_literal) ;) (expression_statement "pEVar2->pLeft = (Expr *)0x0;" (assignment_expression "pEVar2->pLeft = (Expr *)0x0" (field_expression "pEVar2->pLeft" identifier -> field_identifier) = (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(pEVar2->x).pList = (ExprList *)0x0;" (assignment_expression "(pEVar2->x).pList = (ExprList *)0x0" (field_expression "(pEVar2->x).pList" (parenthesized_expression "(pEVar2->x)" ( (field_expression "pEVar2->x" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pEVar2->pAggInfo = (AggInfo *)0x0;" (assignment_expression "pEVar2->pAggInfo = (AggInfo *)0x0" (field_expression "pEVar2->pAggInfo" identifier -> field_identifier) = (cast_expression "(AggInfo *)0x0" ( (type_descriptor "AggInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(pEVar2->y).sub.iAddr = 0;" (assignment_expression "(pEVar2->y).sub.iAddr = 0" (field_expression "(pEVar2->y).sub.iAddr" (field_expression "(pEVar2->y).sub" (parenthesized_expression "(pEVar2->y)" ( (field_expression "pEVar2->y" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "pEVar2->op2 = '\0';" (assignment_expression "pEVar2->op2 = '\0'" (field_expression "pEVar2->op2" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pEVar2->iTable = 0;" (assignment_expression "pEVar2->iTable = 0" (field_expression "pEVar2->iTable" identifier -> field_identifier) = number_literal) ;) (expression_statement "pEVar2->iColumn = 0;" (assignment_expression "pEVar2->iColumn = 0" (field_expression "pEVar2->iColumn" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c);" (assignment_expression "iVar3 = (*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c)" identifier = (call_expression "(*pcVar5)(pEVar2 + 1,psStackX_8,pcStackX_c)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(pEVar2 + 1,psStackX_8,pcStackX_c)" ( (binary_expression "pEVar2 + 1" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "pcStackX_c[iVar3] = '\0';" (assignment_expression "pcStackX_c[iVar3] = '\0'" (subscript_expression "pcStackX_c[iVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar1 = *(pEVar2->u).zToken;" (assignment_expression "bVar1 = *(pEVar2->u).zToken" identifier = (pointer_expression "*(pEVar2->u).zToken" * (field_expression "(pEVar2->u).zToken" (parenthesized_expression "(pEVar2->u)" ( (field_expression "pEVar2->u" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if (*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0') {\n    if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }\n    pEVar2->flags = pEVar2->flags | uVar4;\n    sqlite3Dequote((pEVar2->u).zToken);\n  }" if (parenthesized_expression "(*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0')" ( (binary_expression "*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18) < '\0'" (pointer_expression "*(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18)" * (cast_expression "(char *)((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18)" ( (binary_expression "(uint)bVar1 + *(int *)(puVar6 + -0x7d8c) + -0x3d18" (binary_expression "(uint)bVar1 + *(int *)(puVar6 + -0x7d8c)" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) + (pointer_expression "*(int *)(puVar6 + -0x7d8c)" * (cast_expression "(int *)(puVar6 + -0x7d8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + -0x7d8c)" ( (binary_expression "puVar6 + -0x7d8c" identifier + number_literal) ))))) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }\n    pEVar2->flags = pEVar2->flags | uVar4;\n    sqlite3Dequote((pEVar2->u).zToken);\n  }" { (if_statement "if (bVar1 == 0x22) {\n      uVar4 = 0x4000040;\n    }\n    else {\n      uVar4 = 0x4000000;\n    }" if (parenthesized_expression "(bVar1 == 0x22)" ( (binary_expression "bVar1 == 0x22" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x4000040;\n    }" { (expression_statement "uVar4 = 0x4000040;" (assignment_expression "uVar4 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0x4000000;\n    }" else (compound_statement "{\n      uVar4 = 0x4000000;\n    }" { (expression_statement "uVar4 = 0x4000000;" (assignment_expression "uVar4 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "pEVar2->flags = pEVar2->flags | uVar4;" (assignment_expression "pEVar2->flags = pEVar2->flags | uVar4" (field_expression "pEVar2->flags" identifier -> field_identifier) = (binary_expression "pEVar2->flags | uVar4" (field_expression "pEVar2->flags" identifier -> field_identifier) | identifier)) ;) (expression_statement "sqlite3Dequote((pEVar2->u).zToken);" (call_expression "sqlite3Dequote((pEVar2->u).zToken)" identifier (argument_list "((pEVar2->u).zToken)" ( (field_expression "(pEVar2->u).zToken" (parenthesized_expression "(pEVar2->u)" ( (field_expression "pEVar2->u" identifier -> field_identifier) )) . field_identifier) ))) ;) })) (expression_statement "pEVar2->nHeight = 1;" (assignment_expression "pEVar2->nHeight = 1" (field_expression "pEVar2->nHeight" identifier -> field_identifier) = number_literal) ;) (if_statement "if (pParse->eParseMode < 2) {\n    return pEVar2;\n  }" if (parenthesized_expression "(pParse->eParseMode < 2)" ( (binary_expression "pParse->eParseMode < 2" (field_expression "pParse->eParseMode" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    return pEVar2;\n  }" { (return_statement "return pEVar2;" return identifier ;) })) (expression_statement "pEVar2 = (Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8);" (assignment_expression "pEVar2 = (Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8)" identifier = (cast_expression "(Expr *)sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8)" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3RenameTokenMap\n                             ((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8)" identifier (argument_list "((Parse *)pParse->db,&pParse->pRename,(Token *)pEVar2,\n                              (Parse *)&psStackX_8)" ( (cast_expression "(Parse *)pParse->db" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pParse->db" identifier -> field_identifier)) , (pointer_expression "&pParse->pRename" & (field_expression "pParse->pRename" identifier -> field_identifier)) , (cast_expression "(Token *)pEVar2" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(Parse *)&psStackX_8" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&psStackX_8" & identifier)) ))))) ;) (return_statement "return pEVar2;" return identifier ;) })))
(translation_unit "undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}\n\n" (function_definition "undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" * (function_declarator "FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "int local_resc;" primitive_type identifier ;) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }" if (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0))" ( (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" ( (comma_expression "local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_res8 = param_3" identifier = identifier) , (comma_expression "local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_resc = param_4" identifier = identifier) , (comma_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" identifier = (cast_expression "(undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" identifier (argument_list "(*param_1,param_2,0,param_4 + 0x39)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal , (binary_expression "param_4 + 0x39" identifier + number_literal) ))))) , (comma_expression "iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "iVar2 = local_resc" identifier = identifier) , (comma_expression "puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar1 = PTR_memcpy_00190e2c" identifier = identifier) , (binary_expression "puVar3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))))))) ))) )) (compound_statement "{\n    return (undefined1 *)0x0;\n  }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "*puVar3 = (char)param_2;" (assignment_expression "*puVar3 = (char)param_2" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;" (assignment_expression "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38" (pointer_expression "*(undefined1 **)(puVar3 + 8)" * (cast_expression "(undefined1 **)(puVar3 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) )))) = (binary_expression "puVar3 + 0x38" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(puVar3 + 4) = 0x800000;" (assignment_expression "*(undefined4 *)(puVar3 + 4) = 0x800000" (pointer_expression "*(undefined4 *)(puVar3 + 4)" * (cast_expression "(undefined4 *)(puVar3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" * (cast_expression "(undefined4 *)(puVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar3 + 0x24) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x24) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x24)" * (cast_expression "(undefined2 *)(puVar3 + 0x24)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x24)" ( (binary_expression "puVar3 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" * (cast_expression "(undefined4 *)(puVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0xc)" ( (binary_expression "puVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x14)" * (cast_expression "(undefined4 *)(puVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x14)" ( (binary_expression "puVar3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x2c)" * (cast_expression "(undefined4 *)(puVar3 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x2c)" ( (binary_expression "puVar3 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x30)" * (cast_expression "(undefined4 *)(puVar3 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x30)" ( (binary_expression "puVar3 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3[0x28] = 0;" (assignment_expression "puVar3[0x28] = 0" (subscript_expression "puVar3[0x28]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x1c)" * (cast_expression "(undefined4 *)(puVar3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x1c)" ( (binary_expression "puVar3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x20)" * (cast_expression "(undefined4 *)(puVar3 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x20)" ( (binary_expression "puVar3 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);" (assignment_expression "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" identifier = (call_expression "(*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + 0x38,local_res8,local_resc)" ( (binary_expression "puVar3 + 0x38" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar2)" * (cast_expression "(undefined1 *)(iVar4 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar2)" ( (binary_expression "iVar4 + iVar2" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" if (parenthesized_expression "((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0')" ( (binary_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0'" (cast_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" identifier [ (binary_expression "**(byte **)(puVar3 + 8) - 0x3d18" (pointer_expression "**(byte **)(puVar3 + 8)" * (pointer_expression "*(byte **)(puVar3 + 8)" * (cast_expression "(byte **)(puVar3 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) - number_literal) ])) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" { (if_statement "if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }" if (parenthesized_expression "(**(byte **)(puVar3 + 8) == 0x22)" ( (binary_expression "**(byte **)(puVar3 + 8) == 0x22" (pointer_expression "**(byte **)(puVar3 + 8)" * (pointer_expression "*(byte **)(puVar3 + 8)" * (cast_expression "(byte **)(puVar3 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 8)" ( (binary_expression "puVar3 + 8" identifier + number_literal) ))))) == number_literal) )) (compound_statement "{\n      uVar5 = 0x4000040;\n    }" { (expression_statement "uVar5 = 0x4000040;" (assignment_expression "uVar5 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n      uVar5 = 0x4000000;\n    }" else (compound_statement "{\n      uVar5 = 0x4000000;\n    }" { (expression_statement "uVar5 = 0x4000000;" (assignment_expression "uVar5 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;" (assignment_expression "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" * (cast_expression "(uint *)(puVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" * (cast_expression "(uint *)(puVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 4)" ( (binary_expression "puVar3 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "FUN_0003f250();" (call_expression "FUN_0003f250()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" * (cast_expression "(undefined4 *)(puVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x18)" ( (binary_expression "puVar3 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }" if (parenthesized_expression "(*(byte *)((int)param_1 + 0xc6) < 2)" ( (binary_expression "*(byte *)((int)param_1 + 0xc6) < 2" (pointer_expression "*(byte *)((int)param_1 + 0xc6)" * (cast_expression "(byte *)((int)param_1 + 0xc6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xc6)" ( (binary_expression "(int)param_1 + 0xc6" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return puVar3;\n  }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);" (assignment_expression "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" identifier = (cast_expression "(undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" identifier (argument_list "(*param_1,param_1 + 0x43,puVar3,&local_res8)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_1 + 0x43" identifier + number_literal) , identifier , (pointer_expression "&local_res8" & identifier) ))))) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT , (binary_expression IDENT + LIT) ))))) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))))))) ))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) - LIT) ])) < (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (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) )))) | IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , IDENT , (pointer_expression & IDENT) ))))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (* "*") (function_declarator "FUN_0005ba58(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (identifier "FUN_0005ba58") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,int param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  int iVar4;\n  uint uVar5;\n  undefined4 local_res8;\n  int local_resc;\n  \n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }\n  *puVar3 = (char)param_2;\n  puVar3[1] = 0;\n  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;\n  *(undefined4 *)(puVar3 + 4) = 0x800000;\n  *(undefined4 *)(puVar3 + 0x10) = 0;\n  *(undefined2 *)(puVar3 + 0x24) = 0xffff;\n  *(undefined4 *)(puVar3 + 0xc) = 0;\n  *(undefined4 *)(puVar3 + 0x14) = 0;\n  *(undefined4 *)(puVar3 + 0x2c) = 0;\n  *(undefined4 *)(puVar3 + 0x30) = 0;\n  puVar3[0x28] = 0;\n  *(undefined4 *)(puVar3 + 0x1c) = 0;\n  *(undefined4 *)(puVar3 + 0x20) = 0;\n  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);\n  *(undefined1 *)(iVar4 + iVar2) = 0;\n  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }\n  *(undefined4 *)(puVar3 + 0x18) = 1;\n  if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);\n  return puVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "int local_resc;" (primitive_type "int") (identifier "local_resc") (; ";")) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {\n    return (undefined1 *)0x0;\n  }" (if "if") (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0))" (( "(") (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" (* "*") (cast_expression "(char *)(*param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x51)" (( "(") (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)" (( "(") (comma_expression "local_res8 = param_3, local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (, ",") (comma_expression "local_resc = param_4,\n     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (, ",") (comma_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00050854(*param_1,param_2,0,param_4 + 0x39)" (identifier "FUN_00050854") (argument_list "(*param_1,param_2,0,param_4 + 0x39)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (binary_expression "param_4 + 0x39" (identifier "param_4") (+ "+") (number_literal "0x39")) () ")"))))) (, ",") (comma_expression "iVar2 = local_resc,\n     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "iVar2 = local_resc" (identifier "iVar2") (= "=") (identifier "local_resc")) (, ",") (comma_expression "puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0" (assignment_expression "puVar1 = PTR_memcpy_00190e2c" (identifier "puVar1") (= "=") (identifier "PTR_memcpy_00190e2c")) (, ",") (binary_expression "puVar3 == (undefined1 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))))))) () ")"))) () ")")) (compound_statement "{\n    return (undefined1 *)0x0;\n  }" ({ "{") (return_statement "return (undefined1 *)0x0;" (return "return") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "*puVar3 = (char)param_2;" (assignment_expression "*puVar3 = (char)param_2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;" (assignment_expression "*(undefined1 **)(puVar3 + 8) = puVar3 + 0x38" (pointer_expression "*(undefined1 **)(puVar3 + 8)" (* "*") (cast_expression "(undefined1 **)(puVar3 + 8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "puVar3 + 0x38" (identifier "puVar3") (+ "+") (number_literal "0x38"))) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 4) = 0x800000;" (assignment_expression "*(undefined4 *)(puVar3 + 4) = 0x800000" (pointer_expression "*(undefined4 *)(puVar3 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0x800000")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x10)" (( "(") (binary_expression "puVar3 + 0x10" (identifier "puVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(puVar3 + 0x24) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar3 + 0x24) = 0xffff" (pointer_expression "*(undefined2 *)(puVar3 + 0x24)" (* "*") (cast_expression "(undefined2 *)(puVar3 + 0x24)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x24)" (( "(") (binary_expression "puVar3 + 0x24" (identifier "puVar3") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0xc) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0xc)" (( "(") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x14)" (( "(") (binary_expression "puVar3 + 0x14" (identifier "puVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x2c)" (( "(") (binary_expression "puVar3 + 0x2c" (identifier "puVar3") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x30) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x30)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x30)" (( "(") (binary_expression "puVar3 + 0x30" (identifier "puVar3") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[0x28] = 0;" (assignment_expression "puVar3[0x28] = 0" (subscript_expression "puVar3[0x28]" (identifier "puVar3") ([ "[") (number_literal "0x28") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x1c)" (( "(") (binary_expression "puVar3 + 0x1c" (identifier "puVar3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x20) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x20)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x20)" (( "(") (binary_expression "puVar3 + 0x20" (identifier "puVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);" (assignment_expression "iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" (identifier "iVar4") (= "=") (call_expression "(*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc)" (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 "(puVar3 + 0x38,local_res8,local_resc)" (( "(") (binary_expression "puVar3 + 0x38" (identifier "puVar3") (+ "+") (number_literal "0x38")) (, ",") (identifier "local_res8") (, ",") (identifier "local_resc") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar2) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar2)" (* "*") (cast_expression "(undefined1 *)(iVar4 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar2)" (( "(") (binary_expression "iVar4 + iVar2" (identifier "iVar4") (+ "+") (identifier "iVar2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" (if "if") (parenthesized_expression "((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0')" (( "(") (binary_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0'" (cast_expression "(char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18]" (identifier "PTR_DAT_00190b94") ([ "[") (binary_expression "**(byte **)(puVar3 + 8) - 0x3d18" (pointer_expression "**(byte **)(puVar3 + 8)" (* "*") (pointer_expression "*(byte **)(puVar3 + 8)" (* "*") (cast_expression "(byte **)(puVar3 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")"))))) (- "-") (number_literal "0x3d18")) (] "]"))) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }\n    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;\n    FUN_0003f250();\n  }" ({ "{") (if_statement "if (**(byte **)(puVar3 + 8) == 0x22) {\n      uVar5 = 0x4000040;\n    }\n    else {\n      uVar5 = 0x4000000;\n    }" (if "if") (parenthesized_expression "(**(byte **)(puVar3 + 8) == 0x22)" (( "(") (binary_expression "**(byte **)(puVar3 + 8) == 0x22" (pointer_expression "**(byte **)(puVar3 + 8)" (* "*") (pointer_expression "*(byte **)(puVar3 + 8)" (* "*") (cast_expression "(byte **)(puVar3 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 8)" (( "(") (binary_expression "puVar3 + 8" (identifier "puVar3") (+ "+") (number_literal "8")) () ")"))))) (== "==") (number_literal "0x22")) () ")")) (compound_statement "{\n      uVar5 = 0x4000040;\n    }" ({ "{") (expression_statement "uVar5 = 0x4000040;" (assignment_expression "uVar5 = 0x4000040" (identifier "uVar5") (= "=") (number_literal "0x4000040")) (; ";")) (} "}")) (else_clause "else {\n      uVar5 = 0x4000000;\n    }" (else "else") (compound_statement "{\n      uVar5 = 0x4000000;\n    }" ({ "{") (expression_statement "uVar5 = 0x4000000;" (assignment_expression "uVar5 = 0x4000000" (identifier "uVar5") (= "=") (number_literal "0x4000000")) (; ";")) (} "}")))) (expression_statement "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;" (assignment_expression "*(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" (* "*") (cast_expression "(uint *)(puVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(puVar3 + 4) | uVar5" (pointer_expression "*(uint *)(puVar3 + 4)" (* "*") (cast_expression "(uint *)(puVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 4)" (( "(") (binary_expression "puVar3 + 4" (identifier "puVar3") (+ "+") (number_literal "4")) () ")")))) (| "|") (identifier "uVar5"))) (; ";")) (expression_statement "FUN_0003f250();" (call_expression "FUN_0003f250()" (identifier "FUN_0003f250") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x18)" (( "(") (binary_expression "puVar3 + 0x18" (identifier "puVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(byte *)((int)param_1 + 0xc6) < 2) {\n    return puVar3;\n  }" (if "if") (parenthesized_expression "(*(byte *)((int)param_1 + 0xc6) < 2)" (( "(") (binary_expression "*(byte *)((int)param_1 + 0xc6) < 2" (pointer_expression "*(byte *)((int)param_1 + 0xc6)" (* "*") (cast_expression "(byte *)((int)param_1 + 0xc6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xc6)" (( "(") (binary_expression "(int)param_1 + 0xc6" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc6")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    return puVar3;\n  }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);" (assignment_expression "puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8)" (identifier "FUN_0005b888") (argument_list "(*param_1,param_1 + 0x43,puVar3,&local_res8)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "param_1 + 0x43" (identifier "param_1") (+ "+") (number_literal "0x43")) (, ",") (identifier "puVar3") (, ",") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")) () ")"))))) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

type_1 * function_1(type_2 *pParse,int op,type_3 t)

{
  type_4 var_5;
  type_1 *var_3;
  int iVar3;
  type_5 var_6;
  type_6 *in_a2;
  char *in_a3;
  type_7 *pcVar5;
  type_6 *psStackX_8;
  char *pcStackX_c;
  type_8 *var_4;
  type_9 in_stack_ffffffec;
  
  var_4 = &_gp;
  if ((pParse->db->mallocFailed != '\0') ||
     (psStackX_8 = in_a2, pcStackX_c = in_a3,
     var_3 = (type_1 *)var_1(pParse->db,var_2(&_gp,in_stack_ffffffec)),
     var_3 == (type_1 *)0x0)) {
    return (type_1 *)0x0;
  }
  pcVar5 = *(type_7 **)(var_4 + -0x7af4);
  var_3->op = (char)op;
  var_3->affinity = '\0';
  (var_3->u).zToken = (char *)(var_3 + 1);
  var_3->flags = 0x800000;
  var_3->pRight = (type_1 *)0x0;
  var_3->iAgg = -1;
  var_3->pLeft = (type_1 *)0x0;
  (var_3->x).pList = (type_10 *)0x0;
  var_3->pAggInfo = (type_11 *)0x0;
  (var_3->y).sub.iAddr = 0;
  var_3->op2 = '\0';
  var_3->iTable = 0;
  var_3->iColumn = 0;
  iVar3 = (*pcVar5)(var_3 + 1,psStackX_8,pcStackX_c);
  pcStackX_c[iVar3] = '\0';
  var_5 = *(var_3->u).zToken;
  if (*(char *)((type_5)var_5 + *(int *)(var_4 + -0x7d8c) + -0x3d18) < '\0') {
    if (var_5 == 0x22) {
      var_6 = 0x4000040;
    }
    else {
      var_6 = 0x4000000;
    }
    var_3->flags = var_3->flags | var_6;
    var_7((var_3->u).zToken);
  }
  var_3->nHeight = 1;
  if (pParse->eParseMode < 2) {
    return var_3;
  }
  var_3 = (type_1 *)var_8
                             ((type_2 *)pParse->db,&pParse->pRename,(type_3 *)var_3,
                              (type_2 *)&psStackX_8);
  return var_3;
}


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

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

{
  undefined *puVar1;
  int iVar2;
  undefined1 *puVar3;
  int iVar4;
  uint uVar5;
  undefined4 local_res8;
  int local_resc;
  
  if ((*(char *)(*param_1 + 0x51) != '\0') ||
     (local_res8 = param_3, local_resc = param_4,
     puVar3 = (undefined1 *)FUN_00050854(*param_1,param_2,0,param_4 + 0x39), iVar2 = local_resc,
     puVar1 = PTR_memcpy_00190e2c, puVar3 == (undefined1 *)0x0)) {
    return (undefined1 *)0x0;
  }
  *puVar3 = (char)param_2;
  puVar3[1] = 0;
  *(undefined1 **)(puVar3 + 8) = puVar3 + 0x38;
  *(undefined4 *)(puVar3 + 4) = 0x800000;
  *(undefined4 *)(puVar3 + 0x10) = 0;
  *(undefined2 *)(puVar3 + 0x24) = 0xffff;
  *(undefined4 *)(puVar3 + 0xc) = 0;
  *(undefined4 *)(puVar3 + 0x14) = 0;
  *(undefined4 *)(puVar3 + 0x2c) = 0;
  *(undefined4 *)(puVar3 + 0x30) = 0;
  puVar3[0x28] = 0;
  *(undefined4 *)(puVar3 + 0x1c) = 0;
  *(undefined4 *)(puVar3 + 0x20) = 0;
  iVar4 = (*(code *)puVar1)(puVar3 + 0x38,local_res8,local_resc);
  *(undefined1 *)(iVar4 + iVar2) = 0;
  if ((char)PTR_DAT_00190b94[**(byte **)(puVar3 + 8) - 0x3d18] < '\0') {
    if (**(byte **)(puVar3 + 8) == 0x22) {
      uVar5 = 0x4000040;
    }
    else {
      uVar5 = 0x4000000;
    }
    *(uint *)(puVar3 + 4) = *(uint *)(puVar3 + 4) | uVar5;
    FUN_0003f250();
  }
  *(undefined4 *)(puVar3 + 0x18) = 1;
  if (*(byte *)((int)param_1 + 0xc6) < 2) {
    return puVar3;
  }
  puVar3 = (undefined1 *)FUN_0005b888(*param_1,param_1 + 0x43,puVar3,&local_res8);
  return puVar3;
}

