
int __regparm3 sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)

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



undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  byte bVar3;
  uint uVar4;
  byte bVar5;
  
  piVar1 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00027820();
  }
  iVar2 = *piVar1;
  if (*(char *)(iVar2 + 0xc) == '\0') {
    uVar4 = param_2 & 7;
    *(bool *)(iVar2 + 7) = uVar4 == 1;
    *(bool *)(iVar2 + 8) = 2 < uVar4;
    *(bool *)(iVar2 + 9) = uVar4 == 4;
    if (uVar4 == 1) {
      *(undefined2 *)(iVar2 + 10) = 0;
    }
    else {
      if ((param_2 & 8) == 0) {
        *(undefined1 *)(iVar2 + 10) = 2;
        bVar5 = 8;
        bVar3 = 2;
      }
      else {
        *(undefined1 *)(iVar2 + 10) = 3;
        bVar5 = 0xc;
        bVar3 = 3;
      }
      bVar3 = bVar3 | bVar5;
      if (uVar4 < 3) {
        bVar3 = bVar5;
      }
      *(byte *)(iVar2 + 0xb) = bVar3;
      if ((param_2 & 0x10) != 0) {
        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;
      }
    }
  }
  else {
    *(undefined4 *)(iVar2 + 7) = 1;
    *(undefined1 *)(iVar2 + 0xb) = 0;
  }
  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;
  if ((param_2 & 0x20) == 0) {
    bVar3 = *(byte *)(iVar2 + 0x14) | 1;
  }
  *(byte *)(iVar2 + 0x14) = bVar3;
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00027ed0();
  }
  return 0;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x10
CMP byte ptr [EAX + 0x9],0x0
MOV ESI,dword ptr [EAX + 0x4]
JNZ 0x00028150
MOV EAX,dword ptr [ESI]
CMP byte ptr [EAX + 0xc],0x0
JZ 0x000280f8
MOV dword ptr [EAX + 0x7],0x1
MOV byte ptr [EAX + 0xb],0x0
MOVZX ECX,byte ptr [EAX + 0x14]
MOV ESI,ECX
AND ECX,0xfffffffe
OR ESI,0x1
AND EDX,0x20
CMOVZ ECX,ESI
MOV byte ptr [EAX + 0x14],CL
CMP byte ptr [EBX + 0x9],0x0
JZ 0x000280ea
MOV EAX,EBX
CALL 0x00027ed0
ADD ESP,0x10
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
MOV ESI,EDX
AND ESI,0x7
CMP ESI,0x1
SETZ byte ptr [EAX + 0x7]
CMP ESI,0x2
SETA byte ptr [EAX + 0x8]
CMP ESI,0x4
SETZ byte ptr [EAX + 0x9]
CMP ESI,0x1
JZ 0x00028162
TEST DL,0x8
JNZ 0x00028140
MOV byte ptr [EAX + 0xa],0x2
MOV EDI,0x8
MOV ECX,0x2
OR ECX,EDI
CMP ESI,0x2
CMOVBE ECX,EDI
TEST DL,0x10
MOV byte ptr [EAX + 0xb],CL
JZ 0x000280c8
OR byte ptr [EAX + 0xb],0xc
JMP 0x000280c8
MOV byte ptr [EAX + 0xa],0x3
MOV EDI,0xc
MOV ECX,0x3
JMP 0x0002812a
MOV dword ptr [ESP + 0xc],EDX
CALL 0x00027820
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x000280b5
MOV word ptr [EAX + 0xa],0x0
JMP 0x000280c8
(translation_unit "undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000280a0(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 *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * 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 ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(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_00027820();\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_00027820();\n  }" { (expression_statement "FUN_00027820();" (call_expression "FUN_00027820()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" if (parenthesized_expression "(*(char *)(iVar2 + 0xc) == '\0')" ( (binary_expression "*(char *)(iVar2 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar2 + 0xc)" * (cast_expression "(char *)(iVar2 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }" { (expression_statement "uVar4 = param_2 & 7;" (assignment_expression "uVar4 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (expression_statement "*(bool *)(iVar2 + 7) = uVar4 == 1;" (assignment_expression "*(bool *)(iVar2 + 7) = uVar4 == 1" (pointer_expression "*(bool *)(iVar2 + 7)" * (cast_expression "(bool *)(iVar2 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 7)" ( (binary_expression "iVar2 + 7" identifier + number_literal) )))) = (binary_expression "uVar4 == 1" identifier == number_literal)) ;) (expression_statement "*(bool *)(iVar2 + 8) = 2 < uVar4;" (assignment_expression "*(bool *)(iVar2 + 8) = 2 < uVar4" (pointer_expression "*(bool *)(iVar2 + 8)" * (cast_expression "(bool *)(iVar2 + 8)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = (binary_expression "2 < uVar4" number_literal < identifier)) ;) (expression_statement "*(bool *)(iVar2 + 9) = uVar4 == 4;" (assignment_expression "*(bool *)(iVar2 + 9) = uVar4 == 4" (pointer_expression "*(bool *)(iVar2 + 9)" * (cast_expression "(bool *)(iVar2 + 9)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 9)" ( (binary_expression "iVar2 + 9" identifier + number_literal) )))) = (binary_expression "uVar4 == 4" identifier == number_literal)) ;) (if_statement "if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }" { (expression_statement "*(undefined2 *)(iVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)(iVar2 + 10) = 0" (pointer_expression "*(undefined2 *)(iVar2 + 10)" * (cast_expression "(undefined2 *)(iVar2 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" else (compound_statement "{\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" { (if_statement "if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 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        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }" { (expression_statement "*(undefined1 *)(iVar2 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar2 + 10)" * (cast_expression "(undefined1 *)(iVar2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar5 = 8;" (assignment_expression "bVar5 = 8" identifier = number_literal) ;) (expression_statement "bVar3 = 2;" (assignment_expression "bVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" else (compound_statement "{\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" { (expression_statement "*(undefined1 *)(iVar2 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar2 + 10)" * (cast_expression "(undefined1 *)(iVar2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar5 = 0xc;" (assignment_expression "bVar5 = 0xc" identifier = number_literal) ;) (expression_statement "bVar3 = 3;" (assignment_expression "bVar3 = 3" identifier = number_literal) ;) }))) (expression_statement "bVar3 = bVar3 | bVar5;" (assignment_expression "bVar3 = bVar3 | bVar5" identifier = (binary_expression "bVar3 | bVar5" identifier | identifier)) ;) (if_statement "if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }" if (parenthesized_expression "(uVar4 < 3)" ( (binary_expression "uVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        bVar3 = bVar5;\n      }" { (expression_statement "bVar3 = bVar5;" (assignment_expression "bVar3 = bVar5" identifier = identifier) ;) })) (expression_statement "*(byte *)(iVar2 + 0xb) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0xb) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" if (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) )) (compound_statement "{\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" { (expression_statement "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) | number_literal)) ;) })) }))) }) (else_clause "else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar2 + 7) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 7) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 7)" * (cast_expression "(undefined4 *)(iVar2 + 7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 7)" ( (binary_expression "iVar2 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(iVar2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0xb)" * (cast_expression "(undefined1 *)(iVar2 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe" identifier = (binary_expression "*(byte *)(iVar2 + 0x14) & 0xfe" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\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    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }" { (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) | 1;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) | 1" identifier = (binary_expression "*(byte *)(iVar2 + 0x14) | 1" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(byte *)(iVar2 + 0x14) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0x14) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\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_00027ed0();\n  }" { (expression_statement "FUN_00027ed0();" (call_expression "FUN_00027ed0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)\n\n{\n  BtShared *pBVar1;\n  Pager *pPVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager;\n  if (pPVar2->tempFile == '\0') {\n    uVar4 = pgFlags & 7;\n    pPVar2->noSync = uVar4 == 1;\n    pPVar2->fullSync = 2 < uVar4;\n    pPVar2->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }\n  }\n  else {\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }\n  bVar3 = pPVar2->doNotSpill & 0xfe;\n  if ((pgFlags & 0x20) == 0) {\n    bVar3 = pPVar2->doNotSpill | 1;\n  }\n  pPVar2->doNotSpill = bVar3;\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,pgFlags & 0x20);\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 sqlite3BtreeSetPagerFlags(Btree *p,uint pgFlags)\n\n{\n  BtShared *pBVar1;\n  Pager *pPVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager;\n  if (pPVar2->tempFile == '\0') {\n    uVar4 = pgFlags & 7;\n    pPVar2->noSync = uVar4 == 1;\n    pPVar2->fullSync = 2 < uVar4;\n    pPVar2->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }\n  }\n  else {\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }\n  bVar3 = pPVar2->doNotSpill & 0xfe;\n  if ((pgFlags & 0x20) == 0) {\n    bVar3 = pPVar2->doNotSpill | 1;\n  }\n  pPVar2->doNotSpill = bVar3;\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,pgFlags & 0x20);\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (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  BtShared *pBVar1;\n  Pager *pPVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager;\n  if (pPVar2->tempFile == '\0') {\n    uVar4 = pgFlags & 7;\n    pPVar2->noSync = uVar4 == 1;\n    pPVar2->fullSync = 2 < uVar4;\n    pPVar2->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }\n  }\n  else {\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }\n  bVar3 = pPVar2->doNotSpill & 0xfe;\n  if ((pgFlags & 0x20) == 0) {\n    bVar3 = pPVar2->doNotSpill | 1;\n  }\n  pPVar2->doNotSpill = bVar3;\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,pgFlags & 0x20);\n  }\n  return 0;\n}" { (declaration "BtShared *pBVar1;" type_identifier (pointer_declarator "*pBVar1" * identifier) ;) (declaration "Pager *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "pBVar1 = p->pBt;" (assignment_expression "pBVar1 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_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 "pPVar2 = pBVar1->pPager;" (assignment_expression "pPVar2 = pBVar1->pPager" identifier = (field_expression "pBVar1->pPager" identifier -> field_identifier)) ;) (if_statement "if (pPVar2->tempFile == '\0') {\n    uVar4 = pgFlags & 7;\n    pPVar2->noSync = uVar4 == 1;\n    pPVar2->fullSync = 2 < uVar4;\n    pPVar2->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }\n  }\n  else {\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }" if (parenthesized_expression "(pPVar2->tempFile == '\0')" ( (binary_expression "pPVar2->tempFile == '\0'" (field_expression "pPVar2->tempFile" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = pgFlags & 7;\n    pPVar2->noSync = uVar4 == 1;\n    pPVar2->fullSync = 2 < uVar4;\n    pPVar2->extraSync = uVar4 == 4;\n    if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }\n  }" { (expression_statement "uVar4 = pgFlags & 7;" (assignment_expression "uVar4 = pgFlags & 7" identifier = (binary_expression "pgFlags & 7" identifier & number_literal)) ;) (expression_statement "pPVar2->noSync = uVar4 == 1;" (assignment_expression "pPVar2->noSync = uVar4 == 1" (field_expression "pPVar2->noSync" identifier -> field_identifier) = (binary_expression "uVar4 == 1" identifier == number_literal)) ;) (expression_statement "pPVar2->fullSync = 2 < uVar4;" (assignment_expression "pPVar2->fullSync = 2 < uVar4" (field_expression "pPVar2->fullSync" identifier -> field_identifier) = (binary_expression "2 < uVar4" number_literal < identifier)) ;) (expression_statement "pPVar2->extraSync = uVar4 == 4;" (assignment_expression "pPVar2->extraSync = uVar4 == 4" (field_expression "pPVar2->extraSync" identifier -> field_identifier) = (binary_expression "uVar4 == 4" identifier == number_literal)) ;) (if_statement "if (uVar4 == 1) {\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }\n    else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      pPVar2->syncFlags = '\0';\n      pPVar2->walSyncFlags = '\0';\n    }" { (expression_statement "pPVar2->syncFlags = '\0';" (assignment_expression "pPVar2->syncFlags = '\0'" (field_expression "pPVar2->syncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar2->walSyncFlags = '\0';" (assignment_expression "pPVar2->walSyncFlags = '\0'" (field_expression "pPVar2->walSyncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }" else (compound_statement "{\n      if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      pPVar2->walSyncFlags = bVar3;\n      if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }\n    }" { (if_statement "if ((pgFlags & 8) == 0) {\n        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\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        pPVar2->syncFlags = '\x02';\n        bVar5 = 8;\n        bVar3 = 2;\n      }" { (expression_statement "pPVar2->syncFlags = '\x02';" (assignment_expression "pPVar2->syncFlags = '\x02'" (field_expression "pPVar2->syncFlags" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "bVar5 = 8;" (assignment_expression "bVar5 = 8" identifier = number_literal) ;) (expression_statement "bVar3 = 2;" (assignment_expression "bVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" else (compound_statement "{\n        pPVar2->syncFlags = '\x03';\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" { (expression_statement "pPVar2->syncFlags = '\x03';" (assignment_expression "pPVar2->syncFlags = '\x03'" (field_expression "pPVar2->syncFlags" identifier -> field_identifier) = (char_literal "'\x03'" ' escape_sequence ')) ;) (expression_statement "bVar5 = 0xc;" (assignment_expression "bVar5 = 0xc" identifier = number_literal) ;) (expression_statement "bVar3 = 3;" (assignment_expression "bVar3 = 3" identifier = number_literal) ;) }))) (expression_statement "bVar3 = bVar3 | bVar5;" (assignment_expression "bVar3 = bVar3 | bVar5" identifier = (binary_expression "bVar3 | bVar5" identifier | identifier)) ;) (if_statement "if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }" if (parenthesized_expression "(uVar4 < 3)" ( (binary_expression "uVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        bVar3 = bVar5;\n      }" { (expression_statement "bVar3 = bVar5;" (assignment_expression "bVar3 = bVar5" identifier = identifier) ;) })) (expression_statement "pPVar2->walSyncFlags = bVar3;" (assignment_expression "pPVar2->walSyncFlags = bVar3" (field_expression "pPVar2->walSyncFlags" identifier -> field_identifier) = identifier) ;) (if_statement "if ((pgFlags & 0x10) != 0) {\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }" if (parenthesized_expression "((pgFlags & 0x10) != 0)" ( (binary_expression "(pgFlags & 0x10) != 0" (parenthesized_expression "(pgFlags & 0x10)" ( (binary_expression "pgFlags & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;\n      }" { (expression_statement "pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc;" (assignment_expression "pPVar2->walSyncFlags = pPVar2->walSyncFlags | 0xc" (field_expression "pPVar2->walSyncFlags" identifier -> field_identifier) = (binary_expression "pPVar2->walSyncFlags | 0xc" (field_expression "pPVar2->walSyncFlags" identifier -> field_identifier) | number_literal)) ;) })) }))) }) (else_clause "else {\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }" else (compound_statement "{\n    pPVar2->noSync = '\x01';\n    pPVar2->fullSync = '\0';\n    pPVar2->extraSync = '\0';\n    pPVar2->syncFlags = '\0';\n    pPVar2->walSyncFlags = '\0';\n  }" { (expression_statement "pPVar2->noSync = '\x01';" (assignment_expression "pPVar2->noSync = '\x01'" (field_expression "pPVar2->noSync" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pPVar2->fullSync = '\0';" (assignment_expression "pPVar2->fullSync = '\0'" (field_expression "pPVar2->fullSync" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar2->extraSync = '\0';" (assignment_expression "pPVar2->extraSync = '\0'" (field_expression "pPVar2->extraSync" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar2->syncFlags = '\0';" (assignment_expression "pPVar2->syncFlags = '\0'" (field_expression "pPVar2->syncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar2->walSyncFlags = '\0';" (assignment_expression "pPVar2->walSyncFlags = '\0'" (field_expression "pPVar2->walSyncFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "bVar3 = pPVar2->doNotSpill & 0xfe;" (assignment_expression "bVar3 = pPVar2->doNotSpill & 0xfe" identifier = (binary_expression "pPVar2->doNotSpill & 0xfe" (field_expression "pPVar2->doNotSpill" identifier -> field_identifier) & number_literal)) ;) (if_statement "if ((pgFlags & 0x20) == 0) {\n    bVar3 = pPVar2->doNotSpill | 1;\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    bVar3 = pPVar2->doNotSpill | 1;\n  }" { (expression_statement "bVar3 = pPVar2->doNotSpill | 1;" (assignment_expression "bVar3 = pPVar2->doNotSpill | 1" identifier = (binary_expression "pPVar2->doNotSpill | 1" (field_expression "pPVar2->doNotSpill" identifier -> field_identifier) | number_literal)) ;) })) (expression_statement "pPVar2->doNotSpill = bVar3;" (assignment_expression "pPVar2->doNotSpill = bVar3" (field_expression "pPVar2->doNotSpill" identifier -> field_identifier) = identifier) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,pgFlags & 0x20);\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,pgFlags & 0x20);\n  }" { (expression_statement "sqlite3BtreeSetCacheSize(p,pgFlags & 0x20);" (call_expression "sqlite3BtreeSetCacheSize(p,pgFlags & 0x20)" identifier (argument_list "(p,pgFlags & 0x20)" ( identifier , (binary_expression "pgFlags & 0x20" identifier & number_literal) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000280a0(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 *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * 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 ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(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_00027820();\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_00027820();\n  }" { (expression_statement "FUN_00027820();" (call_expression "FUN_00027820()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" if (parenthesized_expression "(*(char *)(iVar2 + 0xc) == '\0')" ( (binary_expression "*(char *)(iVar2 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar2 + 0xc)" * (cast_expression "(char *)(iVar2 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }" { (expression_statement "uVar4 = param_2 & 7;" (assignment_expression "uVar4 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (expression_statement "*(bool *)(iVar2 + 7) = uVar4 == 1;" (assignment_expression "*(bool *)(iVar2 + 7) = uVar4 == 1" (pointer_expression "*(bool *)(iVar2 + 7)" * (cast_expression "(bool *)(iVar2 + 7)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 7)" ( (binary_expression "iVar2 + 7" identifier + number_literal) )))) = (binary_expression "uVar4 == 1" identifier == number_literal)) ;) (expression_statement "*(bool *)(iVar2 + 8) = 2 < uVar4;" (assignment_expression "*(bool *)(iVar2 + 8) = 2 < uVar4" (pointer_expression "*(bool *)(iVar2 + 8)" * (cast_expression "(bool *)(iVar2 + 8)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) = (binary_expression "2 < uVar4" number_literal < identifier)) ;) (expression_statement "*(bool *)(iVar2 + 9) = uVar4 == 4;" (assignment_expression "*(bool *)(iVar2 + 9) = uVar4 == 4" (pointer_expression "*(bool *)(iVar2 + 9)" * (cast_expression "(bool *)(iVar2 + 9)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 9)" ( (binary_expression "iVar2 + 9" identifier + number_literal) )))) = (binary_expression "uVar4 == 4" identifier == number_literal)) ;) (if_statement "if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" if (parenthesized_expression "(uVar4 == 1)" ( (binary_expression "uVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }" { (expression_statement "*(undefined2 *)(iVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)(iVar2 + 10) = 0" (pointer_expression "*(undefined2 *)(iVar2 + 10)" * (cast_expression "(undefined2 *)(iVar2 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" else (compound_statement "{\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" { (if_statement "if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 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        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }" { (expression_statement "*(undefined1 *)(iVar2 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar2 + 10)" * (cast_expression "(undefined1 *)(iVar2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar5 = 8;" (assignment_expression "bVar5 = 8" identifier = number_literal) ;) (expression_statement "bVar3 = 2;" (assignment_expression "bVar3 = 2" identifier = number_literal) ;) }) (else_clause "else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" else (compound_statement "{\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" { (expression_statement "*(undefined1 *)(iVar2 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar2 + 10)" * (cast_expression "(undefined1 *)(iVar2 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 10)" ( (binary_expression "iVar2 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "bVar5 = 0xc;" (assignment_expression "bVar5 = 0xc" identifier = number_literal) ;) (expression_statement "bVar3 = 3;" (assignment_expression "bVar3 = 3" identifier = number_literal) ;) }))) (expression_statement "bVar3 = bVar3 | bVar5;" (assignment_expression "bVar3 = bVar3 | bVar5" identifier = (binary_expression "bVar3 | bVar5" identifier | identifier)) ;) (if_statement "if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }" if (parenthesized_expression "(uVar4 < 3)" ( (binary_expression "uVar4 < 3" identifier < number_literal) )) (compound_statement "{\n        bVar3 = bVar5;\n      }" { (expression_statement "bVar3 = bVar5;" (assignment_expression "bVar3 = bVar5" identifier = identifier) ;) })) (expression_statement "*(byte *)(iVar2 + 0xb) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0xb) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" if (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) )) (compound_statement "{\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" { (expression_statement "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = (binary_expression "*(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" * (cast_expression "(byte *)(iVar2 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) | number_literal)) ;) })) }))) }) (else_clause "else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" { (expression_statement "*(undefined4 *)(iVar2 + 7) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 7) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 7)" * (cast_expression "(undefined4 *)(iVar2 + 7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 7)" ( (binary_expression "iVar2 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(iVar2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0xb)" * (cast_expression "(undefined1 *)(iVar2 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe" identifier = (binary_expression "*(byte *)(iVar2 + 0x14) & 0xfe" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\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    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }" { (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) | 1;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) | 1" identifier = (binary_expression "*(byte *)(iVar2 + 0x14) | 1" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(byte *)(iVar2 + 0x14) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0x14) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0x14)" * (cast_expression "(byte *)(iVar2 + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\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_00027ed0();\n  }" { (expression_statement "FUN_00027ed0();" (call_expression "FUN_00027ed0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 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) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == 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 (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) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) }))) }) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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) ;) (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 ( ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_000280a0(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000280a0(int param_1,uint param_2)" (identifier "FUN_000280a0") (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 *piVar1;\n  int iVar2;\n  byte bVar3;\n  uint uVar4;\n  byte bVar5;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027820();\n  }\n  iVar2 = *piVar1;\n  if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }\n  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;\n  if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }\n  *(byte *)(iVar2 + 0x14) = bVar3;\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" (identifier "piVar1") (= "=") (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_00027820();\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_00027820();\n  }" ({ "{") (expression_statement "FUN_00027820();" (call_expression "FUN_00027820()" (identifier "FUN_00027820") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (*(char *)(iVar2 + 0xc) == '\0') {\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar2 + 0xc) == '\0')" (( "(") (binary_expression "*(char *)(iVar2 + 0xc) == '\0'" (pointer_expression "*(char *)(iVar2 + 0xc)" (* "*") (cast_expression "(char *)(iVar2 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar4 = param_2 & 7;\n    *(bool *)(iVar2 + 7) = uVar4 == 1;\n    *(bool *)(iVar2 + 8) = 2 < uVar4;\n    *(bool *)(iVar2 + 9) = uVar4 == 4;\n    if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar4 = param_2 & 7;" (assignment_expression "uVar4 = param_2 & 7" (identifier "uVar4") (= "=") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7"))) (; ";")) (expression_statement "*(bool *)(iVar2 + 7) = uVar4 == 1;" (assignment_expression "*(bool *)(iVar2 + 7) = uVar4 == 1" (pointer_expression "*(bool *)(iVar2 + 7)" (* "*") (cast_expression "(bool *)(iVar2 + 7)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 7)" (( "(") (binary_expression "iVar2 + 7" (identifier "iVar2") (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "uVar4 == 1" (identifier "uVar4") (== "==") (number_literal "1"))) (; ";")) (expression_statement "*(bool *)(iVar2 + 8) = 2 < uVar4;" (assignment_expression "*(bool *)(iVar2 + 8) = 2 < uVar4" (pointer_expression "*(bool *)(iVar2 + 8)" (* "*") (cast_expression "(bool *)(iVar2 + 8)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "2 < uVar4" (number_literal "2") (< "<") (identifier "uVar4"))) (; ";")) (expression_statement "*(bool *)(iVar2 + 9) = uVar4 == 4;" (assignment_expression "*(bool *)(iVar2 + 9) = uVar4 == 4" (pointer_expression "*(bool *)(iVar2 + 9)" (* "*") (cast_expression "(bool *)(iVar2 + 9)" (( "(") (type_descriptor "bool *" (primitive_type "bool") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 9)" (( "(") (binary_expression "iVar2 + 9" (identifier "iVar2") (+ "+") (number_literal "9")) () ")")))) (= "=") (binary_expression "uVar4 == 4" (identifier "uVar4") (== "==") (number_literal "4"))) (; ";")) (if_statement "if (uVar4 == 1) {\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }\n    else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" (if "if") (parenthesized_expression "(uVar4 == 1)" (( "(") (binary_expression "uVar4 == 1" (identifier "uVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *(undefined2 *)(iVar2 + 10) = 0;\n    }" ({ "{") (expression_statement "*(undefined2 *)(iVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)(iVar2 + 10) = 0" (pointer_expression "*(undefined2 *)(iVar2 + 10)" (* "*") (cast_expression "(undefined2 *)(iVar2 + 10)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 10)" (( "(") (binary_expression "iVar2 + 10" (identifier "iVar2") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" (else "else") (compound_statement "{\n      if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }\n      bVar3 = bVar3 | bVar5;\n      if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }\n      *(byte *)(iVar2 + 0xb) = bVar3;\n      if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }\n    }" ({ "{") (if_statement "if ((param_2 & 8) == 0) {\n        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }\n      else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 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        *(undefined1 *)(iVar2 + 10) = 2;\n        bVar5 = 8;\n        bVar3 = 2;\n      }" ({ "{") (expression_statement "*(undefined1 *)(iVar2 + 10) = 2;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 2" (pointer_expression "*(undefined1 *)(iVar2 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 10)" (( "(") (binary_expression "iVar2 + 10" (identifier "iVar2") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "bVar5 = 8;" (assignment_expression "bVar5 = 8" (identifier "bVar5") (= "=") (number_literal "8")) (; ";")) (expression_statement "bVar3 = 2;" (assignment_expression "bVar3 = 2" (identifier "bVar3") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" (else "else") (compound_statement "{\n        *(undefined1 *)(iVar2 + 10) = 3;\n        bVar5 = 0xc;\n        bVar3 = 3;\n      }" ({ "{") (expression_statement "*(undefined1 *)(iVar2 + 10) = 3;" (assignment_expression "*(undefined1 *)(iVar2 + 10) = 3" (pointer_expression "*(undefined1 *)(iVar2 + 10)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 10)" (( "(") (binary_expression "iVar2 + 10" (identifier "iVar2") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "bVar5 = 0xc;" (assignment_expression "bVar5 = 0xc" (identifier "bVar5") (= "=") (number_literal "0xc")) (; ";")) (expression_statement "bVar3 = 3;" (assignment_expression "bVar3 = 3" (identifier "bVar3") (= "=") (number_literal "3")) (; ";")) (} "}")))) (expression_statement "bVar3 = bVar3 | bVar5;" (assignment_expression "bVar3 = bVar3 | bVar5" (identifier "bVar3") (= "=") (binary_expression "bVar3 | bVar5" (identifier "bVar3") (| "|") (identifier "bVar5"))) (; ";")) (if_statement "if (uVar4 < 3) {\n        bVar3 = bVar5;\n      }" (if "if") (parenthesized_expression "(uVar4 < 3)" (( "(") (binary_expression "uVar4 < 3" (identifier "uVar4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n        bVar3 = bVar5;\n      }" ({ "{") (expression_statement "bVar3 = bVar5;" (assignment_expression "bVar3 = bVar5" (identifier "bVar3") (= "=") (identifier "bVar5")) (; ";")) (} "}"))) (expression_statement "*(byte *)(iVar2 + 0xb) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0xb) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0xb)" (* "*") (cast_expression "(byte *)(iVar2 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb)" (( "(") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (identifier "bVar3")) (; ";")) (if_statement "if ((param_2 & 0x10) != 0) {\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" (if "if") (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")) () ")")) (compound_statement "{\n        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;\n      }" ({ "{") (expression_statement "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;" (assignment_expression "*(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" (* "*") (cast_expression "(byte *)(iVar2 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb)" (( "(") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (binary_expression "*(byte *)(iVar2 + 0xb) | 0xc" (pointer_expression "*(byte *)(iVar2 + 0xb)" (* "*") (cast_expression "(byte *)(iVar2 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb)" (( "(") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) () ")")))) (| "|") (number_literal "0xc"))) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(iVar2 + 7) = 1;\n    *(undefined1 *)(iVar2 + 0xb) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar2 + 7) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 7) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 7)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 7)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 7)" (( "(") (binary_expression "iVar2 + 7" (identifier "iVar2") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(iVar2 + 0xb)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb)" (( "(") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe" (identifier "bVar3") (= "=") (binary_expression "*(byte *)(iVar2 + 0x14) & 0xfe" (pointer_expression "*(byte *)(iVar2 + 0x14)" (* "*") (cast_expression "(byte *)(iVar2 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0xfe"))) (; ";")) (if_statement "if ((param_2 & 0x20) == 0) {\n    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\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    bVar3 = *(byte *)(iVar2 + 0x14) | 1;\n  }" ({ "{") (expression_statement "bVar3 = *(byte *)(iVar2 + 0x14) | 1;" (assignment_expression "bVar3 = *(byte *)(iVar2 + 0x14) | 1" (identifier "bVar3") (= "=") (binary_expression "*(byte *)(iVar2 + 0x14) | 1" (pointer_expression "*(byte *)(iVar2 + 0x14)" (* "*") (cast_expression "(byte *)(iVar2 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(byte *)(iVar2 + 0x14) = bVar3;" (assignment_expression "*(byte *)(iVar2 + 0x14) = bVar3" (pointer_expression "*(byte *)(iVar2 + 0x14)" (* "*") (cast_expression "(byte *)(iVar2 + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "bVar3")) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_00027ed0();\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_00027ed0();\n  }" ({ "{") (expression_statement "FUN_00027ed0();" (call_expression "FUN_00027ed0()" (identifier "FUN_00027ed0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *p,type_2 var_2)

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


(translation_unit (function_definition type: (type_identifier) (ERROR (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (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)))) alternative: (else_clause (compound_statement (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: (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 (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)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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: (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)))))))))) 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: (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: (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)))) (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: (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))) (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))))) (return_statement (number_literal)))))

undefined4 __regparm3 MASKED(int param_1,uint param_2)

{
  int *piVar1;
  int iVar2;
  byte bVar3;
  uint uVar4;
  byte bVar5;
  
  piVar1 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00027820();
  }
  iVar2 = *piVar1;
  if (*(char *)(iVar2 + 0xc) == '\0') {
    uVar4 = param_2 & 7;
    *(bool *)(iVar2 + 7) = uVar4 == 1;
    *(bool *)(iVar2 + 8) = 2 < uVar4;
    *(bool *)(iVar2 + 9) = uVar4 == 4;
    if (uVar4 == 1) {
      *(undefined2 *)(iVar2 + 10) = 0;
    }
    else {
      if ((param_2 & 8) == 0) {
        *(undefined1 *)(iVar2 + 10) = 2;
        bVar5 = 8;
        bVar3 = 2;
      }
      else {
        *(undefined1 *)(iVar2 + 10) = 3;
        bVar5 = 0xc;
        bVar3 = 3;
      }
      bVar3 = bVar3 | bVar5;
      if (uVar4 < 3) {
        bVar3 = bVar5;
      }
      *(byte *)(iVar2 + 0xb) = bVar3;
      if ((param_2 & 0x10) != 0) {
        *(byte *)(iVar2 + 0xb) = *(byte *)(iVar2 + 0xb) | 0xc;
      }
    }
  }
  else {
    *(undefined4 *)(iVar2 + 7) = 1;
    *(undefined1 *)(iVar2 + 0xb) = 0;
  }
  bVar3 = *(byte *)(iVar2 + 0x14) & 0xfe;
  if ((param_2 & 0x20) == 0) {
    bVar3 = *(byte *)(iVar2 + 0x14) | 1;
  }
  *(byte *)(iVar2 + 0x14) = bVar3;
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_00027ed0();
  }
  return 0;
}

