	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_sched__read_events
_perf_sched__read_events:               ## @perf_sched__read_events
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -160(%rbp)
	movq	_process_sched_switch_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -144(%rbp)
	movq	_process_sched_runtime_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -128(%rbp)
	movq	_process_sched_wakeup_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, -112(%rbp)
	movl	%eax, -104(%rbp)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -96(%rbp)
	movq	_process_sched_fork_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -80(%rbp)
	movq	_process_sched_exit_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	L_.str.6(%rip), %rax
	movq	%rax, -64(%rbp)
	movq	_process_sched_migrate_task_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_input_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r12), %r13
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_perf_session__new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-160(%rbp), %rsi
	movq	%rax, %rdi
	callq	_perf_session__set_tracepoints_handlers
	testq	%rax, %rax
	je	LBB0_3
LBB0_11:
	movq	%rbx, %rdi
	callq	_perf_session__delete
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_debug
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_perf_session__has_traces
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_perf_session__process_events
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:
	leaq	L_.str.9(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_11
LBB0_5:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%r12)
	movl	8(%rbx), %ecx
	movl	%ecx, 4(%r12)
	movq	_PERF_RECORD_LOST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r12)
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_perf_session__delete
LBB0_8:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.9:
	movq	%rbx, (%r14)
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sched:sched_switch"

	.comm	_process_sched_switch_event,4,2 ## @process_sched_switch_event
L_.str.1:                               ## @.str.1
	.asciz	"sched:sched_stat_runtime"

	.comm	_process_sched_runtime_event,4,2 ## @process_sched_runtime_event
L_.str.2:                               ## @.str.2
	.asciz	"sched:sched_wakeup"

	.comm	_process_sched_wakeup_event,4,2 ## @process_sched_wakeup_event
L_.str.3:                               ## @.str.3
	.asciz	"sched:sched_wakeup_new"

L_.str.4:                               ## @.str.4
	.asciz	"sched:sched_process_fork"

	.comm	_process_sched_fork_event,4,2   ## @process_sched_fork_event
L_.str.5:                               ## @.str.5
	.asciz	"sched:sched_process_exit"

	.comm	_process_sched_exit_event,4,2   ## @process_sched_exit_event
L_.str.6:                               ## @.str.6
	.asciz	"sched:sched_migrate_task"

	.comm	_process_sched_migrate_task_event,4,2 ## @process_sched_migrate_task_event
	.comm	_input_name,4,2                 ## @input_name
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.7:                               ## @.str.7
	.asciz	"No Memory for session\n"

L_.str.8:                               ## @.str.8
	.asciz	"record -R"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to process events, error %d"

	.comm	_PERF_RECORD_LOST,8,3           ## @PERF_RECORD_LOST
	.no_dead_strip	_perf_sched__read_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_sched__read_events
_perf_sched__read_events:               ; @perf_sched__read_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
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, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
Lloh5:
	adrp	x8, _process_sched_switch_event@GOTPAGE
Lloh6:
	ldr	x8, [x8, _process_sched_switch_event@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh10:
	adrp	x9, _process_sched_runtime_event@GOTPAGE
Lloh11:
	ldr	x9, [x9, _process_sched_runtime_event@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh12:
	ldr	w8, [x9]
	str	w8, [sp, #32]
Lloh13:
	adrp	x8, l_.str.2@PAGE
Lloh14:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp, #40]
Lloh15:
	adrp	x8, _process_sched_wakeup_event@GOTPAGE
Lloh16:
	ldr	x8, [x8, _process_sched_wakeup_event@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	str	x9, [sp, #56]
	str	w8, [sp, #64]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh22:
	adrp	x9, _process_sched_fork_event@GOTPAGE
Lloh23:
	ldr	x9, [x9, _process_sched_fork_event@GOTPAGEOFF]
	str	x8, [sp, #72]
Lloh24:
	ldr	w8, [x9]
	str	w8, [sp, #80]
Lloh25:
	adrp	x8, l_.str.5@PAGE
Lloh26:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #88]
Lloh27:
	adrp	x8, _process_sched_exit_event@GOTPAGE
Lloh28:
	ldr	x8, [x8, _process_sched_exit_event@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [sp, #96]
Lloh30:
	adrp	x8, l_.str.6@PAGE
Lloh31:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [sp, #104]
Lloh32:
	adrp	x8, _process_sched_migrate_task_event@GOTPAGE
Lloh33:
	ldr	x8, [x8, _process_sched_migrate_task_event@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _input_name@GOTPAGE
Lloh36:
	ldr	x9, [x9, _input_name@GOTPAGEOFF]
	str	w8, [sp, #112]
Lloh37:
	ldr	w0, [x9]
Lloh38:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
	add	x23, x21, #12
Lloh40:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	x4, x23
	bl	_perf_session__new
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	add	x1, sp, #8
	bl	_perf_session__set_tracepoints_handlers
	cbz	x0, LBB0_7
LBB0_2:
	mov	x0, x22
	bl	_perf_session__delete
	b	LBB0_4
LBB0_3:
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_debug
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_7:
Lloh46:
	adrp	x1, l_.str.8@PAGE
Lloh47:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_perf_session__has_traces
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x22
	mov	x1, x23
	bl	_perf_session__process_events
	cbz	w0, LBB0_10
; %bb.9:
	mov	x1, x0
Lloh48:
	adrp	x0, l_.str.9@PAGE
Lloh49:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_err
	b	LBB0_2
LBB0_10:
	ldr	x8, [x22]
	ldr	w9, [x8]
	str	w9, [x21, #8]
	ldr	w9, [x22, #8]
	str	w9, [x21, #4]
Lloh50:
	adrp	x9, _PERF_RECORD_LOST@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PERF_RECORD_LOST@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x21]
LBB0_11:
	cbz	w20, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_perf_session__delete
LBB0_13:
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.14:
	str	x22, [x19]
	b	LBB0_5
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sched:sched_switch"

	.comm	_process_sched_switch_event,4,2 ; @process_sched_switch_event
l_.str.1:                               ; @.str.1
	.asciz	"sched:sched_stat_runtime"

	.comm	_process_sched_runtime_event,4,2 ; @process_sched_runtime_event
l_.str.2:                               ; @.str.2
	.asciz	"sched:sched_wakeup"

	.comm	_process_sched_wakeup_event,4,2 ; @process_sched_wakeup_event
l_.str.3:                               ; @.str.3
	.asciz	"sched:sched_wakeup_new"

l_.str.4:                               ; @.str.4
	.asciz	"sched:sched_process_fork"

	.comm	_process_sched_fork_event,4,2   ; @process_sched_fork_event
l_.str.5:                               ; @.str.5
	.asciz	"sched:sched_process_exit"

	.comm	_process_sched_exit_event,4,2   ; @process_sched_exit_event
l_.str.6:                               ; @.str.6
	.asciz	"sched:sched_migrate_task"

	.comm	_process_sched_migrate_task_event,4,2 ; @process_sched_migrate_task_event
	.comm	_input_name,4,2                 ; @input_name
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.7:                               ; @.str.7
	.asciz	"No Memory for session\n"

l_.str.8:                               ; @.str.8
	.asciz	"record -R"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to process events, error %d"

	.comm	_PERF_RECORD_LOST,8,3           ; @PERF_RECORD_LOST
	.no_dead_strip	_perf_sched__read_events
.subsections_via_symbols
