
int sqlite3ValueBytes(sqlite3_value *pVal,u8 enc)

{
  ushort uVar1;
  int iVar2;
  undefined3 in_register_00000014;
  
  uVar1 = pVal->flags;
  if (((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {
    return pVal->n;
  }
  if ((uVar1 & 0x10) == 0) {
    if ((uVar1 & 1) != 0) {
      return 0;
    }
    iVar2 = valueBytes(pVal,enc);
    return iVar2;
  }
  if ((uVar1 & 0x4000) != 0) {
    return (int)((pVal->u).zPType + pVal->n);
  }
  return pVal->n;
}



int FUN_00043cb4(int *param_1,uint param_2)

{
  ushort uVar1;
  int iVar2;
  
  uVar1 = *(ushort *)(param_1 + 2);
  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {
    return param_1[3];
  }
  if ((uVar1 & 0x10) == 0) {
    if ((uVar1 & 1) != 0) {
      return 0;
    }
    iVar2 = FUN_00043c64();
    return iVar2;
  }
  if ((uVar1 & 0x4000) != 0) {
    return param_1[3] + *param_1;
  }
  return param_1[3];
}


lui gp,0xc
addiu gp,gp,-0x5a14
addu gp,gp,t9
lhu v0,0x8(a0)
andi v1,v0,0x2
beq v1,zero,0x00043cdc
_andi v1,v0,0x10
lbu v1,0xa(a0)
beq v1,a1,0x00043d00
_andi v1,v0,0x10
beq v1,zero,0x00043d10
_nop
andi v0,v0,0x4000
beq v0,zero,0x00043d08
_nop
lw v0,0xc(a0)
lw v1,0x0(a0)
jr ra
_addu v0,v0,v1
jr ra
_lw v0,0xc(a0)
jr ra
_lw v0,0xc(a0)
andi v0,v0,0x1
beq v0,zero,0x00043d24
_or v0,zero,zero
jr ra
_nop
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw t9,-0x7f90(gp)
addiu t9,t9,0x3c64
bal 0x00043c64
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_00043cb4(int *param_1,uint param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}\n\n" (function_definition "int FUN_00043cb4(int *param_1,uint param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" primitive_type (function_declarator "FUN_00043cb4(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }" if (parenthesized_expression "(((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2))" ( (binary_expression "((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)" (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(byte *)((int)param_1 + 10) == param_2)" ( (binary_expression "*(byte *)((int)param_1 + 10) == param_2" (pointer_expression "*(byte *)((int)param_1 + 10)" * (cast_expression "(byte *)((int)param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return param_1[3];\n  }" { (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })) (if_statement "if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" if (parenthesized_expression "((uVar1 & 0x10) == 0)" ( (binary_expression "(uVar1 & 0x10) == 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" { (if_statement "if ((uVar1 & 1) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00043c64();" (assignment_expression "iVar2 = FUN_00043c64()" identifier = (call_expression "FUN_00043c64()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return param_1[3] + *param_1;\n  }" { (return_statement "return param_1[3] + *param_1;" return (binary_expression "param_1[3] + *param_1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })))
(translation_unit "int sqlite3ValueBytes(sqlite3_value *pVal,u8 enc)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined3 in_register_00000014;\n  \n  uVar1 = pVal->flags;\n  if (((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->n;\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = valueBytes(pVal,enc);\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return (int)((pVal->u).zPType + pVal->n);\n  }\n  return pVal->n;\n}\n\n" (function_definition "int sqlite3ValueBytes(sqlite3_value *pVal,u8 enc)\n\n{\n  ushort uVar1;\n  int iVar2;\n  undefined3 in_register_00000014;\n  \n  uVar1 = pVal->flags;\n  if (((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->n;\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = valueBytes(pVal,enc);\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return (int)((pVal->u).zPType + pVal->n);\n  }\n  return pVal->n;\n}" primitive_type (function_declarator "sqlite3ValueBytes(sqlite3_value *pVal,u8 enc)" identifier (parameter_list "(sqlite3_value *pVal,u8 enc)" ( (parameter_declaration "sqlite3_value *pVal" type_identifier (pointer_declarator "*pVal" * identifier)) , (parameter_declaration "u8 enc" type_identifier identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  undefined3 in_register_00000014;\n  \n  uVar1 = pVal->flags;\n  if (((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->n;\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = valueBytes(pVal,enc);\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return (int)((pVal->u).zPType + pVal->n);\n  }\n  return pVal->n;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined3 in_register_00000014;" type_identifier identifier ;) (expression_statement "uVar1 = pVal->flags;" (assignment_expression "uVar1 = pVal->flags" identifier = (field_expression "pVal->flags" identifier -> field_identifier)) ;) (if_statement "if (((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))) {\n    return pVal->n;\n  }" if (parenthesized_expression "(((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc)))" ( (binary_expression "((uVar1 & 2) != 0) && ((uint)pVal->enc == CONCAT31(in_register_00000014,enc))" (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((uint)pVal->enc == CONCAT31(in_register_00000014,enc))" ( (binary_expression "(uint)pVal->enc == CONCAT31(in_register_00000014,enc)" (cast_expression "(uint)pVal->enc" ( (type_descriptor "uint" type_identifier) ) (field_expression "pVal->enc" identifier -> field_identifier)) == (call_expression "CONCAT31(in_register_00000014,enc)" identifier (argument_list "(in_register_00000014,enc)" ( identifier , identifier )))) ))) )) (compound_statement "{\n    return pVal->n;\n  }" { (return_statement "return pVal->n;" return (field_expression "pVal->n" identifier -> field_identifier) ;) })) (if_statement "if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = valueBytes(pVal,enc);\n    return iVar2;\n  }" if (parenthesized_expression "((uVar1 & 0x10) == 0)" ( (binary_expression "(uVar1 & 0x10) == 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = valueBytes(pVal,enc);\n    return iVar2;\n  }" { (if_statement "if ((uVar1 & 1) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = valueBytes(pVal,enc);" (assignment_expression "iVar2 = valueBytes(pVal,enc)" identifier = (call_expression "valueBytes(pVal,enc)" identifier (argument_list "(pVal,enc)" ( identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    return (int)((pVal->u).zPType + pVal->n);\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return (int)((pVal->u).zPType + pVal->n);\n  }" { (return_statement "return (int)((pVal->u).zPType + pVal->n);" return (cast_expression "(int)((pVal->u).zPType + pVal->n)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((pVal->u).zPType + pVal->n)" ( (binary_expression "(pVal->u).zPType + pVal->n" (field_expression "(pVal->u).zPType" (parenthesized_expression "(pVal->u)" ( (field_expression "pVal->u" identifier -> field_identifier) )) . field_identifier) + (field_expression "pVal->n" identifier -> field_identifier)) ))) ;) })) (return_statement "return pVal->n;" return (field_expression "pVal->n" identifier -> field_identifier) ;) })))
(translation_unit "int FUN_00043cb4(int *param_1,uint param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}\n\n" (function_definition "int FUN_00043cb4(int *param_1,uint param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" primitive_type (function_declarator "FUN_00043cb4(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" identifier = (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }" if (parenthesized_expression "(((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2))" ( (binary_expression "((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)" (parenthesized_expression "((uVar1 & 2) != 0)" ( (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" ( (binary_expression "uVar1 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(byte *)((int)param_1 + 10) == param_2)" ( (binary_expression "*(byte *)((int)param_1 + 10) == param_2" (pointer_expression "*(byte *)((int)param_1 + 10)" * (cast_expression "(byte *)((int)param_1 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) ))) )) (compound_statement "{\n    return param_1[3];\n  }" { (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })) (if_statement "if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" if (parenthesized_expression "((uVar1 & 0x10) == 0)" ( (binary_expression "(uVar1 & 0x10) == 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" { (if_statement "if ((uVar1 & 1) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_00043c64();" (assignment_expression "iVar2 = FUN_00043c64()" identifier = (call_expression "FUN_00043c64()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar2;" return identifier ;) })) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return param_1[3] + *param_1;\n  }" { (return_statement "return param_1[3] + *param_1;" return (binary_expression "param_1[3] + *param_1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return param_1[3];" return (subscript_expression "param_1[3]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == IDENT) ))) )) (compound_statement { (return_statement return (subscript_expression IDENT [ LIT ]) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return (binary_expression (subscript_expression IDENT [ LIT ]) + (pointer_expression * IDENT)) ;) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "int FUN_00043cb4(int *param_1,uint param_2)\n\n{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" (primitive_type "int") (function_declarator "FUN_00043cb4(int *param_1,uint param_2)" (identifier "FUN_00043cb4") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  \n  uVar1 = *(ushort *)(param_1 + 2);\n  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }\n  if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }\n  if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }\n  return param_1[3];\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 2);" (assignment_expression "uVar1 = *(ushort *)(param_1 + 2)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(param_1 + 2)" (* "*") (cast_expression "(ushort *)(param_1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {\n    return param_1[3];\n  }" (if "if") (parenthesized_expression "(((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2))" (( "(") (binary_expression "((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)" (parenthesized_expression "((uVar1 & 2) != 0)" (( "(") (binary_expression "(uVar1 & 2) != 0" (parenthesized_expression "(uVar1 & 2)" (( "(") (binary_expression "uVar1 & 2" (identifier "uVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(byte *)((int)param_1 + 10) == param_2)" (( "(") (binary_expression "*(byte *)((int)param_1 + 10) == param_2" (pointer_expression "*(byte *)((int)param_1 + 10)" (* "*") (cast_expression "(byte *)((int)param_1 + 10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    return param_1[3];\n  }" ({ "{") (return_statement "return param_1[3];" (return "return") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x10) == 0) {\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x10) == 0)" (( "(") (binary_expression "(uVar1 & 0x10) == 0" (parenthesized_expression "(uVar1 & 0x10)" (( "(") (binary_expression "uVar1 & 0x10" (identifier "uVar1") (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar1 & 1) != 0) {\n      return 0;\n    }\n    iVar2 = FUN_00043c64();\n    return iVar2;\n  }" ({ "{") (if_statement "if ((uVar1 & 1) != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00043c64();" (assignment_expression "iVar2 = FUN_00043c64()" (identifier "iVar2") (= "=") (call_expression "FUN_00043c64()" (identifier "FUN_00043c64") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    return param_1[3] + *param_1;\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1[3] + *param_1;\n  }" ({ "{") (return_statement "return param_1[3] + *param_1;" (return "return") (binary_expression "param_1[3] + *param_1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (return_statement "return param_1[3];" (return "return") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))))) consequence: (compound_statement (return_statement (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))))) (return_statement (subscript_expression argument: (identifier) index: (number_literal))))))

int MASKED(int *param_1,uint param_2)

{
  ushort uVar1;
  int iVar2;
  
  uVar1 = *(ushort *)(param_1 + 2);
  if (((uVar1 & 2) != 0) && (*(byte *)((int)param_1 + 10) == param_2)) {
    return param_1[3];
  }
  if ((uVar1 & 0x10) == 0) {
    if ((uVar1 & 1) != 0) {
      return 0;
    }
    iVar2 = FUN_00043c64();
    return iVar2;
  }
  if ((uVar1 & 0x4000) != 0) {
    return param_1[3] + *param_1;
  }
  return param_1[3];
}

