
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void process_signals(void)

{
  int iVar1;
  undefined *puVar2;
  sig_atomic_t __sig;
  int in_GS_OFFSET;
  sigset_t oldset;
  
  puVar2 = PTR_stdout_0003afcc;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  while ((interrupt_signal != 0 || (stop_signal_count != 0))) {
    if (used_color != false) {
      restore_default_color();
    }
    fflush_unlocked(*(FILE **)puVar2);
    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);
    __sig = interrupt_signal;
    if (stop_signal_count == 0) {
      signal(interrupt_signal,(__sighandler_t)0x0);
    }
    else {
      stop_signal_count = stop_signal_count + -1;
      __sig = 0x13;
    }
    raise(__sig);
    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_00015cc0(void)

{
  undefined *puVar1;
  int __sig;
  int in_GS_OFFSET;
  sigset_t local_a0;
  int local_20;
  undefined4 uStack_14;
  
  puVar1 = PTR_stdout_0003afcc;
  uStack_14 = 0x15cc9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {
    if (DAT_0003c2e0 != '\0') {
      FUN_00015c80();
    }
    fflush_unlocked(*(FILE **)puVar1);
    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);
    __sig = DAT_0003c200;
    if (DAT_0003c1fc == 0) {
      signal(DAT_0003c200,(__sighandler_t)0x0);
    }
    else {
      DAT_0003c1fc = DAT_0003c1fc + -1;
      __sig = 0x13;
    }
    raise(__sig);
    sigprocmask(2,&local_a0,(sigset_t *)0x0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014250
ADD EBX,0x25337
SUB ESP,0x9c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x8c],EAX
XOR EAX,EAX
LEA ESI,[ESP + 0xc]
MOV EDI,dword ptr [EBX + 0xffffffcc]
JMP 0x00015d46
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00012220
ADD ESP,0xc
LEA EAX,[EBX + 0x1220]
PUSH ESI
PUSH EAX
PUSH 0x0
CALL 0x000120e0
MOV EBP,dword ptr [EBX + 0x1200]
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x11fc]
TEST EAX,EAX
JZ 0x00015d70
SUB EAX,0x1
MOV EBP,0x13
MOV dword ptr [EBX + 0x11fc],EAX
SUB ESP,0xc
PUSH EBP
CALL 0x00012070
ADD ESP,0xc
PUSH 0x0
PUSH ESI
PUSH 0x2
CALL 0x000120e0
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x1200]
TEST EAX,EAX
JNZ 0x00015d5a
MOV EAX,dword ptr [EBX + 0x11fc]
TEST EAX,EAX
JZ 0x00015d80
CMP byte ptr [EBX + 0x12e0],0x0
JZ 0x00015cf0
CALL 0x00015c80
JMP 0x00015cf0
SUB ESP,0x8
PUSH 0x0
PUSH EBP
CALL 0x000121b0
ADD ESP,0x10
JMP 0x00015d2d
MOV EAX,dword ptr [ESP + 0x8c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00015d9b
ADD ESP,0x9c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x0002b190
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00015cc0(void)\n\n{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}\n\n" comment (function_definition "void FUN_00015cc0(void)\n\n{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" primitive_type (function_declarator "FUN_00015cc0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0002b190();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int __sig;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sigset_t local_a0;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_stdout_0003afcc;" (assignment_expression "puVar1 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "uStack_14 = 0x15cc9;" (assignment_expression "uStack_14 = 0x15cc9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (while_statement "while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" while (parenthesized_expression "((DAT_0003c200 != 0 || (DAT_0003c1fc != 0)))" ( (parenthesized_expression "(DAT_0003c200 != 0 || (DAT_0003c1fc != 0))" ( (binary_expression "DAT_0003c200 != 0 || (DAT_0003c1fc != 0)" (binary_expression "DAT_0003c200 != 0" identifier != number_literal) || (parenthesized_expression "(DAT_0003c1fc != 0)" ( (binary_expression "DAT_0003c1fc != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" { (if_statement "if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }" if (parenthesized_expression "(DAT_0003c2e0 != '\0')" ( (binary_expression "DAT_0003c2e0 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00015c80();\n    }" { (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "fflush_unlocked(*(FILE **)puVar1);" (call_expression "fflush_unlocked(*(FILE **)puVar1)" identifier (argument_list "(*(FILE **)puVar1)" ( (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);" (call_expression "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0)" identifier (argument_list "(0,(sigset_t *)&DAT_0003c220,&local_a0)" ( number_literal , (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , (pointer_expression "&local_a0" & identifier) ))) ;) (expression_statement "__sig = DAT_0003c200;" (assignment_expression "__sig = DAT_0003c200" identifier = identifier) ;) (if_statement "if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" if (parenthesized_expression "(DAT_0003c1fc == 0)" ( (binary_expression "DAT_0003c1fc == 0" identifier == number_literal) )) (compound_statement "{\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }" { (expression_statement "signal(DAT_0003c200,(__sighandler_t)0x0);" (call_expression "signal(DAT_0003c200,(__sighandler_t)0x0)" identifier (argument_list "(DAT_0003c200,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) }) (else_clause "else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" else (compound_statement "{\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" { (expression_statement "DAT_0003c1fc = DAT_0003c1fc + -1;" (assignment_expression "DAT_0003c1fc = DAT_0003c1fc + -1" identifier = (binary_expression "DAT_0003c1fc + -1" identifier + number_literal)) ;) (expression_statement "__sig = 0x13;" (assignment_expression "__sig = 0x13" identifier = number_literal) ;) }))) (expression_statement "raise(__sig);" (call_expression "raise(__sig)" identifier (argument_list "(__sig)" ( identifier ))) ;) (expression_statement "sigprocmask(2,&local_a0,(sigset_t *)0x0);" (call_expression "sigprocmask(2,&local_a0,(sigset_t *)0x0)" identifier (argument_list "(2,&local_a0,(sigset_t *)0x0)" ( number_literal , (pointer_expression "&local_a0" & identifier) , (cast_expression "(sigset_t *)0x0" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid process_signals(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  sig_atomic_t __sig;\n  int in_GS_OFFSET;\n  sigset_t oldset;\n  \n  puVar2 = PTR_stdout_0003afcc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((interrupt_signal != 0 || (stop_signal_count != 0))) {\n    if (used_color != false) {\n      restore_default_color();\n    }\n    fflush_unlocked(*(FILE **)puVar2);\n    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);\n    __sig = interrupt_signal;\n    if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void process_signals(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  sig_atomic_t __sig;\n  int in_GS_OFFSET;\n  sigset_t oldset;\n  \n  puVar2 = PTR_stdout_0003afcc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((interrupt_signal != 0 || (stop_signal_count != 0))) {\n    if (used_color != false) {\n      restore_default_color();\n    }\n    fflush_unlocked(*(FILE **)puVar2);\n    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);\n    __sig = interrupt_signal;\n    if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "process_signals(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  sig_atomic_t __sig;\n  int in_GS_OFFSET;\n  sigset_t oldset;\n  \n  puVar2 = PTR_stdout_0003afcc;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((interrupt_signal != 0 || (stop_signal_count != 0))) {\n    if (used_color != false) {\n      restore_default_color();\n    }\n    fflush_unlocked(*(FILE **)puVar2);\n    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);\n    __sig = interrupt_signal;\n    if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "sig_atomic_t __sig;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sigset_t oldset;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_stdout_0003afcc;" (assignment_expression "puVar2 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (while_statement "while ((interrupt_signal != 0 || (stop_signal_count != 0))) {\n    if (used_color != false) {\n      restore_default_color();\n    }\n    fflush_unlocked(*(FILE **)puVar2);\n    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);\n    __sig = interrupt_signal;\n    if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);\n  }" while (parenthesized_expression "((interrupt_signal != 0 || (stop_signal_count != 0)))" ( (parenthesized_expression "(interrupt_signal != 0 || (stop_signal_count != 0))" ( (binary_expression "interrupt_signal != 0 || (stop_signal_count != 0)" (binary_expression "interrupt_signal != 0" identifier != number_literal) || (parenthesized_expression "(stop_signal_count != 0)" ( (binary_expression "stop_signal_count != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n    if (used_color != false) {\n      restore_default_color();\n    }\n    fflush_unlocked(*(FILE **)puVar2);\n    sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);\n    __sig = interrupt_signal;\n    if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);\n  }" { (if_statement "if (used_color != false) {\n      restore_default_color();\n    }" if (parenthesized_expression "(used_color != false)" ( (binary_expression "used_color != false" identifier != false) )) (compound_statement "{\n      restore_default_color();\n    }" { (expression_statement "restore_default_color();" (call_expression "restore_default_color()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "fflush_unlocked(*(FILE **)puVar2);" (call_expression "fflush_unlocked(*(FILE **)puVar2)" identifier (argument_list "(*(FILE **)puVar2)" ( (pointer_expression "*(FILE **)puVar2" * (cast_expression "(FILE **)puVar2" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset);" (call_expression "sigprocmask(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset)" identifier (argument_list "(0,(sigset_t *)&caught_signals,(sigset_t *)&oldset)" ( number_literal , (cast_expression "(sigset_t *)&caught_signals" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&caught_signals" & identifier)) , (cast_expression "(sigset_t *)&oldset" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldset" & identifier)) ))) ;) (expression_statement "__sig = interrupt_signal;" (assignment_expression "__sig = interrupt_signal" identifier = identifier) ;) (if_statement "if (stop_signal_count == 0) {\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }\n    else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }" if (parenthesized_expression "(stop_signal_count == 0)" ( (binary_expression "stop_signal_count == 0" identifier == number_literal) )) (compound_statement "{\n      signal(interrupt_signal,(__sighandler_t)0x0);\n    }" { (expression_statement "signal(interrupt_signal,(__sighandler_t)0x0);" (call_expression "signal(interrupt_signal,(__sighandler_t)0x0)" identifier (argument_list "(interrupt_signal,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) }) (else_clause "else {\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }" else (compound_statement "{\n      stop_signal_count = stop_signal_count + -1;\n      __sig = 0x13;\n    }" { (expression_statement "stop_signal_count = stop_signal_count + -1;" (assignment_expression "stop_signal_count = stop_signal_count + -1" identifier = (binary_expression "stop_signal_count + -1" identifier + number_literal)) ;) (expression_statement "__sig = 0x13;" (assignment_expression "__sig = 0x13" identifier = number_literal) ;) }))) (expression_statement "raise(__sig);" (call_expression "raise(__sig)" identifier (argument_list "(__sig)" ( identifier ))) ;) (expression_statement "sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0);" (call_expression "sigprocmask(2,(sigset_t *)&oldset,(sigset_t *)0x0)" identifier (argument_list "(2,(sigset_t *)&oldset,(sigset_t *)0x0)" ( number_literal , (cast_expression "(sigset_t *)&oldset" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&oldset" & identifier)) , (cast_expression "(sigset_t *)0x0" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_00015cc0(void)\n\n{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}\n\n" (function_definition "void FUN_00015cc0(void)\n\n{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" primitive_type (function_declarator "FUN_00015cc0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int __sig;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sigset_t local_a0;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_stdout_0003afcc;" (assignment_expression "puVar1 = PTR_stdout_0003afcc" identifier = identifier) ;) (expression_statement "uStack_14 = 0x15cc9;" (assignment_expression "uStack_14 = 0x15cc9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (while_statement "while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" while (parenthesized_expression "((DAT_0003c200 != 0 || (DAT_0003c1fc != 0)))" ( (parenthesized_expression "(DAT_0003c200 != 0 || (DAT_0003c1fc != 0))" ( (binary_expression "DAT_0003c200 != 0 || (DAT_0003c1fc != 0)" (binary_expression "DAT_0003c200 != 0" identifier != number_literal) || (parenthesized_expression "(DAT_0003c1fc != 0)" ( (binary_expression "DAT_0003c1fc != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" { (if_statement "if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }" if (parenthesized_expression "(DAT_0003c2e0 != '\0')" ( (binary_expression "DAT_0003c2e0 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00015c80();\n    }" { (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "fflush_unlocked(*(FILE **)puVar1);" (call_expression "fflush_unlocked(*(FILE **)puVar1)" identifier (argument_list "(*(FILE **)puVar1)" ( (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);" (call_expression "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0)" identifier (argument_list "(0,(sigset_t *)&DAT_0003c220,&local_a0)" ( number_literal , (cast_expression "(sigset_t *)&DAT_0003c220" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0003c220" & identifier)) , (pointer_expression "&local_a0" & identifier) ))) ;) (expression_statement "__sig = DAT_0003c200;" (assignment_expression "__sig = DAT_0003c200" identifier = identifier) ;) (if_statement "if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" if (parenthesized_expression "(DAT_0003c1fc == 0)" ( (binary_expression "DAT_0003c1fc == 0" identifier == number_literal) )) (compound_statement "{\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }" { (expression_statement "signal(DAT_0003c200,(__sighandler_t)0x0);" (call_expression "signal(DAT_0003c200,(__sighandler_t)0x0)" identifier (argument_list "(DAT_0003c200,(__sighandler_t)0x0)" ( identifier , (cast_expression "(__sighandler_t)0x0" ( (type_descriptor "__sighandler_t" type_identifier) ) number_literal) ))) ;) }) (else_clause "else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" else (compound_statement "{\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" { (expression_statement "DAT_0003c1fc = DAT_0003c1fc + -1;" (assignment_expression "DAT_0003c1fc = DAT_0003c1fc + -1" identifier = (binary_expression "DAT_0003c1fc + -1" identifier + number_literal)) ;) (expression_statement "__sig = 0x13;" (assignment_expression "__sig = 0x13" identifier = number_literal) ;) }))) (expression_statement "raise(__sig);" (call_expression "raise(__sig)" identifier (argument_list "(__sig)" ( identifier ))) ;) (expression_statement "sigprocmask(2,&local_a0,(sigset_t *)0x0);" (call_expression "sigprocmask(2,&local_a0,(sigset_t *)0x0)" identifier (argument_list "(2,&local_a0,(sigset_t *)0x0)" ( number_literal , (pointer_expression "&local_a0" & identifier) , (cast_expression "(sigset_t *)0x0" ( (type_descriptor "sigset_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_00015cc0(void)\n\n{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" (primitive_type "void") (function_declarator "FUN_00015cc0(void)" (identifier "FUN_00015cc0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int __sig;\n  int in_GS_OFFSET;\n  sigset_t local_a0;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar1 = PTR_stdout_0003afcc;\n  uStack_14 = 0x15cc9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0002b190();\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int __sig;" (primitive_type "int") (identifier "__sig") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "sigset_t local_a0;" (type_identifier "sigset_t") (identifier "local_a0") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "puVar1 = PTR_stdout_0003afcc;" (assignment_expression "puVar1 = PTR_stdout_0003afcc" (identifier "puVar1") (= "=") (identifier "PTR_stdout_0003afcc")) (; ";")) (expression_statement "uStack_14 = 0x15cc9;" (assignment_expression "uStack_14 = 0x15cc9" (identifier "uStack_14") (= "=") (number_literal "0x15cc9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (while_statement "while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" (while "while") (parenthesized_expression "((DAT_0003c200 != 0 || (DAT_0003c1fc != 0)))" (( "(") (parenthesized_expression "(DAT_0003c200 != 0 || (DAT_0003c1fc != 0))" (( "(") (binary_expression "DAT_0003c200 != 0 || (DAT_0003c1fc != 0)" (binary_expression "DAT_0003c200 != 0" (identifier "DAT_0003c200") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(DAT_0003c1fc != 0)" (( "(") (binary_expression "DAT_0003c1fc != 0" (identifier "DAT_0003c1fc") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n    if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }\n    fflush_unlocked(*(FILE **)puVar1);\n    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);\n    __sig = DAT_0003c200;\n    if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }\n    raise(__sig);\n    sigprocmask(2,&local_a0,(sigset_t *)0x0);\n  }" ({ "{") (if_statement "if (DAT_0003c2e0 != '\0') {\n      FUN_00015c80();\n    }" (if "if") (parenthesized_expression "(DAT_0003c2e0 != '\0')" (( "(") (binary_expression "DAT_0003c2e0 != '\0'" (identifier "DAT_0003c2e0") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00015c80();\n    }" ({ "{") (expression_statement "FUN_00015c80();" (call_expression "FUN_00015c80()" (identifier "FUN_00015c80") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "fflush_unlocked(*(FILE **)puVar1);" (call_expression "fflush_unlocked(*(FILE **)puVar1)" (identifier "fflush_unlocked") (argument_list "(*(FILE **)puVar1)" (( "(") (pointer_expression "*(FILE **)puVar1" (* "*") (cast_expression "(FILE **)puVar1" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (expression_statement "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);" (call_expression "sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0)" (identifier "sigprocmask") (argument_list "(0,(sigset_t *)&DAT_0003c220,&local_a0)" (( "(") (number_literal "0") (, ",") (cast_expression "(sigset_t *)&DAT_0003c220" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0003c220" (& "&") (identifier "DAT_0003c220"))) (, ",") (pointer_expression "&local_a0" (& "&") (identifier "local_a0")) () ")"))) (; ";")) (expression_statement "__sig = DAT_0003c200;" (assignment_expression "__sig = DAT_0003c200" (identifier "__sig") (= "=") (identifier "DAT_0003c200")) (; ";")) (if_statement "if (DAT_0003c1fc == 0) {\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }\n    else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" (if "if") (parenthesized_expression "(DAT_0003c1fc == 0)" (( "(") (binary_expression "DAT_0003c1fc == 0" (identifier "DAT_0003c1fc") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      signal(DAT_0003c200,(__sighandler_t)0x0);\n    }" ({ "{") (expression_statement "signal(DAT_0003c200,(__sighandler_t)0x0);" (call_expression "signal(DAT_0003c200,(__sighandler_t)0x0)" (identifier "signal") (argument_list "(DAT_0003c200,(__sighandler_t)0x0)" (( "(") (identifier "DAT_0003c200") (, ",") (cast_expression "(__sighandler_t)0x0" (( "(") (type_descriptor "__sighandler_t" (type_identifier "__sighandler_t")) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" (else "else") (compound_statement "{\n      DAT_0003c1fc = DAT_0003c1fc + -1;\n      __sig = 0x13;\n    }" ({ "{") (expression_statement "DAT_0003c1fc = DAT_0003c1fc + -1;" (assignment_expression "DAT_0003c1fc = DAT_0003c1fc + -1" (identifier "DAT_0003c1fc") (= "=") (binary_expression "DAT_0003c1fc + -1" (identifier "DAT_0003c1fc") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "__sig = 0x13;" (assignment_expression "__sig = 0x13" (identifier "__sig") (= "=") (number_literal "0x13")) (; ";")) (} "}")))) (expression_statement "raise(__sig);" (call_expression "raise(__sig)" (identifier "raise") (argument_list "(__sig)" (( "(") (identifier "__sig") () ")"))) (; ";")) (expression_statement "sigprocmask(2,&local_a0,(sigset_t *)0x0);" (call_expression "sigprocmask(2,&local_a0,(sigset_t *)0x0)" (identifier "sigprocmask") (argument_list "(2,&local_a0,(sigset_t *)0x0)" (( "(") (number_literal "2") (, ",") (pointer_expression "&local_a0" (& "&") (identifier "local_a0")) (, ",") (cast_expression "(sigset_t *)0x0" (( "(") (type_descriptor "sigset_t *" (type_identifier "sigset_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0002b190();" (call_expression "FUN_0002b190()" (identifier "FUN_0002b190") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_10;
  type_1 *puVar2;
  type_2 __sig;
  int var_1;
  type_3 oldset;
  
  puVar2 = PTR_stdout_0003afcc;
  var_10 = *(int *)(var_1 + 0x14);
  while ((var_2 != 0 || (var_3 != 0))) {
    if (var_4 != false) {
      var_5();
    }
    var_6(*(type_4 **)puVar2);
    var_7(0,(type_3 *)&caught_signals,(type_3 *)&oldset);
    __sig = var_2;
    if (var_3 == 0) {
      var_8(var_2,(type_5)0x0);
    }
    else {
      var_3 = var_3 + -1;
      __sig = 0x13;
    }
    var_9(__sig);
    var_7(2,(type_3 *)&oldset,(type_3 *)0x0);
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(void)

{
  undefined *puVar1;
  int __sig;
  int in_GS_OFFSET;
  sigset_t local_a0;
  int local_20;
  undefined4 uStack_14;
  
  puVar1 = PTR_stdout_0003afcc;
  uStack_14 = 0x15cc9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  while ((DAT_0003c200 != 0 || (DAT_0003c1fc != 0))) {
    if (DAT_0003c2e0 != '\0') {
      FUN_00015c80();
    }
    fflush_unlocked(*(FILE **)puVar1);
    sigprocmask(0,(sigset_t *)&DAT_0003c220,&local_a0);
    __sig = DAT_0003c200;
    if (DAT_0003c1fc == 0) {
      signal(DAT_0003c200,(__sighandler_t)0x0);
    }
    else {
      DAT_0003c1fc = DAT_0003c1fc + -1;
      __sig = 0x13;
    }
    raise(__sig);
    sigprocmask(2,&local_a0,(sigset_t *)0x0);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0002b190();
}

