	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsesel
_parsesel:                              ## @parsesel
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	movl	$64, %esi
	callq	_strchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r15, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_errx
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.3:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movsbl	3(%rbx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	addq	$3, %rbx
	xorl	%r13d, %r13d
	leaq	-96(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, -80(%rbp,%r13,8)
	movq	-96(%rbp), %rax
	xorl	%ecx, %ecx
	cmpb	$58, (%rax)
	leaq	1(%r13), %r14
	sete	%cl
	leaq	(%rax,%rcx), %rbx
	movsbl	(%rax,%rcx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$3, %r13
	movq	%r14, %r13
	jb	LBB0_6
LBB0_8:
	cmpb	$0, (%rbx)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_1
## %bb.9:
	cmpl	$2, %r14d
	jbe	LBB0_12
## %bb.10:
	movq	-88(%rbp,%r14,8), %rax
	movq	%rax, (%r12)
	leal	-2(%r14), %eax
	movq	-80(%rbp,%rax,8), %rax
	movq	%rax, 8(%r12)
	leal	-3(%r14), %eax
	movq	-80(%rbp,%rax,8), %rax
	movq	%rax, 16(%r12)
	cmpl	$3, %r14d
	je	LBB0_16
## %bb.14:
	movl	$4294967292, %eax               ## imm = 0xFFFFFFFC
	addl	%eax, %r14d
	movq	-80(%rbp,%r14,8), %rax
	jmp	LBB0_17
LBB0_12:
	movq	$0, (%r12)
	movq	-88(%rbp,%r14,8), %rax
	movq	%rax, 8(%r12)
	cmpl	$2, %r14d
	jne	LBB0_15
## %bb.13:
	movq	-80(%rbp), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_16
LBB0_15:
	movq	$0, 16(%r12)
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	%rax, 24(%r12)
	jmp	LBB0_2
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci"

L_.str.1:                               ## @.str.1
	.asciz	"cannot parse selector %s"

	.no_dead_strip	_parsesel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsesel
_parsesel:                              ; @parsesel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x0
	mov	x19, x8
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w1, #64
	bl	_strchr
	cmp	x0, #0
	csinc	x21, x20, x0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_3
LBB0_1:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, 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
	add	sp, sp, #96
	b	_errx
LBB0_3:
	ldrsb	w0, [x21, #3]!
	bl	_isdigit
	cbz	x0, LBB0_1
; %bb.4:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #8]
	ldr	x8, [sp]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x21, x8, x9, ne
	ldrsb	w0, [x21]
	bl	_isdigit
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #16]
	ldr	x8, [sp]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x21, x8, x9, ne
	ldrsb	w0, [x21]
	bl	_isdigit
	cbz	x0, LBB0_9
; %bb.6:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #24]
	ldr	x8, [sp]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x21, x8, x9, ne
	ldrsb	w0, [x21]
	bl	_isdigit
	cbz	x0, LBB0_10
; %bb.7:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #32]
	ldr	x8, [sp]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x21, x8, x9, ne
	ldrsb	w0, [x21]
	bl	_isdigit
	mov	w10, #0
	mov	w9, #0
	mov	w11, #1
	mov	w8, #3
	mov	w12, #1
	ldrb	w13, [x21]
	cbnz	w13, LBB0_1
	b	LBB0_11
LBB0_8:
	mov	x8, #0
	mov	w11, #0
	mov	w10, #0
	mov	w9, #0
	mov	w12, #-2
	ldrb	w13, [x21]
	cbnz	w13, LBB0_1
	b	LBB0_11
LBB0_9:
	mov	w11, #0
	mov	w9, #0
	mov	w8, #1
	mov	w12, #-1
	mov	w10, #1
	ldrb	w13, [x21]
	cbnz	w13, LBB0_1
	b	LBB0_11
LBB0_10:
	mov	w10, #0
	mov	x12, #0
	mov	w11, #1
	mov	w8, #2
	mov	w9, #1
	ldrb	w13, [x21]
	cbnz	w13, LBB0_1
LBB0_11:
	tbz	w11, #0, LBB0_14
; %bb.12:
	add	x10, sp, #8
	ldr	x11, [x10, x8, lsl #3]
	sub	w13, w8, #1
	ldr	x13, [x10, w13, uxtw #3]
	stp	x11, x13, [x19]
	ldr	x11, [x10, x12, lsl #3]
	str	x11, [x19, #16]
	tbz	w9, #0, LBB0_16
; %bb.13:
	mov	x8, #0
	b	LBB0_18
LBB0_14:
	add	x9, sp, #8
	ldr	x8, [x9, x8, lsl #3]
	stp	xzr, x8, [x19]
	mov	x8, #0
	cbz	w10, LBB0_17
; %bb.15:
	ldr	x9, [sp, #8]
	str	x9, [x19, #16]
	b	LBB0_18
LBB0_16:
	sub	w8, w8, #3
	ldr	x8, [x10, w8, uxtw #3]
	b	LBB0_18
LBB0_17:
	str	xzr, [x19, #16]
LBB0_18:
	str	x8, [x19, #24]
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	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
	add	sp, sp, #96
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci"

l_.str.1:                               ; @.str.1
	.asciz	"cannot parse selector %s"

	.no_dead_strip	_parsesel
.subsections_via_symbols
