	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_pci_addr
_parse_pci_addr:                        ## @parse_pci_addr
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_4:
	movl	$1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movsbl	3(%r13), %edi
	addq	$3, %r13
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-88(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, -80(%rbp,%rbx,8)
	movq	-88(%rbp), %rax
	xorl	%ecx, %ecx
	cmpb	$58, (%rax)
	leaq	1(%rbx), %r12
	sete	%cl
	leaq	(%rax,%rcx), %r13
	movsbl	(%rax,%rcx), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$3, %rbx
	movq	%r12, %rbx
	jb	LBB0_9
LBB0_11:
	cmpb	$0, (%r13)
	jne	LBB0_2
## %bb.12:
	cmpl	$2, %r12d
	jbe	LBB0_15
## %bb.13:
	movq	-88(%rbp,%r12,8), %rax
	movq	%rax, (%r14)
	leal	-2(%r12), %eax
	movq	-80(%rbp,%rax,8), %rax
	movq	%rax, 8(%r14)
	leal	-3(%r12), %eax
	movq	-80(%rbp,%rax,8), %rax
	movq	%rax, 16(%r14)
	cmpl	$3, %r12d
	je	LBB0_19
## %bb.17:
	movl	$4294967292, %eax               ## imm = 0xFFFFFFFC
	addl	%eax, %r12d
	movq	-80(%rbp,%r12,8), %rax
	jmp	LBB0_20
LBB0_15:
	movq	$0, (%r14)
	movq	-88(%rbp,%r12,8), %rax
	movq	%rax, 8(%r14)
	cmpl	$2, %r12d
	jne	LBB0_18
## %bb.16:
	movq	-80(%rbp), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_19
LBB0_18:
	movq	$0, 16(%r14)
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	movq	%rax, 24(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no pci address specified"

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

L_.str.2:                               ## @.str.2
	.asciz	"invalid pci address %s"

	.no_dead_strip	_parse_pci_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_pci_addr
_parse_pci_addr:                        ; @parse_pci_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_7
LBB0_2:
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_warnx
	mov	w0, #1
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldrsb	w0, [x20, #3]!
	bl	_isdigit
	cbz	x0, LBB0_2
; %bb.8:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #24]
	ldr	x8, [sp, #16]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x20, x8, x9, ne
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_12
; %bb.9:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #32]
	ldr	x8, [sp, #16]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x20, x8, x9, ne
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_13
; %bb.10:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #40]
	ldr	x8, [sp, #16]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x20, x8, x9, ne
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_14
; %bb.11:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	str	x0, [sp, #48]
	ldr	x8, [sp, #16]
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #58
	csel	x20, x8, x9, ne
	ldrsb	w0, [x20]
	bl	_isdigit
	mov	w10, #0
	mov	w9, #0
	mov	w11, #1
	mov	w8, #3
	mov	w12, #1
	ldrb	w13, [x20]
	cbnz	w13, LBB0_2
	b	LBB0_15
LBB0_12:
	mov	x8, #0
	mov	w11, #0
	mov	w10, #0
	mov	w9, #0
	mov	w12, #-2
	ldrb	w13, [x20]
	cbnz	w13, LBB0_2
	b	LBB0_15
LBB0_13:
	mov	w11, #0
	mov	w9, #0
	mov	w8, #1
	mov	w12, #-1
	mov	w10, #1
	ldrb	w13, [x20]
	cbnz	w13, LBB0_2
	b	LBB0_15
LBB0_14:
	mov	w10, #0
	mov	x12, #0
	mov	w11, #1
	mov	w8, #2
	mov	w9, #1
	ldrb	w13, [x20]
	cbnz	w13, LBB0_2
LBB0_15:
	tbz	w11, #0, LBB0_18
; %bb.16:
	add	x10, sp, #24
	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_20
; %bb.17:
	mov	x8, #0
	b	LBB0_22
LBB0_18:
	add	x9, sp, #24
	ldr	x8, [x9, x8, lsl #3]
	stp	xzr, x8, [x19]
	mov	x8, #0
	cbz	w10, LBB0_21
; %bb.19:
	ldr	x9, [sp, #24]
	str	x9, [x19, #16]
	b	LBB0_22
LBB0_20:
	sub	w8, w8, #3
	ldr	x8, [x10, w8, uxtw #3]
	b	LBB0_22
LBB0_21:
	str	xzr, [x19, #16]
LBB0_22:
	mov	w0, #0
	str	x8, [x19, #24]
	b	LBB0_5
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no pci address specified"

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

l_.str.2:                               ; @.str.2
	.asciz	"invalid pci address %s"

	.no_dead_strip	_parse_pci_addr
.subsections_via_symbols
