
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

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

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  
  if ((-1 < bitnum) && (bitnum < (int)(*bn * 0x20))) {
    uVar2 = 1 << ((byte)bitnum & 0x1f);
    uVar1 = bn[(bitnum >> 5) + 1];
    uVar3 = uVar2 | uVar1;
    if (value == 0) {
      uVar3 = ~uVar2 & uVar1;
    }
    bn[(bitnum >> 5) + 1] = uVar3;
    return;
  }
  if (value == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00053f50(int *param_1,int param_2,int param_3)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  
  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {
    uVar2 = 1 << ((byte)param_2 & 0x1f);
    uVar1 = param_1[(param_2 >> 5) + 1];
    uVar3 = uVar2 | uVar1;
    if (param_3 == 0) {
      uVar3 = ~uVar2 & uVar1;
    }
    param_1[(param_2 >> 5) + 1] = uVar3;
    return;
  }
  if (param_3 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}


PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xbc7f9
SUB ESP,0x4
MOV ECX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x18]
TEST ECX,ECX
JS 0x00053f79
MOV EAX,dword ptr [ESI]
SHL EAX,0x5
CMP EAX,ECX
JG 0x00053f90
TEST EDX,EDX
JNZ 0x0001c165
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,0x1
SHL EAX,CL
SAR ECX,0x5
LEA EBX,[ESI + ECX*0x4 + 0x4]
MOV ECX,EAX
MOV ESI,dword ptr [EBX]
NOT ECX
AND ECX,ESI
OR EAX,ESI
TEST EDX,EDX
CMOVZ EAX,ECX
MOV dword ptr [EBX],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00053f50(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment (function_definition "void FUN_00053f50(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" primitive_type (function_declarator "FUN_00053f50(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 * 0x20))" ( (binary_expression "(-1 < param_2) && (param_2 < *param_1 * 0x20)" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *param_1 * 0x20)" ( (binary_expression "param_2 < *param_1 * 0x20" identifier < (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" * identifier) * number_literal)) ))) )) (compound_statement "{\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" { (expression_statement "uVar2 = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)param_2 & 0x1f)" identifier = (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar1 = param_1[(param_2 >> 5) + 1];" (assignment_expression "uVar1 = param_1[(param_2 >> 5) + 1]" identifier = (subscript_expression "param_1[(param_2 >> 5) + 1]" identifier [ (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) + number_literal) ])) ;) (expression_statement "uVar3 = uVar2 | uVar1;" (assignment_expression "uVar3 = uVar2 | uVar1" identifier = (binary_expression "uVar2 | uVar1" identifier | identifier)) ;) (if_statement "if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = ~uVar2 & uVar1;\n    }" { (expression_statement "uVar3 = ~uVar2 & uVar1;" (assignment_expression "uVar3 = ~uVar2 & uVar1" identifier = (binary_expression "~uVar2 & uVar1" (unary_expression "~uVar2" ~ identifier) & identifier)) ;) })) (expression_statement "param_1[(param_2 >> 5) + 1] = uVar3;" (assignment_expression "param_1[(param_2 >> 5) + 1] = uVar3" (subscript_expression "param_1[(param_2 >> 5) + 1]" identifier [ (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) + number_literal) ]) = 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 ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid bignum_set_bit(Bignum_conflict bn,int bitnum,int value)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn * 0x20))) {\n    uVar2 = 1 << ((byte)bitnum & 0x1f);\n    uVar1 = bn[(bitnum >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    bn[(bitnum >> 5) + 1] = uVar3;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}\n\n" comment comment (function_definition "void bignum_set_bit(Bignum_conflict bn,int bitnum,int value)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn * 0x20))) {\n    uVar2 = 1 << ((byte)bitnum & 0x1f);\n    uVar1 = bn[(bitnum >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    bn[(bitnum >> 5) + 1] = uVar3;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\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 uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < bitnum) && (bitnum < (int)(*bn * 0x20))) {\n    uVar2 = 1 << ((byte)bitnum & 0x1f);\n    uVar1 = bn[(bitnum >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    bn[(bitnum >> 5) + 1] = uVar3;\n    return;\n  }\n  if (value == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  abort();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((-1 < bitnum) && (bitnum < (int)(*bn * 0x20))) {\n    uVar2 = 1 << ((byte)bitnum & 0x1f);\n    uVar1 = bn[(bitnum >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    bn[(bitnum >> 5) + 1] = uVar3;\n    return;\n  }" if (parenthesized_expression "((-1 < bitnum) && (bitnum < (int)(*bn * 0x20)))" ( (binary_expression "(-1 < bitnum) && (bitnum < (int)(*bn * 0x20))" (parenthesized_expression "(-1 < bitnum)" ( (binary_expression "-1 < bitnum" number_literal < identifier) )) && (parenthesized_expression "(bitnum < (int)(*bn * 0x20))" ( (binary_expression "bitnum < (int)(*bn * 0x20)" identifier < (cast_expression "(int)(*bn * 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*bn * 0x20)" ( (binary_expression "*bn * 0x20" (pointer_expression "*bn" * identifier) * number_literal) )))) ))) )) (compound_statement "{\n    uVar2 = 1 << ((byte)bitnum & 0x1f);\n    uVar1 = bn[(bitnum >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    bn[(bitnum >> 5) + 1] = uVar3;\n    return;\n  }" { (expression_statement "uVar2 = 1 << ((byte)bitnum & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)bitnum & 0x1f)" identifier = (binary_expression "1 << ((byte)bitnum & 0x1f)" number_literal << (parenthesized_expression "((byte)bitnum & 0x1f)" ( (binary_expression "(byte)bitnum & 0x1f" (cast_expression "(byte)bitnum" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar1 = bn[(bitnum >> 5) + 1];" (assignment_expression "uVar1 = bn[(bitnum >> 5) + 1]" identifier = (subscript_expression "bn[(bitnum >> 5) + 1]" identifier [ (binary_expression "(bitnum >> 5) + 1" (parenthesized_expression "(bitnum >> 5)" ( (binary_expression "bitnum >> 5" identifier >> number_literal) )) + number_literal) ])) ;) (expression_statement "uVar3 = uVar2 | uVar1;" (assignment_expression "uVar3 = uVar2 | uVar1" identifier = (binary_expression "uVar2 | uVar1" identifier | identifier)) ;) (if_statement "if (value == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }" if (parenthesized_expression "(value == 0)" ( (binary_expression "value == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = ~uVar2 & uVar1;\n    }" { (expression_statement "uVar3 = ~uVar2 & uVar1;" (assignment_expression "uVar3 = ~uVar2 & uVar1" identifier = (binary_expression "~uVar2 & uVar1" (unary_expression "~uVar2" ~ identifier) & identifier)) ;) })) (expression_statement "bn[(bitnum >> 5) + 1] = uVar3;" (assignment_expression "bn[(bitnum >> 5) + 1] = uVar3" (subscript_expression "bn[(bitnum >> 5) + 1]" identifier [ (binary_expression "(bitnum >> 5) + 1" (parenthesized_expression "(bitnum >> 5)" ( (binary_expression "bitnum >> 5" identifier >> number_literal) )) + number_literal) ]) = 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 ;) })) comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00053f50(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    \n  abort();\n}\n\n" (function_definition "void FUN_00053f50(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    \n  abort();\n}" primitive_type (function_declarator "FUN_00053f50(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    \n  abort();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" if (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 * 0x20))" ( (binary_expression "(-1 < param_2) && (param_2 < *param_1 * 0x20)" (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) && (parenthesized_expression "(param_2 < *param_1 * 0x20)" ( (binary_expression "param_2 < *param_1 * 0x20" identifier < (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" * identifier) * number_literal)) ))) )) (compound_statement "{\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" { (expression_statement "uVar2 = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)param_2 & 0x1f)" identifier = (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar1 = param_1[(param_2 >> 5) + 1];" (assignment_expression "uVar1 = param_1[(param_2 >> 5) + 1]" identifier = (subscript_expression "param_1[(param_2 >> 5) + 1]" identifier [ (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) + number_literal) ])) ;) (expression_statement "uVar3 = uVar2 | uVar1;" (assignment_expression "uVar3 = uVar2 | uVar1" identifier = (binary_expression "uVar2 | uVar1" identifier | identifier)) ;) (if_statement "if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = ~uVar2 & uVar1;\n    }" { (expression_statement "uVar3 = ~uVar2 & uVar1;" (assignment_expression "uVar3 = ~uVar2 & uVar1" identifier = (binary_expression "~uVar2 & uVar1" (unary_expression "~uVar2" ~ identifier) & identifier)) ;) })) (expression_statement "param_1[(param_2 >> 5) + 1] = uVar3;" (assignment_expression "param_1[(param_2 >> 5) + 1] = uVar3" (subscript_expression "param_1[(param_2 >> 5) + 1]" identifier [ (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" ( (binary_expression "param_2 >> 5" identifier >> number_literal) )) + number_literal) ]) = 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 "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })))
(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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression (pointer_expression * IDENT) * LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) & IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT) ]) = IDENT) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00053f50(int *param_1,int param_2,int param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    \n  abort();\n}" (primitive_type "void") (function_declarator "FUN_00053f50(int *param_1,int param_2,int param_3)" (identifier "FUN_00053f50") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }\n  if (param_3 == 0) {\n    return;\n  }\n                    \n  abort();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" (if "if") (parenthesized_expression "((-1 < param_2) && (param_2 < *param_1 * 0x20))" (( "(") (binary_expression "(-1 < param_2) && (param_2 < *param_1 * 0x20)" (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < *param_1 * 0x20)" (( "(") (binary_expression "param_2 < *param_1 * 0x20" (identifier "param_2") (< "<") (binary_expression "*param_1 * 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "0x20"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = 1 << ((byte)param_2 & 0x1f);\n    uVar1 = param_1[(param_2 >> 5) + 1];\n    uVar3 = uVar2 | uVar1;\n    if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }\n    param_1[(param_2 >> 5) + 1] = uVar3;\n    return;\n  }" ({ "{") (expression_statement "uVar2 = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "uVar2 = 1 << ((byte)param_2 & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "1 << ((byte)param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)param_2 & 0x1f)" (( "(") (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar1 = param_1[(param_2 >> 5) + 1];" (assignment_expression "uVar1 = param_1[(param_2 >> 5) + 1]" (identifier "uVar1") (= "=") (subscript_expression "param_1[(param_2 >> 5) + 1]" (identifier "param_1") ([ "[") (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" (( "(") (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) (] "]"))) (; ";")) (expression_statement "uVar3 = uVar2 | uVar1;" (assignment_expression "uVar3 = uVar2 | uVar1" (identifier "uVar3") (= "=") (binary_expression "uVar2 | uVar1" (identifier "uVar2") (| "|") (identifier "uVar1"))) (; ";")) (if_statement "if (param_3 == 0) {\n      uVar3 = ~uVar2 & uVar1;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = ~uVar2 & uVar1;\n    }" ({ "{") (expression_statement "uVar3 = ~uVar2 & uVar1;" (assignment_expression "uVar3 = ~uVar2 & uVar1" (identifier "uVar3") (= "=") (binary_expression "~uVar2 & uVar1" (unary_expression "~uVar2" (~ "~") (identifier "uVar2")) (& "&") (identifier "uVar1"))) (; ";")) (} "}"))) (expression_statement "param_1[(param_2 >> 5) + 1] = uVar3;" (assignment_expression "param_1[(param_2 >> 5) + 1] = uVar3" (subscript_expression "param_1[(param_2 >> 5) + 1]" (identifier "param_1") ([ "[") (binary_expression "(param_2 >> 5) + 1" (parenthesized_expression "(param_2 >> 5)" (( "(") (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (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 "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 bn,int var_1,int var_4)

{
  type_2 var_3;
  type_2 var_2;
  type_2 uVar3;
  
  if ((-1 < var_1) && (var_1 < (int)(*bn * 0x20))) {
    var_2 = 1 << ((type_3)var_1 & 0x1f);
    var_3 = bn[(var_1 >> 5) + 1];
    uVar3 = var_2 | var_3;
    if (var_4 == 0) {
      uVar3 = ~var_2 & var_3;
    }
    bn[(var_1 >> 5) + 1] = uVar3;
    return;
  }
  if (var_4 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (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: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  
  if ((-1 < param_2) && (param_2 < *param_1 * 0x20)) {
    uVar2 = 1 << ((byte)param_2 & 0x1f);
    uVar1 = param_1[(param_2 >> 5) + 1];
    uVar3 = uVar2 | uVar1;
    if (param_3 == 0) {
      uVar3 = ~uVar2 & uVar1;
    }
    param_1[(param_2 >> 5) + 1] = uVar3;
    return;
  }
  if (param_3 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  abort();
}

