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

void ignore_signal(int sig)

{
  code *__ptr;
  undefined1 *handler;
  uint uVar1;
  
  if (((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)) {
    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {
      uVar1 = sigmodes[sig];
    }
    else {
      handler = set_signal_handler(sig,(undefined1 *)0x0);
      original_signals[sig] = handler;
      set_signal_handler(sig,handler);
      uVar1 = sigmodes[sig];
      if (original_signals[sig] == (undefined1 *)0x1) {
        uVar1 = uVar1 | 2;
        sigmodes[sig] = uVar1;
      }
    }
    if ((uVar1 & 0x42) != 0) {
      return;
    }
    if ((uVar1 & 8) == 0) {
      set_signal_handler(sig,(undefined1 *)0x1);
      uVar1 = sigmodes[sig];
    }
  }
  if ((uVar1 & 0x10) != 0) {
    (&trap_list)[sig] = 1;
LAB_0008c06e:
    sigmodes[sig] = uVar1 | 0x61;
    return;
  }
  if ((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||
     (__ptr == initialize_traps)) {
    (&trap_list)[sig] = 1;
  }
  else {
    free(__ptr);
    uVar1 = sigmodes[sig];
    (&trap_list)[sig] = 1;
    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;
  }
  sigmodes[sig] = uVar1 | 0x41;
  return;
}



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

void ignore_signal(int param_1)

{
  code *__ptr;
  undefined4 uVar1;
  uint uVar2;
  
  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||
     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {
    if (((param_1 == 0) || (0x40 < param_1)) ||
       ((code *)(&original_signals)[param_1] != initialize_traps)) {
      uVar2 = (&DAT_001790e0)[param_1];
    }
    else {
      uVar1 = set_signal_handler(param_1,0);
      (&original_signals)[param_1] = uVar1;
      set_signal_handler(param_1,uVar1);
      uVar2 = (&DAT_001790e0)[param_1];
      if ((&original_signals)[param_1] == 1) {
        uVar2 = uVar2 | 2;
        (&DAT_001790e0)[param_1] = uVar2;
      }
    }
    if ((uVar2 & 0x42) != 0) {
      return;
    }
    if ((uVar2 & 8) == 0) {
      set_signal_handler(param_1,1);
      uVar2 = (&DAT_001790e0)[param_1];
    }
  }
  if ((uVar2 & 0x10) != 0) {
    (&trap_list)[param_1] = 1;
LAB_0008c06e:
    (&DAT_001790e0)[param_1] = uVar2 | 0x61;
    return;
  }
  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||
     (__ptr == initialize_traps)) {
    (&trap_list)[param_1] = 1;
  }
  else {
    free(__ptr);
    uVar2 = (&DAT_001790e0)[param_1];
    (&trap_list)[param_1] = 1;
    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;
  }
  (&DAT_001790e0)[param_1] = uVar2 | 0x41;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0xe6007
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x20]
LEA EAX,[ESI + -0x41]
CMP EAX,0x2
JBE 0x0008c050
LEA EDI,[EBX + 0x70e0]
TEST ESI,ESI
JZ 0x0008c050
TEST ESI,ESI
JZ 0x0008c037
CMP ESI,0x40
JG 0x0008c037
LEA EBP,[EBX + 0xd000]
LEA EAX,[EBX + 0xfff17d70]
CMP dword ptr [EBP + ESI*0x4],EAX
JZ 0x0008c0d0
MOV EAX,dword ptr [EDI + ESI*0x4]
TEST AL,0x42
JZ 0x0008c080
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDI,[EBX + 0x70e0]
MOV EAX,dword ptr [EDI + ESI*0x4]
TEST AL,0x40
JNZ 0x0008c018
TEST AL,0x10
JZ 0x0008c099
LEA EDX,[EBX + 0xd120]
MOV dword ptr [EDX + ESI*0x4],0x1
OR EAX,0x61
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST AL,0x8
JNZ 0x0008c05d
SUB ESP,0x8
PUSH 0x1
PUSH ESI
CALL 0x0008fc50
MOV EAX,dword ptr [EDI + ESI*0x4]
ADD ESP,0x10
TEST AL,0x10
JNZ 0x0008c061
LEA EBP,[EBX + 0xd120]
TEST AL,0x1
JZ 0x0008c0b6
MOV EDX,dword ptr [EBP + ESI*0x4]
CMP EDX,0x1
JBE 0x0008c0b6
LEA ECX,[EBX + 0xfff17d70]
CMP EDX,ECX
JNZ 0x0008c108
MOV dword ptr [EBP + ESI*0x4],0x1
OR EAX,0x41
MOV dword ptr [EDI + ESI*0x4],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH 0x0
PUSH ESI
CALL 0x0008fc50
MOV dword ptr [EBP + ESI*0x4],EAX
POP EDX
POP ECX
PUSH EAX
PUSH ESI
CALL 0x0008fc50
ADD ESP,0x10
CMP dword ptr [EBP + ESI*0x4],0x1
MOV EAX,dword ptr [EDI + ESI*0x4]
JNZ 0x0008c03a
OR EAX,0x2
MOV dword ptr [EDI + ESI*0x4],EAX
JMP 0x0008c03a
SUB ESP,0xc
PUSH EDX
CALL 0x0002e200
MOV EAX,dword ptr [EDI + ESI*0x4]
MOV dword ptr [EBP + ESI*0x4],0x1
ADD ESP,0x10
TEST AL,0x10
JZ 0x0008c0be
JMP 0x0008c06e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ignore_signal(int param_1)\n\n{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}\n\n" comment (function_definition "void ignore_signal(int param_1)\n\n{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" primitive_type (function_declarator "ignore_signal(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" { (declaration "code *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" if (parenthesized_expression "(((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0))" ( (binary_expression "((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" (parenthesized_expression "((2 < param_1 - 0x41U) && (param_1 != 0))" ( (binary_expression "(2 < param_1 - 0x41U) && (param_1 != 0)" (parenthesized_expression "(2 < param_1 - 0x41U)" ( (binary_expression "2 < param_1 - 0x41U" number_literal < (binary_expression "param_1 - 0x41U" identifier - number_literal)) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) || (parenthesized_expression "(uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" ( (comma_expression "uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) , (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" { (if_statement "if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" if (parenthesized_expression "(((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps))" ( (binary_expression "((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)" (parenthesized_expression "((param_1 == 0) || (0x40 < param_1))" ( (binary_expression "(param_1 == 0) || (0x40 < param_1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(0x40 < param_1)" ( (binary_expression "0x40 < param_1" number_literal < identifier) ))) )) || (parenthesized_expression "((code *)(&original_signals)[param_1] != initialize_traps)" ( (binary_expression "(code *)(&original_signals)[param_1] != initialize_traps" (cast_expression "(code *)(&original_signals)[param_1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ])) != identifier) ))) )) (compound_statement "{\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" { (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) }) (else_clause "else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" else (compound_statement "{\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" { (expression_statement "uVar1 = set_signal_handler(param_1,0);" (assignment_expression "uVar1 = set_signal_handler(param_1,0)" identifier = (call_expression "set_signal_handler(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "(&original_signals)[param_1] = uVar1;" (assignment_expression "(&original_signals)[param_1] = uVar1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ]) = identifier) ;) (expression_statement "set_signal_handler(param_1,uVar1);" (call_expression "set_signal_handler(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) (if_statement "if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" if (parenthesized_expression "((&original_signals)[param_1] == 1)" ( (binary_expression "(&original_signals)[param_1] == 1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ]) == number_literal) )) (compound_statement "{\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" { (expression_statement "uVar2 = uVar2 | 2;" (assignment_expression "uVar2 = uVar2 | 2" identifier = (binary_expression "uVar2 | 2" identifier | number_literal)) ;) (expression_statement "(&DAT_001790e0)[param_1] = uVar2;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = identifier) ;) })) }))) (if_statement "if ((uVar2 & 0x42) != 0) {\n      return;\n    }" if (parenthesized_expression "((uVar2 & 0x42) != 0)" ( (binary_expression "(uVar2 & 0x42) != 0" (parenthesized_expression "(uVar2 & 0x42)" ( (binary_expression "uVar2 & 0x42" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" if (parenthesized_expression "((uVar2 & 8) == 0)" ( (binary_expression "(uVar2 & 8) == 0" (parenthesized_expression "(uVar2 & 8)" ( (binary_expression "uVar2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" { (expression_statement "set_signal_handler(param_1,1);" (call_expression "set_signal_handler(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) })) })) (if_statement "if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" if (parenthesized_expression "((uVar2 & 0x10) != 0)" ( (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" ( (binary_expression "uVar2 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" { (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (labeled_statement "LAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;" statement_identifier : (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x61;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x61" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = (binary_expression "uVar2 | 0x61" identifier | number_literal)) ;)) (return_statement "return;" return ;) })) (if_statement "if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" if (parenthesized_expression "((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps))" ( (binary_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)" (parenthesized_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2))" ( (binary_expression "((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" ( (comma_expression "__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2" (assignment_expression "__ptr = (code *)(&trap_list)[param_1]" identifier = (cast_expression "(code *)(&trap_list)[param_1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]))) , (binary_expression "__ptr < (code *)0x2" identifier < (cast_expression "(code *)0x2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) || (parenthesized_expression "(__ptr == initialize_traps)" ( (binary_expression "__ptr == initialize_traps" identifier == identifier) ))) )) (compound_statement "{\n    (&trap_list)[param_1] = 1;\n  }" { (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) }) (else_clause "else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" else (compound_statement "{\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (if_statement "if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;" if (parenthesized_expression "((uVar2 & 0x10) != 0)" ( (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" ( (binary_expression "uVar2 & 0x10" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0008c06e;" goto statement_identifier ;)) }))) (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x41;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x41" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = (binary_expression "uVar2 | 0x41" identifier | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ignore_signal(int sig)\n\n{\n  code *__ptr;\n  undefined1 *handler;\n  uint uVar1;\n  \n  if (((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)) {\n    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }\n    if ((uVar1 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }\n  }\n  if ((uVar1 & 0x10) != 0) {\n    (&trap_list)[sig] = 1;\nLAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;\n    return;\n  }\n  if ((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[sig] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  sigmodes[sig] = uVar1 | 0x41;\n  return;\n}\n\n" comment comment (function_definition "void ignore_signal(int sig)\n\n{\n  code *__ptr;\n  undefined1 *handler;\n  uint uVar1;\n  \n  if (((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)) {\n    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }\n    if ((uVar1 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }\n  }\n  if ((uVar1 & 0x10) != 0) {\n    (&trap_list)[sig] = 1;\nLAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;\n    return;\n  }\n  if ((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[sig] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  sigmodes[sig] = uVar1 | 0x41;\n  return;\n}" primitive_type (function_declarator "ignore_signal(int sig)" identifier (parameter_list "(int sig)" ( (parameter_declaration "int sig" primitive_type identifier) ))) (compound_statement "{\n  code *__ptr;\n  undefined1 *handler;\n  uint uVar1;\n  \n  if (((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)) {\n    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }\n    if ((uVar1 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }\n  }\n  if ((uVar1 & 0x10) != 0) {\n    (&trap_list)[sig] = 1;\nLAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;\n    return;\n  }\n  if ((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[sig] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  sigmodes[sig] = uVar1 | 0x41;\n  return;\n}" { (declaration "code *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined1 *handler;" type_identifier (pointer_declarator "*handler" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)) {\n    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }\n    if ((uVar1 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }\n  }" if (parenthesized_expression "(((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0))" ( (binary_expression "((2 < sig - 0x41U) && (sig != 0)) || (uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)" (parenthesized_expression "((2 < sig - 0x41U) && (sig != 0))" ( (binary_expression "(2 < sig - 0x41U) && (sig != 0)" (parenthesized_expression "(2 < sig - 0x41U)" ( (binary_expression "2 < sig - 0x41U" number_literal < (binary_expression "sig - 0x41U" identifier - number_literal)) )) && (parenthesized_expression "(sig != 0)" ( (binary_expression "sig != 0" identifier != number_literal) ))) )) || (parenthesized_expression "(uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0)" ( (comma_expression "uVar1 = sigmodes[sig], (uVar1 & 0x40) != 0" (assignment_expression "uVar1 = sigmodes[sig]" identifier = (subscript_expression "sigmodes[sig]" identifier [ identifier ])) , (binary_expression "(uVar1 & 0x40) != 0" (parenthesized_expression "(uVar1 & 0x40)" ( (binary_expression "uVar1 & 0x40" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }\n    if ((uVar1 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }\n  }" { (if_statement "if (((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)) {\n      uVar1 = sigmodes[sig];\n    }\n    else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }" if (parenthesized_expression "(((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps))" ( (binary_expression "((sig == 0) || (0x40 < sig)) || ((code *)original_signals[sig] != initialize_traps)" (parenthesized_expression "((sig == 0) || (0x40 < sig))" ( (binary_expression "(sig == 0) || (0x40 < sig)" (parenthesized_expression "(sig == 0)" ( (binary_expression "sig == 0" identifier == number_literal) )) || (parenthesized_expression "(0x40 < sig)" ( (binary_expression "0x40 < sig" number_literal < identifier) ))) )) || (parenthesized_expression "((code *)original_signals[sig] != initialize_traps)" ( (binary_expression "(code *)original_signals[sig] != initialize_traps" (cast_expression "(code *)original_signals[sig]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "original_signals[sig]" identifier [ identifier ])) != identifier) ))) )) (compound_statement "{\n      uVar1 = sigmodes[sig];\n    }" { (expression_statement "uVar1 = sigmodes[sig];" (assignment_expression "uVar1 = sigmodes[sig]" identifier = (subscript_expression "sigmodes[sig]" identifier [ identifier ])) ;) }) (else_clause "else {\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }" else (compound_statement "{\n      handler = set_signal_handler(sig,(undefined1 *)0x0);\n      original_signals[sig] = handler;\n      set_signal_handler(sig,handler);\n      uVar1 = sigmodes[sig];\n      if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }\n    }" { (expression_statement "handler = set_signal_handler(sig,(undefined1 *)0x0);" (assignment_expression "handler = set_signal_handler(sig,(undefined1 *)0x0)" identifier = (call_expression "set_signal_handler(sig,(undefined1 *)0x0)" identifier (argument_list "(sig,(undefined1 *)0x0)" ( identifier , (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "original_signals[sig] = handler;" (assignment_expression "original_signals[sig] = handler" (subscript_expression "original_signals[sig]" identifier [ identifier ]) = identifier) ;) (expression_statement "set_signal_handler(sig,handler);" (call_expression "set_signal_handler(sig,handler)" identifier (argument_list "(sig,handler)" ( identifier , identifier ))) ;) (expression_statement "uVar1 = sigmodes[sig];" (assignment_expression "uVar1 = sigmodes[sig]" identifier = (subscript_expression "sigmodes[sig]" identifier [ identifier ])) ;) (if_statement "if (original_signals[sig] == (undefined1 *)0x1) {\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }" if (parenthesized_expression "(original_signals[sig] == (undefined1 *)0x1)" ( (binary_expression "original_signals[sig] == (undefined1 *)0x1" (subscript_expression "original_signals[sig]" identifier [ identifier ]) == (cast_expression "(undefined1 *)0x1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar1 = uVar1 | 2;\n        sigmodes[sig] = uVar1;\n      }" { (expression_statement "uVar1 = uVar1 | 2;" (assignment_expression "uVar1 = uVar1 | 2" identifier = (binary_expression "uVar1 | 2" identifier | number_literal)) ;) (expression_statement "sigmodes[sig] = uVar1;" (assignment_expression "sigmodes[sig] = uVar1" (subscript_expression "sigmodes[sig]" identifier [ identifier ]) = identifier) ;) })) }))) (if_statement "if ((uVar1 & 0x42) != 0) {\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x42) != 0)" ( (binary_expression "(uVar1 & 0x42) != 0" (parenthesized_expression "(uVar1 & 0x42)" ( (binary_expression "uVar1 & 0x42" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 8) == 0) {\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }" if (parenthesized_expression "((uVar1 & 8) == 0)" ( (binary_expression "(uVar1 & 8) == 0" (parenthesized_expression "(uVar1 & 8)" ( (binary_expression "uVar1 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      set_signal_handler(sig,(undefined1 *)0x1);\n      uVar1 = sigmodes[sig];\n    }" { (expression_statement "set_signal_handler(sig,(undefined1 *)0x1);" (call_expression "set_signal_handler(sig,(undefined1 *)0x1)" identifier (argument_list "(sig,(undefined1 *)0x1)" ( identifier , (cast_expression "(undefined1 *)0x1" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "uVar1 = sigmodes[sig];" (assignment_expression "uVar1 = sigmodes[sig]" identifier = (subscript_expression "sigmodes[sig]" identifier [ identifier ])) ;) })) })) (if_statement "if ((uVar1 & 0x10) != 0) {\n    (&trap_list)[sig] = 1;\nLAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;\n    return;\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    (&trap_list)[sig] = 1;\nLAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;\n    return;\n  }" { (expression_statement "(&trap_list)[sig] = 1;" (assignment_expression "(&trap_list)[sig] = 1" (subscript_expression "(&trap_list)[sig]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (labeled_statement "LAB_0008c06e:\n    sigmodes[sig] = uVar1 | 0x61;" statement_identifier : (expression_statement "sigmodes[sig] = uVar1 | 0x61;" (assignment_expression "sigmodes[sig] = uVar1 | 0x61" (subscript_expression "sigmodes[sig]" identifier [ identifier ]) = (binary_expression "uVar1 | 0x61" identifier | number_literal)) ;)) (return_statement "return;" return ;) })) (if_statement "if ((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[sig] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }" if (parenthesized_expression "((((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps))" ( (binary_expression "(((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)" (parenthesized_expression "(((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2))" ( (binary_expression "((uVar1 & 1) == 0) || (__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)" (parenthesized_expression "((uVar1 & 1) == 0)" ( (binary_expression "(uVar1 & 1) == 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2)" ( (comma_expression "__ptr = (code *)(&trap_list)[sig], __ptr < (code *)0x2" (assignment_expression "__ptr = (code *)(&trap_list)[sig]" identifier = (cast_expression "(code *)(&trap_list)[sig]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&trap_list)[sig]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]))) , (binary_expression "__ptr < (code *)0x2" identifier < (cast_expression "(code *)0x2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) || (parenthesized_expression "(__ptr == initialize_traps)" ( (binary_expression "__ptr == initialize_traps" identifier == identifier) ))) )) (compound_statement "{\n    (&trap_list)[sig] = 1;\n  }" { (expression_statement "(&trap_list)[sig] = 1;" (assignment_expression "(&trap_list)[sig] = 1" (subscript_expression "(&trap_list)[sig]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) }) (else_clause "else {\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }" else (compound_statement "{\n    free(__ptr);\n    uVar1 = sigmodes[sig];\n    (&trap_list)[sig] = 1;\n    if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar1 = sigmodes[sig];" (assignment_expression "uVar1 = sigmodes[sig]" identifier = (subscript_expression "sigmodes[sig]" identifier [ identifier ])) ;) (expression_statement "(&trap_list)[sig] = 1;" (assignment_expression "(&trap_list)[sig] = 1" (subscript_expression "(&trap_list)[sig]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (if_statement "if ((uVar1 & 0x10) != 0) goto LAB_0008c06e;" if (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0008c06e;" goto statement_identifier ;)) }))) (expression_statement "sigmodes[sig] = uVar1 | 0x41;" (assignment_expression "sigmodes[sig] = uVar1 | 0x41" (subscript_expression "sigmodes[sig]" identifier [ identifier ]) = (binary_expression "uVar1 | 0x41" identifier | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void ignore_signal(int param_1)\n\n{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}\n\n" (function_definition "void ignore_signal(int param_1)\n\n{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" primitive_type (function_declarator "ignore_signal(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" { (declaration "code *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" if (parenthesized_expression "(((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0))" ( (binary_expression "((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" (parenthesized_expression "((2 < param_1 - 0x41U) && (param_1 != 0))" ( (binary_expression "(2 < param_1 - 0x41U) && (param_1 != 0)" (parenthesized_expression "(2 < param_1 - 0x41U)" ( (binary_expression "2 < param_1 - 0x41U" number_literal < (binary_expression "param_1 - 0x41U" identifier - number_literal)) )) && (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) ))) )) || (parenthesized_expression "(uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" ( (comma_expression "uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) , (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" { (if_statement "if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" if (parenthesized_expression "(((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps))" ( (binary_expression "((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)" (parenthesized_expression "((param_1 == 0) || (0x40 < param_1))" ( (binary_expression "(param_1 == 0) || (0x40 < param_1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(0x40 < param_1)" ( (binary_expression "0x40 < param_1" number_literal < identifier) ))) )) || (parenthesized_expression "((code *)(&original_signals)[param_1] != initialize_traps)" ( (binary_expression "(code *)(&original_signals)[param_1] != initialize_traps" (cast_expression "(code *)(&original_signals)[param_1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ])) != identifier) ))) )) (compound_statement "{\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" { (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) }) (else_clause "else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" else (compound_statement "{\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" { (expression_statement "uVar1 = set_signal_handler(param_1,0);" (assignment_expression "uVar1 = set_signal_handler(param_1,0)" identifier = (call_expression "set_signal_handler(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (expression_statement "(&original_signals)[param_1] = uVar1;" (assignment_expression "(&original_signals)[param_1] = uVar1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ]) = identifier) ;) (expression_statement "set_signal_handler(param_1,uVar1);" (call_expression "set_signal_handler(param_1,uVar1)" identifier (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) (if_statement "if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" if (parenthesized_expression "((&original_signals)[param_1] == 1)" ( (binary_expression "(&original_signals)[param_1] == 1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" ( (pointer_expression "&original_signals" & identifier) )) [ identifier ]) == number_literal) )) (compound_statement "{\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" { (expression_statement "uVar2 = uVar2 | 2;" (assignment_expression "uVar2 = uVar2 | 2" identifier = (binary_expression "uVar2 | 2" identifier | number_literal)) ;) (expression_statement "(&DAT_001790e0)[param_1] = uVar2;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = identifier) ;) })) }))) (if_statement "if ((uVar2 & 0x42) != 0) {\n      return;\n    }" if (parenthesized_expression "((uVar2 & 0x42) != 0)" ( (binary_expression "(uVar2 & 0x42) != 0" (parenthesized_expression "(uVar2 & 0x42)" ( (binary_expression "uVar2 & 0x42" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (if_statement "if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" if (parenthesized_expression "((uVar2 & 8) == 0)" ( (binary_expression "(uVar2 & 8) == 0" (parenthesized_expression "(uVar2 & 8)" ( (binary_expression "uVar2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" { (expression_statement "set_signal_handler(param_1,1);" (call_expression "set_signal_handler(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) })) })) (if_statement "if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" if (parenthesized_expression "((uVar2 & 0x10) != 0)" ( (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" ( (binary_expression "uVar2 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" { (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (labeled_statement "LAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;" statement_identifier : (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x61;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x61" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = (binary_expression "uVar2 | 0x61" identifier | number_literal)) ;)) (return_statement "return;" return ;) })) (if_statement "if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" if (parenthesized_expression "((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps))" ( (binary_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)" (parenthesized_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2))" ( (binary_expression "((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" (parenthesized_expression "((uVar2 & 1) == 0)" ( (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" ( (comma_expression "__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2" (assignment_expression "__ptr = (code *)(&trap_list)[param_1]" identifier = (cast_expression "(code *)(&trap_list)[param_1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]))) , (binary_expression "__ptr < (code *)0x2" identifier < (cast_expression "(code *)0x2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) || (parenthesized_expression "(__ptr == initialize_traps)" ( (binary_expression "__ptr == initialize_traps" identifier == identifier) ))) )) (compound_statement "{\n    (&trap_list)[param_1] = 1;\n  }" { (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) }) (else_clause "else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" else (compound_statement "{\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" identifier = (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ])) ;) (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" ( (pointer_expression "&trap_list" & identifier) )) [ identifier ]) = number_literal) ;) (if_statement "if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;" if (parenthesized_expression "((uVar2 & 0x10) != 0)" ( (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" ( (binary_expression "uVar2 & 0x10" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_0008c06e;" goto statement_identifier ;)) }))) (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x41;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x41" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" ( (pointer_expression "&DAT_001790e0" & identifier) )) [ identifier ]) = (binary_expression "uVar2 | 0x41" identifier | number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) != IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = IDENT) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (binary_expression IDENT | LIT)) ;)) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]))) , (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) || (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ IDENT ]) = (binary_expression IDENT | LIT)) ;) (return_statement return ;) })))
(function_definition "void ignore_signal(int param_1)\n\n{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" (primitive_type "void") (function_declarator "ignore_signal(int param_1)" (identifier "ignore_signal") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  code *__ptr;\n  undefined4 uVar1;\n  uint uVar2;\n  \n  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }\n  if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }\n  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }\n  (&DAT_001790e0)[param_1] = uVar2 | 0x41;\n  return;\n}" ({ "{") (declaration "code *__ptr;" (type_identifier "code") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" (if "if") (parenthesized_expression "(((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0))" (( "(") (binary_expression "((2 < param_1 - 0x41U) && (param_1 != 0)) ||\n     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" (parenthesized_expression "((2 < param_1 - 0x41U) && (param_1 != 0))" (( "(") (binary_expression "(2 < param_1 - 0x41U) && (param_1 != 0)" (parenthesized_expression "(2 < param_1 - 0x41U)" (( "(") (binary_expression "2 < param_1 - 0x41U" (number_literal "2") (< "<") (binary_expression "param_1 - 0x41U" (identifier "param_1") (- "-") (number_literal "0x41U"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)" (( "(") (comma_expression "uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (, ",") (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" (( "(") (binary_expression "uVar2 & 0x40" (identifier "uVar2") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }\n    if ((uVar2 & 0x42) != 0) {\n      return;\n    }\n    if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n  }" ({ "{") (if_statement "if (((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)) {\n      uVar2 = (&DAT_001790e0)[param_1];\n    }\n    else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" (if "if") (parenthesized_expression "(((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps))" (( "(") (binary_expression "((param_1 == 0) || (0x40 < param_1)) ||\n       ((code *)(&original_signals)[param_1] != initialize_traps)" (parenthesized_expression "((param_1 == 0) || (0x40 < param_1))" (( "(") (binary_expression "(param_1 == 0) || (0x40 < param_1)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(0x40 < param_1)" (( "(") (binary_expression "0x40 < param_1" (number_literal "0x40") (< "<") (identifier "param_1")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((code *)(&original_signals)[param_1] != initialize_traps)" (( "(") (binary_expression "(code *)(&original_signals)[param_1] != initialize_traps" (cast_expression "(code *)(&original_signals)[param_1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" (( "(") (pointer_expression "&original_signals" (& "&") (identifier "original_signals")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (!= "!=") (identifier "initialize_traps")) () ")"))) () ")")) (compound_statement "{\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" ({ "{") (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" (else "else") (compound_statement "{\n      uVar1 = set_signal_handler(param_1,0);\n      (&original_signals)[param_1] = uVar1;\n      set_signal_handler(param_1,uVar1);\n      uVar2 = (&DAT_001790e0)[param_1];\n      if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }\n    }" ({ "{") (expression_statement "uVar1 = set_signal_handler(param_1,0);" (assignment_expression "uVar1 = set_signal_handler(param_1,0)" (identifier "uVar1") (= "=") (call_expression "set_signal_handler(param_1,0)" (identifier "set_signal_handler") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "(&original_signals)[param_1] = uVar1;" (assignment_expression "(&original_signals)[param_1] = uVar1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" (( "(") (pointer_expression "&original_signals" (& "&") (identifier "original_signals")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "set_signal_handler(param_1,uVar1);" (call_expression "set_signal_handler(param_1,uVar1)" (identifier "set_signal_handler") (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (if_statement "if ((&original_signals)[param_1] == 1) {\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" (if "if") (parenthesized_expression "((&original_signals)[param_1] == 1)" (( "(") (binary_expression "(&original_signals)[param_1] == 1" (subscript_expression "(&original_signals)[param_1]" (parenthesized_expression "(&original_signals)" (( "(") (pointer_expression "&original_signals" (& "&") (identifier "original_signals")) () ")")) ([ "[") (identifier "param_1") (] "]")) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        uVar2 = uVar2 | 2;\n        (&DAT_001790e0)[param_1] = uVar2;\n      }" ({ "{") (expression_statement "uVar2 = uVar2 | 2;" (assignment_expression "uVar2 = uVar2 | 2" (identifier "uVar2") (= "=") (binary_expression "uVar2 | 2" (identifier "uVar2") (| "|") (number_literal "2"))) (; ";")) (expression_statement "(&DAT_001790e0)[param_1] = uVar2;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (} "}")))) (if_statement "if ((uVar2 & 0x42) != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "((uVar2 & 0x42) != 0)" (( "(") (binary_expression "(uVar2 & 0x42) != 0" (parenthesized_expression "(uVar2 & 0x42)" (( "(") (binary_expression "uVar2 & 0x42" (identifier "uVar2") (& "&") (number_literal "0x42")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((uVar2 & 8) == 0) {\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" (if "if") (parenthesized_expression "((uVar2 & 8) == 0)" (( "(") (binary_expression "(uVar2 & 8) == 0" (parenthesized_expression "(uVar2 & 8)" (( "(") (binary_expression "uVar2 & 8" (identifier "uVar2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      set_signal_handler(param_1,1);\n      uVar2 = (&DAT_001790e0)[param_1];\n    }" ({ "{") (expression_statement "set_signal_handler(param_1,1);" (call_expression "set_signal_handler(param_1,1)" (identifier "set_signal_handler") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if ((uVar2 & 0x10) != 0) {\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" (if "if") (parenthesized_expression "((uVar2 & 0x10) != 0)" (( "(") (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" (( "(") (binary_expression "uVar2 & 0x10" (identifier "uVar2") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (&trap_list)[param_1] = 1;\nLAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;\n    return;\n  }" ({ "{") (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" (( "(") (pointer_expression "&trap_list" (& "&") (identifier "trap_list")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_0008c06e:\n    (&DAT_001790e0)[param_1] = uVar2 | 0x61;" (statement_identifier "LAB_0008c06e") (: ":") (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x61;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x61" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (binary_expression "uVar2 | 0x61" (identifier "uVar2") (| "|") (number_literal "0x61"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)) {\n    (&trap_list)[param_1] = 1;\n  }\n  else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" (if "if") (parenthesized_expression "((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps))" (( "(") (binary_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||\n     (__ptr == initialize_traps)" (parenthesized_expression "(((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2))" (( "(") (binary_expression "((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" (parenthesized_expression "((uVar2 & 1) == 0)" (( "(") (binary_expression "(uVar2 & 1) == 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)" (( "(") (comma_expression "__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2" (assignment_expression "__ptr = (code *)(&trap_list)[param_1]" (identifier "__ptr") (= "=") (cast_expression "(code *)(&trap_list)[param_1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" (( "(") (pointer_expression "&trap_list" (& "&") (identifier "trap_list")) () ")")) ([ "[") (identifier "param_1") (] "]")))) (, ",") (binary_expression "__ptr < (code *)0x2" (identifier "__ptr") (< "<") (cast_expression "(code *)0x2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x2")))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(__ptr == initialize_traps)" (( "(") (binary_expression "__ptr == initialize_traps" (identifier "__ptr") (== "==") (identifier "initialize_traps")) () ")"))) () ")")) (compound_statement "{\n    (&trap_list)[param_1] = 1;\n  }" ({ "{") (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" (( "(") (pointer_expression "&trap_list" (& "&") (identifier "trap_list")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" (else "else") (compound_statement "{\n    free(__ptr);\n    uVar2 = (&DAT_001790e0)[param_1];\n    (&trap_list)[param_1] = 1;\n    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;\n  }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "uVar2 = (&DAT_001790e0)[param_1];" (assignment_expression "uVar2 = (&DAT_001790e0)[param_1]" (identifier "uVar2") (= "=") (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]"))) (; ";")) (expression_statement "(&trap_list)[param_1] = 1;" (assignment_expression "(&trap_list)[param_1] = 1" (subscript_expression "(&trap_list)[param_1]" (parenthesized_expression "(&trap_list)" (( "(") (pointer_expression "&trap_list" (& "&") (identifier "trap_list")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;" (if "if") (parenthesized_expression "((uVar2 & 0x10) != 0)" (( "(") (binary_expression "(uVar2 & 0x10) != 0" (parenthesized_expression "(uVar2 & 0x10)" (( "(") (binary_expression "uVar2 & 0x10" (identifier "uVar2") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0008c06e;" (goto "goto") (statement_identifier "LAB_0008c06e") (; ";"))) (} "}")))) (expression_statement "(&DAT_001790e0)[param_1] = uVar2 | 0x41;" (assignment_expression "(&DAT_001790e0)[param_1] = uVar2 | 0x41" (subscript_expression "(&DAT_001790e0)[param_1]" (parenthesized_expression "(&DAT_001790e0)" (( "(") (pointer_expression "&DAT_001790e0" (& "&") (identifier "DAT_001790e0")) () ")")) ([ "[") (identifier "param_1") (] "]")) (= "=") (binary_expression "uVar2 | 0x41" (identifier "uVar2") (| "|") (number_literal "0x41"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_1)

{
  type_1 *var_5;
  type_2 *handler;
  type_3 var_2;
  
  if (((2 < var_1 - 0x41U) && (var_1 != 0)) || (var_2 = sigmodes[var_1], (var_2 & 0x40) != 0)) {
    if (((var_1 == 0) || (0x40 < var_1)) || ((type_1 *)original_signals[var_1] != var_3)) {
      var_2 = sigmodes[var_1];
    }
    else {
      handler = var_4(var_1,(type_2 *)0x0);
      original_signals[var_1] = handler;
      var_4(var_1,handler);
      var_2 = sigmodes[var_1];
      if (original_signals[var_1] == (type_2 *)0x1) {
        var_2 = var_2 | 2;
        sigmodes[var_1] = var_2;
      }
    }
    if ((var_2 & 0x42) != 0) {
      return;
    }
    if ((var_2 & 8) == 0) {
      var_4(var_1,(type_2 *)0x1);
      var_2 = sigmodes[var_1];
    }
  }
  if ((var_2 & 0x10) != 0) {
    (&trap_list)[var_1] = 1;
LAB_0008c06e:
    sigmodes[var_1] = var_2 | 0x61;
    return;
  }
  if ((((var_2 & 1) == 0) || (var_5 = (type_1 *)(&trap_list)[var_1], var_5 < (type_1 *)0x2)) ||
     (var_5 == var_3)) {
    (&trap_list)[var_1] = 1;
  }
  else {
    var_6(var_5);
    var_2 = sigmodes[var_1];
    (&trap_list)[var_1] = 1;
    if ((var_2 & 0x10) != 0) goto LAB_0008c06e;
  }
  sigmodes[var_1] = var_2 | 0x41;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier))) right: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier))) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (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 (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

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

void MASKED(int param_1)

{
  code *__ptr;
  undefined4 uVar1;
  uint uVar2;
  
  if (((2 < param_1 - 0x41U) && (param_1 != 0)) ||
     (uVar2 = (&DAT_001790e0)[param_1], (uVar2 & 0x40) != 0)) {
    if (((param_1 == 0) || (0x40 < param_1)) ||
       ((code *)(&original_signals)[param_1] != initialize_traps)) {
      uVar2 = (&DAT_001790e0)[param_1];
    }
    else {
      uVar1 = set_signal_handler(param_1,0);
      (&original_signals)[param_1] = uVar1;
      set_signal_handler(param_1,uVar1);
      uVar2 = (&DAT_001790e0)[param_1];
      if ((&original_signals)[param_1] == 1) {
        uVar2 = uVar2 | 2;
        (&DAT_001790e0)[param_1] = uVar2;
      }
    }
    if ((uVar2 & 0x42) != 0) {
      return;
    }
    if ((uVar2 & 8) == 0) {
      set_signal_handler(param_1,1);
      uVar2 = (&DAT_001790e0)[param_1];
    }
  }
  if ((uVar2 & 0x10) != 0) {
    (&trap_list)[param_1] = 1;
LAB_0008c06e:
    (&DAT_001790e0)[param_1] = uVar2 | 0x61;
    return;
  }
  if ((((uVar2 & 1) == 0) || (__ptr = (code *)(&trap_list)[param_1], __ptr < (code *)0x2)) ||
     (__ptr == initialize_traps)) {
    (&trap_list)[param_1] = 1;
  }
  else {
    free(__ptr);
    uVar2 = (&DAT_001790e0)[param_1];
    (&trap_list)[param_1] = 1;
    if ((uVar2 & 0x10) != 0) goto LAB_0008c06e;
  }
  (&DAT_001790e0)[param_1] = uVar2 | 0x41;
  return;
}

