
void * sqlite3BtreeSchema(Btree *p,int nBytes,_func_void_void_ptr *xFree)

{
  int iVar1;
  void *pvVar2;
  BtShared *pBVar3;
  undefined1 *puVar4;
  undefined4 in_stack_ffffffe4;
  
  puVar4 = &_gp;
  pBVar3 = p->pBt;
  if (p->sharable == '\0') {
    if (pBVar3->pSchema != (void *)0x0) {
      return pBVar3->pSchema;
    }
  }
  else {
    sqlite3BtreeEnter(p);
    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;
  }
  if (nBytes != 0) {
    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));
    pBVar3->pSchema = pvVar2;
    pBVar3->xFreeSchema = xFree;
  }
LAB_00037104:
  if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {
    pvVar2 = pBVar3->pSchema;
  }
  else {
    sqlite3BtreeLeave(p);
    pvVar2 = pBVar3->pSchema;
  }
  return pvVar2;
}



int FUN_00037084(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = *(int *)(param_1 + 4);
  if (*(char *)(param_1 + 9) == '\0') {
    if (*(int *)(iVar3 + 0x34) != 0) {
      return *(int *)(iVar3 + 0x34);
    }
  }
  else {
    FUN_0002cf78();
    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;
  }
  if (param_2 != 0) {
    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);
    *(undefined4 *)(iVar3 + 0x34) = uVar2;
    *(undefined4 *)(iVar3 + 0x38) = param_3;
  }
LAB_00037104:
  if ((*(char *)(param_1 + 9) == '\0') ||
     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {
    iVar3 = *(int *)(iVar3 + 0x34);
  }
  else {
    FUN_0002d060(param_1);
    iVar3 = *(int *)(iVar3 + 0x34);
  }
  return iVar3;
}


lui gp,0xc
addiu gp,gp,0x621c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x28(sp)
or s2,a2,zero
sw s1,0x24(sp)
sw s0,0x20(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lbu v0,0x9(a0)
bne v0,zero,0x000370dc
_lw s1,0x4(a0)
lw v0,0x34(s1)
beq v0,zero,0x000370fc
_lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x3088
bal 0x0002cf78
_sw a1,0x1c(sp)
lw v0,0x34(s1)
lw gp,0x10(sp)
bne v0,zero,0x00037104
_lw a1,0x1c(sp)
bne a1,zero,0x00037154
_lw t9,-0x7fb4(gp)
lbu v0,0x9(s0)
beq v0,zero,0x00037120
_nop
lw v0,0xc(s0)
addiu v0,v0,-0x1
beq v0,zero,0x0003713c
_sw v0,0xc(s0)
lw v0,0x34(s1)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x2fa0
bal 0x0002d060
_or a0,s0,zero
b 0x00037124
_lw v0,0x34(s1)
sra a2,a1,0x1f
or a0,zero,zero
addiu t9,t9,0x7020
bal 0x00037020
_or a3,a1,zero
lw gp,0x10(sp)
sw v0,0x34(s1)
b 0x00037104
_sw s2,0x38(s1)
(translation_unit "int FUN_00037084(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_00037084(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00037084(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\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    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }" { (if_statement "if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }" if (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return *(int *)(iVar3 + 0x34);\n    }" { (return_statement "return *(int *)(iVar3 + 0x34);" return (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) ;) })) }) (else_clause "else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" else (compound_statement "{\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" { (expression_statement "FUN_0002cf78();" (call_expression "FUN_0002cf78()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;" if (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00037104;" goto statement_identifier ;)) }))) (if_statement "if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" { (expression_statement "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);" (assignment_expression "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" identifier = (call_expression "FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" identifier (argument_list "(0,param_2,param_2 >> 0x1f,param_2)" ( number_literal , identifier , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" * (cast_expression "(undefined4 *)(iVar3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" * (cast_expression "(undefined4 *)(iVar3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" statement_identifier : (if_statement "if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" if (parenthesized_expression "((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0))" ( (binary_expression "(*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" (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 ')) )) || (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" ( (comma_expression "iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc) + -1" identifier = (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) , (binary_expression "iVar1 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" { (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" identifier = (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" else (compound_statement "{\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" { (expression_statement "FUN_0002d060(param_1);" (call_expression "FUN_0002d060(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" identifier = (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) ))))) ;) })))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "void * sqlite3BtreeSchema(Btree *p,int nBytes,_func_void_void_ptr *xFree)\n\n{\n  int iVar1;\n  void *pvVar2;\n  BtShared *pBVar3;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar4 = &_gp;\n  pBVar3 = p->pBt;\n  if (p->sharable == '\0') {\n    if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }\n  }\n  else {\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\n  }\n  if (nBytes != 0) {\n    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));\n    pBVar3->pSchema = pvVar2;\n    pBVar3->xFreeSchema = xFree;\n  }\nLAB_00037104:\n  if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {\n    pvVar2 = pBVar3->pSchema;\n  }\n  else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }\n  return pvVar2;\n}\n\n" (function_definition "void * sqlite3BtreeSchema(Btree *p,int nBytes,_func_void_void_ptr *xFree)\n\n{\n  int iVar1;\n  void *pvVar2;\n  BtShared *pBVar3;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar4 = &_gp;\n  pBVar3 = p->pBt;\n  if (p->sharable == '\0') {\n    if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }\n  }\n  else {\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\n  }\n  if (nBytes != 0) {\n    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));\n    pBVar3->pSchema = pvVar2;\n    pBVar3->xFreeSchema = xFree;\n  }\nLAB_00037104:\n  if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {\n    pvVar2 = pBVar3->pSchema;\n  }\n  else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }\n  return pvVar2;\n}" primitive_type (pointer_declarator "* sqlite3BtreeSchema(Btree *p,int nBytes,_func_void_void_ptr *xFree)" * (function_declarator "sqlite3BtreeSchema(Btree *p,int nBytes,_func_void_void_ptr *xFree)" identifier (parameter_list "(Btree *p,int nBytes,_func_void_void_ptr *xFree)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int nBytes" primitive_type identifier) , (parameter_declaration "_func_void_void_ptr *xFree" type_identifier (pointer_declarator "*xFree" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  BtShared *pBVar3;\n  undefined1 *puVar4;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar4 = &_gp;\n  pBVar3 = p->pBt;\n  if (p->sharable == '\0') {\n    if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }\n  }\n  else {\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\n  }\n  if (nBytes != 0) {\n    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));\n    pBVar3->pSchema = pvVar2;\n    pBVar3->xFreeSchema = xFree;\n  }\nLAB_00037104:\n  if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {\n    pvVar2 = pBVar3->pSchema;\n  }\n  else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }\n  return pvVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "BtShared *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar4 = &_gp;" (assignment_expression "puVar4 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pBVar3 = p->pBt;" (assignment_expression "pBVar3 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_identifier)) ;) (if_statement "if (p->sharable == '\0') {\n    if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }\n  }\n  else {\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\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    if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }\n  }" { (if_statement "if (pBVar3->pSchema != (void *)0x0) {\n      return pBVar3->pSchema;\n    }" if (parenthesized_expression "(pBVar3->pSchema != (void *)0x0)" ( (binary_expression "pBVar3->pSchema != (void *)0x0" (field_expression "pBVar3->pSchema" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return pBVar3->pSchema;\n    }" { (return_statement "return pBVar3->pSchema;" return (field_expression "pBVar3->pSchema" identifier -> field_identifier) ;) })) }) (else_clause "else {\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\n  }" else (compound_statement "{\n    sqlite3BtreeEnter(p);\n    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;\n  }" { (expression_statement "sqlite3BtreeEnter(p);" (call_expression "sqlite3BtreeEnter(p)" identifier (argument_list "(p)" ( identifier ))) ;) (if_statement "if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;" if (parenthesized_expression "(pBVar3->pSchema != (void *)0x0)" ( (binary_expression "pBVar3->pSchema != (void *)0x0" (field_expression "pBVar3->pSchema" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00037104;" goto statement_identifier ;)) }))) (if_statement "if (nBytes != 0) {\n    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));\n    pBVar3->pSchema = pvVar2;\n    pBVar3->xFreeSchema = xFree;\n  }" if (parenthesized_expression "(nBytes != 0)" ( (binary_expression "nBytes != 0" identifier != number_literal) )) (compound_statement "{\n    pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));\n    pBVar3->pSchema = pvVar2;\n    pBVar3->xFreeSchema = xFree;\n  }" { (expression_statement "pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4));" (assignment_expression "pvVar2 = sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4))" identifier = (call_expression "sqlite3DbMallocZero((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4))" identifier (argument_list "((sqlite3 *)0x0,CONCAT44(puVar4,in_stack_ffffffe4))" ( (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (call_expression "CONCAT44(puVar4,in_stack_ffffffe4)" identifier (argument_list "(puVar4,in_stack_ffffffe4)" ( identifier , identifier ))) )))) ;) (expression_statement "pBVar3->pSchema = pvVar2;" (assignment_expression "pBVar3->pSchema = pvVar2" (field_expression "pBVar3->pSchema" identifier -> field_identifier) = identifier) ;) (expression_statement "pBVar3->xFreeSchema = xFree;" (assignment_expression "pBVar3->xFreeSchema = xFree" (field_expression "pBVar3->xFreeSchema" identifier -> field_identifier) = identifier) ;) })) (labeled_statement "LAB_00037104:\n  if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {\n    pvVar2 = pBVar3->pSchema;\n  }\n  else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }" statement_identifier : (if_statement "if ((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)) {\n    pvVar2 = pBVar3->pSchema;\n  }\n  else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }" if (parenthesized_expression "((p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0))" ( (binary_expression "(p->sharable == '\0') || (iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)" (parenthesized_expression "(p->sharable == '\0')" ( (binary_expression "p->sharable == '\0'" (field_expression "p->sharable" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0)" ( (comma_expression "iVar1 = p->wantToLock + -1, p->wantToLock = iVar1, iVar1 != 0" (assignment_expression "iVar1 = p->wantToLock + -1" identifier = (binary_expression "p->wantToLock + -1" (field_expression "p->wantToLock" identifier -> field_identifier) + number_literal)) , (comma_expression "p->wantToLock = iVar1, iVar1 != 0" (assignment_expression "p->wantToLock = iVar1" (field_expression "p->wantToLock" identifier -> field_identifier) = identifier) , (binary_expression "iVar1 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n    pvVar2 = pBVar3->pSchema;\n  }" { (expression_statement "pvVar2 = pBVar3->pSchema;" (assignment_expression "pvVar2 = pBVar3->pSchema" identifier = (field_expression "pBVar3->pSchema" identifier -> field_identifier)) ;) }) (else_clause "else {\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }" else (compound_statement "{\n    sqlite3BtreeLeave(p);\n    pvVar2 = pBVar3->pSchema;\n  }" { (expression_statement "sqlite3BtreeLeave(p);" (call_expression "sqlite3BtreeLeave(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "pvVar2 = pBVar3->pSchema;" (assignment_expression "pvVar2 = pBVar3->pSchema" identifier = (field_expression "pBVar3->pSchema" identifier -> field_identifier)) ;) })))) (return_statement "return pvVar2;" return identifier ;) })))
(translation_unit "int FUN_00037084(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_00037084(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_00037084(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\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    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }" { (if_statement "if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }" if (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      return *(int *)(iVar3 + 0x34);\n    }" { (return_statement "return *(int *)(iVar3 + 0x34);" return (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) ;) })) }) (else_clause "else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" else (compound_statement "{\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" { (expression_statement "FUN_0002cf78();" (call_expression "FUN_0002cf78()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;" if (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_00037104;" goto statement_identifier ;)) }))) (if_statement "if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" { (expression_statement "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);" (assignment_expression "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" identifier = (call_expression "FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" identifier (argument_list "(0,param_2,param_2 >> 0x1f,param_2)" ( number_literal , identifier , (binary_expression "param_2 >> 0x1f" identifier >> number_literal) , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" * (cast_expression "(undefined4 *)(iVar3 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" * (cast_expression "(undefined4 *)(iVar3 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x38)" ( (binary_expression "iVar3 + 0x38" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" statement_identifier : (if_statement "if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" if (parenthesized_expression "((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0))" ( (binary_expression "(*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" (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 ')) )) || (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" ( (comma_expression "iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc) + -1" identifier = (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) , (comma_expression "*(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) , (binary_expression "iVar1 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" { (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" identifier = (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" else (compound_statement "{\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" { (expression_statement "FUN_0002d060(param_1);" (call_expression "FUN_0002d060(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" identifier = (pointer_expression "*(int *)(iVar3 + 0x34)" * (cast_expression "(int *)(iVar3 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x34)" ( (binary_expression "iVar3 + 0x34" identifier + number_literal) ))))) ;) })))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (binary_expression IDENT >> LIT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) , (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) , (binary_expression IDENT != LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (return_statement return IDENT ;) })))
(function_definition "int FUN_00037084(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_00037084(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00037084") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(param_1 + 4);\n  if (*(char *)(param_1 + 9) == '\0') {\n    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }\n  if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }\nLAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 4);" (assignment_expression "iVar3 = *(int *)(param_1 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (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    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }\n  else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\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    if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }\n  }" ({ "{") (if_statement "if (*(int *)(iVar3 + 0x34) != 0) {\n      return *(int *)(iVar3 + 0x34);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" (* "*") (cast_expression "(int *)(iVar3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return *(int *)(iVar3 + 0x34);\n    }" ({ "{") (return_statement "return *(int *)(iVar3 + 0x34);" (return "return") (pointer_expression "*(int *)(iVar3 + 0x34)" (* "*") (cast_expression "(int *)(iVar3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" (else "else") (compound_statement "{\n    FUN_0002cf78();\n    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;\n  }" ({ "{") (expression_statement "FUN_0002cf78();" (call_expression "FUN_0002cf78()" (identifier "FUN_0002cf78") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x34) != 0" (pointer_expression "*(int *)(iVar3 + 0x34)" (* "*") (cast_expression "(int *)(iVar3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00037104;" (goto "goto") (statement_identifier "LAB_00037104") (; ";"))) (} "}")))) (if_statement "if (param_2 != 0) {\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);\n    *(undefined4 *)(iVar3 + 0x34) = uVar2;\n    *(undefined4 *)(iVar3 + 0x38) = param_3;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);" (assignment_expression "uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_00037020(0,param_2,param_2 >> 0x1f,param_2)" (identifier "FUN_00037020") (argument_list "(0,param_2,param_2 >> 0x1f,param_2)" (( "(") (number_literal "0") (, ",") (identifier "param_2") (, ",") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x34) = uVar2;" (assignment_expression "*(undefined4 *)(iVar3 + 0x34) = uVar2" (pointer_expression "*(undefined4 *)(iVar3 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0x38) = param_3;" (assignment_expression "*(undefined4 *)(iVar3 + 0x38) = param_3" (pointer_expression "*(undefined4 *)(iVar3 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x38)" (( "(") (binary_expression "iVar3 + 0x38" (identifier "iVar3") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (} "}"))) (labeled_statement "LAB_00037104:\n  if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" (statement_identifier "LAB_00037104") (: ":") (if_statement "if ((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }\n  else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0))" (( "(") (binary_expression "(*(char *)(param_1 + 9) == '\0') ||\n     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" (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") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)" (( "(") (comma_expression "iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_1 + 0xc) + -1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "-1"))) (, ",") (comma_expression "*(int *)(param_1 + 0xc) = iVar1, iVar1 != 0" (assignment_expression "*(int *)(param_1 + 0xc) = iVar1" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar1")) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x34)" (* "*") (cast_expression "(int *)(iVar3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" (else "else") (compound_statement "{\n    FUN_0002d060(param_1);\n    iVar3 = *(int *)(iVar3 + 0x34);\n  }" ({ "{") (expression_statement "FUN_0002d060(param_1);" (call_expression "FUN_0002d060(param_1)" (identifier "FUN_0002d060") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar3 + 0x34);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x34)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x34)" (* "*") (cast_expression "(int *)(iVar3 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x34)" (( "(") (binary_expression "iVar3 + 0x34" (identifier "iVar3") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (} "}"))))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

void * function_1(type_1 *p,int var_2,type_2 *xFree)

{
  int var_5;
  void *pvVar2;
  type_3 *pBVar3;
  type_4 *puVar4;
  type_5 in_stack_ffffffe4;
  
  puVar4 = &_gp;
  pBVar3 = p->pBt;
  if (p->sharable == '\0') {
    if (pBVar3->pSchema != (void *)0x0) {
      return pBVar3->pSchema;
    }
  }
  else {
    var_1(p);
    if (pBVar3->pSchema != (void *)0x0) goto LAB_00037104;
  }
  if (var_2 != 0) {
    pvVar2 = var_3((type_6 *)0x0,var_4(puVar4,in_stack_ffffffe4));
    pBVar3->pSchema = pvVar2;
    pBVar3->xFreeSchema = xFree;
  }
LAB_00037104:
  if ((p->sharable == '\0') || (var_5 = p->wantToLock + -1, p->wantToLock = var_5, var_5 != 0)) {
    pvVar2 = pBVar3->pSchema;
  }
  else {
    var_6(p);
    pvVar2 = pBVar3->pSchema;
  }
  return pvVar2;
}


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

int MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = *(int *)(param_1 + 4);
  if (*(char *)(param_1 + 9) == '\0') {
    if (*(int *)(iVar3 + 0x34) != 0) {
      return *(int *)(iVar3 + 0x34);
    }
  }
  else {
    FUN_0002cf78();
    if (*(int *)(iVar3 + 0x34) != 0) goto LAB_00037104;
  }
  if (param_2 != 0) {
    uVar2 = FUN_00037020(0,param_2,param_2 >> 0x1f,param_2);
    *(undefined4 *)(iVar3 + 0x34) = uVar2;
    *(undefined4 *)(iVar3 + 0x38) = param_3;
  }
LAB_00037104:
  if ((*(char *)(param_1 + 9) == '\0') ||
     (iVar1 = *(int *)(param_1 + 0xc) + -1, *(int *)(param_1 + 0xc) = iVar1, iVar1 != 0)) {
    iVar3 = *(int *)(iVar3 + 0x34);
  }
  else {
    FUN_0002d060(param_1);
    iVar3 = *(int *)(iVar3 + 0x34);
  }
  return iVar3;
}

