	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_priority_group
_parse_priority_group:                  ## @parse_priority_group
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rsi), %r14
	cmpl	$1, (%rdi)
	jg	LBB0_2
## %bb.1:
	movl	$0, (%r13)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_alloc_priority_group
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, 16(%rax)
	movq	%r13, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_parse_path_selector
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	leaq	_parse_priority_group._args(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_dm_read_arg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	leaq	_parse_priority_group._args+16(%rip), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_dm_read_arg
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_free_priority_group
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %r15
LBB0_16:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	cmpl	$0, (%r15)
	je	LBB0_16
## %bb.9:
	movl	-48(%rbp), %ebx
	incl	%ebx
	leaq	8(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%r13)
	jb	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, -56(%rbp)
	movl	4(%r13), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_parse_path
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, 8(%rbx)
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	%r13, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_dm_consume_args
	incl	%r12d
	cmpl	(%r15), %r12d
	jb	LBB0_10
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_14:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @parse_priority_group._args
_parse_priority_group._args:
	.long	1                               ## 0x1
	.long	1024                            ## 0x400
	.quad	L_.str
	.long	0                               ## 0x0
	.long	1024                            ## 0x400
	.quad	L_.str.1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid number of paths"

L_.str.1:                               ## @.str.1
	.asciz	"invalid number of selector args"

L_.str.2:                               ## @.str.2
	.asciz	"not enough priority group arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"couldn't allocate priority group"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"not enough path parameters"

	.no_dead_strip	_parse_priority_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_priority_group
_parse_priority_group:                  ; @parse_priority_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x19, [x1]
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
	str	wzr, [x21]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x19]
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x22, x1
	bl	_alloc_priority_group
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	str	x22, [x0, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_parse_path_selector
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x0, _parse_priority_group._args@PAGE
Lloh5:
	add	x0, x0, _parse_priority_group._args@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_dm_read_arg
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, _parse_priority_group._args@PAGE+16
Lloh7:
	add	x0, x0, _parse_priority_group._args@PAGEOFF+16
	add	x2, sp, #12
	mov	x1, x21
	mov	x3, x19
	bl	_dm_read_arg
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_free_priority_group
	mov	x0, x22
	bl	_ERR_PTR
	mov	x20, x0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19]
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.11:
	mov	w26, #0
	ldr	w8, [sp, #12]
	add	w22, w8, #1
	add	x23, x20, #8
	add	x24, x20, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, w22
	b.lo	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21, #4]
	stp	w22, w8, [sp]
	mov	x0, sp
	mov	x1, x23
	mov	x2, x19
	bl	_parse_path
	mov	x25, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x20, [x25, #8]
	mov	x0, x25
	mov	x1, x24
	bl	_list_add_tail
	mov	x0, x21
	mov	x1, x22
	bl	_dm_consume_args
	add	w26, w26, #1
	ldr	w8, [x20]
	cmp	w26, w8
	b.lo	LBB0_12
	b	LBB0_7
LBB0_15:
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19]
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_16:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @parse_priority_group._args
_parse_priority_group._args:
	.long	1                               ; 0x1
	.long	1024                            ; 0x400
	.quad	l_.str
	.long	0                               ; 0x0
	.long	1024                            ; 0x400
	.quad	l_.str.1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid number of paths"

l_.str.1:                               ; @.str.1
	.asciz	"invalid number of selector args"

l_.str.2:                               ; @.str.2
	.asciz	"not enough priority group arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"couldn't allocate priority group"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"not enough path parameters"

	.no_dead_strip	_parse_priority_group
.subsections_via_symbols
