	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rr_add_path
_rr_add_path:                           ## @rr_add_path
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	(%rdi), %r14
	movq	_RR_MIN_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	cmpl	$2, %edx
	jl	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%rsi, %r15
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.5:
	movq	(%rcx), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-37(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movl	-36(%rbp), %eax
LBB0_8:
	cmpl	$2, %eax
	jb	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_DMWARN_LIMIT
	movl	$1, -36(%rbp)
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	movl	-36(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%rbx, (%r15)
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$4, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r12)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.2(%rip), %rax
LBB0_2:
	movq	%rax, (%r12)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RR_MIN_IO,4,2                  ## @RR_MIN_IO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"round-robin ps: incorrect number of arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%u%c"

L_.str.2:                               ## @.str.2
	.asciz	"round-robin ps: invalid repeat count"

L_.str.3:                               ## @.str.3
	.asciz	"repeat_count > 1 is deprecated, using 1 instead"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"round-robin ps: Error allocating path context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rr_add_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rr_add_path
_rr_add_path:                           ; @rr_add_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x4
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _RR_MIN_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RR_MIN_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	cmp	w2, #2
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_11
LBB0_2:
	mov	x21, x1
	cmp	w2, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x3]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #11
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.4:
	ldr	w8, [sp, #12]
LBB0_5:
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DMWARN_LIMIT
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_7:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.8:
	mov	x22, x0
	str	x21, [x0, #8]
	ldr	w8, [sp, #12]
	str	w8, [x0]
	str	x0, [x21]
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x0, x22, #4
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x20]
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh16:
	adrp	x8, l_.str.2@PAGE
Lloh17:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_11:
	str	x8, [x20]
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RR_MIN_IO,4,2                  ; @RR_MIN_IO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"round-robin ps: incorrect number of arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%u%c"

l_.str.2:                               ; @.str.2
	.asciz	"round-robin ps: invalid repeat count"

l_.str.3:                               ; @.str.3
	.asciz	"repeat_count > 1 is deprecated, using 1 instead"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"round-robin ps: Error allocating path context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rr_add_path
.subsections_via_symbols
