
int sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)

{
  Pager *pPVar1;
  int iVar2;
  byte bVar3;
  uint uVar4;
  byte bVar5;
  uint mxPage;
  BtShared *pBVar6;
  
  pBVar6 = p->pBt;
  mxPage = pgFlags;
  if (p->sharable != '\0') {
    sqlite3BtreeEnter(p);
  }
  pPVar1 = pBVar6->pPager;
  uVar4 = pgFlags & 7;
  if (pPVar1->tempFile == '\0') {
    pPVar1->noSync = uVar4 == 1;
    mxPage = (uint)(uVar4 == 4);
    pPVar1->fullSync = 2 < uVar4;
    pPVar1->extraSync = uVar4 == 4;
    if (uVar4 == 1) {
      pPVar1->syncFlags = '\0';
      bVar5 = 0;
      bVar3 = 0;
    }
    else if ((pgFlags & 8) == 0) {
      mxPage = 2;
      bVar5 = 8;
      bVar3 = 2;
      pPVar1->syncFlags = '\x02';
    }
    else {
      bVar5 = 0xc;
      pPVar1->syncFlags = '\x03';
      bVar3 = 3;
    }
    if (2 < uVar4) {
      pPVar1->walSyncFlags = bVar3 | bVar5;
      goto LAB_000347ec;
    }
  }
  else {
    pPVar1->fullSync = '\0';
    pPVar1->extraSync = '\0';
    bVar5 = 0;
    pPVar1->syncFlags = '\0';
    pPVar1->noSync = '\x01';
  }
  pPVar1->walSyncFlags = bVar5;
LAB_000347ec:
  if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {
    bVar3 = pPVar1->doNotSpill;
  }
  else {
    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;
    bVar3 = pPVar1->doNotSpill;
  }
  if ((pgFlags & 0x20) != 0) {
    pPVar1->doNotSpill = bVar3 & 0xfe;
    if (p->sharable != '\0') {
      sqlite3BtreeSetCacheSize(p,mxPage);
    }
    return 0;
  }
  iVar2 = FUN_00034814();
  return iVar2;
}



undefined4 FUN_00034778(int param_1,uint param_2)

{
  int iVar1;
  byte bVar2;
  uint uVar3;
  byte bVar4;
  int *piVar5;
  
  piVar5 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00033dcc();
  }
  iVar1 = *piVar5;
  uVar3 = param_2 & 7;
  if (*(char *)(iVar1 + 0xc) == '\0') {
    *(bool *)(iVar1 + 7) = uVar3 == 1;
    *(bool *)(iVar1 + 8) = 2 < uVar3;
    *(bool *)(iVar1 + 9) = uVar3 == 4;
    if (uVar3 == 1) {
      *(undefined1 *)(iVar1 + 10) = 0;
      bVar4 = 0;
      bVar2 = 0;
    }
    else if ((param_2 & 8) == 0) {
      bVar4 = 8;
      bVar2 = 2;
      *(undefined1 *)(iVar1 + 10) = 2;
    }
    else {
      bVar4 = 0xc;
      *(undefined1 *)(iVar1 + 10) = 3;
      bVar2 = 3;
    }
    if (2 < uVar3) {
      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;
      goto LAB_000347ec;
    }
  }
  else {
    *(undefined2 *)(iVar1 + 8) = 0;
    bVar4 = 0;
    *(undefined1 *)(iVar1 + 10) = 0;
    *(undefined1 *)(iVar1 + 7) = 1;
  }
  *(byte *)(iVar1 + 0xb) = bVar4;
LAB_000347ec:
  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {
    bVar2 = *(byte *)(iVar1 + 0x14);
  }
  else {
    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;
    bVar2 = *(byte *)(iVar1 + 0x14);
  }
  if ((param_2 & 0x20) == 0) {
    bVar2 = bVar2 | 1;
  }
  else {
    bVar2 = bVar2 & 0xfe;
  }
  *(byte *)(iVar1 + 0x14) = bVar2;
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0003452c(param_1);
  }
  return 0;
}


lui gp,0x13
addiu gp,gp,-0x11c8
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
lbu v0,0x9(a0)
beq v0,zero,0x000347c4
_lw s2,0x4(a0)
lw t9,-0x7ed8(gp)
addiu t9,t9,0x3dcc
bal 0x00033dcc
_nop
lw gp,0x10(sp)
lw v0,0x0(s2)
lbu v1,0xc(v0)
beq v1,zero,0x00034850
_andi a0,s0,0x7
li v1,0x1
sh zero,0x8(v0)
or a0,zero,zero
sb zero,0xa(v0)
sb v1,0x7(v0)
sb a0,0xb(v0)
andi v1,s0,0x10
beq v1,zero,0x00034804
_nop
lbu v1,0x7(v0)
beq v1,zero,0x000348b8
_nop
andi s0,s0,0x20
beq s0,zero,0x000348d0
_lbu v1,0x14(v0)
andi v1,v1,0xfe
sb v1,0x14(v0)
lbu v0,0x9(s1)
beq v0,zero,0x00034838
_lw ra,0x24(sp)
lw t9,-0x7ed8(gp)
addiu t9,t9,0x452c
bal 0x0003452c
_or a0,s1,zero
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
xori a2,a0,0x1
sltiu a3,a0,0x3
xori a1,a0,0x4
li t0,0x1
sltiu a2,a2,0x1
xori t1,a3,0x1
sb a2,0x7(v0)
sltiu a1,a1,0x1
sb t1,0x8(v0)
beq a0,t0,0x000348d8
_sb a1,0x9(v0)
andi v1,s0,0x8
bne v1,zero,0x000348a8
_li v1,0x3
li a1,0x2
li a0,0x8
li v1,0x2
sb a1,0xa(v0)
bne a3,zero,0x000347e8
_or v1,v1,a0
b 0x000347ec
_sb v1,0xb(v0)
li a0,0xc
sb v1,0xa(v0)
b 0x00034898
_li v1,0x3
lbu v1,0xb(v0)
andi s0,s0,0x20
ori v1,v1,0xc
sb v1,0xb(v0)
bne s0,zero,0x00034810
_lbu v1,0x14(v0)
b 0x00034814
_ori v1,v1,0x1
sb zero,0xa(v0)
b 0x00034898
_or a0,zero,zero
(translation_unit "undefined4 FUN_00034778(int param_1,uint param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00034778(int param_1,uint param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00034778(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = *(int **)(param_1 + 4);" (assignment_expression "piVar5 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00033dcc();\n  }" { (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uVar3 = param_2 & 7;" (assignment_expression "uVar3 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (if_statement "if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" if (parenthesized_expression "(*(char *)(iVar1 + 0xc) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xc)" * (cast_expression "(char *)(iVar1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }" { (expression_statement "*(bool *)(iVar1 + 7) = uVar3 == 1;" (assignment_expression "*(bool *)(iVar1 + 7) = uVar3 == 1" (pointer_expression "*(bool *)(iVar1 + 7)" * (cast_expression "(bool *)(iVar1 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) = (binary_expression "uVar3 == 1" identifier == number_literal)) ;) (expression_statement "*(bool *)(iVar1 + 8) = 2 < uVar3;" (assignment_expression "*(bool *)(iVar1 + 8) = 2 < uVar3" (pointer_expression "*(bool *)(iVar1 + 8)" * (cast_expression "(bool *)(iVar1 + 8)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "2 < uVar3" number_literal < identifier)) ;) (expression_statement "*(bool *)(iVar1 + 9) = uVar3 == 4;" (assignment_expression "*(bool *)(iVar1 + 9) = uVar3 == 4" (pointer_expression "*(bool *)(iVar1 + 9)" * (cast_expression "(bool *)(iVar1 + 9)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 9)" ( (binary_expression "iVar1 + 9" identifier + number_literal) )))) = (binary_expression "uVar3 == 4" identifier == number_literal)) ;) (if_statement "if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }" { (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" identifier = number_literal) ;) }) (else_clause "else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" else (if_statement "if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }" { (expression_statement "bVar4 = 8;" (assignment_expression "bVar4 = 8" identifier = number_literal) ;) (expression_statement "bVar2 = 2;" (assignment_expression "bVar2 = 2" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" else (compound_statement "{\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" { (expression_statement "bVar4 = 0xc;" (assignment_expression "bVar4 = 0xc" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar2 = 3;" (assignment_expression "bVar2 = 3" identifier = number_literal) ;) }))))) (if_statement "if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" if (parenthesized_expression "(2 < uVar3)" ( (binary_expression "2 < uVar3" number_literal < identifier) )) (compound_statement "{\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" { (expression_statement "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = (binary_expression "bVar2 | bVar4" identifier | identifier)) ;) (goto_statement "goto LAB_000347ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" else (compound_statement "{\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" { (expression_statement "*(undefined2 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 7) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 7) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 7)" * (cast_expression "(undefined1 *)(iVar1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "*(byte *)(iVar1 + 0xb) = bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" statement_identifier : (if_statement "if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" if (parenthesized_expression "(((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0'))" ( (binary_expression "((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')" (parenthesized_expression "((param_2 & 0x10) == 0)" ( (binary_expression "(param_2 & 0x10) == 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(iVar1 + 7) != '\0')" ( (binary_expression "*(char *)(iVar1 + 7) != '\0'" (pointer_expression "*(char *)(iVar1 + 7)" * (cast_expression "(char *)(iVar1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" { (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" identifier = (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" else (compound_statement "{\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" { (expression_statement "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" identifier = (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })))) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }" if (parenthesized_expression "((param_2 & 0x20) == 0)" ( (binary_expression "(param_2 & 0x20) == 0" (parenthesized_expression "(param_2 & 0x20)" ( (binary_expression "param_2 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar2 = bVar2 | 1;\n  }" { (expression_statement "bVar2 = bVar2 | 1;" (assignment_expression "bVar2 = bVar2 | 1" identifier = (binary_expression "bVar2 | 1" identifier | number_literal)) ;) }) (else_clause "else {\n    bVar2 = bVar2 & 0xfe;\n  }" else (compound_statement "{\n    bVar2 = bVar2 & 0xfe;\n  }" { (expression_statement "bVar2 = bVar2 & 0xfe;" (assignment_expression "bVar2 = bVar2 & 0xfe" identifier = (binary_expression "bVar2 & 0xfe" identifier & number_literal)) ;) }))) (expression_statement "*(byte *)(iVar1 + 0x14) = bVar2;" (assignment_expression "*(byte *)(iVar1 + 0x14) = bVar2" (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" { (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)\n\n{\n  Pager *pPVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  uint mxPage;\n  BtShared *pBVar6;\n  \n  pBVar6 = p->pBt;\n  mxPage = pgFlags;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar1 = pBVar6->pPager;\n  uVar4 = pgFlags & 7;\n  if (pPVar1->tempFile == '\0') {\n    pPVar1->noSync = uVar4 == 1;\n    mxPage = (uint)(uVar4 == 4);\n    pPVar1->fullSync = 2 < uVar4;\n    pPVar1->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }\n    if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }\n  pPVar1->walSyncFlags = bVar5;\nLAB_000347ec:\n  if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {\n    bVar3 = pPVar1->doNotSpill;\n  }\n  else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }\n  if ((pgFlags & 0x20) != 0) {\n    pPVar1->doNotSpill = bVar3 & 0xfe;\n    if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }\n    return 0;\n  }\n  iVar2 = FUN_00034814();\n  return iVar2;\n}\n\n" (function_definition "int sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)\n\n{\n  Pager *pPVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  uint mxPage;\n  BtShared *pBVar6;\n  \n  pBVar6 = p->pBt;\n  mxPage = pgFlags;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar1 = pBVar6->pPager;\n  uVar4 = pgFlags & 7;\n  if (pPVar1->tempFile == '\0') {\n    pPVar1->noSync = uVar4 == 1;\n    mxPage = (uint)(uVar4 == 4);\n    pPVar1->fullSync = 2 < uVar4;\n    pPVar1->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }\n    if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }\n  pPVar1->walSyncFlags = bVar5;\nLAB_000347ec:\n  if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {\n    bVar3 = pPVar1->doNotSpill;\n  }\n  else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }\n  if ((pgFlags & 0x20) != 0) {\n    pPVar1->doNotSpill = bVar3 & 0xfe;\n    if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }\n    return 0;\n  }\n  iVar2 = FUN_00034814();\n  return iVar2;\n}" primitive_type (function_declarator "sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)" identifier (parameter_list "(Btree *p,uint pgFlags)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "uint pgFlags" type_identifier identifier) ))) (compound_statement "{\n  Pager *pPVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  uint mxPage;\n  BtShared *pBVar6;\n  \n  pBVar6 = p->pBt;\n  mxPage = pgFlags;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar1 = pBVar6->pPager;\n  uVar4 = pgFlags & 7;\n  if (pPVar1->tempFile == '\0') {\n    pPVar1->noSync = uVar4 == 1;\n    mxPage = (uint)(uVar4 == 4);\n    pPVar1->fullSync = 2 < uVar4;\n    pPVar1->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }\n    if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }\n  pPVar1->walSyncFlags = bVar5;\nLAB_000347ec:\n  if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {\n    bVar3 = pPVar1->doNotSpill;\n  }\n  else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }\n  if ((pgFlags & 0x20) != 0) {\n    pPVar1->doNotSpill = bVar3 & 0xfe;\n    if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }\n    return 0;\n  }\n  iVar2 = FUN_00034814();\n  return iVar2;\n}" { (declaration "Pager *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "uint mxPage;" type_identifier identifier ;) (declaration "BtShared *pBVar6;" type_identifier (pointer_declarator "*pBVar6" * identifier) ;) (expression_statement "pBVar6 = p->pBt;" (assignment_expression "pBVar6 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_identifier)) ;) (expression_statement "mxPage = pgFlags;" (assignment_expression "mxPage = pgFlags" identifier = identifier) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeEnter(p);\n  }" { (expression_statement "sqlite3BtreeEnter(p);" (call_expression "sqlite3BtreeEnter(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (expression_statement "pPVar1 = pBVar6->pPager;" (assignment_expression "pPVar1 = pBVar6->pPager" identifier = (field_expression "pBVar6->pPager" identifier -> field_identifier)) ;) (expression_statement "uVar4 = pgFlags & 7;" (assignment_expression "uVar4 = pgFlags & 7" identifier = (binary_expression "pgFlags & 7" identifier & number_literal)) ;) (if_statement "if (pPVar1->tempFile == '\0') {\n    pPVar1->noSync = uVar4 == 1;\n    mxPage = (uint)(uVar4 == 4);\n    pPVar1->fullSync = 2 < uVar4;\n    pPVar1->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }\n    if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }" if (parenthesized_expression "(pPVar1->tempFile == '\0')" ( (binary_expression "pPVar1->tempFile == '\0'" (field_expression "pPVar1->tempFile" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pPVar1->noSync = uVar4 == 1;\n    mxPage = (uint)(uVar4 == 4);\n    pPVar1->fullSync = 2 < uVar4;\n    pPVar1->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }\n    if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }\n  }" { (expression_statement "pPVar1->noSync = uVar4 == 1;" (assignment_expression "pPVar1->noSync = uVar4 == 1" (field_expression "pPVar1->noSync" identifier -> field_identifier) = (binary_expression "uVar4 == 1" identifier == number_literal)) ;) (expression_statement "mxPage = (uint)(uVar4 == 4);" (assignment_expression "mxPage = (uint)(uVar4 == 4)" identifier = (call_expression "(uint)(uVar4 == 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 == 4)" ( (binary_expression "uVar4 == 4" identifier == number_literal) )))) ;) (expression_statement "pPVar1->fullSync = 2 < uVar4;" (assignment_expression "pPVar1->fullSync = 2 < uVar4" (field_expression "pPVar1->fullSync" identifier -> field_identifier) = (binary_expression "2 < uVar4" number_literal < identifier)) ;) (expression_statement "pPVar1->extraSync = uVar4 == 4;" (assignment_expression "pPVar1->extraSync = uVar4 == 4" (field_expression "pPVar1->extraSync" identifier -> field_identifier) = (binary_expression "uVar4 == 4" identifier == number_literal)) ;) (if_statement "if (uVar4 == 1) {\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }\n    else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      pPVar1->syncFlags = '\0';\n      bVar5 = 0;\n      bVar3 = 0;\n    }" { (expression_statement "pPVar1->syncFlags = '\0';" (assignment_expression "pPVar1->syncFlags = '\0'" (field_expression "pPVar1->syncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "bVar3 = 0;" (assignment_expression "bVar3 = 0" identifier = number_literal) ;) }) (else_clause "else if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }" else (if_statement "if ((pgFlags & 8) == 0) {\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }\n    else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }" if (parenthesized_expression "((pgFlags & 8) == 0)" ( (binary_expression "(pgFlags & 8) == 0" (parenthesized_expression "(pgFlags & 8)" ( (binary_expression "pgFlags & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      mxPage = 2;\n      bVar5 = 8;\n      bVar3 = 2;\n      pPVar1->syncFlags = '\x02';\n    }" { (expression_statement "mxPage = 2;" (assignment_expression "mxPage = 2" identifier = number_literal) ;) (expression_statement "bVar5 = 8;" (assignment_expression "bVar5 = 8" identifier = number_literal) ;) (expression_statement "bVar3 = 2;" (assignment_expression "bVar3 = 2" identifier = number_literal) ;) (expression_statement "pPVar1->syncFlags = '\x02';" (assignment_expression "pPVar1->syncFlags = '\x02'" (field_expression "pPVar1->syncFlags" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }" else (compound_statement "{\n      bVar5 = 0xc;\n      pPVar1->syncFlags = '\x03';\n      bVar3 = 3;\n    }" { (expression_statement "bVar5 = 0xc;" (assignment_expression "bVar5 = 0xc" identifier = number_literal) ;) (expression_statement "pPVar1->syncFlags = '\x03';" (assignment_expression "pPVar1->syncFlags = '\x03'" (field_expression "pPVar1->syncFlags" identifier -> field_identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) (expression_statement "bVar3 = 3;" (assignment_expression "bVar3 = 3" identifier = number_literal) ;) }))))) (if_statement "if (2 < uVar4) {\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }" if (parenthesized_expression "(2 < uVar4)" ( (binary_expression "2 < uVar4" number_literal < identifier) )) (compound_statement "{\n      pPVar1->walSyncFlags = bVar3 | bVar5;\n      goto LAB_000347ec;\n    }" { (expression_statement "pPVar1->walSyncFlags = bVar3 | bVar5;" (assignment_expression "pPVar1->walSyncFlags = bVar3 | bVar5" (field_expression "pPVar1->walSyncFlags" identifier -> field_identifier) = (binary_expression "bVar3 | bVar5" identifier | identifier)) ;) (goto_statement "goto LAB_000347ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }" else (compound_statement "{\n    pPVar1->fullSync = '\0';\n    pPVar1->extraSync = '\0';\n    bVar5 = 0;\n    pPVar1->syncFlags = '\0';\n    pPVar1->noSync = '\x01';\n  }" { (expression_statement "pPVar1->fullSync = '\0';" (assignment_expression "pPVar1->fullSync = '\0'" (field_expression "pPVar1->fullSync" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar1->extraSync = '\0';" (assignment_expression "pPVar1->extraSync = '\0'" (field_expression "pPVar1->extraSync" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "pPVar1->syncFlags = '\0';" (assignment_expression "pPVar1->syncFlags = '\0'" (field_expression "pPVar1->syncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar1->noSync = '\x01';" (assignment_expression "pPVar1->noSync = '\x01'" (field_expression "pPVar1->noSync" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "pPVar1->walSyncFlags = bVar5;" (assignment_expression "pPVar1->walSyncFlags = bVar5" (field_expression "pPVar1->walSyncFlags" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_000347ec:\n  if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {\n    bVar3 = pPVar1->doNotSpill;\n  }\n  else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }" statement_identifier : (if_statement "if (((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')) {\n    bVar3 = pPVar1->doNotSpill;\n  }\n  else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }" if (parenthesized_expression "(((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0'))" ( (binary_expression "((pgFlags & 0x10) == 0) || (pPVar1->noSync != '\0')" (parenthesized_expression "((pgFlags & 0x10) == 0)" ( (binary_expression "(pgFlags & 0x10) == 0" (parenthesized_expression "(pgFlags & 0x10)" ( (binary_expression "pgFlags & 0x10" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(pPVar1->noSync != '\0')" ( (binary_expression "pPVar1->noSync != '\0'" (field_expression "pPVar1->noSync" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    bVar3 = pPVar1->doNotSpill;\n  }" { (expression_statement "bVar3 = pPVar1->doNotSpill;" (assignment_expression "bVar3 = pPVar1->doNotSpill" identifier = (field_expression "pPVar1->doNotSpill" identifier -> field_identifier)) ;) }) (else_clause "else {\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }" else (compound_statement "{\n    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;\n    bVar3 = pPVar1->doNotSpill;\n  }" { (expression_statement "pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;" (assignment_expression "pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc" (field_expression "pPVar1->walSyncFlags" identifier -> field_identifier) = (binary_expression "pPVar1->walSyncFlags | 0xc" (field_expression "pPVar1->walSyncFlags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "bVar3 = pPVar1->doNotSpill;" (assignment_expression "bVar3 = pPVar1->doNotSpill" identifier = (field_expression "pPVar1->doNotSpill" identifier -> field_identifier)) ;) })))) (if_statement "if ((pgFlags & 0x20) != 0) {\n    pPVar1->doNotSpill = bVar3 & 0xfe;\n    if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }\n    return 0;\n  }" if (parenthesized_expression "((pgFlags & 0x20) != 0)" ( (binary_expression "(pgFlags & 0x20) != 0" (parenthesized_expression "(pgFlags & 0x20)" ( (binary_expression "pgFlags & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pPVar1->doNotSpill = bVar3 & 0xfe;\n    if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }\n    return 0;\n  }" { (expression_statement "pPVar1->doNotSpill = bVar3 & 0xfe;" (assignment_expression "pPVar1->doNotSpill = bVar3 & 0xfe" (field_expression "pPVar1->doNotSpill" identifier -> field_identifier) = (binary_expression "bVar3 & 0xfe" identifier & number_literal)) ;) (if_statement "if (p->sharable != '\0') {\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      sqlite3BtreeSetCacheSize(p,mxPage);\n    }" { (expression_statement "sqlite3BtreeSetCacheSize(p,mxPage);" (call_expression "sqlite3BtreeSetCacheSize(p,mxPage)" identifier (argument_list "(p,mxPage)" ( identifier , identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00034814();" (assignment_expression "iVar2 = FUN_00034814()" identifier = (call_expression "FUN_00034814()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00034778(int param_1,uint param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00034778(int param_1,uint param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00034778(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = *(int **)(param_1 + 4);" (assignment_expression "piVar5 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00033dcc();\n  }" { (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (expression_statement "uVar3 = param_2 & 7;" (assignment_expression "uVar3 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (if_statement "if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" if (parenthesized_expression "(*(char *)(iVar1 + 0xc) == '\0')" ( (binary_expression "*(char *)(iVar1 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xc)" * (cast_expression "(char *)(iVar1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }" { (expression_statement "*(bool *)(iVar1 + 7) = uVar3 == 1;" (assignment_expression "*(bool *)(iVar1 + 7) = uVar3 == 1" (pointer_expression "*(bool *)(iVar1 + 7)" * (cast_expression "(bool *)(iVar1 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) = (binary_expression "uVar3 == 1" identifier == number_literal)) ;) (expression_statement "*(bool *)(iVar1 + 8) = 2 < uVar3;" (assignment_expression "*(bool *)(iVar1 + 8) = 2 < uVar3" (pointer_expression "*(bool *)(iVar1 + 8)" * (cast_expression "(bool *)(iVar1 + 8)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "2 < uVar3" number_literal < identifier)) ;) (expression_statement "*(bool *)(iVar1 + 9) = uVar3 == 4;" (assignment_expression "*(bool *)(iVar1 + 9) = uVar3 == 4" (pointer_expression "*(bool *)(iVar1 + 9)" * (cast_expression "(bool *)(iVar1 + 9)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 9)" ( (binary_expression "iVar1 + 9" identifier + number_literal) )))) = (binary_expression "uVar3 == 4" identifier == number_literal)) ;) (if_statement "if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" if (parenthesized_expression "(uVar3 == 1)" ( (binary_expression "uVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }" { (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" identifier = number_literal) ;) }) (else_clause "else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" else (if_statement "if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }" { (expression_statement "bVar4 = 8;" (assignment_expression "bVar4 = 8" identifier = number_literal) ;) (expression_statement "bVar2 = 2;" (assignment_expression "bVar2 = 2" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" else (compound_statement "{\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" { (expression_statement "bVar4 = 0xc;" (assignment_expression "bVar4 = 0xc" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar2 = 3;" (assignment_expression "bVar2 = 3" identifier = number_literal) ;) }))))) (if_statement "if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" if (parenthesized_expression "(2 < uVar3)" ( (binary_expression "2 < uVar3" number_literal < identifier) )) (compound_statement "{\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" { (expression_statement "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = (binary_expression "bVar2 | bVar4" identifier | identifier)) ;) (goto_statement "goto LAB_000347ec;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" else (compound_statement "{\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" { (expression_statement "*(undefined2 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" * (cast_expression "(undefined1 *)(iVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 10)" ( (binary_expression "iVar1 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(iVar1 + 7) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 7) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 7)" * (cast_expression "(undefined1 *)(iVar1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "*(byte *)(iVar1 + 0xb) = bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" statement_identifier : (if_statement "if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" if (parenthesized_expression "(((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0'))" ( (binary_expression "((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')" (parenthesized_expression "((param_2 & 0x10) == 0)" ( (binary_expression "(param_2 & 0x10) == 0" (parenthesized_expression "(param_2 & 0x10)" ( (binary_expression "param_2 & 0x10" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(char *)(iVar1 + 7) != '\0')" ( (binary_expression "*(char *)(iVar1 + 7) != '\0'" (pointer_expression "*(char *)(iVar1 + 7)" * (cast_expression "(char *)(iVar1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 7)" ( (binary_expression "iVar1 + 7" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" { (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" identifier = (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" else (compound_statement "{\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" { (expression_statement "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" * (cast_expression "(byte *)(iVar1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xb)" ( (binary_expression "iVar1 + 0xb" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" identifier = (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })))) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }" if (parenthesized_expression "((param_2 & 0x20) == 0)" ( (binary_expression "(param_2 & 0x20) == 0" (parenthesized_expression "(param_2 & 0x20)" ( (binary_expression "param_2 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    bVar2 = bVar2 | 1;\n  }" { (expression_statement "bVar2 = bVar2 | 1;" (assignment_expression "bVar2 = bVar2 | 1" identifier = (binary_expression "bVar2 | 1" identifier | number_literal)) ;) }) (else_clause "else {\n    bVar2 = bVar2 & 0xfe;\n  }" else (compound_statement "{\n    bVar2 = bVar2 & 0xfe;\n  }" { (expression_statement "bVar2 = bVar2 & 0xfe;" (assignment_expression "bVar2 = bVar2 & 0xfe" identifier = (binary_expression "bVar2 & 0xfe" identifier & number_literal)) ;) }))) (expression_statement "*(byte *)(iVar1 + 0x14) = bVar2;" (assignment_expression "*(byte *)(iVar1 + 0x14) = bVar2" (pointer_expression "*(byte *)(iVar1 + 0x14)" * (cast_expression "(byte *)(iVar1 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" { (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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) )))) = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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) )))) = 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) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (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 = 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) )))) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00034778(int param_1,uint param_2)\n\n{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00034778(int param_1,uint param_2)" (identifier "FUN_00034778") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  byte bVar2;\n  uint uVar3;\n  byte bVar4;\n  int *piVar5;\n  \n  piVar5 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }\n  iVar1 = *piVar5;\n  uVar3 = param_2 & 7;\n  if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }\n  *(byte *)(iVar1 + 0xb) = bVar4;\nLAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }\n  *(byte *)(iVar1 + 0x14) = bVar2;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = *(int **)(param_1 + 4);" (assignment_expression "piVar5 = *(int **)(param_1 + 4)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00033dcc();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00033dcc();\n  }" ({ "{") (expression_statement "FUN_00033dcc();" (call_expression "FUN_00033dcc()" (identifier "FUN_00033dcc") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" (identifier "iVar1") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (expression_statement "uVar3 = param_2 & 7;" (assignment_expression "uVar3 = param_2 & 7" (identifier "uVar3") (= "=") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7"))) (; ";")) (if_statement "if (*(char *)(iVar1 + 0xc) == '\0') {\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }\n  else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar1 + 0xc) == '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar1 + 0xc)" (* "*") (cast_expression "(char *)(iVar1 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(bool *)(iVar1 + 7) = uVar3 == 1;\n    *(bool *)(iVar1 + 8) = 2 < uVar3;\n    *(bool *)(iVar1 + 9) = uVar3 == 4;\n    if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }\n    if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }\n  }" ({ "{") (expression_statement "*(bool *)(iVar1 + 7) = uVar3 == 1;" (assignment_expression "*(bool *)(iVar1 + 7) = uVar3 == 1" (pointer_expression "*(bool *)(iVar1 + 7)" (* "*") (cast_expression "(bool *)(iVar1 + 7)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 7)" (( "(") (binary_expression "iVar1 + 7" (identifier "iVar1") (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1"))) (; ";")) (expression_statement "*(bool *)(iVar1 + 8) = 2 < uVar3;" (assignment_expression "*(bool *)(iVar1 + 8) = 2 < uVar3" (pointer_expression "*(bool *)(iVar1 + 8)" (* "*") (cast_expression "(bool *)(iVar1 + 8)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "2 < uVar3" (number_literal "2") (< "<") (identifier "uVar3"))) (; ";")) (expression_statement "*(bool *)(iVar1 + 9) = uVar3 == 4;" (assignment_expression "*(bool *)(iVar1 + 9) = uVar3 == 4" (pointer_expression "*(bool *)(iVar1 + 9)" (* "*") (cast_expression "(bool *)(iVar1 + 9)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 9)" (( "(") (binary_expression "iVar1 + 9" (identifier "iVar1") (+ "+") (number_literal "9")) () ")")))) (= "=") (binary_expression "uVar3 == 4" (identifier "uVar3") (== "==") (number_literal "4"))) (; ";")) (if_statement "if (uVar3 == 1) {\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }\n    else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" (if "if") (parenthesized_expression "(uVar3 == 1)" (( "(") (binary_expression "uVar3 == 1" (identifier "uVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *(undefined1 *)(iVar1 + 10) = 0;\n      bVar4 = 0;\n      bVar2 = 0;\n    }" ({ "{") (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 10)" (( "(") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = 0;" (assignment_expression "bVar2 = 0" (identifier "bVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" (else "else") (if_statement "if ((param_2 & 8) == 0) {\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }\n    else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" (if "if") (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bVar4 = 8;\n      bVar2 = 2;\n      *(undefined1 *)(iVar1 + 10) = 2;\n    }" ({ "{") (expression_statement "bVar4 = 8;" (assignment_expression "bVar4 = 8" (identifier "bVar4") (= "=") (number_literal "8")) (; ";")) (expression_statement "bVar2 = 2;" (assignment_expression "bVar2 = 2" (identifier "bVar2") (= "=") (number_literal "2")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar1 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 10)" (( "(") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" (else "else") (compound_statement "{\n      bVar4 = 0xc;\n      *(undefined1 *)(iVar1 + 10) = 3;\n      bVar2 = 3;\n    }" ({ "{") (expression_statement "bVar4 = 0xc;" (assignment_expression "bVar4 = 0xc" (identifier "bVar4") (= "=") (number_literal "0xc")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar1 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 10)" (( "(") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "bVar2 = 3;" (assignment_expression "bVar2 = 3" (identifier "bVar2") (= "=") (number_literal "3")) (; ";")) (} "}")))))) (if_statement "if (2 < uVar3) {\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" (if "if") (parenthesized_expression "(2 < uVar3)" (( "(") (binary_expression "2 < uVar3" (number_literal "2") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;\n      goto LAB_000347ec;\n    }" ({ "{") (expression_statement "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar2 | bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" (* "*") (cast_expression "(byte *)(iVar1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xb)" (( "(") (binary_expression "iVar1 + 0xb" (identifier "iVar1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (binary_expression "bVar2 | bVar4" (identifier "bVar2") (| "|") (identifier "bVar4"))) (; ";")) (goto_statement "goto LAB_000347ec;" (goto "goto") (statement_identifier "LAB_000347ec") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" (else "else") (compound_statement "{\n    *(undefined2 *)(iVar1 + 8) = 0;\n    bVar4 = 0;\n    *(undefined1 *)(iVar1 + 10) = 0;\n    *(undefined1 *)(iVar1 + 7) = 1;\n  }" ({ "{") (expression_statement "*(undefined2 *)(iVar1 + 8) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" (identifier "bVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 10) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + 10) = 0" (pointer_expression "*(undefined1 *)(iVar1 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 10)" (( "(") (binary_expression "iVar1 + 10" (identifier "iVar1") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + 7) = 1;" (assignment_expression "*(undefined1 *)(iVar1 + 7) = 1" (pointer_expression "*(undefined1 *)(iVar1 + 7)" (* "*") (cast_expression "(undefined1 *)(iVar1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 7)" (( "(") (binary_expression "iVar1 + 7" (identifier "iVar1") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "*(byte *)(iVar1 + 0xb) = bVar4;" (assignment_expression "*(byte *)(iVar1 + 0xb) = bVar4" (pointer_expression "*(byte *)(iVar1 + 0xb)" (* "*") (cast_expression "(byte *)(iVar1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xb)" (( "(") (binary_expression "iVar1 + 0xb" (identifier "iVar1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (identifier "bVar4")) (; ";")) (labeled_statement "LAB_000347ec:\n  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" (statement_identifier "LAB_000347ec") (: ":") (if_statement "if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }\n  else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" (if "if") (parenthesized_expression "(((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0'))" (( "(") (binary_expression "((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')" (parenthesized_expression "((param_2 & 0x10) == 0)" (( "(") (binary_expression "(param_2 & 0x10) == 0" (parenthesized_expression "(param_2 & 0x10)" (( "(") (binary_expression "param_2 & 0x10" (identifier "param_2") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(char *)(iVar1 + 7) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 7) != '\0'" (pointer_expression "*(char *)(iVar1 + 7)" (* "*") (cast_expression "(char *)(iVar1 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 7)" (( "(") (binary_expression "iVar1 + 7" (identifier "iVar1") (+ "+") (number_literal "7")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" ({ "{") (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(iVar1 + 0x14)" (* "*") (cast_expression "(byte *)(iVar1 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" (else "else") (compound_statement "{\n    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;\n    bVar2 = *(byte *)(iVar1 + 0x14);\n  }" ({ "{") (expression_statement "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" (* "*") (cast_expression "(byte *)(iVar1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xb)" (( "(") (binary_expression "iVar1 + 0xb" (identifier "iVar1") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar1 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar1 + 0xb)" (* "*") (cast_expression "(byte *)(iVar1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xb)" (( "(") (binary_expression "iVar1 + 0xb" (identifier "iVar1") (+ "+") (number_literal "0xb")) () ")")))) (| "|") (number_literal "0xc"))) (; ";")) (expression_statement "bVar2 = *(byte *)(iVar1 + 0x14);" (assignment_expression "bVar2 = *(byte *)(iVar1 + 0x14)" (identifier "bVar2") (= "=") (pointer_expression "*(byte *)(iVar1 + 0x14)" (* "*") (cast_expression "(byte *)(iVar1 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))))) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar2 = bVar2 | 1;\n  }\n  else {\n    bVar2 = bVar2 & 0xfe;\n  }" (if "if") (parenthesized_expression "((param_2 & 0x20) == 0)" (( "(") (binary_expression "(param_2 & 0x20) == 0" (parenthesized_expression "(param_2 & 0x20)" (( "(") (binary_expression "param_2 & 0x20" (identifier "param_2") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar2 = bVar2 | 1;\n  }" ({ "{") (expression_statement "bVar2 = bVar2 | 1;" (assignment_expression "bVar2 = bVar2 | 1" (identifier "bVar2") (= "=") (binary_expression "bVar2 | 1" (identifier "bVar2") (| "|") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    bVar2 = bVar2 & 0xfe;\n  }" (else "else") (compound_statement "{\n    bVar2 = bVar2 & 0xfe;\n  }" ({ "{") (expression_statement "bVar2 = bVar2 & 0xfe;" (assignment_expression "bVar2 = bVar2 & 0xfe" (identifier "bVar2") (= "=") (binary_expression "bVar2 & 0xfe" (identifier "bVar2") (& "&") (number_literal "0xfe"))) (; ";")) (} "}")))) (expression_statement "*(byte *)(iVar1 + 0x14) = bVar2;" (assignment_expression "*(byte *)(iVar1 + 0x14) = bVar2" (pointer_expression "*(byte *)(iVar1 + 0x14)" (* "*") (cast_expression "(byte *)(iVar1 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "bVar2")) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0003452c(param_1);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0003452c(param_1);\n  }" ({ "{") (expression_statement "FUN_0003452c(param_1);" (call_expression "FUN_0003452c(param_1)" (identifier "FUN_0003452c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *p,type_2 var_2)

{
  type_3 *pPVar1;
  int iVar2;
  type_4 var_4;
  type_2 var_3;
  type_4 var_5;
  type_2 mxPage;
  type_5 *pBVar6;
  
  pBVar6 = p->pBt;
  mxPage = var_2;
  if (p->sharable != '\0') {
    var_1(p);
  }
  pPVar1 = pBVar6->pPager;
  var_3 = var_2 & 7;
  if (pPVar1->tempFile == '\0') {
    pPVar1->noSync = var_3 == 1;
    mxPage = (type_2)(var_3 == 4);
    pPVar1->fullSync = 2 < var_3;
    pPVar1->extraSync = var_3 == 4;
    if (var_3 == 1) {
      pPVar1->syncFlags = '\0';
      var_5 = 0;
      var_4 = 0;
    }
    else if ((var_2 & 8) == 0) {
      mxPage = 2;
      var_5 = 8;
      var_4 = 2;
      pPVar1->syncFlags = '\x02';
    }
    else {
      var_5 = 0xc;
      pPVar1->syncFlags = '\x03';
      var_4 = 3;
    }
    if (2 < var_3) {
      pPVar1->walSyncFlags = var_4 | var_5;
      goto LAB_000347ec;
    }
  }
  else {
    pPVar1->fullSync = '\0';
    pPVar1->extraSync = '\0';
    var_5 = 0;
    pPVar1->syncFlags = '\0';
    pPVar1->noSync = '\x01';
  }
  pPVar1->walSyncFlags = var_5;
LAB_000347ec:
  if (((var_2 & 0x10) == 0) || (pPVar1->noSync != '\0')) {
    var_4 = pPVar1->doNotSpill;
  }
  else {
    pPVar1->walSyncFlags = pPVar1->walSyncFlags | 0xc;
    var_4 = pPVar1->doNotSpill;
  }
  if ((var_2 & 0x20) != 0) {
    pPVar1->doNotSpill = var_4 & 0xfe;
    if (p->sharable != '\0') {
      var_6(p,mxPage);
    }
    return 0;
  }
  iVar2 = var_7();
  return iVar2;
}


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

undefined4 MASKED(int param_1,uint param_2)

{
  int iVar1;
  byte bVar2;
  uint uVar3;
  byte bVar4;
  int *piVar5;
  
  piVar5 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00033dcc();
  }
  iVar1 = *piVar5;
  uVar3 = param_2 & 7;
  if (*(char *)(iVar1 + 0xc) == '\0') {
    *(bool *)(iVar1 + 7) = uVar3 == 1;
    *(bool *)(iVar1 + 8) = 2 < uVar3;
    *(bool *)(iVar1 + 9) = uVar3 == 4;
    if (uVar3 == 1) {
      *(undefined1 *)(iVar1 + 10) = 0;
      bVar4 = 0;
      bVar2 = 0;
    }
    else if ((param_2 & 8) == 0) {
      bVar4 = 8;
      bVar2 = 2;
      *(undefined1 *)(iVar1 + 10) = 2;
    }
    else {
      bVar4 = 0xc;
      *(undefined1 *)(iVar1 + 10) = 3;
      bVar2 = 3;
    }
    if (2 < uVar3) {
      *(byte *)(iVar1 + 0xb) = bVar2 | bVar4;
      goto LAB_000347ec;
    }
  }
  else {
    *(undefined2 *)(iVar1 + 8) = 0;
    bVar4 = 0;
    *(undefined1 *)(iVar1 + 10) = 0;
    *(undefined1 *)(iVar1 + 7) = 1;
  }
  *(byte *)(iVar1 + 0xb) = bVar4;
LAB_000347ec:
  if (((param_2 & 0x10) == 0) || (*(char *)(iVar1 + 7) != '\0')) {
    bVar2 = *(byte *)(iVar1 + 0x14);
  }
  else {
    *(byte *)(iVar1 + 0xb) = *(byte *)(iVar1 + 0xb) | 0xc;
    bVar2 = *(byte *)(iVar1 + 0x14);
  }
  if ((param_2 & 0x20) == 0) {
    bVar2 = bVar2 | 1;
  }
  else {
    bVar2 = bVar2 & 0xfe;
  }
  *(byte *)(iVar1 + 0x14) = bVar2;
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0003452c(param_1);
  }
  return 0;
}

