#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ SIGALRM;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIGINT;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ del_tracers();
int /*<<< orphan*/ rel_devpaths();
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stop_tracers();
int /*<<< orphan*/ wait_tracers();
void exit_tracing(void) {
  signal(SIGINT, SIG_IGN);
  signal(SIGHUP, SIG_IGN);
  signal(SIGTERM, SIG_IGN);
  signal(SIGALRM, SIG_IGN);
  stop_tracers();
  wait_tracers();
  del_tracers();
  rel_devpaths();
}


x86 assembly (clang, -O0):
<exit_tracing>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e7d(%rip),%rax
mov    (%rax),%edi
mov    0x2e64(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
mov    0x2e4d(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
mov    0x2e36(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
mov    0x2e1f(%rip),%rax
mov    (%rax),%esi
call   1060 <signal@plt>
mov    $0x0,%al
call   1040 <stop_tracers@plt>
mov    $0x0,%al
call   1030 <wait_tracers@plt>
mov    $0x0,%al
call   1070 <del_tracers@plt>
mov    $0x0,%al
call   1050 <rel_devpaths@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<exit_tracing>:
push   %rbx
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
mov    0x2e67(%rip),%rbx
mov    (%rbx),%esi
call   1060 <signal@plt>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1060 <signal@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1060 <signal@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%esi
call   1060 <signal@plt>
xor    %eax,%eax
call   1040 <stop_tracers@plt>
xor    %eax,%eax
call   1030 <wait_tracers@plt>
xor    %eax,%eax
call   1070 <del_tracers@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <rel_devpaths@plt>

LLVM IR (-O0):
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIGHUP = global i32 0
@SIGTERM = global i32 0
@SIGALRM = global i32 0
define void @exit_tracing() {
%1 = load i32, i32* @SIGINT
%2 = load i32, i32* @SIG_IGN
%3 = call i32 @signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGHUP
%5 = load i32, i32* @SIG_IGN
%6 = call i32 @signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGTERM
%8 = load i32, i32* @SIG_IGN
%9 = call i32 @signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGALRM
%11 = load i32, i32* @SIG_IGN
%12 = call i32 @signal(i32 %10, i32 %11)
%13 = call i32 (...) @stop_tracers()
%14 = call i32 (...) @wait_tracers()
%15 = call i32 (...) @del_tracers()
%16 = call i32 (...) @rel_devpaths()
ret void
}

LLVM IR (-O2):
@SIGINT = global i32 0
@SIG_IGN = global i32 0
@SIGHUP = global i32 0
@SIGTERM = global i32 0
@SIGALRM = global i32 0
define void @exit_tracing() {
%1 = load i32, i32* @SIGINT
%2 = load i32, i32* @SIG_IGN
%3 = tail call i32 @signal(i32 %1, i32 %2)
%4 = load i32, i32* @SIGHUP
%5 = load i32, i32* @SIG_IGN
%6 = tail call i32 @signal(i32 %4, i32 %5)
%7 = load i32, i32* @SIGTERM
%8 = load i32, i32* @SIG_IGN
%9 = tail call i32 @signal(i32 %7, i32 %8)
%10 = load i32, i32* @SIGALRM
%11 = load i32, i32* @SIG_IGN
%12 = tail call i32 @signal(i32 %10, i32 %11)
%13 = tail call i32 (...) @stop_tracers()
%14 = tail call i32 (...) @wait_tracers()
%15 = tail call i32 (...) @del_tracers()
%16 = tail call i32 (...) @rel_devpaths()
ret void
}