	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifo                           ## -- Begin function fifo
	.p2align	4, 0x90
_fifo:                                  ## @fifo
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-208(%rbp), %rsi
	xorl	%edi, %edi
	callq	_sched_rr_get_interval
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.4:
	movl	$1, -184(%rbp)
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movq	_MAP_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$8, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_6:
	movq	$0, (%rbx)
	movq	_SCHED_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-184(%rbp), %rdx
	xorl	%edi, %edi
	callq	_sched_setscheduler
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.7:
	xorl	%eax, %eax
	callq	_getpid
	movq	%rax, -192(%rbp)
	xorl	%eax, %eax
	callq	_fork
	movq	_child@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	_tidyup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	movq	-192(%rbp), %rax
	movq	%rax, (%rbx)
	movq	_ticked@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	-176(%rbp), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpq	$0, (%r13)
	jne	LBB0_21
## %bb.11:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movslq	%r13d, %r13
	leaq	-176(,%r13,4), %rdi
	addq	%rbp, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	$0, (%rbx)
	incl	%r13d
	movq	_ticked@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	testq	%rax, %rax
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$32, %r13d
	jl	LBB0_12
LBB0_17:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$2, %r13d
	jl	LBB0_27
## %bb.19:
	movl	%r13d, %eax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r15d
	leaq	4(%r14), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tvsub
	movl	%r15d, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movb	$1, %al
	callq	_fprintf
	incq	%rbx
	movq	%r13, %r14
	cmpq	%rbx, -200(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_20
	jmp	LBB0_27
LBB0_8:
	xorl	%eax, %eax
	callq	_getpid
	movq	%rax, -192(%rbp)
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-192(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_21:
	movq	(%r15), %rdi
	movq	_SCHED_RR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-184(%rbp), %rdx
	callq	_sched_setscheduler
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.22:
	movl	(%r14), %esi
	leaq	-184(%rbp), %rdx
	xorl	%edi, %edi
	callq	_sched_setscheduler
	cmpl	$-1, %eax
	jne	LBB0_23
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	$-1, %eax
LBB0_3:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_fifo.cold.1
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_29:
	callq	___stack_chk_fail
LBB0_23:
	movq	_ticked@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_24
## %bb.25:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function fifo.cold.1
_fifo.cold.1:                           ## @fifo.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sched_rr_get_interval"

	.comm	_errno,4,2                      ## @errno
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"mmap"

	.comm	_SCHED_FIFO,4,2                 ## @SCHED_FIFO
L_.str.2:                               ## @.str.2
	.asciz	"sched_setscheduler"

	.comm	_child,8,3                      ## @child
	.comm	_tidyup,4,2                     ## @tidyup
	.comm	_ticked,8,3                     ## @ticked
	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"SCHED_FIFO had erroneous context switches:\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d %g\n"

	.comm	_SCHED_RR,4,2                   ## @SCHED_RR
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_MAX_RANAT,4,2                  ## @MAX_RANAT
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_tick,4,2                       ## @tick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fifo                           ; -- Begin function fifo
	.p2align	2
_fifo:                                  ; @fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x1, sp, #16
	mov	w0, #0
	bl	_sched_rr_get_interval
	cmn	w0, #1
	b.eq	LBB0_22
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MAP_ANON@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAP_ANON@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _MAP_SHARED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAP_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #0
	mov	w1, #8
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x19, x0
	cmn	x0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_3:
	str	xzr, [x19]
Lloh20:
	adrp	x8, _SCHED_FIFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SCHED_FIFO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, #0
	bl	_sched_setscheduler
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.4:
	bl	_getpid
	str	x0, [sp, #32]
	bl	_fork
Lloh23:
	adrp	x20, _child@GOTPAGE
Lloh24:
	ldr	x20, [x20, _child@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_15
; %bb.5:
Lloh25:
	adrp	x8, _tidyup@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tidyup@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_atexit
	ldr	x8, [sp, #32]
	str	x8, [x19]
Lloh28:
	adrp	x21, _ticked@GOTPAGE
Lloh29:
	ldr	x21, [x21, _ticked@GOTPAGEOFF]
	str	xzr, [x21]
	add	x23, sp, #40
	add	x0, sp, #40
	mov	w1, #0
	bl	_gettimeofday
	ldr	x8, [x21]
	cbnz	x8, LBB0_17
; %bb.6:
	mov	w22, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x23, w22, sxtw #2
	mov	w1, #0
	bl	_gettimeofday
	str	xzr, [x19]
	add	w22, w22, #1
	ldr	x9, [x21]
	mov	w8, #-1
	cbz	x9, LBB0_10
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, #0
	cbnz	x9, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, #32
	b.lt	LBB0_7
LBB0_11:
	cbz	w8, LBB0_17
; %bb.12:
Lloh30:
	adrp	x23, _stderr@GOTPAGE
Lloh31:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	cmp	w22, #2
	b.lt	LBB0_20
; %bb.13:
	mov	w22, w22
	add	x1, sp, #40
	mov	w24, #1
Lloh34:
	adrp	x19, l_.str.4@PAGE
Lloh35:
	add	x19, x19, l_.str.4@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x23]
	add	x21, x1, #4
	mov	x0, x21
	bl	_tvsub
	str	d0, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	mov	x1, x19
	bl	_fprintf
	add	x24, x24, #1
	mov	x1, x21
	cmp	x22, x24
	b.ne	LBB0_14
	b	LBB0_20
LBB0_15:
	bl	_getpid
	str	x0, [sp, #32]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	str	x8, [x19]
	b	LBB0_16
LBB0_17:
	ldr	x0, [x20]
Lloh36:
	adrp	x22, _SCHED_RR@GOTPAGE
Lloh37:
	ldr	x22, [x22, _SCHED_RR@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #24
	bl	_sched_setscheduler
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.18:
	ldr	w1, [x22]
	add	x2, sp, #24
	mov	x0, #0
	bl	_sched_setscheduler
	cmn	w0, #1
	b.ne	LBB0_24
LBB0_19:
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
LBB0_20:
	ldur	x8, [x29, #-56]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
	mov	w0, #-1
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_22:
	bl	_fifo.cold.1
LBB0_23:
	bl	___stack_chk_fail
LBB0_24:
	str	xzr, [x21]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.26:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function fifo.cold.1
_fifo.cold.1:                           ; @fifo.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sched_rr_get_interval"

	.comm	_errno,4,2                      ; @errno
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"mmap"

	.comm	_SCHED_FIFO,4,2                 ; @SCHED_FIFO
l_.str.2:                               ; @.str.2
	.asciz	"sched_setscheduler"

	.comm	_child,8,3                      ; @child
	.comm	_tidyup,4,2                     ; @tidyup
	.comm	_ticked,8,3                     ; @ticked
	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"SCHED_FIFO had erroneous context switches:\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d %g\n"

	.comm	_SCHED_RR,4,2                   ; @SCHED_RR
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_MAX_RANAT,4,2                  ; @MAX_RANAT
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_tick,4,2                       ; @tick
.subsections_via_symbols
