	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vpd_wait
_pci_vpd_wait:                          ## @pci_vpd_wait
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$125, %edi
	callq	_msecs_to_jiffies
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r13)
	je	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	_PCI_VPD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_pci_user_read_config_word
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	addq	%rbx, %r15
	movl	$16, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PCI_VPD_ADDR_F@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fatal_signal_pending
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_usleep_range
	cmpq	$1024, %rbx                     ## imm = 0x400
	setb	%cl
	shlq	%cl, %rbx
	movq	_PCI_VPD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_pci_user_read_config_word
	testl	%eax, %eax
	jns	LBB0_3
LBB0_8:
	movl	%eax, %r14d
	jmp	LBB0_13
LBB0_9:
	movq	$0, 8(%r13)
	jmp	LBB0_13
LBB0_10:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_pci_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_PCI_VPD_ADDR,8,3               ## @PCI_VPD_ADDR
	.comm	_PCI_VPD_ADDR_F,4,2             ## @PCI_VPD_ADDR_F
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_pci_vpd_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vpd_wait
_pci_vpd_wait:                          ; @pci_vpd_wait
	.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	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	w0, #125
	bl	_msecs_to_jiffies
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22, #16]
Lloh2:
	adrp	x24, _PCI_VPD_ADDR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_VPD_ADDR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_user_read_config_word
	tbnz	w0, #31, LBB0_12
; %bb.2:
	add	x20, x20, x21
	mov	w21, #16
Lloh4:
	adrp	x25, _PCI_VPD_ADDR_F@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PCI_VPD_ADDR_F@GOTPAGEOFF]
Lloh6:
	adrp	x26, _current@GOTPAGE
Lloh7:
	ldr	x26, [x26, _current@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	and	w8, w9, w8
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	bl	_fatal_signal_pending
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x23]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	mov	x1, x21
	bl	_usleep_range
	cmp	x21, #1024
	cset	w8, lo
	lsl	x21, x21, x8
	ldr	x8, [x22, #16]
	ldr	x9, [x24]
	add	x1, x9, x8
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_user_read_config_word
	tbz	w0, #31, LBB0_3
	b	LBB0_12
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
	mov	w0, #0
	str	xzr, [x22, #8]
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _EINTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_warn
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_PCI_VPD_ADDR,8,3               ; @PCI_VPD_ADDR
	.comm	_PCI_VPD_ADDR_F,4,2             ; @PCI_VPD_ADDR_F
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VPD access failed.  This is likely a firmware bug on this device.  Contact the card vendor for a firmware update\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_pci_vpd_wait
.subsections_via_symbols
