	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_vpd_init                   ## -- Begin function pci_vpd_init
	.p2align	4, 0x90
_pci_vpd_init:                          ## @pci_vpd_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_PCI_CAP_ID_VPD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_capability
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	_PCI_VPD_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_PCI_DEV_FLAGS_VPD_REF_F0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jne	LBB0_6
## %bb.7:
	movq	_pci_vpd_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_pci_vpd_f0_ops@GOTPCREL(%rip), %rax
LBB0_8:
	movq	%rax, 32(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r14, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, 8(%r15)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_VPD,4,2             ## @PCI_CAP_ID_VPD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_VPD_MAX_SIZE,4,2           ## @PCI_VPD_MAX_SIZE
	.comm	_PCI_DEV_FLAGS_VPD_REF_F0,4,2   ## @PCI_DEV_FLAGS_VPD_REF_F0
	.comm	_pci_vpd_f0_ops,4,2             ## @pci_vpd_f0_ops
	.comm	_pci_vpd_ops,4,2                ## @pci_vpd_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_vpd_init                   ; -- Begin function pci_vpd_init
	.p2align	2
_pci_vpd_init:                          ; @pci_vpd_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _PCI_CAP_ID_VPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CAP_ID_VPD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_capability
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x8, _PCI_VPD_MAX_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_VPD_MAX_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _PCI_DEV_FLAGS_VPD_REF_F0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_DEV_FLAGS_VPD_REF_F0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _pci_vpd_f0_ops@GOTPAGE
Lloh13:
	ldr	x10, [x10, _pci_vpd_f0_ops@GOTPAGEOFF]
Lloh14:
	adrp	x11, _pci_vpd_ops@GOTPAGE
Lloh15:
	ldr	x11, [x11, _pci_vpd_ops@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [x0, #32]
	add	x0, x0, #24
	bl	_mutex_init
	mov	w0, #0
	stp	xzr, x20, [x21, #8]
	str	xzr, [x21]
	str	x21, [x19, #8]
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_VPD,4,2             ; @PCI_CAP_ID_VPD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_VPD_MAX_SIZE,4,2           ; @PCI_VPD_MAX_SIZE
	.comm	_PCI_DEV_FLAGS_VPD_REF_F0,4,2   ; @PCI_DEV_FLAGS_VPD_REF_F0
	.comm	_pci_vpd_f0_ops,4,2             ; @pci_vpd_f0_ops
	.comm	_pci_vpd_ops,4,2                ; @pci_vpd_ops
.subsections_via_symbols
