
int sqlite3_extended_result_codes(sqlite3 *db,int onoff)

{
  undefined *puVar1;
  int iVar2;
  
  puVar1 = PTR_aBuiltinFunc_29540_1408__00190948;
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);
    iVar2 = 0xff;
    if (onoff != 0) {
      iVar2 = -1;
    }
    db->errMask = iVar2;
    if (db->mutex != (sqlite3_mutex *)0x0) {
      (**(code **)(puVar1 + -0xb14))();
    }
    return 0;
  }
  if (onoff == 0) {
    db->errMask = 0xff;
    return 0;
  }
  db->errMask = -1;
  return 0;
}



undefined4 FUN_00043b44(int param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = PTR_DAT_00190948;
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));
    uVar2 = 0xff;
    if (param_2 != 0) {
      uVar2 = 0xffffffff;
    }
    *(undefined4 *)(param_1 + 0x44) = uVar2;
    if (*(int *)(param_1 + 0xc) != 0) {
      (**(code **)(puVar1 + -0xb14))();
    }
    return 0;
  }
  if (param_2 == 0) {
    *(undefined4 *)(param_1 + 0x44) = 0xff;
    return 0;
  }
  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;
  return 0;
}


lui gp,0x15
addiu gp,gp,0x4ddc
addu gp,gp,t9
lw v0,0xc(a0)
beq v0,zero,0x00043bd0
_nop
addiu sp,sp,-0x28
sw s2,0x20(sp)
lw s2,-0x7fd8(gp)
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
or s0,a0,zero
addiu s2,s2,-0xb78
sw gp,0x10(sp)
sw ra,0x24(sp)
lw t9,0x5c(s2)
jalr t9
_or a0,v0,zero
li v0,-0x1
li a1,0xff
lw a0,0xc(s0)
movn a1,v0,s1
beq a0,zero,0x00043bb4
_sw a1,0x44(s0)
lw t9,0x64(s2)
jalr t9
_nop
lw ra,0x24(sp)
or v0,zero,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
bne a1,zero,0x00043be8
_nop
li v0,0xff
sw v0,0x44(a0)
jr ra
_or v0,zero,zero
li v0,-0x1
sw v0,0x44(a0)
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_00043b44(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00043b44(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" type_identifier (function_declarator "FUN_00043b44(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  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_00190948;" (assignment_expression "puVar1 = PTR_DAT_00190948" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (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) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (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) )))) ))) ;) (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (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) )) (compound_statement "{\n      (**(code **)(puVar1 + -0xb14))();\n    }" { (expression_statement "(**(code **)(puVar1 + -0xb14))();" (call_expression "(**(code **)(puVar1 + -0xb14))()" (parenthesized_expression "(**(code **)(puVar1 + -0xb14))" ( (pointer_expression "**(code **)(puVar1 + -0xb14)" * (pointer_expression "*(code **)(puVar1 + -0xb14)" * (cast_expression "(code **)(puVar1 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0xb14)" ( (binary_expression "puVar1 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_extended_result_codes(sqlite3 *db,int onoff)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_aBuiltinFunc_29540_1408__00190948;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);\n    iVar2 = 0xff;\n    if (onoff != 0) {\n      iVar2 = -1;\n    }\n    db->errMask = iVar2;\n    if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (onoff == 0) {\n    db->errMask = 0xff;\n    return 0;\n  }\n  db->errMask = -1;\n  return 0;\n}\n\n" (function_definition "int sqlite3_extended_result_codes(sqlite3 *db,int onoff)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_aBuiltinFunc_29540_1408__00190948;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);\n    iVar2 = 0xff;\n    if (onoff != 0) {\n      iVar2 = -1;\n    }\n    db->errMask = iVar2;\n    if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (onoff == 0) {\n    db->errMask = 0xff;\n    return 0;\n  }\n  db->errMask = -1;\n  return 0;\n}" primitive_type (function_declarator "sqlite3_extended_result_codes(sqlite3 *db,int onoff)" identifier (parameter_list "(sqlite3 *db,int onoff)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int onoff" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  puVar1 = PTR_aBuiltinFunc_29540_1408__00190948;\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);\n    iVar2 = 0xff;\n    if (onoff != 0) {\n      iVar2 = -1;\n    }\n    db->errMask = iVar2;\n    if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (onoff == 0) {\n    db->errMask = 0xff;\n    return 0;\n  }\n  db->errMask = -1;\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_aBuiltinFunc_29540_1408__00190948;" (assignment_expression "puVar1 = PTR_aBuiltinFunc_29540_1408__00190948" identifier = identifier) ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);\n    iVar2 = 0xff;\n    if (onoff != 0) {\n      iVar2 = -1;\n    }\n    db->errMask = iVar2;\n    if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);\n    iVar2 = 0xff;\n    if (onoff != 0) {\n      iVar2 = -1;\n    }\n    db->errMask = iVar2;\n    if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" { (expression_statement "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex);" (call_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))(db->mutex)" (parenthesized_expression "(**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c)" ( (binary_expression "PTR_aBuiltinFunc_29540_1408__00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (expression_statement "iVar2 = 0xff;" (assignment_expression "iVar2 = 0xff" identifier = number_literal) ;) (if_statement "if (onoff != 0) {\n      iVar2 = -1;\n    }" if (parenthesized_expression "(onoff != 0)" ( (binary_expression "onoff != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = -1;\n    }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (expression_statement "db->errMask = iVar2;" (assignment_expression "db->errMask = iVar2" (field_expression "db->errMask" identifier -> field_identifier) = identifier) ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(puVar1 + -0xb14))();\n    }" { (expression_statement "(**(code **)(puVar1 + -0xb14))();" (call_expression "(**(code **)(puVar1 + -0xb14))()" (parenthesized_expression "(**(code **)(puVar1 + -0xb14))" ( (pointer_expression "**(code **)(puVar1 + -0xb14)" * (pointer_expression "*(code **)(puVar1 + -0xb14)" * (cast_expression "(code **)(puVar1 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0xb14)" ( (binary_expression "puVar1 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (onoff == 0) {\n    db->errMask = 0xff;\n    return 0;\n  }" if (parenthesized_expression "(onoff == 0)" ( (binary_expression "onoff == 0" identifier == number_literal) )) (compound_statement "{\n    db->errMask = 0xff;\n    return 0;\n  }" { (expression_statement "db->errMask = 0xff;" (assignment_expression "db->errMask = 0xff" (field_expression "db->errMask" identifier -> field_identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "db->errMask = -1;" (assignment_expression "db->errMask = -1" (field_expression "db->errMask" identifier -> field_identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00043b44(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00043b44(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" type_identifier (function_declarator "FUN_00043b44(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  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_00190948;" (assignment_expression "puVar1 = PTR_DAT_00190948" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (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) )) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" { (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" ( (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" * (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" * (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" ( (binary_expression "PTR_DAT_00190948 + -0xb1c" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (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) )))) ))) ;) (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (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) )) (compound_statement "{\n      (**(code **)(puVar1 + -0xb14))();\n    }" { (expression_statement "(**(code **)(puVar1 + -0xb14))();" (call_expression "(**(code **)(puVar1 + -0xb14))()" (parenthesized_expression "(**(code **)(puVar1 + -0xb14))" ( (pointer_expression "**(code **)(puVar1 + -0xb14)" * (pointer_expression "*(code **)(puVar1 + -0xb14)" * (cast_expression "(code **)(puVar1 + -0xb14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0xb14)" ( (binary_expression "puVar1 + -0xb14" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00043b44(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00043b44(int param_1,int param_2)" (identifier "FUN_00043b44") (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  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_00190948;\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }\n  if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }\n  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = PTR_DAT_00190948;" (assignment_expression "puVar1 = PTR_DAT_00190948" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00190948")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (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 "0")) () ")")) (compound_statement "{\n    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));\n    uVar2 = 0xff;\n    if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }\n    *(undefined4 *)(param_1 + 0x44) = uVar2;\n    if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }\n    return 0;\n  }" ({ "{") (expression_statement "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(PTR_DAT_00190948 + -0xb1c))" (( "(") (pointer_expression "**(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (pointer_expression "*(code **)(PTR_DAT_00190948 + -0xb1c)" (* "*") (cast_expression "(code **)(PTR_DAT_00190948 + -0xb1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_00190948 + -0xb1c)" (( "(") (binary_expression "PTR_DAT_00190948 + -0xb1c" (identifier "PTR_DAT_00190948") (+ "+") (number_literal "-0xb1c")) () ")"))))) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (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")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar2 = 0xff;" (assignment_expression "uVar2 = 0xff" (identifier "uVar2") (= "=") (number_literal "0xff")) (; ";")) (if_statement "if (param_2 != 0) {\n      uVar2 = 0xffffffff;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 0xffffffff;\n    }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      (**(code **)(puVar1 + -0xb14))();\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (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 "0")) () ")")) (compound_statement "{\n      (**(code **)(puVar1 + -0xb14))();\n    }" ({ "{") (expression_statement "(**(code **)(puVar1 + -0xb14))();" (call_expression "(**(code **)(puVar1 + -0xb14))()" (parenthesized_expression "(**(code **)(puVar1 + -0xb14))" (( "(") (pointer_expression "**(code **)(puVar1 + -0xb14)" (* "*") (pointer_expression "*(code **)(puVar1 + -0xb14)" (* "*") (cast_expression "(code **)(puVar1 + -0xb14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar1 + -0xb14)" (( "(") (binary_expression "puVar1 + -0xb14" (identifier "puVar1") (+ "+") (number_literal "-0xb14")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x44) = 0xff;\n    return 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "0xff")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *db,int var_2)

{
  type_2 *var_3;
  int iVar2;
  
  var_3 = var_1;
  if (db->mutex != (type_3 *)0x0) {
    (**(type_4 **)(var_1 + -0xb1c))(db->mutex);
    iVar2 = 0xff;
    if (var_2 != 0) {
      iVar2 = -1;
    }
    db->errMask = iVar2;
    if (db->mutex != (type_3 *)0x0) {
      (**(type_4 **)(var_3 + -0xb14))();
    }
    return 0;
  }
  if (var_2 == 0) {
    db->errMask = 0xff;
    return 0;
  }
  db->errMask = -1;
  return 0;
}


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

undefined4 MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = PTR_DAT_00190948;
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(PTR_DAT_00190948 + -0xb1c))(*(int *)(param_1 + 0xc));
    uVar2 = 0xff;
    if (param_2 != 0) {
      uVar2 = 0xffffffff;
    }
    *(undefined4 *)(param_1 + 0x44) = uVar2;
    if (*(int *)(param_1 + 0xc) != 0) {
      (**(code **)(puVar1 + -0xb14))();
    }
    return 0;
  }
  if (param_2 == 0) {
    *(undefined4 *)(param_1 + 0x44) = 0xff;
    return 0;
  }
  *(undefined4 *)(param_1 + 0x44) = 0xffffffff;
  return 0;
}

