
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int set_char_quoting(quoting_options *o,char c,int i)

{
  uint uVar1;
  uint uVar2;
  
  if (o == (quoting_options *)0x0) {
    o = &default_quoting_options;
  }
  uVar1 = o->quote_these_too[(byte)c >> 5];
  uVar2 = uVar1 >> (c & 0x1fU);
  o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1;
  return uVar2 & 1;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)

{
  uint uVar1;
  uint uVar2;
  byte bVar3;
  
  if (param_1 == (undefined4 *)0x0) {
    param_1 = &DAT_00019240;
  }
  bVar3 = (byte)param_2 & 0x1f;
  uVar1 = param_1[(param_2 >> 5 & 7) + 2];
  uVar2 = uVar1 >> bVar3;
  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;
  return uVar2 & 1;
}


CALL 0x00011555
ADD EDX,0x5d6b
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
TEST EAX,EAX
LEA EDX,[EDX + 0x240]
CMOVZ EAX,EDX
MOV EDX,ECX
AND ECX,0x1f
SHR DL,0x5
MOVZX EDX,DL
LEA EBX,[EAX + EDX*0x4 + 0x8]
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [EBX]
MOV EAX,ESI
SHR EAX,CL
XOR EDX,EAX
AND EAX,0x1
AND EDX,0x1
SHL EDX,CL
XOR EDX,ESI
MOV dword ptr [EBX],EDX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nuint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}\n\n" comment (function_definition "uint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" type_identifier (function_declarator "FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &DAT_00019240;\n  }" { (expression_statement "param_1 = &DAT_00019240;" (assignment_expression "param_1 = &DAT_00019240" identifier = (pointer_expression "&DAT_00019240" & identifier)) ;) })) (expression_statement "bVar3 = (byte)param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)param_2 & 0x1f" identifier = (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 & 7) + 2];" (assignment_expression "uVar1 = param_1[(param_2 >> 5 & 7) + 2]" identifier = (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" identifier [ (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" ( (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal) )) + number_literal) ])) ;) (expression_statement "uVar2 = uVar1 >> bVar3;" (assignment_expression "uVar2 = uVar1 >> bVar3" identifier = (binary_expression "uVar1 >> bVar3" identifier >> identifier)) ;) (expression_statement "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;" (assignment_expression "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" identifier [ (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" ( (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal) )) + number_literal) ]) = (binary_expression "((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (binary_expression "((param_3 ^ uVar2) & 1) << bVar3" (parenthesized_expression "((param_3 ^ uVar2) & 1)" ( (binary_expression "(param_3 ^ uVar2) & 1" (parenthesized_expression "(param_3 ^ uVar2)" ( (binary_expression "param_3 ^ uVar2" identifier ^ identifier) )) & number_literal) )) << identifier) ^ identifier)) ;) (return_statement "return uVar2 & 1;" return (binary_expression "uVar2 & 1" identifier & number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention */\n\nint set_char_quoting(quoting_options *o,char c,int i)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  uVar1 = o->quote_these_too[(byte)c >> 5];\n  uVar2 = uVar1 >> (c & 0x1fU);\n  o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1;\n  return uVar2 & 1;\n}\n\n" comment comment (function_definition "int set_char_quoting(quoting_options *o,char c,int i)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  uVar1 = o->quote_these_too[(byte)c >> 5];\n  uVar2 = uVar1 >> (c & 0x1fU);\n  o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1;\n  return uVar2 & 1;\n}" primitive_type (function_declarator "set_char_quoting(quoting_options *o,char c,int i)" identifier (parameter_list "(quoting_options *o,char c,int i)" ( (parameter_declaration "quoting_options *o" type_identifier (pointer_declarator "*o" * identifier)) , (parameter_declaration "char c" primitive_type identifier) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }\n  uVar1 = o->quote_these_too[(byte)c >> 5];\n  uVar2 = uVar1 >> (c & 0x1fU);\n  o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1;\n  return uVar2 & 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (o == (quoting_options *)0x0) {\n    o = &default_quoting_options;\n  }" if (parenthesized_expression "(o == (quoting_options *)0x0)" ( (binary_expression "o == (quoting_options *)0x0" identifier == (cast_expression "(quoting_options *)0x0" ( (type_descriptor "quoting_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    o = &default_quoting_options;\n  }" { (expression_statement "o = &default_quoting_options;" (assignment_expression "o = &default_quoting_options" identifier = (pointer_expression "&default_quoting_options" & identifier)) ;) })) (expression_statement "uVar1 = o->quote_these_too[(byte)c >> 5];" (assignment_expression "uVar1 = o->quote_these_too[(byte)c >> 5]" identifier = (subscript_expression "o->quote_these_too[(byte)c >> 5]" (field_expression "o->quote_these_too" identifier -> field_identifier) [ (binary_expression "(byte)c >> 5" (cast_expression "(byte)c" ( (type_descriptor "byte" type_identifier) ) identifier) >> number_literal) ])) ;) (expression_statement "uVar2 = uVar1 >> (c & 0x1fU);" (assignment_expression "uVar2 = uVar1 >> (c & 0x1fU)" identifier = (binary_expression "uVar1 >> (c & 0x1fU)" identifier >> (parenthesized_expression "(c & 0x1fU)" ( (binary_expression "c & 0x1fU" identifier & number_literal) )))) ;) (expression_statement "o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1;" (assignment_expression "o->quote_these_too[(byte)c >> 5] = ((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1" (subscript_expression "o->quote_these_too[(byte)c >> 5]" (field_expression "o->quote_these_too" identifier -> field_identifier) [ (binary_expression "(byte)c >> 5" (cast_expression "(byte)c" ( (type_descriptor "byte" type_identifier) ) identifier) >> number_literal) ]) = (binary_expression "((i ^ uVar2) & 1) << (c & 0x1fU) ^ uVar1" (binary_expression "((i ^ uVar2) & 1) << (c & 0x1fU)" (parenthesized_expression "((i ^ uVar2) & 1)" ( (binary_expression "(i ^ uVar2) & 1" (parenthesized_expression "(i ^ uVar2)" ( (binary_expression "i ^ uVar2" identifier ^ identifier) )) & number_literal) )) << (parenthesized_expression "(c & 0x1fU)" ( (binary_expression "c & 0x1fU" identifier & number_literal) ))) ^ identifier)) ;) (return_statement "return uVar2 & 1;" return (binary_expression "uVar2 & 1" identifier & number_literal) ;) })))
(translation_unit "uint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}\n\n" (function_definition "uint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" type_identifier (function_declarator "FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }" if (parenthesized_expression "(param_1 == (undefined4 *)0x0)" ( (binary_expression "param_1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = &DAT_00019240;\n  }" { (expression_statement "param_1 = &DAT_00019240;" (assignment_expression "param_1 = &DAT_00019240" identifier = (pointer_expression "&DAT_00019240" & identifier)) ;) })) (expression_statement "bVar3 = (byte)param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)param_2 & 0x1f" identifier = (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 & 7) + 2];" (assignment_expression "uVar1 = param_1[(param_2 >> 5 & 7) + 2]" identifier = (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" identifier [ (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" ( (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal) )) + number_literal) ])) ;) (expression_statement "uVar2 = uVar1 >> bVar3;" (assignment_expression "uVar2 = uVar1 >> bVar3" identifier = (binary_expression "uVar1 >> bVar3" identifier >> identifier)) ;) (expression_statement "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;" (assignment_expression "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" identifier [ (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" ( (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" identifier >> number_literal) & number_literal) )) + number_literal) ]) = (binary_expression "((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (binary_expression "((param_3 ^ uVar2) & 1) << bVar3" (parenthesized_expression "((param_3 ^ uVar2) & 1)" ( (binary_expression "(param_3 ^ uVar2) & 1" (parenthesized_expression "(param_3 ^ uVar2)" ( (binary_expression "param_3 ^ uVar2" identifier ^ identifier) )) & number_literal) )) << identifier) ^ identifier)) ;) (return_statement "return uVar2 & 1;" return (binary_expression "uVar2 & 1" identifier & number_literal) ;) })))
(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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )) + LIT) ]) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT ^ IDENT) )) & LIT) )) << IDENT) ^ IDENT)) ;) (return_statement return (binary_expression IDENT & LIT) ;) })))
(function_definition "uint FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" (type_identifier "uint") (function_declarator "FUN_00013290(undefined4 *param_1,uint param_2,uint param_3)" (identifier "FUN_00013290") (parameter_list "(undefined4 *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  byte bVar3;\n  \n  if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }\n  bVar3 = (byte)param_2 & 0x1f;\n  uVar1 = param_1[(param_2 >> 5 & 7) + 2];\n  uVar2 = uVar1 >> bVar3;\n  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;\n  return uVar2 & 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (if_statement "if (param_1 == (undefined4 *)0x0) {\n    param_1 = &DAT_00019240;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined4 *)0x0)" (( "(") (binary_expression "param_1 == (undefined4 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = &DAT_00019240;\n  }" ({ "{") (expression_statement "param_1 = &DAT_00019240;" (assignment_expression "param_1 = &DAT_00019240" (identifier "param_1") (= "=") (pointer_expression "&DAT_00019240" (& "&") (identifier "DAT_00019240"))) (; ";")) (} "}"))) (expression_statement "bVar3 = (byte)param_2 & 0x1f;" (assignment_expression "bVar3 = (byte)param_2 & 0x1f" (identifier "bVar3") (= "=") (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 & 7) + 2];" (assignment_expression "uVar1 = param_1[(param_2 >> 5 & 7) + 2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" (identifier "param_1") ([ "[") (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" (( "(") (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) (& "&") (number_literal "7")) () ")")) (+ "+") (number_literal "2")) (] "]"))) (; ";")) (expression_statement "uVar2 = uVar1 >> bVar3;" (assignment_expression "uVar2 = uVar1 >> bVar3" (identifier "uVar2") (= "=") (binary_expression "uVar1 >> bVar3" (identifier "uVar1") (>> ">>") (identifier "bVar3"))) (; ";")) (expression_statement "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;" (assignment_expression "param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (subscript_expression "param_1[(param_2 >> 5 & 7) + 2]" (identifier "param_1") ([ "[") (binary_expression "(param_2 >> 5 & 7) + 2" (parenthesized_expression "(param_2 >> 5 & 7)" (( "(") (binary_expression "param_2 >> 5 & 7" (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5")) (& "&") (number_literal "7")) () ")")) (+ "+") (number_literal "2")) (] "]")) (= "=") (binary_expression "((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1" (binary_expression "((param_3 ^ uVar2) & 1) << bVar3" (parenthesized_expression "((param_3 ^ uVar2) & 1)" (( "(") (binary_expression "(param_3 ^ uVar2) & 1" (parenthesized_expression "(param_3 ^ uVar2)" (( "(") (binary_expression "param_3 ^ uVar2" (identifier "param_3") (^ "^") (identifier "uVar2")) () ")")) (& "&") (number_literal "1")) () ")")) (<< "<<") (identifier "bVar3")) (^ "^") (identifier "uVar1"))) (; ";")) (return_statement "return uVar2 & 1;" (return "return") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention */

int function_1(type_1 *var_1,char var_3,int var_4)

{
  type_2 var_2;
  type_2 var_5;
  
  if (var_1 == (type_1 *)0x0) {
    var_1 = &default_quoting_options;
  }
  var_2 = var_1->quote_these_too[(type_3)var_3 >> 5];
  var_5 = var_2 >> (var_3 & 0x1fU);
  var_1->quote_these_too[(type_3)var_3 >> 5] = ((var_4 ^ var_5) & 1) << (var_3 & 0x1fU) ^ var_2;
  return var_5 & 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))) right: (identifier)) right: (identifier)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

uint MASKED(undefined4 *param_1,uint param_2,uint param_3)

{
  uint uVar1;
  uint uVar2;
  byte bVar3;
  
  if (param_1 == (undefined4 *)0x0) {
    param_1 = &DAT_00019240;
  }
  bVar3 = (byte)param_2 & 0x1f;
  uVar1 = param_1[(param_2 >> 5 & 7) + 2];
  uVar2 = uVar1 >> bVar3;
  param_1[(param_2 >> 5 & 7) + 2] = ((param_3 ^ uVar2) & 1) << bVar3 ^ uVar1;
  return uVar2 & 1;
}

