	.file	"178266665.c"
	.intel_syntax noprefix
	.text
	.globl	gettid
	.type	gettid, @function
gettid:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gettid, .-gettid
	.globl	register_tls
	.type	register_tls, @function
register_tls:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -304[rbp], 100
	mov	rax, QWORD PTR -304[rbp]
	sal	rax, 4
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -288[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L6
	mov	eax, 0
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -304[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -280[rbp]
	mov	rdx, QWORD PTR -288[rbp]
	mov	QWORD PTR 16[rax], rdx
	lea	rax, -272[rbp]
	mov	rdx, rax
	mov	eax, 0
	mov	ecx, 32
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	rax, QWORD PTR -280[rbp]
	lea	rdx, -272[rbp]
	lea	rcx, 1[rdx]
	mov	edx, 24
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	BYTE PTR -272[rbp], 6
	lea	rax, -272[rbp]
	mov	rdx, rax
	mov	esi, 3735928833
	mov	edi, 0
	mov	eax, 0
	call	ioctl@PLT
	mov	rax, QWORD PTR -280[rbp]
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	register_tls, .-register_tls
	.globl	register_span
	.type	register_span, @function
register_span:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	call	gettid
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rdx]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	register_span, .-register_span
	.section	.rodata
	.align 8
.LC0:
	.string	"Please pass a span Id and a trace Id to exec_span and a command\n"
.LC1:
	.string	"Failed to register TLS\n"
	.text
	.globl	span_exec
	.type	span_exec, @function
span_exec:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 3
	jg	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, 0
	call	register_tls
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	register_span
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execv@PLT
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	span_exec, .-span_exec
	.section	.rodata
.LC2:
	.string	"Unable to create file `%s`\n"
	.text
	.type	thread_open, @function
thread_open:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	register_span
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	thread_open, .-thread_open
	.globl	span_open
	.type	span_open, @function
span_open:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 3
	jg	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L22
.L18:
	mov	eax, 0
	call	register_tls
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L22
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, thread_open[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	jns	.L21
	mov	eax, 1
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
.L22:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	span_open, .-span_open
	.globl	ptrace_traceme
	.type	ptrace_traceme, @function
ptrace_traceme:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L25
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	ptrace@PLT
	mov	edi, 19
	call	raise@PLT
	jmp	.L26
.L25:
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 42
	mov	esi, eax
	mov	edi, 7
	mov	eax, 0
	call	ptrace@PLT
.L26:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ptrace_traceme, .-ptrace_traceme
	.globl	test_signal_sigusr
	.type	test_signal_sigusr, @function
test_signal_sigusr:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L29
	mov	edi, 5
	call	sleep@PLT
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	mov	edi, 1
	call	sleep@PLT
.L30:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	test_signal_sigusr, .-test_signal_sigusr
	.section	.rodata
.LC3:
	.string	"Failed to setuid 1 (%s)\n"
	.text
	.globl	test_signal_eperm
	.type	test_signal_eperm, @function
test_signal_eperm:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	getpid@PLT
	mov	DWORD PTR -8[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L33
	mov	edi, 1
	call	setuid@PLT
	test	eax, eax
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L36
.L33:
	mov	edi, 0
	call	wait@PLT
.L36:
	mov	eax, 0
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	test_signal_eperm, .-test_signal_eperm
	.section	.rodata
	.align 8
.LC4:
	.string	"%s: Please pass a test case in: sigusr, eperm.\n"
.LC5:
	.string	"sigusr"
.LC6:
	.string	"eperm"
.LC7:
	.string	"%s: Unknown argument: %s.\n"
	.text
	.globl	test_signal
	.type	test_signal, @function
test_signal:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L38
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __FUNCTION__.2[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	call	test_signal_sigusr
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L41
	call	test_signal_eperm
	jmp	.L39
.L41:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __FUNCTION__.2[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	test_signal, .-test_signal
	.section	.rodata
.LC8:
	.string	"/tmp/splice_test"
.LC9:
	.string	"open failed"
.LC10:
	.string	"pipe failed"
	.text
	.globl	test_splice
	.type	test_splice, @function
test_splice:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 448
	mov	esi, 64
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L46
.L43:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L46
.L45:
	mov	QWORD PTR -24[rbp], 1
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	r9d, 0
	mov	r8d, 1
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	call	splice@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 5
	call	sleep@PLT
	lea	rdi, .LC8[rip]
	call	remove@PLT
	mov	eax, 0
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	test_splice, .-test_splice
	.section	.rodata
	.align 8
.LC11:
	.string	"%s: Please pass a path to mkdirat.\n"
.LC12:
	.string	"setregid failed"
.LC13:
	.string	"setreuid failed"
	.align 8
.LC14:
	.string	"mkdirat succeeded even though we expected it to fail"
	.text
	.globl	test_mkdirat_error
	.type	test_mkdirat_error, @function
test_mkdirat_error:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L49
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __FUNCTION__.1[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L50
.L49:
	mov	esi, 1
	mov	edi, 1
	call	setregid@PLT
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L50
.L51:
	mov	esi, 1
	mov	edi, 1
	call	setreuid@PLT
	test	eax, eax
	je	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L50
.L52:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 511
	mov	rsi, rax
	mov	edi, 0
	call	mkdirat@PLT
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L50
.L53:
	mov	eax, 0
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	test_mkdirat_error, .-test_mkdirat_error
	.section	.rodata
	.align 8
.LC15:
	.string	"%s: Please pass a syscall name, real and effective id.\n"
.LC16:
	.string	"setuid"
.LC17:
	.string	"setreuid"
.LC18:
	.string	"setresuid"
.LC19:
	.string	"setfsuid"
.LC20:
	.string	"setgid"
.LC21:
	.string	"setregid"
.LC22:
	.string	"setresgid"
.LC23:
	.string	"setfsgid"
.LC24:
	.string	"Unknown subcommand `%s`\n"
.LC25:
	.string	"%s failed"
	.text
	.globl	test_process_set
	.type	test_process_set, @function
test_process_set:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 4
	je	.L55
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __FUNCTION__.0[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L56
.L55:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	setuid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L57:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setreuid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L59:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	setresuid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L60:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L61
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	setfsuid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L61:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	setgid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L62:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L63
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setregid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L63:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	setresgid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L64:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L65
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	setfsgid@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L58
.L65:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L56
.L58:
	cmp	DWORD PTR -20[rbp], 0
	je	.L66
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L56
.L66:
	mov	eax, 0
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	test_process_set, .-test_process_set
	.section	.rodata
.LC26:
	.string	"Please pass a command\n"
.LC27:
	.string	"check"
.LC28:
	.string	"span-exec"
.LC29:
	.string	"ptrace-traceme"
.LC30:
	.string	"span-open"
.LC31:
	.string	"signal"
.LC32:
	.string	"splice"
.LC33:
	.string	"mkdirat-error"
.LC34:
	.string	"process-credentials"
.LC35:
	.string	"Unknown command `%s`\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L68
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L69
.L68:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L70
	mov	eax, 0
	jmp	.L69
.L70:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	span_exec
	jmp	.L69
.L71:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L72
	mov	eax, 0
	call	ptrace_traceme
	jmp	.L69
.L72:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	span_open
	jmp	.L69
.L73:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	test_signal
	jmp	.L69
.L74:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L75
	mov	eax, 0
	call	test_splice
	jmp	.L69
.L75:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L76
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	test_mkdirat_error
	jmp	.L69
.L76:
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L77
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	rsi, rdx
	mov	edi, eax
	call	test_process_set
	jmp	.L69
.L77:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__FUNCTION__.2, @object
	.size	__FUNCTION__.2, 12
__FUNCTION__.2:
	.string	"test_signal"
	.align 16
	.type	__FUNCTION__.1, @object
	.size	__FUNCTION__.1, 19
__FUNCTION__.1:
	.string	"test_mkdirat_error"
	.align 16
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 17
__FUNCTION__.0:
	.string	"test_process_set"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"178266665.c"
	.text
	.align	2
	.global	gettid
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettid, %function
gettid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #224
	bl	syscall
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gettid, .-gettid
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	register_tls
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_tls, %function
register_tls:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #100
	mov	r3, #0
	str	r2, [fp, #-284]
	str	r3, [fp, #-280]
	sub	r1, fp, #284
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #4
	orr	r3, r3, r0, lsr #28
	lsl	r2, r0, #4
	str	r2, [fp, #-276]
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-276]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-276]
	ldr	r2, [fp, #-292]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	b	.L7
.L6:
	ldr	r1, [fp, #-288]
	sub	r3, fp, #284
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-292]
	str	r2, [r3, #16]
	sub	r3, fp, #268
	mov	r0, r3
	ldr	r3, .L9+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #268
	add	r3, r3, #1
	mov	r2, #24
	ldr	r1, [fp, #-288]
	mov	r0, r3
	bl	memcpy
	mov	r3, #6
	strb	r3, [fp, #-268]
	sub	r3, fp, #268
	mov	r2, r3
	ldr	r1, .L9+8
	mov	r0, #0
	bl	ioctl
	ldr	r3, [fp, #-288]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	257
	.word	-559038463
	.size	register_tls, .-register_tls
	.global	__aeabi_uldivmod
	.align	2
	.global	register_span
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_span, %function
register_span:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	bl	gettid
	mov	r3, r0
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	mov	r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-8]
	add	r1, r2, r3
	ldr	r3, [fp, #-20]
	mov	r2, r3
	mov	r3, #0
	stm	r1, {r2-r3}
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	register_span, .-register_span
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Please pass a span Id and a trace Id to exec_span a"
	.ascii	"nd a command\012\000"
	.align	2
.LC2:
	.ascii	"Failed to register TLS\012\000"
	.text
	.align	2
	.global	span_exec
	.syntax unified
	.arm
	.fpu softvfp
	.type	span_exec, %function
span_exec:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bgt	.L13
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L16+4
	bl	fwrite
	mov	r3, #1
	b	.L14
.L13:
	bl	register_tls
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L16+8
	bl	fwrite
	mov	r3, #1
	b	.L14
.L15:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	register_span
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	execv
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	span_exec, .-span_exec
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Unable to create file `%s`\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_open, %function
thread_open:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	register_span
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, #64
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L19
	ldr	r3, .L21
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+4
	bl	fprintf
	mov	r3, #0
	b	.L20
.L19:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, #0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	stderr
	.word	.LC3
	.size	thread_open, .-thread_open
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	span_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	span_open, %function
span_open:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bgt	.L24
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L30+8
	bl	fwrite
	mov	r3, #1
	b	.L28
.L24:
	bl	register_tls
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L30+12
	bl	fwrite
	mov	r3, #1
	b	.L28
.L26:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	sub	r0, fp, #24
	ldr	r2, .L30+16
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	mov	r3, #1
	b	.L28
.L27:
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	thread_open
	.size	span_open, .-span_open
	.align	2
	.global	ptrace_traceme
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptrace_traceme, %function
ptrace_traceme:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	ptrace
	mov	r0, #19
	bl	raise
	b	.L34
.L33:
	mov	r0, #0
	bl	wait
	mov	r3, #0
	mov	r2, #42
	ldr	r1, [fp, #-8]
	mov	r0, #7
	bl	ptrace
.L34:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ptrace_traceme, .-ptrace_traceme
	.align	2
	.global	test_signal_sigusr
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal_sigusr, %function
test_signal_sigusr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
	mov	r0, #5
	bl	sleep
	b	.L38
.L37:
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	kill
	mov	r0, #1
	bl	sleep
.L38:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	test_signal_sigusr, .-test_signal_sigusr
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Failed to setuid 1 (%s)\012\000"
	.text
	.align	2
	.global	test_signal_eperm
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal_eperm, %function
test_signal_eperm:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	bl	getpid
	str	r0, [fp, #-20]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L41
	mov	r0, #1
	bl	setuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L45
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L45+4
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L43
.L42:
	mov	r1, #9
	ldr	r0, [fp, #-20]
	bl	kill
	mov	r0, #1
	bl	sleep
	b	.L44
.L41:
	mov	r0, #0
	bl	wait
.L44:
	mov	r3, #0
.L43:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L46:
	.align	2
.L45:
	.word	stderr
	.word	.LC5
	.size	test_signal_eperm, .-test_signal_eperm
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s: Please pass a test case in: sigusr, eperm.\012\000"
	.align	2
.LC7:
	.ascii	"sigusr\000"
	.align	2
.LC8:
	.ascii	"eperm\000"
	.align	2
.LC9:
	.ascii	"%s: Unknown argument: %s.\012\000"
	.text
	.align	2
	.global	test_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal, %function
test_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L48
	ldr	r3, .L52
	ldr	r3, [r3]
	ldr	r2, .L52+4
	ldr	r1, .L52+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L49
.L48:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L52+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	bl	test_signal_sigusr
	mov	r3, r0
	b	.L49
.L50:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L52+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	bl	test_signal_eperm
	mov	r3, r0
	b	.L49
.L51:
	ldr	r3, .L52
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L52+4
	ldr	r1, .L52+20
	bl	fprintf
	mov	r3, #1
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	stderr
	.word	__FUNCTION__.7854
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	test_signal, .-test_signal
	.section	.rodata
	.align	2
.LC10:
	.ascii	"/tmp/splice_test\000"
	.align	2
.LC11:
	.ascii	"open failed\000"
	.align	2
.LC12:
	.ascii	"pipe failed\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_splice
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_splice, %function
test_splice:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #448
	mov	r1, #64
	ldr	r0, .L60+4
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L55
	ldr	r3, .L60+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L60+12
	bl	fwrite
	mov	r3, #1
	b	.L58
.L55:
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L60+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L60+16
	bl	fwrite
	mov	r3, #1
	b	.L58
.L57:
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	splice
	ldr	r0, [fp, #-32]
	bl	close
	mov	r0, #5
	bl	sleep
	ldr	r0, .L60+4
	bl	remove
	mov	r3, #0
.L58:
	ldr	r2, .L60
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC13
	.word	.LC10
	.word	stderr
	.word	.LC11
	.word	.LC12
	.size	test_splice, .-test_splice
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%s: Please pass a path to mkdirat.\012\000"
	.align	2
.LC15:
	.ascii	"setregid failed\000"
	.align	2
.LC16:
	.ascii	"setreuid failed\000"
	.align	2
.LC17:
	.ascii	"mkdirat succeeded even though we expected it to fai"
	.ascii	"l\000"
	.text
	.align	2
	.global	test_mkdirat_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_mkdirat_error, %function
test_mkdirat_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L63
	ldr	r3, .L68
	ldr	r3, [r3]
	ldr	r2, .L68+4
	ldr	r1, .L68+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L64
.L63:
	mov	r1, #1
	mov	r0, #1
	bl	setregid
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L68+12
	bl	fwrite
	mov	r3, #1
	b	.L64
.L65:
	mov	r1, #1
	mov	r0, #1
	bl	setreuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L68+16
	bl	fwrite
	mov	r3, #1
	b	.L64
.L66:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L68+20
	mov	r1, r3
	mov	r0, #0
	bl	mkdirat
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L68+24
	bl	fwrite
	mov	r3, #1
	b	.L64
.L67:
	mov	r3, #0
.L64:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	__FUNCTION__.7864
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	511
	.word	.LC17
	.size	test_mkdirat_error, .-test_mkdirat_error
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%s: Please pass a syscall name, real and effective "
	.ascii	"id.\012\000"
	.align	2
.LC19:
	.ascii	"setuid\000"
	.align	2
.LC20:
	.ascii	"setreuid\000"
	.align	2
.LC21:
	.ascii	"setresuid\000"
	.align	2
.LC22:
	.ascii	"setfsuid\000"
	.align	2
.LC23:
	.ascii	"setgid\000"
	.align	2
.LC24:
	.ascii	"setregid\000"
	.align	2
.LC25:
	.ascii	"setresgid\000"
	.align	2
.LC26:
	.ascii	"setfsgid\000"
	.align	2
.LC27:
	.ascii	"Unknown subcommand `%s`\012\000"
	.align	2
.LC28:
	.ascii	"%s failed\000"
	.text
	.align	2
	.global	test_process_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_process_set, %function
test_process_set:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L71
	ldr	r3, .L83
	ldr	r3, [r3]
	ldr	r2, .L83+4
	ldr	r1, .L83+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L72
.L71:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r1, .L83+12
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	setuid
	str	r0, [fp, #-20]
	b	.L74
.L73:
	ldr	r1, .L83+16
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	setreuid
	str	r0, [fp, #-20]
	b	.L74
.L75:
	ldr	r1, .L83+20
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r2, #0
	mov	r0, r3
	bl	setresuid
	str	r0, [fp, #-20]
	b	.L74
.L76:
	ldr	r1, .L83+24
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	setfsuid
	str	r0, [fp, #-20]
	b	.L74
.L77:
	ldr	r1, .L83+28
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	setgid
	str	r0, [fp, #-20]
	b	.L74
.L78:
	ldr	r1, .L83+32
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r2
	mov	r0, r3
	bl	setregid
	str	r0, [fp, #-20]
	b	.L74
.L79:
	ldr	r1, .L83+36
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L80
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r2, #0
	mov	r0, r3
	bl	setresgid
	str	r0, [fp, #-20]
	b	.L74
.L80:
	ldr	r1, .L83+40
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	setfsgid
	str	r0, [fp, #-20]
	b	.L74
.L81:
	ldr	r3, .L83
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L83+44
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L72
.L74:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L82
	ldr	r3, .L83
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L83+48
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L72
.L82:
	mov	r3, #0
.L72:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	stderr
	.word	__FUNCTION__.7869
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	test_process_set, .-test_process_set
	.section	.rodata
	.align	2
.LC29:
	.ascii	"Please pass a command\012\000"
	.align	2
.LC30:
	.ascii	"check\000"
	.align	2
.LC31:
	.ascii	"span-exec\000"
	.align	2
.LC32:
	.ascii	"ptrace-traceme\000"
	.align	2
.LC33:
	.ascii	"span-open\000"
	.align	2
.LC34:
	.ascii	"signal\000"
	.align	2
.LC35:
	.ascii	"splice\000"
	.align	2
.LC36:
	.ascii	"mkdirat-error\000"
	.align	2
.LC37:
	.ascii	"process-credentials\000"
	.align	2
.LC38:
	.ascii	"Unknown command `%s`\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L86
	ldr	r3, .L96
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L96+4
	bl	fwrite
	mov	r3, #1
	b	.L87
.L86:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r1, .L96+8
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	mov	r3, #0
	b	.L87
.L88:
	ldr	r1, .L96+12
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L89
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	span_exec
	mov	r3, r0
	b	.L87
.L89:
	ldr	r1, .L96+16
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
	bl	ptrace_traceme
	mov	r3, r0
	b	.L87
.L90:
	ldr	r1, .L96+20
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	span_open
	mov	r3, r0
	b	.L87
.L91:
	ldr	r1, .L96+24
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L92
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	test_signal
	mov	r3, r0
	b	.L87
.L92:
	ldr	r1, .L96+28
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	bl	test_splice
	mov	r3, r0
	b	.L87
.L93:
	ldr	r1, .L96+32
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	test_mkdirat_error
	mov	r3, r0
	b	.L87
.L94:
	ldr	r1, .L96+36
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	test_process_set
	mov	r3, r0
	b	.L87
.L95:
	ldr	r3, .L96
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L96+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	stderr
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.7854, %object
	.size	__FUNCTION__.7854, 12
__FUNCTION__.7854:
	.ascii	"test_signal\000"
	.align	2
	.type	__FUNCTION__.7864, %object
	.size	__FUNCTION__.7864, 19
__FUNCTION__.7864:
	.ascii	"test_mkdirat_error\000"
	.align	2
	.type	__FUNCTION__.7869, %object
	.size	__FUNCTION__.7869, 17
__FUNCTION__.7869:
	.ascii	"test_process_set\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
