	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsmatchselect
_dsmatchselect:                         ## @dsmatchselect
	.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	$856, %rsp                      ## imm = 0x358
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rcx, -872(%rbp)                ## 8-byte Spill
	movq	%rdx, -880(%rbp)                ## 8-byte Spill
	movq	%rsi, -888(%rbp)                ## 8-byte Spill
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, -864(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-864(%rbp), %rdi
	callq	_strsep
	movq	%rax, -848(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	%rbx, -856(%rbp)                ## 8-byte Spill
	leaq	-848(%rbp), %r13
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rbx
	leaq	-864(%rbp), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$8, %r13
	leaq	-48(%rbp), %rax
	cmpq	%rax, %r13
	jae	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r15), %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strsep
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$99, %r15d
	movl	%r12d, %r15d
	jb	LBB0_10
LBB0_15:
	movq	-856(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	leal	-1(%r12), %eax
	cmpl	$99, %eax
	jb	LBB0_5
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_25
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_24
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_12:
	movq	-856(%rbp), %rbx                ## 8-byte Reload
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	movl	%r15d, %r12d
LBB0_5:
	movq	_num_matches@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_7
## %bb.6:
	movq	_matches@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
	movq	$0, (%rbx)
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.8:
	movl	%r12d, %r15d
	xorl	%ebx, %ebx
	movq	_matches@GOTPCREL(%rip), %r13
	movq	_num_matches@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-848(%rbp,%rbx,8), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_devstat_buildmatch
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_18
## %bb.20:
	movq	_DS_MATCHTYPE_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_last_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_generation@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-872(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r9d
	movq	_num_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dev_select@GOTPCREL(%rip), %rdi
	movq	_num_selected@GOTPCREL(%rip), %rsi
	movq	_num_selections@GOTPCREL(%rip), %rdx
	movq	_select_generation@GOTPCREL(%rip), %rcx
	pushq	$0
	pushq	-880(%rbp)                      ## 8-byte Folded Reload
	pushq	-888(%rbp)                      ## 8-byte Folded Reload
	pushq	$0
	pushq	$0
	pushq	(%r14)
	pushq	(%r13)
	pushq	%rax
	callq	_devstat_selectdevs
	addq	$64, %rsp
	cmpl	$1, %eax
	je	LBB0_21
## %bb.22:
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_24:
	movl	$1, %ebx
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movl	%ebx, %eax
	addq	$856, %rsp                      ## imm = 0x358
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_25
LBB0_21:
	movl	$2, %ebx
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsmatchselect: no arguments"

L_.str.1:                               ## @.str.1
	.asciz	"|"

L_.str.2:                               ## @.str.2
	.asciz	"dsmatchselect: too many match arguments"

	.comm	_num_matches,8,3                ## @num_matches
	.comm	_matches,8,3                    ## @matches
L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ## @devstat_errbuf
	.comm	_DS_MATCHTYPE_PATTERN,4,2       ## @DS_MATCHTYPE_PATTERN
	.comm	_last_type,4,2                  ## @last_type
	.comm	_dev_select,4,2                 ## @dev_select
	.comm	_num_selected,4,2               ## @num_selected
	.comm	_num_selections,4,2             ## @num_selections
	.comm	_select_generation,4,2          ## @select_generation
	.comm	_generation,4,2                 ## @generation
	.comm	_num_devices,4,2                ## @num_devices
L_.str.4:                               ## @.str.4
	.asciz	"device selection error"

	.no_dead_strip	_dsmatchselect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsmatchselect
_dsmatchselect:                         ; @dsmatchselect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #848
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x0, LBB0_19
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	bl	_strdup
	mov	x22, x0
	str	x0, [sp, #32]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	bl	_strsep
	str	x0, [sp, #40]
	mov	w24, #0
	cbz	x0, LBB0_9
; %bb.2:
	add	x26, sp, #40
	add	x27, x26, #800
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #8
	cmp	x26, x27
	b.hs	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w24, #1
	add	x0, sp, #32
	mov	x1, x23
	bl	_strsep
	str	x0, [x26]
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #99
	mov	x24, x25
	b.lo	LBB0_3
LBB0_7:
	mov	x0, x22
	bl	_free
	sub	w8, w25, #1
	cmp	w8, #99
	b.lo	LBB0_10
; %bb.8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_9:
	mov	x0, x22
	bl	_free
	mov	x25, x24
LBB0_10:
Lloh9:
	adrp	x22, _num_matches@GOTPAGE
Lloh10:
	ldr	x22, [x22, _num_matches@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
Lloh11:
	adrp	x23, _matches@GOTPAGE
Lloh12:
	ldr	x23, [x23, _matches@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_free
	str	xzr, [x23]
	str	xzr, [x22]
LBB0_12:
	cbz	w25, LBB0_20
; %bb.13:
	add	x24, sp, #40
Lloh13:
	adrp	x22, _matches@GOTPAGE
Lloh14:
	ldr	x22, [x22, _matches@GOTPAGEOFF]
Lloh15:
	adrp	x23, _num_matches@GOTPAGE
Lloh16:
	ldr	x23, [x23, _num_matches@GOTPAGEOFF]
	mov	w25, w25
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x22
	mov	x2, x23
	bl	_devstat_buildmatch
	cbnz	x0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #8
	subs	x25, x25, #1
	b.ne	LBB0_14
; %bb.16:
Lloh17:
	adrp	x8, _DS_MATCHTYPE_PATTERN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DS_MATCHTYPE_PATTERN@GOTPAGEOFF]
Lloh19:
	adrp	x9, _last_type@GOTPAGE
Lloh20:
	ldr	x9, [x9, _last_type@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	str	w8, [x9]
Lloh23:
	adrp	x8, _generation@GOTPAGE
Lloh24:
	ldr	x8, [x8, _generation@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	ldr	x8, [x21]
	ldr	w5, [x8]
Lloh26:
	adrp	x8, _num_devices@GOTPAGE
Lloh27:
	ldr	x8, [x8, _num_devices@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
	ldr	x7, [x22]
	ldr	x8, [x23]
	stp	w20, wzr, [sp, #24]
	stp	wzr, w19, [sp, #16]
	stp	x8, xzr, [sp]
Lloh29:
	adrp	x0, _dev_select@GOTPAGE
Lloh30:
	ldr	x0, [x0, _dev_select@GOTPAGEOFF]
Lloh31:
	adrp	x1, _num_selected@GOTPAGE
Lloh32:
	ldr	x1, [x1, _num_selected@GOTPAGEOFF]
Lloh33:
	adrp	x2, _num_selections@GOTPAGE
Lloh34:
	ldr	x2, [x2, _num_selections@GOTPAGEOFF]
Lloh35:
	adrp	x3, _select_generation@GOTPAGE
Lloh36:
	ldr	x3, [x3, _select_generation@GOTPAGEOFF]
	bl	_devstat_selectdevs
	cmp	w0, #1
	b.eq	LBB0_25
; %bb.17:
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.18:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_20
LBB0_19:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_20:
	mov	w0, #1
	b	LBB0_23
LBB0_21:
Lloh41:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh42:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_22:
	bl	_warnx
	mov	w0, #0
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	add	sp, sp, #848
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w0, #2
	b	LBB0_23
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsmatchselect: no arguments"

l_.str.1:                               ; @.str.1
	.asciz	"|"

l_.str.2:                               ; @.str.2
	.asciz	"dsmatchselect: too many match arguments"

	.comm	_num_matches,8,3                ; @num_matches
	.comm	_matches,8,3                    ; @matches
l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_devstat_errbuf,4,2             ; @devstat_errbuf
	.comm	_DS_MATCHTYPE_PATTERN,4,2       ; @DS_MATCHTYPE_PATTERN
	.comm	_last_type,4,2                  ; @last_type
	.comm	_dev_select,4,2                 ; @dev_select
	.comm	_num_selected,4,2               ; @num_selected
	.comm	_num_selections,4,2             ; @num_selections
	.comm	_select_generation,4,2          ; @select_generation
	.comm	_generation,4,2                 ; @generation
	.comm	_num_devices,4,2                ; @num_devices
l_.str.4:                               ; @.str.4
	.asciz	"device selection error"

	.no_dead_strip	_dsmatchselect
.subsections_via_symbols
