
void bignum_set_bit(Bignum_conflict bn,int bitnum,int value)

{
  uint *puVar1;
  uint uVar2;
  
  if ((-1 < bitnum) && (bitnum < (int)(*bn << 5))) {
    uVar2 = 1 << (bitnum & 0x1fU);
    puVar1 = bn + (bitnum >> 5) + 1;
    if (value != 0) {
      *puVar1 = uVar2 | *puVar1;
      return;
    }
    *puVar1 = ~uVar2 & *puVar1;
    return;
  }
  if (value == 0) {
    return;
  }
  (*(code *)PTR_abort_00112038)();
  return;
}



void bignum_set_bit(int *param_1,uint param_2,int param_3)

{
  uint *puVar1;
  uint uVar2;
  
  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {
    uVar2 = 1 << (param_2 & 0x1f);
    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);
    if (param_3 != 0) {
      *puVar1 = uVar2 | *puVar1;
      return;
    }
    *puVar1 = ~uVar2 & *puVar1;
    return;
  }
  if (param_3 == 0) {
    return;
  }
  (*(code *)PTR_abort_00112038)();
  return;
}


lui gp,0xb
addiu gp,gp,0xe04
addu gp,gp,t9
bltz a1,0x000684d4
_nop
lw v0,0x0(a0)
sll v0,v0,0x5
slt v0,a1,v0
bne v0,zero,0x000684e4
_sra v1,a1,0x5
bne a2,zero,0x0006851c
_lw t9,-0x7278(gp)
jr ra
_nop
li v0,0x1
addiu v1,v1,0x1
sllv a1,v0,a1
sll v1,v1,0x2
addu a0,a0,v1
beq a2,zero,0x0006850c
_lw v0,0x0(a0)
or a1,a1,v0
jr ra
_sw a1,0x0(a0)
nor a1,zero,a1
and a1,a1,v0
jr ra
_sw a1,0x0(a0)
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_nop
(translation_unit "void bignum_set_bit(int *param_1,uint param_2,int param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}\n\n" (function_definition "void bignum_set_bit(int *param_1,uint param_2,int param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" primitive_type (function_declarator "bignum_set_bit(int *param_1,uint param_2,int param_3)" identifier (parameter_list "(int *param_1,uint param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" if (parenthesized_expression "((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5))" ( (binary_expression "(-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)" (parenthesized_expression "(-1 < (int)param_2)" ( (binary_expression "-1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)param_2 < *param_1 << 5)" ( (binary_expression "(int)param_2 < *param_1 << 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "*param_1 << 5" (pointer_expression "*param_1" * identifier) << number_literal)) ))) )) (compound_statement "{\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" { (expression_statement "uVar2 = 1 << (param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << (param_2 & 0x1f)" identifier = (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);" (assignment_expression "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1)" identifier = (cast_expression "(uint *)(param_1 + ((int)param_2 >> 5) + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + ((int)param_2 >> 5) + 1)" ( (binary_expression "param_1 + ((int)param_2 >> 5) + 1" (binary_expression "param_1 + ((int)param_2 >> 5)" identifier + (parenthesized_expression "((int)param_2 >> 5)" ( (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + number_literal) )))) ;) (if_statement "if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" { (expression_statement "*puVar1 = uVar2 | *puVar1;" (assignment_expression "*puVar1 = uVar2 | *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "uVar2 | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar1 = ~uVar2 & *puVar1;" (assignment_expression "*puVar1 = ~uVar2 & *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "~uVar2 & *puVar1" (unary_expression "~uVar2" ~ identifier) & (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_abort_00112038)();" (call_expression "(*(code *)PTR_abort_00112038)()" (parenthesized_expression "(*(code *)PTR_abort_00112038)" ( (pointer_expression "*(code *)PTR_abort_00112038" * (cast_expression "(code *)PTR_abort_00112038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void bignum_set_bit(Bignum_conflict bn,int bitnum,int value)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn << 5))) {\n    uVar2 = 1 << (bitnum & 0x1fU);\n    puVar1 = bn + (bitnum >> 5) + 1;\n    if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}\n\n" (function_definition "void bignum_set_bit(Bignum_conflict bn,int bitnum,int value)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn << 5))) {\n    uVar2 = 1 << (bitnum & 0x1fU);\n    puVar1 = bn + (bitnum >> 5) + 1;\n    if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" primitive_type (function_declarator "bignum_set_bit(Bignum_conflict bn,int bitnum,int value)" identifier (parameter_list "(Bignum_conflict bn,int bitnum,int value)" ( (parameter_declaration "Bignum_conflict bn" type_identifier identifier) , (parameter_declaration "int bitnum" primitive_type identifier) , (parameter_declaration "int value" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn << 5))) {\n    uVar2 = 1 << (bitnum & 0x1fU);\n    puVar1 = bn + (bitnum >> 5) + 1;\n    if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if ((-1 < bitnum) && (bitnum < (int)(*bn << 5))) {\n    uVar2 = 1 << (bitnum & 0x1fU);\n    puVar1 = bn + (bitnum >> 5) + 1;\n    if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" if (parenthesized_expression "((-1 < bitnum) && (bitnum < (int)(*bn << 5)))" ( (binary_expression "(-1 < bitnum) && (bitnum < (int)(*bn << 5))" (parenthesized_expression "(-1 < bitnum)" ( (binary_expression "-1 < bitnum" number_literal < identifier) )) && (parenthesized_expression "(bitnum < (int)(*bn << 5))" ( (binary_expression "bitnum < (int)(*bn << 5)" identifier < (cast_expression "(int)(*bn << 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*bn << 5)" ( (binary_expression "*bn << 5" (pointer_expression "*bn" * identifier) << number_literal) )))) ))) )) (compound_statement "{\n    uVar2 = 1 << (bitnum & 0x1fU);\n    puVar1 = bn + (bitnum >> 5) + 1;\n    if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" { (expression_statement "uVar2 = 1 << (bitnum & 0x1fU);" (assignment_expression "uVar2 = 1 << (bitnum & 0x1fU)" identifier = (binary_expression "1 << (bitnum & 0x1fU)" number_literal << (parenthesized_expression "(bitnum & 0x1fU)" ( (binary_expression "bitnum & 0x1fU" identifier & number_literal) )))) ;) (expression_statement "puVar1 = bn + (bitnum >> 5) + 1;" (assignment_expression "puVar1 = bn + (bitnum >> 5) + 1" identifier = (binary_expression "bn + (bitnum >> 5) + 1" (binary_expression "bn + (bitnum >> 5)" identifier + (parenthesized_expression "(bitnum >> 5)" ( (binary_expression "bitnum >> 5" identifier >> number_literal) ))) + number_literal)) ;) (if_statement "if (value != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" if (parenthesized_expression "(value != 0)" ( (binary_expression "value != 0" identifier != number_literal) )) (compound_statement "{\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" { (expression_statement "*puVar1 = uVar2 | *puVar1;" (assignment_expression "*puVar1 = uVar2 | *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "uVar2 | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar1 = ~uVar2 & *puVar1;" (assignment_expression "*puVar1 = ~uVar2 & *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "~uVar2 & *puVar1" (unary_expression "~uVar2" ~ identifier) & (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (value == 0) {\n    return;\n  }" if (parenthesized_expression "(value == 0)" ( (binary_expression "value == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_abort_00112038)();" (call_expression "(*(code *)PTR_abort_00112038)()" (parenthesized_expression "(*(code *)PTR_abort_00112038)" ( (pointer_expression "*(code *)PTR_abort_00112038" * (cast_expression "(code *)PTR_abort_00112038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void bignum_set_bit(int *param_1,uint param_2,int param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}\n\n" (function_definition "void bignum_set_bit(int *param_1,uint param_2,int param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" primitive_type (function_declarator "bignum_set_bit(int *param_1,uint param_2,int param_3)" identifier (parameter_list "(int *param_1,uint param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" if (parenthesized_expression "((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5))" ( (binary_expression "(-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)" (parenthesized_expression "(-1 < (int)param_2)" ( (binary_expression "-1 < (int)param_2" number_literal < (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)param_2 < *param_1 << 5)" ( (binary_expression "(int)param_2 < *param_1 << 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < (binary_expression "*param_1 << 5" (pointer_expression "*param_1" * identifier) << number_literal)) ))) )) (compound_statement "{\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" { (expression_statement "uVar2 = 1 << (param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << (param_2 & 0x1f)" identifier = (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);" (assignment_expression "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1)" identifier = (cast_expression "(uint *)(param_1 + ((int)param_2 >> 5) + 1)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + ((int)param_2 >> 5) + 1)" ( (binary_expression "param_1 + ((int)param_2 >> 5) + 1" (binary_expression "param_1 + ((int)param_2 >> 5)" identifier + (parenthesized_expression "((int)param_2 >> 5)" ( (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + number_literal) )))) ;) (if_statement "if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" { (expression_statement "*puVar1 = uVar2 | *puVar1;" (assignment_expression "*puVar1 = uVar2 | *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "uVar2 | *puVar1" identifier | (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (expression_statement "*puVar1 = ~uVar2 & *puVar1;" (assignment_expression "*puVar1 = ~uVar2 & *puVar1" (pointer_expression "*puVar1" * identifier) = (binary_expression "~uVar2 & *puVar1" (unary_expression "~uVar2" ~ identifier) & (pointer_expression "*puVar1" * identifier))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_abort_00112038)();" (call_expression "(*(code *)PTR_abort_00112038)()" (parenthesized_expression "(*(code *)PTR_abort_00112038)" ( (pointer_expression "*(code *)PTR_abort_00112038" * (cast_expression "(code *)PTR_abort_00112038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (binary_expression (pointer_expression * IDENT) << LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | (pointer_expression * IDENT))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (unary_expression ~ IDENT) & (pointer_expression * IDENT))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void bignum_set_bit(int *param_1,uint param_2,int param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" (primitive_type "void") (function_declarator "bignum_set_bit(int *param_1,uint param_2,int param_3)" (identifier "bignum_set_bit") (parameter_list "(int *param_1,uint param_2,int param_3)" (( "(") (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")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  \n  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n  (*(code *)PTR_abort_00112038)();\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" (if "if") (parenthesized_expression "((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5))" (( "(") (binary_expression "(-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)" (parenthesized_expression "(-1 < (int)param_2)" (( "(") (binary_expression "-1 < (int)param_2" (number_literal "-1") (< "<") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (&& "&&") (parenthesized_expression "((int)param_2 < *param_1 << 5)" (( "(") (binary_expression "(int)param_2 < *param_1 << 5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (binary_expression "*param_1 << 5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<< "<<") (number_literal "5"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = 1 << (param_2 & 0x1f);\n    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);\n    if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }\n    *puVar1 = ~uVar2 & *puVar1;\n    return;\n  }" ({ "{") (expression_statement "uVar2 = 1 << (param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << (param_2 & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "1 << (param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);" (assignment_expression "puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(param_1 + ((int)param_2 >> 5) + 1)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + ((int)param_2 >> 5) + 1)" (( "(") (binary_expression "param_1 + ((int)param_2 >> 5) + 1" (binary_expression "param_1 + ((int)param_2 >> 5)" (identifier "param_1") (+ "+") (parenthesized_expression "((int)param_2 >> 5)" (( "(") (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (>> ">>") (number_literal "5")) () ")"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_3 != 0) {\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *puVar1 = uVar2 | *puVar1;\n      return;\n    }" ({ "{") (expression_statement "*puVar1 = uVar2 | *puVar1;" (assignment_expression "*puVar1 = uVar2 | *puVar1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "uVar2 | *puVar1" (identifier "uVar2") (| "|") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*puVar1 = ~uVar2 & *puVar1;" (assignment_expression "*puVar1 = ~uVar2 & *puVar1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "~uVar2 & *puVar1" (unary_expression "~uVar2" (~ "~") (identifier "uVar2")) (& "&") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_abort_00112038)();" (call_expression "(*(code *)PTR_abort_00112038)()" (parenthesized_expression "(*(code *)PTR_abort_00112038)" (( "(") (pointer_expression "*(code *)PTR_abort_00112038" (* "*") (cast_expression "(code *)PTR_abort_00112038" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_00112038"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_2,int var_1,int var_3)

{
  type_2 *puVar1;
  type_2 var_4;
  
  if ((-1 < var_1) && (var_1 < (int)(*var_2 << 5))) {
    var_4 = 1 << (var_1 & 0x1fU);
    puVar1 = var_2 + (var_1 >> 5) + 1;
    if (var_3 != 0) {
      *puVar1 = var_4 | *puVar1;
      return;
    }
    *puVar1 = ~var_4 & *puVar1;
    return;
  }
  if (var_3 == 0) {
    return;
  }
  (*(type_3 *)PTR_abort_00112038)();
  return;
}


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

void MASKED(int *param_1,uint param_2,int param_3)

{
  uint *puVar1;
  uint uVar2;
  
  if ((-1 < (int)param_2) && ((int)param_2 < *param_1 << 5)) {
    uVar2 = 1 << (param_2 & 0x1f);
    puVar1 = (uint *)(param_1 + ((int)param_2 >> 5) + 1);
    if (param_3 != 0) {
      *puVar1 = uVar2 | *puVar1;
      return;
    }
    *puVar1 = ~uVar2 & *puVar1;
    return;
  }
  if (param_3 == 0) {
    return;
  }
  (*(code *)PTR_abort_00112038)();
  return;
}

