	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_sched__replay
_perf_sched__replay:                    ## @perf_sched__replay
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_calibrate_run_measurement_overhead
	movq	%r15, %rdi
	callq	_calibrate_sleep_measurement_overhead
	movq	%r15, %rdi
	callq	_test_calibrations
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_perf_sched__read_events
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movl	40(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	36(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	32(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_3:
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_5:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_7:
	movq	%r15, %rdi
	callq	_print_task_traces
	movq	%r15, %rdi
	callq	_add_cross_task_wakeups
	movq	%r15, %rdi
	callq	_create_tasks
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpq	$0, (%r15)
	je	LBB0_8
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_run_one_test
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_10
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nr_run_events:        %ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"nr_sleep_events:      %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"nr_wakeup_events:     %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"target-less wakeups:  %ld\n"

L_.str.4:                               ## @.str.4
	.asciz	"multi-target wakeups: %ld\n"

L_.str.5:                               ## @.str.5
	.asciz	"run atoms optimized: %ld\n"

L_str:                                  ## @str
	.asciz	"------------------------------------------------------------"

	.no_dead_strip	_perf_sched__replay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_sched__replay
_perf_sched__replay:                    ; @perf_sched__replay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_calibrate_run_measurement_overhead
	mov	x0, x19
	bl	_calibrate_sleep_measurement_overhead
	mov	x0, x19
	bl	_test_calibrations
	mov	x0, x19
	mov	w1, #1
	mov	x2, #0
	bl	_perf_sched__read_events
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_12
LBB0_2:
	ldr	w8, [x19, #40]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x19, #36]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_8:
	mov	x0, x19
	bl	_print_task_traces
	mov	x0, x19
	bl	_add_cross_task_wakeups
	mov	x0, x19
	bl	_create_tasks
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x20, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_run_one_test
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lo	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nr_run_events:        %ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"nr_sleep_events:      %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"nr_wakeup_events:     %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"target-less wakeups:  %ld\n"

l_.str.4:                               ; @.str.4
	.asciz	"multi-target wakeups: %ld\n"

l_.str.5:                               ; @.str.5
	.asciz	"run atoms optimized: %ld\n"

l_str:                                  ; @str
	.asciz	"------------------------------------------------------------"

	.no_dead_strip	_perf_sched__replay
.subsections_via_symbols
