	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trace_report                   ## -- Begin function trace_report
	.p2align	4, 0x90
_trace_report:                          ## @trace_report
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movb	$68, -50(%rbp)
	movw	$2071, -52(%rbp)                ## imm = 0x817
	movq	_calc_data_size@GOTPCREL(%rip), %r13
	movl	$1, (%r13)
	movq	_repipe@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_input_fd@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_read_or_die
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_read_or_die
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_4:
	xorl	%eax, %eax
	callq	_read_string
	movq	%rax, %rdi
	callq	_free
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_read_or_die
	movb	(%rbx), %al
	movq	_file_bigendian@GOTPCREL(%rip), %r15
	movb	%al, (%r15)
	xorl	%eax, %eax
	callq	_bigendian
	movq	_host_bigendian@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movsbl	(%r15), %edi
	movl	%eax, %esi
	callq	_read_trace_init
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	_die
LBB0_6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_read_or_die
	movb	(%rbx), %al
	movq	_long_size@GOTPCREL(%rip), %rcx
	movb	%al, (%rcx)
	movq	(%r14), %rdi
	callq	_read4
	movq	_page_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rdi
	callq	_read_header_files
	movq	(%r14), %rdi
	callq	_read_ftrace_files
	movq	(%r14), %rdi
	callq	_read_event_files
	movq	(%r14), %rdi
	callq	_read_proc_kallsyms
	movq	(%r14), %rdi
	callq	_read_ftrace_printk
	movl	(%r13), %eax
	movl	$0, (%r13)
	movq	_repipe@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	decl	%eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__const
l___const.trace_report.test:            ## @__const.trace_report.test
	.ascii	"\027\bD"

	.comm	_calc_data_size,4,2             ## @calc_data_size
	.comm	_repipe,4,2                     ## @repipe
	.comm	_input_fd,4,2                   ## @input_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no trace data in the file"

L_.str.1:                               ## @.str.1
	.asciz	"tracing"

L_.str.2:                               ## @.str.2
	.asciz	"not a trace file (missing 'tracing' tag)"

	.comm	_file_bigendian,1,0             ## @file_bigendian
	.comm	_host_bigendian,4,2             ## @host_bigendian
L_.str.4:                               ## @.str.4
	.asciz	"read_trace_init failed"

	.comm	_long_size,1,0                  ## @long_size
	.comm	_page_size,4,2                  ## @page_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trace_report                   ; -- Begin function trace_report
	.p2align	2
_trace_report:                          ; @trace_report
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	w8, #68
	sturb	w8, [x29, #-58]
	mov	w8, #2071
	sturh	w8, [x29, #-60]
Lloh8:
	adrp	x21, _calc_data_size@GOTPAGE
Lloh9:
	ldr	x21, [x21, _calc_data_size@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x21]
Lloh10:
	adrp	x22, _repipe@GOTPAGE
Lloh11:
	ldr	x22, [x22, _repipe@GOTPAGEOFF]
	str	w2, [x22]
Lloh12:
	adrp	x8, _input_fd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _input_fd@GOTPAGEOFF]
Lloh14:
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #3
	bl	_read_or_die
	sub	x1, x29, #60
	mov	x0, x20
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	mov	x0, x20
	mov	w1, #7
	bl	_read_or_die
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_4:
	bl	_read_string
	bl	_free
	mov	x0, x20
	mov	w1, #1
	bl	_read_or_die
	ldrb	w8, [x20]
Lloh21:
	adrp	x23, _file_bigendian@GOTPAGE
Lloh22:
	ldr	x23, [x23, _file_bigendian@GOTPAGEOFF]
	strb	w8, [x23]
	bl	_bigendian
	mov	x1, x0
Lloh23:
	adrp	x8, _host_bigendian@GOTPAGE
Lloh24:
	ldr	x8, [x8, _host_bigendian@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
	ldrsb	w0, [x23]
	bl	_read_trace_init
	str	x0, [x19]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_die
LBB0_6:
	mov	x0, x20
	mov	w1, #1
	bl	_read_or_die
	ldrb	w8, [x20]
Lloh28:
	adrp	x9, _long_size@GOTPAGE
Lloh29:
	ldr	x9, [x9, _long_size@GOTPAGEOFF]
Lloh30:
	strb	w8, [x9]
	ldr	x0, [x19]
	bl	_read4
Lloh31:
	adrp	x8, _page_size@GOTPAGE
Lloh32:
	ldr	x8, [x8, _page_size@GOTPAGEOFF]
Lloh33:
	str	w0, [x8]
	ldr	x0, [x19]
	bl	_read_header_files
	ldr	x0, [x19]
	bl	_read_ftrace_files
	ldr	x0, [x19]
	bl	_read_event_files
	ldr	x0, [x19]
	bl	_read_proc_kallsyms
	ldr	x0, [x19]
	bl	_read_ftrace_printk
	ldr	w8, [x21]
	str	wzr, [x21]
	str	wzr, [x22]
	ldur	x9, [x29, #-56]
Lloh34:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.7:
	sub	w0, w8, #1
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__const
l___const.trace_report.test:            ; @__const.trace_report.test
	.ascii	"\027\bD"

	.comm	_calc_data_size,4,2             ; @calc_data_size
	.comm	_repipe,4,2                     ; @repipe
	.comm	_input_fd,4,2                   ; @input_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no trace data in the file"

l_.str.1:                               ; @.str.1
	.asciz	"tracing"

l_.str.2:                               ; @.str.2
	.asciz	"not a trace file (missing 'tracing' tag)"

	.comm	_file_bigendian,1,0             ; @file_bigendian
	.comm	_host_bigendian,4,2             ; @host_bigendian
l_.str.4:                               ; @.str.4
	.asciz	"read_trace_init failed"

	.comm	_long_size,1,0                  ; @long_size
	.comm	_page_size,4,2                  ; @page_size
.subsections_via_symbols
