	.file	"1000858.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"FAILED: errno=%d (%s)\n"
	.text
	.type	check_cond, @function
check_cond:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L2:
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_cond, .-check_cond
	.type	drop_sig, @function
drop_sig:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	drop_sig, .-drop_sig
	.local	out_fd
	.comm	out_fd,4,4
	.section	.rodata
.LC1:
	.string	"the_stack_data/1000858.c"
	.align 8
.LC2:
	.string	"\"FAILED: !\" && check_cond(0 == pipe(pipe_fds))"
	.align 8
.LC3:
	.string	"\"FAILED: !\" && check_cond(size > 0)"
	.align 8
.LC4:
	.string	"\"FAILED: !\" && check_cond(ret >= 0)"
	.align 8
.LC5:
	.string	"\"FAILED: !\" && check_cond(ret2 == ret)"
	.text
	.type	do_echo, @function
do_echo:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.23[rip]
	mov	edx, 82
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1032
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cdqe
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	setg	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.23[rip]
	mov	edx, 84
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L7:
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	r9d, 1
	mov	r8, rcx
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	call	splice@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L9
.L8:
	mov	rax, QWORD PTR -32[rbp]
	not	rax
	shr	rax, 63
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L10
	lea	rcx, __PRETTY_FUNCTION__.23[rip]
	mov	edx, 91
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L10:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR out_fd[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	r9d, 3
	mov	r8, rcx
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	call	splice@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L9
.L11:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.23[rip]
	mov	edx, 97
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L9:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	do_echo, .-do_echo
	.section	.rodata
.LC6:
	.string	"/sys/kernel/debug"
	.align 8
.LC7:
	.string	"/sys/kernel/debug not found; debugfs not mounted?\n"
	.align 8
.LC8:
	.string	"Cannot chdir to /sys/kernel/debug; run this as root\n"
	.align 8
.LC9:
	.string	"\"FAILED: !\" && check_cond(ret == 0)"
.LC10:
	.string	"tracing"
	.align 8
.LC11:
	.string	"/sys/kernel/debug/tracing not found; tracing not enabled?\n"
	.text
	.type	chdir_to_tracing, @function
chdir_to_tracing:
.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, 16
	lea	rdi, .LC6[rip]
	call	chdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 52
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L18
	lea	rcx, __PRETTY_FUNCTION__.22[rip]
	mov	edx, 112
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L18:
	lea	rdi, .LC10[rip]
	call	chdir@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 58
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L21
	lea	rcx, __PRETTY_FUNCTION__.22[rip]
	mov	edx, 120
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	chdir_to_tracing, .-chdir_to_tracing
	.section	.rodata
	.align 8
.LC12:
	.string	"\"FAILED: !\" && check_cond(ret == write(final_fd, buf, ret))"
	.text
	.type	copy_file_data, @function
copy_file_data:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 48
	mov	DWORD PTR -65572[rbp], edi
	mov	DWORD PTR -65576[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L27:
	lea	rcx, -65552[rbp]
	mov	eax, DWORD PTR -65576[rbp]
	mov	edx, 65536
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -65560[rbp], rax
	mov	rax, QWORD PTR -65560[rbp]
	not	rax
	shr	rax, 63
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.21[rip]
	mov	edx, 127
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L23:
	cmp	QWORD PTR -65560[rbp], 0
	je	.L30
	mov	rdx, QWORD PTR -65560[rbp]
	lea	rcx, -65552[rbp]
	mov	eax, DWORD PTR -65572[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -65560[rbp], rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L27
	lea	rcx, __PRETTY_FUNCTION__.21[rip]
	mov	edx, 131
	lea	rsi, .LC1[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L30:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	copy_file_data, .-copy_file_data
	.section	.rodata
	.align 8
.LC13:
	.string	"\"FAILED: !\" && check_cond(fd >= 0)"
	.align 8
.LC14:
	.string	"\"FAILED: !\" && check_cond(0 == lseek(fd, 0, 0))"
	.align 8
.LC15:
	.string	"\"FAILED: !\" && check_cond(size_len == write(final_fd, &len, size_len))"
	.align 8
.LC16:
	.string	"\"FAILED: !\" && check_cond(0 == close(fd))"
	.text
	.type	copy_trace_file, @function
copy_trace_file:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1096
	.cfi_offset 3, -24
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	DWORD PTR -1096[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1104[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1076[rbp], eax
	mov	eax, DWORD PTR -1076[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L32
	lea	rcx, __PRETTY_FUNCTION__.20[rip]
	mov	edx, 138
	lea	rsi, .LC1[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L32:
	mov	QWORD PTR -1072[rbp], 0
.L36:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1076[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	not	rax
	shr	rax, 63
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L33
	lea	rcx, __PRETTY_FUNCTION__.20[rip]
	mov	edx, 142
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L33:
	cmp	QWORD PTR -1064[rbp], 0
	je	.L42
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	mov	QWORD PTR -1072[rbp], rax
	jmp	.L36
.L42:
	nop
	mov	eax, DWORD PTR -1076[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L37
	lea	rcx, __PRETTY_FUNCTION__.20[rip]
	mov	edx, 148
	lea	rsi, .LC1[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L37:
	mov	eax, DWORD PTR -1096[rbp]
	movsx	rbx, eax
	mov	eax, DWORD PTR -1096[rbp]
	movsx	rdx, eax
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rbx, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L38
	lea	rcx, __PRETTY_FUNCTION__.20[rip]
	mov	edx, 151
	lea	rsi, .LC1[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L38:
	mov	edx, DWORD PTR -1076[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	mov	esi, edx
	mov	edi, eax
	call	copy_file_data
	mov	eax, DWORD PTR -1076[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L43
	lea	rcx, __PRETTY_FUNCTION__.20[rip]
	mov	edx, 153
	lea	rsi, .LC1[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L43:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	copy_trace_file, .-copy_trace_file
	.section	.rodata
	.align 8
.LC17:
	.string	"\"FAILED: !\" && check_cond((ssize_t)strlen(bare_name) + 1 == write(final_fd, bare_name, strlen(bare_name) + 1))"
	.text
	.type	copy_trace_file_with_name, @function
copy_trace_file_with_name:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -40[rbp], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L45
	add	QWORD PTR -24[rbp], 1
	jmp	.L46
.L45:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
.L46:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rbx, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L47
	lea	rcx, __PRETTY_FUNCTION__.19[rip]
	mov	edx, 164
	lea	rsi, .LC1[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L47:
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	copy_trace_file
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	copy_trace_file_with_name, .-copy_trace_file_with_name
	.section	.rodata
	.align 8
.LC18:
	.string	"\"FAILED: !\" && check_cond(d != ((void *)0))"
.LC19:
	.string	"%s/%s/format"
	.align 8
.LC20:
	.string	"\"FAILED: !\" && check_cond(0 == closedir(d))"
	.text
	.type	iterate_events, @function
iterate_events:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -56[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L49
	lea	rcx, __PRETTY_FUNCTION__.18[rip]
	mov	edx, 172
	lea	rsi, .LC1[rip]
	lea	rdi, .LC18[rip]
	call	__assert_fail@PLT
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	closedir@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L51
	jmp	.L57
.L50:
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	js	.L53
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L53
	cmp	DWORD PTR -56[rbp], 0
	je	.L54
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	copy_trace_file
.L54:
	add	DWORD PTR -40[rbp], 1
.L53:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L49
.L57:
	lea	rcx, __PRETTY_FUNCTION__.18[rip]
	mov	edx, 188
	lea	rsi, .LC1[rip]
	lea	rdi, .LC20[rip]
	call	__assert_fail@PLT
.L51:
	mov	eax, DWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	iterate_events, .-iterate_events
	.section	.rodata
.LC21:
	.string	"/tmp/ftrace_helper_out"
	.align 8
.LC22:
	.string	"\"FAILED: !\" && check_cond(out_fd >= 0)"
	.text
	.type	open_output_fd, @function
open_output_fd:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 420
	mov	esi, 578
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR out_fd[rip], eax
	mov	eax, DWORD PTR out_fd[rip]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L60
	lea	rcx, __PRETTY_FUNCTION__.17[rip]
	mov	edx, 194
	lea	rsi, .LC1[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L60:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	open_output_fd, .-open_output_fd
	.section	.rodata
	.align 8
.LC23:
	.string	"\"FAILED: !\" && check_cond(offset != (off_t)-1)"
	.text
	.type	file_offset, @function
file_offset:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L62
	lea	rcx, __PRETTY_FUNCTION__.16[rip]
	mov	edx, 199
	lea	rsi, .LC1[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L62:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	file_offset, .-file_offset
	.globl	page_size
	.type	page_size, @function
page_size:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR size.15[rip]
	test	rax, rax
	jne	.L65
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR size.15[rip], rax
.L65:
	mov	rax, QWORD PTR size.15[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	page_size, .-page_size
	.section	.rodata
	.align 8
.LC24:
	.string	"\"FAILED: !\" && check_cond(pad == write(fd, buf, pad))"
	.text
	.type	pad_output_to_page_size, @function
pad_output_to_page_size:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	page_size
	lea	rdx, 8[rax]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L68:
	cmp	rsp, rdx
	je	.L69
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L68
.L69:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L70
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L70:
	mov	rax, rsp
	add	rax, 15
	shr	rax, 4
	sal	rax, 4
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	file_offset
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	call	page_size
	mov	rdx, QWORD PTR -40[rbp]
	add	rax, rdx
	lea	rbx, -1[rax]
	call	page_size
	sub	rax, 1
	not	rax
	and	rax, rbx
	sub	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -32[rbp], rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L71
	lea	rcx, __PRETTY_FUNCTION__.14[rip]
	mov	edx, 216
	lea	rsi, .LC1[rip]
	lea	rdi, .LC24[rip]
	call	__assert_fail@PLT
.L71:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	pad_output_to_page_size, .-pad_output_to_page_size
	.section	.rodata
	.align 8
.LC25:
	.string	"\"FAILED: !\" && check_cond(0 == unlink(\"/tmp/ftrace_helper_out\"))"
	.align 8
.LC26:
	.string	"\"FAILED: !\" && check_cond(final_fd >= 0)"
	.align 8
.LC27:
	.string	"\"FAILED: !\" && check_cond(sizeof(magic) == write(final_fd, magic, sizeof(magic)))"
	.align 8
.LC28:
	.string	"\"FAILED: !\" && check_cond(sizeof(psize) == write(final_fd, &psize, sizeof(psize)))"
.LC29:
	.string	"events/header_page"
.LC30:
	.string	"events/header_event"
.LC31:
	.string	"events/ftrace"
	.align 8
.LC32:
	.string	"\"FAILED: !\" && check_cond(sizeof(ftrace_count) == write(final_fd, &ftrace_count, sizeof(ftrace_count)))"
	.align 8
.LC33:
	.string	"\"FAILED: !\" && check_cond(sizeof(zero) == write(final_fd, &zero, sizeof(zero)))"
.LC34:
	.string	"/proc/kallsyms"
.LC35:
	.string	"printk_formats"
.LC36:
	.string	"saved_cmdlines"
	.align 8
.LC37:
	.string	"\"FAILED: !\" && check_cond(sizeof(cpus) == write(final_fd, &cpus, sizeof(cpus)))"
	.align 8
.LC38:
	.string	"\"FAILED: !\" && check_cond(sizeof(options) == write(final_fd, &options, sizeof(options)))"
	.align 8
.LC39:
	.string	"\"FAILED: !\" && check_cond(sizeof(options_done) == write(final_fd, &options_done, sizeof(options_done)))"
	.align 8
.LC40:
	.string	"\"FAILED: !\" && check_cond(sizeof(fly_record) == write(final_fd, fly_record, sizeof(fly_record)))"
	.align 8
.LC41:
	.string	"\"FAILED: !\" && check_cond(sizeof(cpu_data) == write(final_fd, cpu_data, sizeof(cpu_data)))"
.LC42:
	.string	"trace_clock"
	.align 8
.LC43:
	.string	"\"FAILED: !\" && check_cond(0 == lseek(out_fd, 0, 0))"
	.align 8
.LC44:
	.string	"\"FAILED: !\" && check_cond(cpu_data_offset == (uint64_t)lseek(final_fd, cpu_data_offset, 0))"
	.align 8
.LC45:
	.string	"\"FAILED: !\" && check_cond(0 == close(final_fd))"
	.text
	.type	write_final_output, @function
write_final_output:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	page_size
	mov	DWORD PTR -52[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, .LC21[rip]
	call	unlink@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L75
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 237
	lea	rsi, .LC1[rip]
	lea	rdi, .LC25[rip]
	call	__assert_fail@PLT
.L75:
	mov	edx, 420
	mov	esi, 577
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L76
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 239
	lea	rsi, .LC1[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L76:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 14
	lea	rsi, magic.12[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 14
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L77
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 241
	lea	rsi, .LC1[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L77:
	lea	rcx, -52[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L78
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 242
	lea	rsi, .LC1[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L78:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 8
	lea	rsi, .LC29[rip]
	mov	edi, eax
	call	copy_trace_file_with_name
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 8
	lea	rsi, .LC30[rip]
	mov	edi, eax
	call	copy_trace_file_with_name
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 0
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	iterate_events
	mov	DWORD PTR -48[rbp], eax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L79
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 247
	lea	rsi, .LC1[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L79:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 1
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	iterate_events
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	lea	rsi, zero.11[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L80
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 251
	lea	rsi, .LC1[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L80:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	lea	rsi, .LC34[rip]
	mov	edi, eax
	call	copy_trace_file
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	lea	rsi, .LC35[rip]
	mov	edi, eax
	call	copy_trace_file
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 8
	lea	rsi, .LC36[rip]
	mov	edi, eax
	call	copy_trace_file
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 4
	lea	rsi, cpus.10[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 4
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L81
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 255
	lea	rsi, .LC1[rip]
	lea	rdi, .LC37[rip]
	call	__assert_fail@PLT
.L81:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 10
	lea	rsi, options.9[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 10
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L82
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 256
	lea	rsi, .LC1[rip]
	lea	rdi, .LC38[rip]
	call	__assert_fail@PLT
.L82:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 2
	lea	rsi, options_done.8[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 2
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L83
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 257
	lea	rsi, .LC1[rip]
	lea	rdi, .LC39[rip]
	call	__assert_fail@PLT
.L83:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 10
	lea	rsi, fly_record.7[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 10
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L84
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 259
	lea	rsi, .LC1[rip]
	lea	rdi, .LC40[rip]
	call	__assert_fail@PLT
.L84:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	file_offset
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 16
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L85
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 261
	lea	rsi, .LC1[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L85:
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 8
	lea	rsi, .LC42[rip]
	mov	edi, eax
	call	copy_trace_file
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	pad_output_to_page_size
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR out_fd[rip]
	mov	edi, eax
	call	file_offset
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR out_fd[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	test	rax, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L86
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 265
	lea	rsi, .LC1[rip]
	lea	rdi, .LC43[rip]
	call	__assert_fail@PLT
.L86:
	mov	edx, DWORD PTR out_fd[rip]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, edx
	mov	edi, eax
	call	copy_file_data
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	rdx, QWORD PTR -40[rbp]
	cmp	rax, rdx
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L87
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 267
	lea	rsi, .LC1[rip]
	lea	rdi, .LC44[rip]
	call	__assert_fail@PLT
.L87:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 16
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L88
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 269
	lea	rsi, .LC1[rip]
	lea	rdi, .LC41[rip]
	call	__assert_fail@PLT
.L88:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L91
	lea	rcx, __PRETTY_FUNCTION__.13[rip]
	mov	edx, 270
	lea	rsi, .LC1[rip]
	lea	rdi, .LC45[rip]
	call	__assert_fail@PLT
.L91:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	write_final_output, .-write_final_output
	.data
	.align 4
	.type	control_fd, @object
	.size	control_fd, 4
control_fd:
	.long	-1
	.local	control_buf
	.comm	control_buf,1024,32
	.local	control_buf_len
	.comm	control_buf_len,8,8
	.section	.rodata
	.align 8
.LC46:
	.string	"\"FAILED: !\" && check_cond(listen_fd >= 0)"
.LC47:
	.string	"Socket path %s too long\n"
	.align 8
.LC48:
	.string	"\"FAILED: !\" && check_cond(0 == bind(listen_fd, (struct sockaddr*)&addr, sizeof(addr)))"
	.align 8
.LC49:
	.string	"\"FAILED: !\" && check_cond(0 == chmod(path, 0666))"
	.align 8
.LC50:
	.string	"\"FAILED: !\" && check_cond(0 == listen(listen_fd, 1))"
	.align 8
.LC51:
	.string	"\"FAILED: !\" && check_cond(control_fd >= 0)"
	.align 8
.LC52:
	.string	"\"FAILED: !\" && check_cond(0 == close(listen_fd))"
	.align 8
.LC53:
	.string	"\"FAILED: !\" && check_cond(0 == unlink(path))"
	.text
	.type	open_control_fd, @function
open_control_fd:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L93
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 280
	lea	rsi, .LC1[rip]
	lea	rdi, .LC46[rip]
	call	__assert_fail@PLT
.L93:
	mov	WORD PTR -128[rbp], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	cmp	rax, 108
	jbe	.L94
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -152[rbp]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L94:
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, -128[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	unlink@PLT
	lea	rax, -128[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L95
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 289
	lea	rsi, .LC1[rip]
	lea	rdi, .LC48[rip]
	call	__assert_fail@PLT
.L95:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, 438
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L96
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 290
	lea	rsi, .LC1[rip]
	lea	rdi, .LC49[rip]
	call	__assert_fail@PLT
.L96:
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L97
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 291
	lea	rsi, .LC1[rip]
	lea	rdi, .LC50[rip]
	call	__assert_fail@PLT
.L97:
	mov	ecx, 0
	mov	eax, DWORD PTR -132[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR control_fd[rip], eax
	mov	eax, DWORD PTR control_fd[rip]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L98
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 293
	lea	rsi, .LC1[rip]
	lea	rdi, .LC51[rip]
	call	__assert_fail@PLT
.L98:
	mov	eax, DWORD PTR -132[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L99
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 294
	lea	rsi, .LC1[rip]
	lea	rdi, .LC52[rip]
	call	__assert_fail@PLT
.L99:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	unlink@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L102
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 295
	lea	rsi, .LC1[rip]
	lea	rdi, .LC53[rip]
	call	__assert_fail@PLT
.L102:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L101
	call	__stack_chk_fail@PLT
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	open_control_fd, .-open_control_fd
	.data
	.align 4
	.type	trace_pipe_fd, @object
	.size	trace_pipe_fd, 4
trace_pipe_fd:
	.long	-1
	.local	echo_thread
	.comm	echo_thread,8,8
	.section	.rodata
	.align 8
.LC54:
	.string	"\"FAILED: !\" && check_cond((ssize_t)strlen(value) == ret)"
	.text
	.type	write_file, @function
write_file:
.LFB20:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 513
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L104
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 304
	lea	rsi, .LC1[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L104:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	cmp	rax, rdx
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L105
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 306
	lea	rsi, .LC1[rip]
	lea	rdi, .LC54[rip]
	call	__assert_fail@PLT
.L105:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L107
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 307
	lea	rsi, .LC1[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L107:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	write_file, .-write_file
	.section	.rodata
.LC55:
	.string	"0"
.LC56:
	.string	"tracing_on"
	.align 8
.LC57:
	.string	"\"FAILED: !\" && check_cond(0 == close(trace_pipe_fd))"
	.align 8
.LC58:
	.string	"\"FAILED: !\" && check_cond(0 == pthread_join(echo_thread, ((void *)0)))"
.LC59:
	.string	"nop"
.LC60:
	.string	"current_tracer"
	.text
	.type	stop_tracing, @function
stop_tracing:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC55[rip]
	lea	rdi, .LC56[rip]
	call	write_file
	mov	eax, DWORD PTR trace_pipe_fd[rip]
	test	eax, eax
	js	.L109
	mov	eax, DWORD PTR trace_pipe_fd[rip]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L110
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 314
	lea	rsi, .LC1[rip]
	lea	rdi, .LC57[rip]
	call	__assert_fail@PLT
.L110:
	mov	DWORD PTR trace_pipe_fd[rip], -1
.L109:
	mov	rax, QWORD PTR echo_thread[rip]
	test	rax, rax
	je	.L111
	mov	rax, QWORD PTR echo_thread[rip]
	mov	esi, 10
	mov	rdi, rax
	call	pthread_kill@PLT
	mov	rax, QWORD PTR echo_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L112
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 321
	lea	rsi, .LC1[rip]
	lea	rdi, .LC58[rip]
	call	__assert_fail@PLT
.L112:
	mov	QWORD PTR echo_thread[rip], 0
.L111:
	lea	rsi, .LC59[rip]
	lea	rdi, .LC60[rip]
	call	write_file
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	stop_tracing, .-stop_tracing
	.section	.rodata
	.align 8
.LC61:
	.string	"\"FAILED: !\" && check_cond(out_pos < 65536)"
	.text
	.type	read_control_line, @function
read_control_line:
.LFB22:
	.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	QWORD PTR -16[rbp], 0
.L122:
	mov	rax, QWORD PTR control_buf_len[rip]
	test	rax, rax
	jne	.L114
	mov	eax, DWORD PTR control_fd[rip]
	mov	edx, 1024
	lea	rsi, control_buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L115
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 337
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L115:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L116
	call	stop_tracing
	call	write_final_output
	mov	edi, 2
	call	exit@PLT
.L116:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR control_buf_len[rip], rax
.L114:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L117
.L121:
	cmp	QWORD PTR -16[rbp], 65535
	setbe	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L118
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 346
	lea	rsi, .LC1[rip]
	lea	rdi, .LC61[rip]
	call	__assert_fail@PLT
.L118:
	lea	rdx, control_buf[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L119
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR control_buf_len[rip]
	sub	rax, QWORD PTR -8[rbp]
	lea	rcx, control_buf[rip]
	mov	rdx, QWORD PTR -8[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, control_buf[rip]
	call	memmove@PLT
	mov	rax, QWORD PTR control_buf_len[rip]
	sub	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR control_buf_len[rip], rax
	jmp	.L123
.L119:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	lea	rcx, control_buf[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L117:
	mov	rax, QWORD PTR control_buf_len[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L121
	jmp	.L122
.L123:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	read_control_line, .-read_control_line
	.section	.rodata
.LC62:
	.string	"K"
	.align 8
.LC63:
	.string	"\"FAILED: !\" && check_cond(1 == write(control_fd, \"K\", 1))"
	.text
	.type	ack_control_message, @function
ack_control_message:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR control_fd[rip]
	mov	edx, 1
	lea	rsi, .LC62[rip]
	mov	edi, eax
	call	write@PLT
	cmp	rax, 1
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L126
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 360
	lea	rsi, .LC1[rip]
	lea	rdi, .LC63[rip]
	call	__assert_fail@PLT
.L126:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	ack_control_message, .-ack_control_message
	.section	.rodata
.LC64:
	.string	"trace_marker"
	.align 8
.LC65:
	.string	"\"FAILED: !\" && check_cond(trace_marker_fd >= 0)"
.LC66:
	.string	"F"
	.align 8
.LC67:
	.string	"\"FAILED: !\" && check_cond(1 == sendmsg(control_fd, &msg, 0))"
	.align 8
.LC68:
	.string	"\"FAILED: !\" && check_cond(0 == close(trace_marker_fd))"
	.text
	.type	send_marker_fd, @function
send_marker_fd:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	esi, 1
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L128
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 368
	lea	rsi, .LC1[rip]
	lea	rdi, .LC65[rip]
	call	__assert_fail@PLT
.L128:
	lea	rax, .LC66[rip]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], 1
	lea	rax, -96[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], 20
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR control_fd[rip]
	lea	rcx, -96[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sendmsg@PLT
	cmp	rax, 1
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L129
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 384
	lea	rsi, .LC1[rip]
	lea	rdi, .LC67[rip]
	call	__assert_fail@PLT
.L129:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L132
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 385
	lea	rsi, .LC1[rip]
	lea	rdi, .LC68[rip]
	call	__assert_fail@PLT
.L132:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L131
	call	__stack_chk_fail@PLT
.L131:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	send_marker_fd, .-send_marker_fd
	.section	.rodata
.LC69:
	.string	"%s "
.LC70:
	.string	"set_ftrace_pid"
	.align 8
.LC71:
	.string	"\"FAILED: !\" && check_cond(ftrace_pid_fd >= 0)"
	.align 8
.LC72:
	.string	"\"FAILED: !\" && check_cond(buf_out_ptr - buf_out == write(ftrace_pid_fd, buf_out, buf_out_ptr - buf_out))"
	.align 8
.LC73:
	.string	"\"FAILED: !\" && check_cond(0 == close(ftrace_pid_fd))"
.LC74:
	.string	"function_graph"
.LC75:
	.string	"per_cpu/cpu%d/trace_pipe_raw"
	.align 8
.LC76:
	.string	"\"FAILED: !\" && check_cond(trace_pipe_fd >= 0)"
	.align 8
.LC77:
	.string	"\"FAILED: !\" && check_cond(0 == pthread_create(&echo_thread, ((void *)0), do_echo, &trace_pipe_fd))"
.LC78:
	.string	"1"
.LC79:
	.string	"end"
	.align 8
.LC80:
	.string	"\"FAILED: !\" && check_cond(!strcmp(buf, \"end\"))"
	.text
	.type	process_control_session, @function
process_control_session:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	lea	r11, -135168[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -65568[rbp]
	mov	QWORD PTR -135208[rbp], rax
	lea	rax, -131104[rbp]
	mov	rdi, rax
	call	read_control_line
	lea	rax, -131104[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -135216[rbp], eax
.L137:
	lea	rax, -131104[rbp]
	mov	rdi, rax
	call	read_control_line
	movzx	eax, BYTE PTR -131104[rbp]
	test	al, al
	je	.L145
	lea	rax, -131104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -135208[rbp]
	add	rdx, rax
	lea	rax, -65568[rbp]
	add	rax, 65536
	cmp	rdx, rax
	jnb	.L146
	lea	rdx, -131104[rbp]
	mov	rax, QWORD PTR -135208[rbp]
	lea	rsi, .LC69[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -135208[rbp], rax
	jmp	.L137
.L145:
	nop
	jmp	.L135
.L146:
	nop
.L135:
	mov	esi, 1
	lea	rdi, .LC70[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -135212[rbp], eax
	mov	eax, DWORD PTR -135212[rbp]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L138
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 412
	lea	rsi, .LC1[rip]
	lea	rdi, .LC71[rip]
	call	__assert_fail@PLT
.L138:
	lea	rdx, -65568[rbp]
	mov	rax, QWORD PTR -135208[rbp]
	sub	rax, rdx
	mov	rbx, rax
	lea	rdx, -65568[rbp]
	mov	rax, QWORD PTR -135208[rbp]
	sub	rax, rdx
	mov	rdx, rax
	lea	rcx, -65568[rbp]
	mov	eax, DWORD PTR -135212[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rbx, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L139
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 413
	lea	rsi, .LC1[rip]
	lea	rdi, .LC72[rip]
	call	__assert_fail@PLT
.L139:
	mov	eax, DWORD PTR -135212[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L140
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 415
	lea	rsi, .LC1[rip]
	lea	rdi, .LC73[rip]
	call	__assert_fail@PLT
.L140:
	lea	rsi, .LC74[rip]
	lea	rdi, .LC60[rip]
	call	write_file
	call	send_marker_fd
	mov	edx, DWORD PTR -135216[rbp]
	lea	rax, -135200[rbp]
	lea	rsi, .LC75[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -135200[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR trace_pipe_fd[rip], eax
	mov	eax, DWORD PTR trace_pipe_fd[rip]
	not	eax
	shr	eax, 31
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L141
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 423
	lea	rsi, .LC1[rip]
	lea	rdi, .LC76[rip]
	call	__assert_fail@PLT
.L141:
	lea	rcx, trace_pipe_fd[rip]
	lea	rdx, do_echo[rip]
	mov	esi, 0
	lea	rdi, echo_thread[rip]
	call	pthread_create@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L142
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 424
	lea	rsi, .LC1[rip]
	lea	rdi, .LC77[rip]
	call	__assert_fail@PLT
.L142:
	lea	rsi, .LC78[rip]
	lea	rdi, .LC56[rip]
	call	write_file
	call	ack_control_message
	lea	rax, -131104[rbp]
	mov	rdi, rax
	call	read_control_line
	lea	rax, -131104[rbp]
	lea	rsi, .LC79[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	check_cond
	test	eax, eax
	jne	.L143
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 430
	lea	rsi, .LC1[rip]
	lea	rdi, .LC80[rip]
	call	__assert_fail@PLT
.L143:
	call	ack_control_message
	call	stop_tracing
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L144
	call	__stack_chk_fail@PLT
.L144:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	process_control_session, .-process_control_session
	.section	.rodata
.LC81:
	.string	"HOME"
.LC82:
	.string	"%s/.local/share/rr/ftrace"
.LC83:
	.string	"sudo"
.LC84:
	.string	"Can't exec 'sudo'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB26:
	.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jne	.L148
	lea	rdi, .LC81[rip]
	call	getenv@PLT
	mov	rdx, rax
	lea	rax, -16[rbp]
	lea	rsi, .LC82[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	js	.L149
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	r8d, 0
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC83[rip]
	lea	rdi, .LC83[rip]
	mov	eax, 0
	call	execlp@PLT
.L149:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC84[rip]
	call	fwrite@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L152
	jmp	.L153
.L148:
	lea	rsi, drop_sig[rip]
	mov	edi, 10
	call	signal@PLT
	call	chdir_to_tracing
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	open_control_fd
	call	open_output_fd
.L151:
	call	process_control_session
	jmp	.L151
.L153:
	call	__stack_chk_fail@PLT
.L152:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.23, @object
	.size	__PRETTY_FUNCTION__.23, 8
__PRETTY_FUNCTION__.23:
	.string	"do_echo"
	.align 16
	.type	__PRETTY_FUNCTION__.22, @object
	.size	__PRETTY_FUNCTION__.22, 17
__PRETTY_FUNCTION__.22:
	.string	"chdir_to_tracing"
	.align 8
	.type	__PRETTY_FUNCTION__.21, @object
	.size	__PRETTY_FUNCTION__.21, 15
__PRETTY_FUNCTION__.21:
	.string	"copy_file_data"
	.align 16
	.type	__PRETTY_FUNCTION__.20, @object
	.size	__PRETTY_FUNCTION__.20, 16
__PRETTY_FUNCTION__.20:
	.string	"copy_trace_file"
	.align 16
	.type	__PRETTY_FUNCTION__.19, @object
	.size	__PRETTY_FUNCTION__.19, 26
__PRETTY_FUNCTION__.19:
	.string	"copy_trace_file_with_name"
	.align 8
	.type	__PRETTY_FUNCTION__.18, @object
	.size	__PRETTY_FUNCTION__.18, 15
__PRETTY_FUNCTION__.18:
	.string	"iterate_events"
	.align 8
	.type	__PRETTY_FUNCTION__.17, @object
	.size	__PRETTY_FUNCTION__.17, 15
__PRETTY_FUNCTION__.17:
	.string	"open_output_fd"
	.align 8
	.type	__PRETTY_FUNCTION__.16, @object
	.size	__PRETTY_FUNCTION__.16, 12
__PRETTY_FUNCTION__.16:
	.string	"file_offset"
	.local	size.15
	.comm	size.15,8,8
	.align 16
	.type	__PRETTY_FUNCTION__.14, @object
	.size	__PRETTY_FUNCTION__.14, 24
__PRETTY_FUNCTION__.14:
	.string	"pad_output_to_page_size"
	.align 16
	.type	__PRETTY_FUNCTION__.13, @object
	.size	__PRETTY_FUNCTION__.13, 19
__PRETTY_FUNCTION__.13:
	.string	"write_final_output"
	.align 8
	.type	magic.12, @object
	.size	magic.12, 14
magic.12:
	.string	"\027\bDtracing6"
	.string	""
	.ascii	"\b"
	.align 4
	.type	zero.11, @object
	.size	zero.11, 4
zero.11:
	.zero	4
	.align 4
	.type	cpus.10, @object
	.size	cpus.10, 4
cpus.10:
	.long	1
	.align 8
	.type	options.9, @object
	.size	options.9, 10
options.9:
	.string	"options  "
	.align 2
	.type	options_done.8, @object
	.size	options_done.8, 2
options_done.8:
	.zero	2
	.align 8
	.type	fly_record.7, @object
	.size	fly_record.7, 10
fly_record.7:
	.string	"flyrecord"
	.align 16
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 16
__PRETTY_FUNCTION__.6:
	.string	"open_control_fd"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 11
__PRETTY_FUNCTION__.5:
	.string	"write_file"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 13
__PRETTY_FUNCTION__.4:
	.string	"stop_tracing"
	.align 16
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 18
__PRETTY_FUNCTION__.3:
	.string	"read_control_line"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 20
__PRETTY_FUNCTION__.2:
	.string	"ack_control_message"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 15
__PRETTY_FUNCTION__.1:
	.string	"send_marker_fd"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 24
__PRETTY_FUNCTION__.0:
	.string	"process_control_session"
	.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	"1000858.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"FAILED: errno=%d (%s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_cond, %function
check_cond:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L4+4
	mov	r0, r4
	bl	fprintf
.L2:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.size	check_cond, .-check_cond
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drop_sig, %function
drop_sig:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	drop_sig, .-drop_sig
	.local	out_fd
	.comm	out_fd,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/1000858.c\000"
	.align	2
.LC2:
	.ascii	"\"FAILED: !\" && check_cond(0 == pipe(pipe_fds))\000"
	.align	2
.LC3:
	.ascii	"\"FAILED: !\" && check_cond(size > 0)\000"
	.align	2
.LC4:
	.ascii	"\"FAILED: !\" && check_cond(ret >= 0)\000"
	.align	2
.LC5:
	.ascii	"\"FAILED: !\" && check_cond(ret2 == ret)\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_echo, %function
do_echo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L17+4
	mov	r2, #82
	ldr	r1, .L17+8
	ldr	r0, .L17+12
	bl	__assert_fail
.L8:
	ldr	r3, [fp, #-12]
	ldr	r1, .L17+16
	mov	r0, r3
	bl	fcntl
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L17+4
	mov	r2, #84
	ldr	r1, .L17+8
	ldr	r0, .L17+20
	bl	__assert_fail
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	mov	r1, #1
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	splice
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L11
.L10:
	ldr	r3, [fp, #-24]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L17+4
	mov	r2, #91
	ldr	r1, .L17+8
	ldr	r0, .L17+24
	bl	__assert_fail
.L12:
	ldr	r0, [fp, #-16]
	ldr	r3, .L17+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r1, #3
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	bl	splice
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L13
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L11
.L13:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L17+4
	mov	r2, #97
	ldr	r1, .L17+8
	ldr	r0, .L17+32
	bl	__assert_fail
.L11:
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.8072
	.word	.LC1
	.word	.LC2
	.word	1032
	.word	.LC3
	.word	.LC4
	.word	out_fd
	.word	.LC5
	.size	do_echo, .-do_echo
	.section	.rodata
	.align	2
.LC7:
	.ascii	"/sys/kernel/debug\000"
	.align	2
.LC8:
	.ascii	"/sys/kernel/debug not found; debugfs not mounted?\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"Cannot chdir to /sys/kernel/debug; run this as root"
	.ascii	"\012\000"
	.align	2
.LC10:
	.ascii	"\"FAILED: !\" && check_cond(ret == 0)\000"
	.align	2
.LC11:
	.ascii	"tracing\000"
	.align	2
.LC12:
	.ascii	"/sys/kernel/debug/tracing not found; tracing not en"
	.ascii	"abled?\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chdir_to_tracing, %function
chdir_to_tracing:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L26
	bl	chdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L20
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L26+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L21
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #52
	mov	r1, #1
	ldr	r0, .L26+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L26+16
	mov	r2, #112
	ldr	r1, .L26+20
	ldr	r0, .L26+24
	bl	__assert_fail
.L22:
	ldr	r0, .L26+28
	bl	chdir
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L23
	ldr	r3, .L26+4
	ldr	r3, [r3]
	mov	r2, #58
	mov	r1, #1
	ldr	r0, .L26+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L26+16
	mov	r2, #120
	ldr	r1, .L26+20
	ldr	r0, .L26+24
	bl	__assert_fail
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	__PRETTY_FUNCTION__.8081
	.word	.LC1
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	chdir_to_tracing, .-chdir_to_tracing
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\"FAILED: !\" && check_cond(ret == write(final_fd, "
	.ascii	"buf, ret))\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_file_data, %function
copy_file_data:
	@ args = 0, pretend = 0, frame = 65552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #20
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-12]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r1, [r3, #-16]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
.L33:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #65536
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L37+4
	mov	r2, #127
	ldr	r1, .L37+8
	ldr	r0, .L37+12
	bl	__assert_fail
.L29:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L36
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #65536
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	write
	mov	r2, r0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L37+4
	mov	r2, #131
	ldr	r1, .L37+8
	ldr	r0, .L37+16
	bl	__assert_fail
.L36:
	nop
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC14
	.word	__PRETTY_FUNCTION__.8088
	.word	.LC1
	.word	.LC4
	.word	.LC13
	.size	copy_file_data, .-copy_file_data
	.section	.rodata
	.align	2
.LC15:
	.ascii	"\"FAILED: !\" && check_cond(fd >= 0)\000"
	.align	2
.LC16:
	.ascii	"\"FAILED: !\" && check_cond(0 == lseek(fd, 0, 0))\000"
	.align	2
.LC17:
	.ascii	"\"FAILED: !\" && check_cond(size_len == write(final"
	.ascii	"_fd, &len, size_len))\000"
	.align	2
.LC18:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(fd))\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_trace_file, %function
copy_trace_file:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1056
	sub	sp, sp, #8
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	str	r2, [fp, #-1072]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-1068]
	bl	open
	str	r0, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L52+4
	mov	r2, #138
	ldr	r1, .L52+8
	ldr	r0, .L52+12
	bl	__assert_fail
.L40:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
.L44:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1060]
	bl	read
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L52+4
	mov	r2, #142
	ldr	r1, .L52+8
	ldr	r0, .L52+16
	bl	__assert_fail
.L41:
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-1056]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-1052]
	str	r5, [fp, #-1048]
	b	.L44
.L50:
	nop
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1060]
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L52+4
	mov	r2, #148
	ldr	r1, .L52+8
	ldr	r0, .L52+20
	bl	__assert_fail
.L45:
	ldr	r2, [fp, #-1072]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-1072]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L52+4
	mov	r2, #151
	ldr	r1, .L52+8
	ldr	r0, .L52+24
	bl	__assert_fail
.L46:
	ldr	r1, [fp, #-1060]
	ldr	r0, [fp, #-1064]
	bl	copy_file_data
	ldr	r0, [fp, #-1060]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L52+4
	mov	r2, #153
	ldr	r1, .L52+8
	ldr	r0, .L52+28
	bl	__assert_fail
.L51:
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC19
	.word	__PRETTY_FUNCTION__.8098
	.word	.LC1
	.word	.LC15
	.word	.LC4
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	copy_trace_file, .-copy_trace_file
	.section	.rodata
	.align	2
.LC20:
	.ascii	"\"FAILED: !\" && check_cond((ssize_t)strlen(bare_na"
	.ascii	"me) + 1 == write(final_fd, bare_name, strlen(bare_n"
	.ascii	"ame) + 1))\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_trace_file_with_name, %function
copy_trace_file_with_name:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r1, #47
	ldr	r0, [fp, #-28]
	bl	strrchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L56
.L55:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-16]
.L56:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r4, r3, #1
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	write
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L58
	mov	r2, #164
	ldr	r1, .L58+4
	ldr	r0, .L58+8
	bl	__assert_fail
.L57:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	copy_trace_file
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L59:
	.align	2
.L58:
	.word	__PRETTY_FUNCTION__.8109
	.word	.LC1
	.word	.LC20
	.size	copy_trace_file_with_name, .-copy_trace_file_with_name
	.section	.rodata
	.align	2
.LC21:
	.ascii	"\"FAILED: !\" && check_cond(d != ((void *)0))\000"
	.align	2
.LC22:
	.ascii	"%s/%s/format\000"
	.align	2
.LC23:
	.ascii	"\"FAILED: !\" && check_cond(0 == closedir(d))\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iterate_events, %function
iterate_events:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-36]
	bl	opendir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	ldr	r3, .L70+4
	mov	r2, #172
	ldr	r1, .L70+8
	ldr	r0, .L70+12
	bl	__assert_fail
.L61:
	ldr	r0, [fp, #-20]
	bl	readdir
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L62
	ldr	r0, [fp, #-20]
	bl	closedir
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	b	.L69
.L62:
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	sub	r0, fp, #28
	ldr	r2, [fp, #-36]
	ldr	r1, .L70+16
	bl	asprintf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L65
	ldr	r3, [fp, #-28]
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L66
	ldr	r3, [fp, #-28]
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	copy_trace_file
.L66:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L65:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	b	.L61
.L69:
	ldr	r3, .L70+4
	mov	r2, #188
	ldr	r1, .L70+8
	ldr	r0, .L70+20
	bl	__assert_fail
.L63:
	ldr	r3, [fp, #-24]
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC24
	.word	__PRETTY_FUNCTION__.8117
	.word	.LC1
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	iterate_events, .-iterate_events
	.section	.rodata
	.align	2
.LC25:
	.ascii	"/tmp/ftrace_helper_out\000"
	.align	2
.LC26:
	.ascii	"\"FAILED: !\" && check_cond(out_fd >= 0)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_output_fd, %function
open_output_fd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #420
	ldr	r1, .L75
	ldr	r0, .L75+4
	bl	open
	mov	r3, r0
	ldr	r2, .L75+8
	str	r3, [r2]
	ldr	r3, .L75+8
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r3, .L75+12
	mov	r2, #194
	ldr	r1, .L75+16
	ldr	r0, .L75+20
	bl	__assert_fail
.L74:
	nop
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	578
	.word	.LC25
	.word	out_fd
	.word	__PRETTY_FUNCTION__.8126
	.word	.LC1
	.word	.LC26
	.size	open_output_fd, .-open_output_fd
	.section	.rodata
	.align	2
.LC27:
	.ascii	"\"FAILED: !\" && check_cond(offset != (off_t)-1)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_offset, %function
file_offset:
	@ 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]
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r3, .L80
	mov	r2, #199
	ldr	r1, .L80+4
	ldr	r0, .L80+8
	bl	__assert_fail
.L78:
	ldr	r3, [fp, #-8]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	__PRETTY_FUNCTION__.8131
	.word	.LC1
	.word	.LC27
	.size	file_offset, .-file_offset
	.align	2
	.global	page_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	page_size, %function
page_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L85
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L83
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L85
	str	r2, [r3]
.L83:
	ldr	r3, .L85
	ldr	r3, [r3]
	mov	r0, r3
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	size.8135
	.size	page_size, .-page_size
	.section	.rodata
	.align	2
.LC28:
	.ascii	"\"FAILED: !\" && check_cond(pad == write(fd, buf, p"
	.ascii	"ad))\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pad_output_to_page_size, %function
pad_output_to_page_size:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-48]
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	page_size
	mov	r3, r0
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	file_offset
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	memset
	bl	page_size
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	sub	r6, r3, #1
	bl	page_size
	mov	r3, r0
	sub	r3, r3, #1
	mvn	r3, r3
	and	r2, r6, r3
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	ldr	r3, .L91+4
	mov	r2, #216
	ldr	r1, .L91+8
	ldr	r0, .L91+12
	bl	__assert_fail
.L88:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	mov	r2, r4
	mov	r3, r5
	ldr	r1, .L91
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L90
	bl	__stack_chk_fail
.L90:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC29
	.word	__PRETTY_FUNCTION__.8142
	.word	.LC1
	.word	.LC28
	.size	pad_output_to_page_size, .-pad_output_to_page_size
	.section	.rodata
	.align	2
.LC30:
	.ascii	"\"FAILED: !\" && check_cond(0 == unlink(\"/tmp/ftra"
	.ascii	"ce_helper_out\"))\000"
	.align	2
.LC31:
	.ascii	"\"FAILED: !\" && check_cond(final_fd >= 0)\000"
	.align	2
.LC32:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(magic) == write("
	.ascii	"final_fd, magic, sizeof(magic)))\000"
	.align	2
.LC33:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(psize) == write("
	.ascii	"final_fd, &psize, sizeof(psize)))\000"
	.align	2
.LC34:
	.ascii	"events/header_page\000"
	.align	2
.LC35:
	.ascii	"events/header_event\000"
	.align	2
.LC36:
	.ascii	"events/ftrace\000"
	.align	2
.LC37:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(ftrace_count) =="
	.ascii	" write(final_fd, &ftrace_count, sizeof(ftrace_count"
	.ascii	")))\000"
	.align	2
.LC38:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(zero) == write(f"
	.ascii	"inal_fd, &zero, sizeof(zero)))\000"
	.align	2
.LC39:
	.ascii	"/proc/kallsyms\000"
	.align	2
.LC40:
	.ascii	"printk_formats\000"
	.align	2
.LC41:
	.ascii	"saved_cmdlines\000"
	.align	2
.LC42:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(cpus) == write(f"
	.ascii	"inal_fd, &cpus, sizeof(cpus)))\000"
	.align	2
.LC43:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(options) == writ"
	.ascii	"e(final_fd, &options, sizeof(options)))\000"
	.align	2
.LC44:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(options_done) =="
	.ascii	" write(final_fd, &options_done, sizeof(options_done"
	.ascii	")))\000"
	.align	2
.LC45:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(fly_record) == w"
	.ascii	"rite(final_fd, fly_record, sizeof(fly_record)))\000"
	.align	2
.LC46:
	.ascii	"\"FAILED: !\" && check_cond(sizeof(cpu_data) == wri"
	.ascii	"te(final_fd, cpu_data, sizeof(cpu_data)))\000"
	.align	2
.LC47:
	.ascii	"trace_clock\000"
	.align	2
.LC48:
	.ascii	"\"FAILED: !\" && check_cond(0 == lseek(out_fd, 0, 0"
	.ascii	"))\000"
	.align	2
.LC49:
	.ascii	"\"FAILED: !\" && check_cond(cpu_data_offset == (uin"
	.ascii	"t64_t)lseek(final_fd, cpu_data_offset, 0))\000"
	.align	2
.LC50:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(final_fd))\000"
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_final_output, %function
write_final_output:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	page_size
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r0, .L111+4
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L94
	ldr	r3, .L111+8
	mov	r2, #237
	ldr	r1, .L111+12
	ldr	r0, .L111+16
	bl	__assert_fail
.L94:
	mov	r2, #420
	ldr	r1, .L111+20
	ldr	r0, .L111+4
	bl	open
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L95
	ldr	r3, .L111+8
	mov	r2, #239
	ldr	r1, .L111+12
	ldr	r0, .L111+24
	bl	__assert_fail
.L95:
	mov	r2, #14
	ldr	r1, .L111+28
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #14
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r3, .L111+8
	mov	r2, #241
	ldr	r1, .L111+12
	ldr	r0, .L111+32
	bl	__assert_fail
.L96:
	sub	r3, fp, #48
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L97
	ldr	r3, .L111+8
	mov	r2, #242
	ldr	r1, .L111+12
	ldr	r0, .L111+36
	bl	__assert_fail
.L97:
	mov	r2, #8
	ldr	r1, .L111+40
	ldr	r0, [fp, #-40]
	bl	copy_trace_file_with_name
	mov	r2, #8
	ldr	r1, .L111+44
	ldr	r0, [fp, #-40]
	bl	copy_trace_file_with_name
	mov	r2, #0
	ldr	r1, .L111+48
	ldr	r0, [fp, #-40]
	bl	iterate_events
	mov	r3, r0
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L98
	ldr	r3, .L111+8
	mov	r2, #247
	ldr	r1, .L111+12
	ldr	r0, .L111+52
	bl	__assert_fail
.L98:
	mov	r2, #1
	ldr	r1, .L111+48
	ldr	r0, [fp, #-40]
	bl	iterate_events
	mov	r2, #4
	ldr	r1, .L111+56
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L99
	ldr	r3, .L111+8
	mov	r2, #251
	ldr	r1, .L111+12
	ldr	r0, .L111+60
	bl	__assert_fail
.L99:
	mov	r2, #4
	ldr	r1, .L111+64
	ldr	r0, [fp, #-40]
	bl	copy_trace_file
	mov	r2, #4
	ldr	r1, .L111+68
	ldr	r0, [fp, #-40]
	bl	copy_trace_file
	mov	r2, #8
	ldr	r1, .L111+72
	ldr	r0, [fp, #-40]
	bl	copy_trace_file
	mov	r2, #4
	ldr	r1, .L111+76
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #4
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L100
	ldr	r3, .L111+8
	mov	r2, #255
	ldr	r1, .L111+12
	ldr	r0, .L111+80
	bl	__assert_fail
.L100:
	mov	r2, #10
	ldr	r1, .L111+84
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	ldr	r3, .L111+8
	mov	r2, #256
	ldr	r1, .L111+12
	ldr	r0, .L111+88
	bl	__assert_fail
.L101:
	mov	r2, #2
	ldr	r1, .L111+92
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L102
	ldr	r3, .L111+8
	ldr	r2, .L111+96
	ldr	r1, .L111+12
	ldr	r0, .L111+100
	bl	__assert_fail
.L102:
	mov	r2, #10
	ldr	r1, .L111+104
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L103
	ldr	r3, .L111+8
	ldr	r2, .L111+108
	ldr	r1, .L111+12
	ldr	r0, .L111+112
	bl	__assert_fail
.L103:
	ldr	r0, [fp, #-40]
	bl	file_offset
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #16
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L104
	ldr	r3, .L111+8
	ldr	r2, .L111+116
	ldr	r1, .L111+12
	ldr	r0, .L111+120
	bl	__assert_fail
.L104:
	mov	r2, #8
	ldr	r1, .L111+124
	ldr	r0, [fp, #-40]
	bl	copy_trace_file
	ldr	r0, [fp, #-40]
	bl	pad_output_to_page_size
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L111+128
	ldr	r3, [r3]
	mov	r0, r3
	bl	file_offset
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L111+128
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L105
	ldr	r3, .L111+8
	ldr	r2, .L111+132
	ldr	r1, .L111+12
	ldr	r0, .L111+136
	bl	__assert_fail
.L105:
	ldr	r3, .L111+128
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	copy_file_data
	ldr	r3, [fp, #-36]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	lseek
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	ldr	r3, .L111+8
	ldr	r2, .L111+140
	ldr	r1, .L111+12
	ldr	r0, .L111+144
	bl	__assert_fail
.L106:
	sub	r3, fp, #28
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #16
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L107
	ldr	r3, .L111+8
	ldr	r2, .L111+148
	ldr	r1, .L111+12
	ldr	r0, .L111+120
	bl	__assert_fail
.L107:
	ldr	r0, [fp, #-40]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L110
	ldr	r3, .L111+8
	ldr	r2, .L111+152
	ldr	r1, .L111+12
	ldr	r0, .L111+156
	bl	__assert_fail
.L110:
	nop
	ldr	r3, .L111
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L109
	bl	__stack_chk_fail
.L109:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC51
	.word	.LC25
	.word	__PRETTY_FUNCTION__.8157
	.word	.LC1
	.word	.LC30
	.word	577
	.word	.LC31
	.word	magic.8147
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	zero.8150
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	cpus.8151
	.word	.LC42
	.word	options.8152
	.word	.LC43
	.word	options_done.8153
	.word	257
	.word	.LC44
	.word	fly_record.8154
	.word	259
	.word	.LC45
	.word	261
	.word	.LC46
	.word	.LC47
	.word	out_fd
	.word	265
	.word	.LC48
	.word	267
	.word	.LC49
	.word	269
	.word	270
	.word	.LC50
	.size	write_final_output, .-write_final_output
	.data
	.align	2
	.type	control_fd, %object
	.size	control_fd, 4
control_fd:
	.word	-1
	.local	control_buf
	.comm	control_buf,1024,4
	.local	control_buf_len
	.comm	control_buf_len,4,4
	.section	.rodata
	.align	2
.LC52:
	.ascii	"\"FAILED: !\" && check_cond(listen_fd >= 0)\000"
	.align	2
.LC53:
	.ascii	"Socket path %s too long\012\000"
	.align	2
.LC54:
	.ascii	"\"FAILED: !\" && check_cond(0 == bind(listen_fd, (s"
	.ascii	"truct sockaddr*)&addr, sizeof(addr)))\000"
	.align	2
.LC55:
	.ascii	"\"FAILED: !\" && check_cond(0 == chmod(path, 0666))"
	.ascii	"\000"
	.align	2
.LC56:
	.ascii	"\"FAILED: !\" && check_cond(0 == listen(listen_fd, "
	.ascii	"1))\000"
	.align	2
.LC57:
	.ascii	"\"FAILED: !\" && check_cond(control_fd >= 0)\000"
	.align	2
.LC58:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(listen_fd))\000"
	.align	2
.LC59:
	.ascii	"\"FAILED: !\" && check_cond(0 == unlink(path))\000"
	.align	2
.LC60:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_control_fd, %function
open_control_fd:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L124
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L114
	ldr	r3, .L124+4
	mov	r2, #280
	ldr	r1, .L124+8
	ldr	r0, .L124+12
	bl	__assert_fail
.L114:
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	ldr	r0, [fp, #-128]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	cmp	r3, #108
	bls	.L115
	ldr	r3, .L124+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	ldr	r1, .L124+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L115:
	sub	r3, fp, #120
	add	r3, r3, #2
	ldr	r1, [fp, #-128]
	mov	r0, r3
	bl	strcpy
	ldr	r0, [fp, #-128]
	bl	unlink
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L116
	ldr	r3, .L124+4
	ldr	r2, .L124+24
	ldr	r1, .L124+8
	ldr	r0, .L124+28
	bl	__assert_fail
.L116:
	ldr	r1, .L124+32
	ldr	r0, [fp, #-128]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L117
	ldr	r3, .L124+4
	ldr	r2, .L124+36
	ldr	r1, .L124+8
	ldr	r0, .L124+40
	bl	__assert_fail
.L117:
	mov	r1, #1
	ldr	r0, [fp, #-124]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L118
	ldr	r3, .L124+4
	ldr	r2, .L124+44
	ldr	r1, .L124+8
	ldr	r0, .L124+48
	bl	__assert_fail
.L118:
	mov	r3, #0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	accept
	mov	r3, r0
	ldr	r2, .L124+52
	str	r3, [r2]
	ldr	r3, .L124+52
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L124+4
	ldr	r2, .L124+56
	ldr	r1, .L124+8
	ldr	r0, .L124+60
	bl	__assert_fail
.L119:
	ldr	r0, [fp, #-124]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L120
	ldr	r3, .L124+4
	ldr	r2, .L124+64
	ldr	r1, .L124+8
	ldr	r0, .L124+68
	bl	__assert_fail
.L120:
	ldr	r0, [fp, #-128]
	bl	unlink
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L123
	ldr	r3, .L124+4
	ldr	r2, .L124+72
	ldr	r1, .L124+8
	ldr	r0, .L124+76
	bl	__assert_fail
.L123:
	nop
	ldr	r3, .L124
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L122
	bl	__stack_chk_fail
.L122:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC60
	.word	__PRETTY_FUNCTION__.8166
	.word	.LC1
	.word	.LC52
	.word	stderr
	.word	.LC53
	.word	289
	.word	.LC54
	.word	438
	.word	290
	.word	.LC55
	.word	291
	.word	.LC56
	.word	control_fd
	.word	293
	.word	.LC57
	.word	294
	.word	.LC58
	.word	295
	.word	.LC59
	.size	open_control_fd, .-open_control_fd
	.data
	.align	2
	.type	trace_pipe_fd, %object
	.size	trace_pipe_fd, 4
trace_pipe_fd:
	.word	-1
	.local	echo_thread
	.comm	echo_thread,4,4
	.section	.rodata
	.align	2
.LC61:
	.ascii	"\"FAILED: !\" && check_cond((ssize_t)strlen(value) "
	.ascii	"== ret)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_file, %function
write_file:
	@ 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	r1, .L131
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L127
	ldr	r3, .L131+4
	mov	r2, #304
	ldr	r1, .L131+8
	ldr	r0, .L131+12
	bl	__assert_fail
.L127:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	ldr	r3, .L131+4
	ldr	r2, .L131+16
	ldr	r1, .L131+8
	ldr	r0, .L131+20
	bl	__assert_fail
.L128:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L130
	ldr	r3, .L131+4
	ldr	r2, .L131+24
	ldr	r1, .L131+8
	ldr	r0, .L131+28
	bl	__assert_fail
.L130:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	513
	.word	__PRETTY_FUNCTION__.8175
	.word	.LC1
	.word	.LC15
	.word	306
	.word	.LC61
	.word	307
	.word	.LC18
	.size	write_file, .-write_file
	.section	.rodata
	.align	2
.LC62:
	.ascii	"0\000"
	.align	2
.LC63:
	.ascii	"tracing_on\000"
	.align	2
.LC64:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(trace_pipe_f"
	.ascii	"d))\000"
	.align	2
.LC65:
	.ascii	"\"FAILED: !\" && check_cond(0 == pthread_join(echo_"
	.ascii	"thread, ((void *)0)))\000"
	.align	2
.LC66:
	.ascii	"nop\000"
	.align	2
.LC67:
	.ascii	"current_tracer\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_tracing, %function
stop_tracing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L138
	ldr	r0, .L138+4
	bl	write_file
	ldr	r3, .L138+8
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L134
	ldr	r3, .L138+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L135
	ldr	r3, .L138+12
	ldr	r2, .L138+16
	ldr	r1, .L138+20
	ldr	r0, .L138+24
	bl	__assert_fail
.L135:
	ldr	r3, .L138+8
	mvn	r2, #0
	str	r2, [r3]
.L134:
	ldr	r3, .L138+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L136
	ldr	r3, .L138+28
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	pthread_kill
	ldr	r3, .L138+28
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L137
	ldr	r3, .L138+12
	ldr	r2, .L138+32
	ldr	r1, .L138+20
	ldr	r0, .L138+36
	bl	__assert_fail
.L137:
	ldr	r3, .L138+28
	mov	r2, #0
	str	r2, [r3]
.L136:
	ldr	r1, .L138+40
	ldr	r0, .L138+44
	bl	write_file
	nop
	pop	{fp, pc}
.L139:
	.align	2
.L138:
	.word	.LC62
	.word	.LC63
	.word	trace_pipe_fd
	.word	__PRETTY_FUNCTION__.8179
	.word	314
	.word	.LC1
	.word	.LC64
	.word	echo_thread
	.word	321
	.word	.LC65
	.word	.LC66
	.word	.LC67
	.size	stop_tracing, .-stop_tracing
	.section	.rodata
	.align	2
.LC68:
	.ascii	"\"FAILED: !\" && check_cond(out_pos < 65536)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_control_line, %function
read_control_line:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
.L149:
	ldr	r3, .L151
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L141
	ldr	r3, .L151+4
	ldr	r3, [r3]
	mov	r2, #1024
	ldr	r1, .L151+8
	mov	r0, r3
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L142
	ldr	r3, .L151+12
	ldr	r2, .L151+16
	ldr	r1, .L151+20
	ldr	r0, .L151+24
	bl	__assert_fail
.L142:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L143
	bl	stop_tracing
	bl	write_final_output
	mov	r0, #2
	bl	exit
.L143:
	ldr	r3, [fp, #-8]
	ldr	r2, .L151
	str	r3, [r2]
.L141:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L144
.L148:
	ldr	r3, [fp, #-16]
	cmp	r3, #65536
	movcc	r3, #1
	movcs	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L145
	ldr	r3, .L151+12
	ldr	r2, .L151+28
	ldr	r1, .L151+20
	ldr	r0, .L151+32
	bl	__assert_fail
.L145:
	ldr	r2, .L151+8
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L146
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L151+8
	add	r1, r3, r2
	ldr	r3, .L151
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, .L151+8
	bl	memmove
	ldr	r3, .L151
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r2, .L151
	str	r3, [r2]
	b	.L150
.L146:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, .L151+8
	ldr	r2, [fp, #-12]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L144:
	ldr	r3, .L151
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L148
	b	.L149
.L150:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L152:
	.align	2
.L151:
	.word	control_buf_len
	.word	control_fd
	.word	control_buf
	.word	__PRETTY_FUNCTION__.8186
	.word	337
	.word	.LC1
	.word	.LC4
	.word	346
	.word	.LC68
	.size	read_control_line, .-read_control_line
	.section	.rodata
	.align	2
.LC69:
	.ascii	"K\000"
	.align	2
.LC70:
	.ascii	"\"FAILED: !\" && check_cond(1 == write(control_fd, "
	.ascii	"\"K\", 1))\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ack_control_message, %function
ack_control_message:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L156
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L156+4
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L155
	ldr	r3, .L156+8
	mov	r2, #360
	ldr	r1, .L156+12
	ldr	r0, .L156+16
	bl	__assert_fail
.L155:
	nop
	pop	{fp, pc}
.L157:
	.align	2
.L156:
	.word	control_fd
	.word	.LC69
	.word	__PRETTY_FUNCTION__.8194
	.word	.LC1
	.word	.LC70
	.size	ack_control_message, .-ack_control_message
	.section	.rodata
	.align	2
.LC71:
	.ascii	"trace_marker\000"
	.align	2
.LC72:
	.ascii	"\"FAILED: !\" && check_cond(trace_marker_fd >= 0)\000"
	.align	2
.LC73:
	.ascii	"F\000"
	.align	2
.LC74:
	.ascii	"\"FAILED: !\" && check_cond(1 == sendmsg(control_fd"
	.ascii	", &msg, 0))\000"
	.align	2
.LC75:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(trace_marker"
	.ascii	"_fd))\000"
	.align	2
.LC76:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_marker_fd, %function
send_marker_fd:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L164
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	str	r3, [fp, #-64]
	mov	r1, #1
	ldr	r0, .L164+4
	bl	open
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L159
	ldr	r3, .L164+8
	mov	r2, #368
	ldr	r1, .L164+12
	ldr	r0, .L164+16
	bl	__assert_fail
.L159:
	ldr	r3, .L164+20
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	sub	r3, fp, #52
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24
	str	r3, [fp, #-36]
	mov	r3, #16
	str	r3, [fp, #-32]
	sub	r3, fp, #60
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-64]
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, [fp, #-64]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-64]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-64]
	add	r3, r3, #12
	sub	r1, fp, #68
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L164+24
	ldr	r3, [r3]
	sub	r1, fp, #52
	mov	r2, #0
	mov	r0, r3
	bl	sendmsg
	mov	r3, r0
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L160
	ldr	r3, .L164+8
	mov	r2, #384
	ldr	r1, .L164+12
	ldr	r0, .L164+28
	bl	__assert_fail
.L160:
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L163
	ldr	r3, .L164+8
	ldr	r2, .L164+32
	ldr	r1, .L164+12
	ldr	r0, .L164+36
	bl	__assert_fail
.L163:
	nop
	ldr	r3, .L164
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L162
	bl	__stack_chk_fail
.L162:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L165:
	.align	2
.L164:
	.word	.LC76
	.word	.LC71
	.word	__PRETTY_FUNCTION__.8203
	.word	.LC1
	.word	.LC72
	.word	.LC73
	.word	control_fd
	.word	.LC74
	.word	385
	.word	.LC75
	.size	send_marker_fd, .-send_marker_fd
	.section	.rodata
	.align	2
.LC77:
	.ascii	"%s \000"
	.align	2
.LC78:
	.ascii	"set_ftrace_pid\000"
	.align	2
.LC79:
	.ascii	"\"FAILED: !\" && check_cond(ftrace_pid_fd >= 0)\000"
	.align	2
.LC80:
	.ascii	"\"FAILED: !\" && check_cond(buf_out_ptr - buf_out ="
	.ascii	"= write(ftrace_pid_fd, buf_out, buf_out_ptr - buf_o"
	.ascii	"ut))\000"
	.align	2
.LC81:
	.ascii	"\"FAILED: !\" && check_cond(0 == close(ftrace_pid_f"
	.ascii	"d))\000"
	.align	2
.LC82:
	.ascii	"function_graph\000"
	.align	2
.LC83:
	.ascii	"per_cpu/cpu%d/trace_pipe_raw\000"
	.align	2
.LC84:
	.ascii	"\"FAILED: !\" && check_cond(trace_pipe_fd >= 0)\000"
	.align	2
.LC85:
	.ascii	"\"FAILED: !\" && check_cond(0 == pthread_create(&ec"
	.ascii	"ho_thread, ((void *)0), do_echo, &trace_pipe_fd))\000"
	.align	2
.LC86:
	.ascii	"1\000"
	.align	2
.LC87:
	.ascii	"end\000"
	.align	2
.LC88:
	.ascii	"\"FAILED: !\" && check_cond(!strcmp(buf, \"end\"))\000"
	.align	2
.LC89:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_control_session, %function
process_control_session:
	@ args = 0, pretend = 0, frame = 135184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #135168
	sub	sp, sp, #20
	ldr	r3, .L180
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-16]
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	read_control_line
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-12]
.L170:
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	read_control_line
	sub	r3, fp, #131072
	sub	r3, r3, #12
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L178
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #135168
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r2, r3, r2
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #65536
	cmp	r2, r3
	bcs	.L179
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #135168
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L180+4
	ldr	r0, [r0, #-16]
	bl	sprintf
	mov	r3, r0
	mov	r1, r3
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #135168
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, r1
	str	r3, [r2, #-16]
	b	.L170
.L178:
	nop
	b	.L168
.L179:
	nop
.L168:
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #1
	ldr	r0, .L180+8
	bl	open
	str	r0, [r4, #-8]
	sub	r3, fp, #135168
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L171
	ldr	r3, .L180+12
	mov	r2, #412
	ldr	r1, .L180+16
	ldr	r0, .L180+20
	bl	__assert_fail
.L171:
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-16]
	sub	r4, r2, r3
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-16]
	sub	r3, r2, r3
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #135168
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r1
	mov	r1, r3
	ldr	r0, [r0, #-8]
	bl	write
	mov	r3, r0
	cmp	r4, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L172
	ldr	r3, .L180+12
	ldr	r2, .L180+24
	ldr	r1, .L180+16
	ldr	r0, .L180+28
	bl	__assert_fail
.L172:
	sub	r3, fp, #135168
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L173
	ldr	r3, .L180+12
	ldr	r2, .L180+32
	ldr	r1, .L180+16
	ldr	r0, .L180+36
	bl	__assert_fail
.L173:
	ldr	r1, .L180+40
	ldr	r0, .L180+44
	bl	write_file
	bl	send_marker_fd
	sub	r3, fp, #135168
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #135168
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-12]
	ldr	r1, .L180+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #135168
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L180+52
	str	r3, [r2]
	ldr	r3, .L180+52
	ldr	r3, [r3]
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L174
	ldr	r3, .L180+12
	ldr	r2, .L180+56
	ldr	r1, .L180+16
	ldr	r0, .L180+60
	bl	__assert_fail
.L174:
	ldr	r3, .L180+52
	ldr	r2, .L180+64
	mov	r1, #0
	ldr	r0, .L180+68
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L175
	ldr	r3, .L180+12
	mov	r2, #424
	ldr	r1, .L180+16
	ldr	r0, .L180+72
	bl	__assert_fail
.L175:
	ldr	r1, .L180+76
	ldr	r0, .L180+80
	bl	write_file
	bl	ack_control_message
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	read_control_line
	sub	r3, fp, #131072
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L180+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	check_cond
	mov	r3, r0
	cmp	r3, #0
	bne	.L176
	ldr	r3, .L180+12
	ldr	r2, .L180+88
	ldr	r1, .L180+16
	ldr	r0, .L180+92
	bl	__assert_fail
.L176:
	bl	ack_control_message
	bl	stop_tracing
	nop
	ldr	r3, .L180
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L177
	bl	__stack_chk_fail
.L177:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L181:
	.align	2
.L180:
	.word	.LC89
	.word	.LC77
	.word	.LC78
	.word	__PRETTY_FUNCTION__.8215
	.word	.LC1
	.word	.LC79
	.word	413
	.word	.LC80
	.word	415
	.word	.LC81
	.word	.LC82
	.word	.LC67
	.word	.LC83
	.word	trace_pipe_fd
	.word	423
	.word	.LC84
	.word	do_echo
	.word	echo_thread
	.word	.LC85
	.word	.LC86
	.word	.LC63
	.word	.LC87
	.word	430
	.word	.LC88
	.size	process_control_session, .-process_control_session
	.section	.rodata
	.align	2
.LC90:
	.ascii	"HOME\000"
	.align	2
.LC91:
	.ascii	"%s/.local/share/rr/ftrace\000"
	.align	2
.LC92:
	.ascii	"sudo\000"
	.align	2
.LC93:
	.ascii	"Can't exec 'sudo'\012\000"
	.align	2
.LC94:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L189
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L183
	ldr	r0, .L189+4
	bl	getenv
	mov	r2, r0
	sub	r3, fp, #16
	ldr	r1, .L189+8
	mov	r0, r3
	bl	asprintf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L184
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r1, #0
	str	r1, [sp]
	ldr	r1, .L189+12
	ldr	r0, .L189+12
	bl	execlp
.L184:
	ldr	r3, .L189+16
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L189+20
	bl	fwrite
	mov	r3, #1
	ldr	r2, .L189
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L187
	b	.L188
.L183:
	ldr	r1, .L189+24
	mov	r0, #10
	bl	signal
	bl	chdir_to_tracing
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	open_control_fd
	bl	open_output_fd
.L186:
	bl	process_control_session
	b	.L186
.L188:
	bl	__stack_chk_fail
.L187:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L190:
	.align	2
.L189:
	.word	.LC94
	.word	.LC90
	.word	.LC91
	.word	.LC92
	.word	stderr
	.word	.LC93
	.word	drop_sig
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.8072, %object
	.size	__PRETTY_FUNCTION__.8072, 8
__PRETTY_FUNCTION__.8072:
	.ascii	"do_echo\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8081, %object
	.size	__PRETTY_FUNCTION__.8081, 17
__PRETTY_FUNCTION__.8081:
	.ascii	"chdir_to_tracing\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8088, %object
	.size	__PRETTY_FUNCTION__.8088, 15
__PRETTY_FUNCTION__.8088:
	.ascii	"copy_file_data\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8098, %object
	.size	__PRETTY_FUNCTION__.8098, 16
__PRETTY_FUNCTION__.8098:
	.ascii	"copy_trace_file\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8109, %object
	.size	__PRETTY_FUNCTION__.8109, 26
__PRETTY_FUNCTION__.8109:
	.ascii	"copy_trace_file_with_name\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8117, %object
	.size	__PRETTY_FUNCTION__.8117, 15
__PRETTY_FUNCTION__.8117:
	.ascii	"iterate_events\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8126, %object
	.size	__PRETTY_FUNCTION__.8126, 15
__PRETTY_FUNCTION__.8126:
	.ascii	"open_output_fd\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8131, %object
	.size	__PRETTY_FUNCTION__.8131, 12
__PRETTY_FUNCTION__.8131:
	.ascii	"file_offset\000"
	.local	size.8135
	.comm	size.8135,4,4
	.align	2
	.type	__PRETTY_FUNCTION__.8142, %object
	.size	__PRETTY_FUNCTION__.8142, 24
__PRETTY_FUNCTION__.8142:
	.ascii	"pad_output_to_page_size\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8157, %object
	.size	__PRETTY_FUNCTION__.8157, 19
__PRETTY_FUNCTION__.8157:
	.ascii	"write_final_output\000"
	.align	2
	.type	magic.8147, %object
	.size	magic.8147, 14
magic.8147:
	.ascii	"\027\010Dtracing6\000\000\004"
	.align	2
	.type	zero.8150, %object
	.size	zero.8150, 4
zero.8150:
	.space	4
	.align	2
	.type	cpus.8151, %object
	.size	cpus.8151, 4
cpus.8151:
	.word	1
	.align	2
	.type	options.8152, %object
	.size	options.8152, 10
options.8152:
	.ascii	"options  \000"
	.align	1
	.type	options_done.8153, %object
	.size	options_done.8153, 2
options_done.8153:
	.space	2
	.align	2
	.type	fly_record.8154, %object
	.size	fly_record.8154, 10
fly_record.8154:
	.ascii	"flyrecord\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8166, %object
	.size	__PRETTY_FUNCTION__.8166, 16
__PRETTY_FUNCTION__.8166:
	.ascii	"open_control_fd\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8175, %object
	.size	__PRETTY_FUNCTION__.8175, 11
__PRETTY_FUNCTION__.8175:
	.ascii	"write_file\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8179, %object
	.size	__PRETTY_FUNCTION__.8179, 13
__PRETTY_FUNCTION__.8179:
	.ascii	"stop_tracing\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8186, %object
	.size	__PRETTY_FUNCTION__.8186, 18
__PRETTY_FUNCTION__.8186:
	.ascii	"read_control_line\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8194, %object
	.size	__PRETTY_FUNCTION__.8194, 20
__PRETTY_FUNCTION__.8194:
	.ascii	"ack_control_message\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8203, %object
	.size	__PRETTY_FUNCTION__.8203, 15
__PRETTY_FUNCTION__.8203:
	.ascii	"send_marker_fd\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8215, %object
	.size	__PRETTY_FUNCTION__.8215, 24
__PRETTY_FUNCTION__.8215:
	.ascii	"process_control_session\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
