
void sqlite3ResetOneSchema(sqlite3 *db,int iDb)

{
  Schema *pSVar1;
  Db *iDb_00;
  
  iDb_00 = (Db *)(iDb * 0x10);
  if (-1 < iDb) {
    iDb_00 = db->aDb + iDb;
    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;
    pSVar1 = db->aDb[1].pSchema;
    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;
    db->mDbFlags = db->mDbFlags & 0xfffffff7;
  }
  if (db->nSchemaLock == 0) {
    sqlite3ResetOneSchema(db,(int)iDb_00);
    return;
  }
  return;
}



void FUN_0006de80(int param_1,int param_2)

{
  int iVar1;
  
  if (-1 < param_2) {
    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);
    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;
    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);
    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;
    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;
  }
  if (*(int *)(param_1 + 0x38) == 0) {
    FUN_0006ddd8();
    return;
  }
  return;
}


lui gp,0x13
addiu gp,gp,-0x5560
addu gp,gp,t9
bltz a1,0x0006ded0
_sll a1,a1,0x4
lw v0,0x10(a0)
addu a1,v0,a1
lw v1,0xc(a1)
lhu v0,0x4e(v1)
ori v0,v0,0x8
sh v0,0x4e(v1)
lw v0,0x10(a0)
lw v1,0x1c(v0)
lhu v0,0x4e(v1)
ori v0,v0,0x8
sh v0,0x4e(v1)
li v1,-0x9
lw v0,0x18(a0)
and v0,v0,v1
sw v0,0x18(a0)
lw v0,0x38(a0)
bne v0,zero,0x0006deec
_nop
lw t9,-0x7d68(gp)
addiu t9,t9,-0x2228
b 0x0006ddd8
_nop
jr ra
_nop
(translation_unit "void FUN_0006de80(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006de80(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006de80(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc" (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x1c)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x1c)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal)) ;) })) (if_statement "if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_0006ddd8();\n    return;\n  }" { (expression_statement "FUN_0006ddd8();" (call_expression "FUN_0006ddd8()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3ResetOneSchema(sqlite3 *db,int iDb)\n\n{\n  Schema *pSVar1;\n  Db *iDb_00;\n  \n  iDb_00 = (Db *)(iDb * 0x10);\n  if (-1 < iDb) {\n    iDb_00 = db->aDb + iDb;\n    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;\n    pSVar1 = db->aDb[1].pSchema;\n    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;\n    db->mDbFlags = db->mDbFlags & 0xfffffff7;\n  }\n  if (db->nSchemaLock == 0) {\n    sqlite3ResetOneSchema(db,(int)iDb_00);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sqlite3ResetOneSchema(sqlite3 *db,int iDb)\n\n{\n  Schema *pSVar1;\n  Db *iDb_00;\n  \n  iDb_00 = (Db *)(iDb * 0x10);\n  if (-1 < iDb) {\n    iDb_00 = db->aDb + iDb;\n    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;\n    pSVar1 = db->aDb[1].pSchema;\n    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;\n    db->mDbFlags = db->mDbFlags & 0xfffffff7;\n  }\n  if (db->nSchemaLock == 0) {\n    sqlite3ResetOneSchema(db,(int)iDb_00);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3ResetOneSchema(sqlite3 *db,int iDb)" identifier (parameter_list "(sqlite3 *db,int iDb)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int iDb" primitive_type identifier) ))) (compound_statement "{\n  Schema *pSVar1;\n  Db *iDb_00;\n  \n  iDb_00 = (Db *)(iDb * 0x10);\n  if (-1 < iDb) {\n    iDb_00 = db->aDb + iDb;\n    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;\n    pSVar1 = db->aDb[1].pSchema;\n    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;\n    db->mDbFlags = db->mDbFlags & 0xfffffff7;\n  }\n  if (db->nSchemaLock == 0) {\n    sqlite3ResetOneSchema(db,(int)iDb_00);\n    return;\n  }\n  return;\n}" { (declaration "Schema *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "Db *iDb_00;" type_identifier (pointer_declarator "*iDb_00" * identifier) ;) (expression_statement "iDb_00 = (Db *)(iDb * 0x10);" (assignment_expression "iDb_00 = (Db *)(iDb * 0x10)" identifier = (cast_expression "(Db *)(iDb * 0x10)" ( (type_descriptor "Db *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iDb * 0x10)" ( (binary_expression "iDb * 0x10" identifier * number_literal) )))) ;) (if_statement "if (-1 < iDb) {\n    iDb_00 = db->aDb + iDb;\n    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;\n    pSVar1 = db->aDb[1].pSchema;\n    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;\n    db->mDbFlags = db->mDbFlags & 0xfffffff7;\n  }" if (parenthesized_expression "(-1 < iDb)" ( (binary_expression "-1 < iDb" number_literal < identifier) )) (compound_statement "{\n    iDb_00 = db->aDb + iDb;\n    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;\n    pSVar1 = db->aDb[1].pSchema;\n    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;\n    db->mDbFlags = db->mDbFlags & 0xfffffff7;\n  }" { (expression_statement "iDb_00 = db->aDb + iDb;" (assignment_expression "iDb_00 = db->aDb + iDb" identifier = (binary_expression "db->aDb + iDb" (field_expression "db->aDb" identifier -> field_identifier) + identifier)) ;) (expression_statement "iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;" (assignment_expression "iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8" (field_expression "iDb_00->pSchema->schemaFlags" (field_expression "iDb_00->pSchema" identifier -> field_identifier) -> field_identifier) = (binary_expression "iDb_00->pSchema->schemaFlags | 8" (field_expression "iDb_00->pSchema->schemaFlags" (field_expression "iDb_00->pSchema" identifier -> field_identifier) -> field_identifier) | number_literal)) ;) (expression_statement "pSVar1 = db->aDb[1].pSchema;" (assignment_expression "pSVar1 = db->aDb[1].pSchema" identifier = (field_expression "db->aDb[1].pSchema" (subscript_expression "db->aDb[1]" (field_expression "db->aDb" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "pSVar1->schemaFlags = pSVar1->schemaFlags | 8;" (assignment_expression "pSVar1->schemaFlags = pSVar1->schemaFlags | 8" (field_expression "pSVar1->schemaFlags" identifier -> field_identifier) = (binary_expression "pSVar1->schemaFlags | 8" (field_expression "pSVar1->schemaFlags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "db->mDbFlags = db->mDbFlags & 0xfffffff7;" (assignment_expression "db->mDbFlags = db->mDbFlags & 0xfffffff7" (field_expression "db->mDbFlags" identifier -> field_identifier) = (binary_expression "db->mDbFlags & 0xfffffff7" (field_expression "db->mDbFlags" identifier -> field_identifier) & number_literal)) ;) })) (if_statement "if (db->nSchemaLock == 0) {\n    sqlite3ResetOneSchema(db,(int)iDb_00);\n    return;\n  }" if (parenthesized_expression "(db->nSchemaLock == 0)" ( (binary_expression "db->nSchemaLock == 0" (field_expression "db->nSchemaLock" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    sqlite3ResetOneSchema(db,(int)iDb_00);\n    return;\n  }" { (expression_statement "sqlite3ResetOneSchema(db,(int)iDb_00);" (call_expression "sqlite3ResetOneSchema(db,(int)iDb_00)" identifier (argument_list "(db,(int)iDb_00)" ( identifier , (cast_expression "(int)iDb_00" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006de80(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006de80(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006de80(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" ( (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc" (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "param_2 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x1c)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x1c)" ( (binary_expression "*(int *)(param_1 + 0x10) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" * (cast_expression "(ushort *)(iVar1 + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x4e)" ( (binary_expression "iVar1 + 0x4e" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal)) ;) })) (if_statement "if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" ( (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_0006ddd8();\n    return;\n  }" { (expression_statement "FUN_0006ddd8();" (call_expression "FUN_0006ddd8()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (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) )))) = (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) )))) = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0006de80(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006de80(int param_1,int param_2)" (identifier "FUN_0006de80") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }\n  if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (-1 < param_2) {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);\n    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;\n    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc" (binary_expression "*(int *)(param_1 + 0x10) + param_2 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "param_2 * 0x10" (identifier "param_2") (* "*") (number_literal "0x10"))) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4e)" (( "(") (binary_expression "iVar1 + 0x4e" (identifier "iVar1") (+ "+") (number_literal "0x4e")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4e)" (( "(") (binary_expression "iVar1 + 0x4e" (identifier "iVar1") (+ "+") (number_literal "0x4e")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + 0x1c)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;" (assignment_expression "*(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4e)" (( "(") (binary_expression "iVar1 + 0x4e" (identifier "iVar1") (+ "+") (number_literal "0x4e")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar1 + 0x4e) | 8" (pointer_expression "*(ushort *)(iVar1 + 0x4e)" (* "*") (cast_expression "(ushort *)(iVar1 + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x4e)" (( "(") (binary_expression "iVar1 + 0x4e" (identifier "iVar1") (+ "+") (number_literal "0x4e")) () ")")))) (| "|") (number_literal "8"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "*(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(uint *)(param_1 + 0x18)" (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xfffffff7"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x38) == 0) {\n    FUN_0006ddd8();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x38) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) == 0" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0006ddd8();\n    return;\n  }" ({ "{") (expression_statement "FUN_0006ddd8();" (call_expression "FUN_0006ddd8()" (identifier "FUN_0006ddd8") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *db,int var_1)

{
  type_2 *pSVar1;
  type_3 *iDb_00;
  
  iDb_00 = (type_3 *)(var_1 * 0x10);
  if (-1 < var_1) {
    iDb_00 = db->aDb + var_1;
    iDb_00->pSchema->schemaFlags = iDb_00->pSchema->schemaFlags | 8;
    pSVar1 = db->aDb[1].pSchema;
    pSVar1->schemaFlags = pSVar1->schemaFlags | 8;
    db->mDbFlags = db->mDbFlags & 0xfffffff7;
  }
  if (db->nSchemaLock == 0) {
    function_1(db,(int)iDb_00);
    return;
  }
  return;
}


(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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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: (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: (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if (-1 < param_2) {
    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + param_2 * 0x10 + 0xc);
    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;
    iVar1 = *(int *)(*(int *)(param_1 + 0x10) + 0x1c);
    *(ushort *)(iVar1 + 0x4e) = *(ushort *)(iVar1 + 0x4e) | 8;
    *(uint *)(param_1 + 0x18) = *(uint *)(param_1 + 0x18) & 0xfffffff7;
  }
  if (*(int *)(param_1 + 0x38) == 0) {
    FUN_0006ddd8();
    return;
  }
  return;
}

