	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_intel_qat_vf_cap
_quirk_intel_qat_vf_cap:                ## @quirk_intel_qat_vf_cap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	_PCI_CAP_ID_EXP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_2
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_PCI_CAP_ID_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_find_capability
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	incl	%eax
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pci_read_config_byte
	cmpq	$0, -40(%rbp)
	jne	LBB0_11
## %bb.4:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	cmpl	(%r15), %eax
	jne	LBB0_11
## %bb.5:
	movl	$80, (%rbx)
	movq	_PCI_EXP_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$80, %esi
	leaq	-28(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movl	-28(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	_PCI_EXP_DEVCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$80, %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_pci_read_config_word
	movq	_PCI_EXP_DEVCAP_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%rbp), %eax
	movl	%eax, 8(%rbx)
	movq	_PCI_CFG_SPACE_EXP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_PCI_CFG_SPACE_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	cmpl	$-1, -32(%rbp)
	jne	LBB0_8
LBB0_7:
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_8:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_pci_find_saved_cap
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$60, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %r14
	movl	(%r15), %eax
	movl	%eax, 8(%r14)
	movq	$0, 24(%r14)
	movl	$28, 12(%r14)
	movq	16(%r14), %r15
	movq	_PCI_EXP_DEVCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r15), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_SLTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%r15), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_RTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r15), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_DEVCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%r15), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_LNKCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r15), %rdx
	movq	%rbx, %rdi
	callq	_pcie_capability_read_word
	movq	_PCI_EXP_SLTCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_pcie_capability_read_word
	addq	$12, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hlist_add_head
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ## @PCI_CAP_ID_EXP
	.comm	_PCI_CAP_ID_MSI,4,2             ## @PCI_CAP_ID_MSI
	.comm	_PCI_EXP_FLAGS,4,2              ## @PCI_EXP_FLAGS
	.comm	_PCI_EXP_DEVCAP,4,2             ## @PCI_EXP_DEVCAP
	.comm	_PCI_EXP_DEVCAP_PAYLOAD,4,2     ## @PCI_EXP_DEVCAP_PAYLOAD
	.comm	_PCI_CFG_SPACE_EXP_SIZE,4,2     ## @PCI_CFG_SPACE_EXP_SIZE
	.comm	_PCI_CFG_SPACE_SIZE,4,2         ## @PCI_CFG_SPACE_SIZE
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ## @PCIBIOS_SUCCESSFUL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PCI_EXP_DEVCTL,4,2             ## @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_LNKCTL,4,2             ## @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_SLTCTL,4,2             ## @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_RTCTL,4,2              ## @PCI_EXP_RTCTL
	.comm	_PCI_EXP_DEVCTL2,4,2            ## @PCI_EXP_DEVCTL2
	.comm	_PCI_EXP_LNKCTL2,4,2            ## @PCI_EXP_LNKCTL2
	.comm	_PCI_EXP_SLTCTL2,4,2            ## @PCI_EXP_SLTCTL2
	.comm	_PCI_EXP_SAVE_REGS,4,2          ## @PCI_EXP_SAVE_REGS
	.no_dead_strip	_quirk_intel_qat_vf_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_intel_qat_vf_cap
_quirk_intel_qat_vf_cap:                ; @quirk_intel_qat_vf_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _PCI_CAP_ID_EXP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_CAP_ID_EXP@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pci_find_capability
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
Lloh2:
	adrp	x8, _PCI_CAP_ID_MSI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_CAP_ID_MSI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_find_capability
	cbz	w0, LBB0_2
; %bb.4:
	add	w1, w0, #1
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_byte
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_2
; %bb.5:
	mov	w20, #80
	add	x2, sp, #4
	mov	x0, x19
	mov	w1, #80
	bl	_pci_read_config_word
	ldr	w8, [sp, #4]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.6:
	str	w20, [x19]
Lloh5:
	adrp	x8, _PCI_EXP_FLAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_EXP_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w1, w8, #80
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #4]
	str	w8, [x19, #4]
Lloh8:
	adrp	x8, _PCI_EXP_DEVCAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_EXP_DEVCAP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w1, w8, #80
	add	x2, sp, #4
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #4]
Lloh11:
	adrp	x9, _PCI_EXP_DEVCAP_PAYLOAD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_EXP_DEVCAP_PAYLOAD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh14:
	adrp	x9, _PCI_CFG_SPACE_EXP_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_CFG_SPACE_EXP_SIZE@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh16:
	ldr	w8, [x9]
	str	w8, [x19, #16]
Lloh17:
	adrp	x20, _PCI_CFG_SPACE_SIZE@GOTPAGE
Lloh18:
	ldr	x20, [x20, _PCI_CFG_SPACE_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, sp
	mov	x0, x19
	bl	_pci_read_config_dword
Lloh19:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp]
	cmn	w8, #1
	b.ne	LBB0_9
LBB0_8:
	ldr	w8, [x20]
	str	w8, [x19, #16]
LBB0_9:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_find_saved_cap
	cbnz	x0, LBB0_2
; %bb.10:
Lloh22:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w0, #60
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.11:
	mov	x20, x0
	ldr	w8, [x21]
	str	xzr, [x0, #24]
	mov	w9, #28
	stp	w8, w9, [x0, #8]
	ldr	x21, [x0, #16]
Lloh25:
	adrp	x8, _PCI_EXP_DEVCTL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PCI_EXP_DEVCTL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_pcie_capability_read_word
Lloh28:
	adrp	x8, _PCI_EXP_LNKCTL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PCI_EXP_LNKCTL@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x2, x21, #4
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh31:
	adrp	x8, _PCI_EXP_SLTCTL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCI_EXP_SLTCTL@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, x21, #8
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh34:
	adrp	x8, _PCI_EXP_RTCTL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCI_EXP_RTCTL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x2, x21, #12
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh37:
	adrp	x8, _PCI_EXP_DEVCTL2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCI_EXP_DEVCTL2@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	add	x2, x21, #16
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh40:
	adrp	x8, _PCI_EXP_LNKCTL2@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCI_EXP_LNKCTL2@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x2, x21, #20
	mov	x0, x19
	bl	_pcie_capability_read_word
Lloh43:
	adrp	x8, _PCI_EXP_SLTCTL2@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCI_EXP_SLTCTL2@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x2, x21, #24
	mov	x0, x19
	bl	_pcie_capability_read_word
	add	x1, x19, #12
	mov	x0, x20
	bl	_hlist_add_head
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CAP_ID_EXP,4,2             ; @PCI_CAP_ID_EXP
	.comm	_PCI_CAP_ID_MSI,4,2             ; @PCI_CAP_ID_MSI
	.comm	_PCI_EXP_FLAGS,4,2              ; @PCI_EXP_FLAGS
	.comm	_PCI_EXP_DEVCAP,4,2             ; @PCI_EXP_DEVCAP
	.comm	_PCI_EXP_DEVCAP_PAYLOAD,4,2     ; @PCI_EXP_DEVCAP_PAYLOAD
	.comm	_PCI_CFG_SPACE_EXP_SIZE,4,2     ; @PCI_CFG_SPACE_EXP_SIZE
	.comm	_PCI_CFG_SPACE_SIZE,4,2         ; @PCI_CFG_SPACE_SIZE
	.comm	_PCIBIOS_SUCCESSFUL,8,3         ; @PCIBIOS_SUCCESSFUL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PCI_EXP_DEVCTL,4,2             ; @PCI_EXP_DEVCTL
	.comm	_PCI_EXP_LNKCTL,4,2             ; @PCI_EXP_LNKCTL
	.comm	_PCI_EXP_SLTCTL,4,2             ; @PCI_EXP_SLTCTL
	.comm	_PCI_EXP_RTCTL,4,2              ; @PCI_EXP_RTCTL
	.comm	_PCI_EXP_DEVCTL2,4,2            ; @PCI_EXP_DEVCTL2
	.comm	_PCI_EXP_LNKCTL2,4,2            ; @PCI_EXP_LNKCTL2
	.comm	_PCI_EXP_SLTCTL2,4,2            ; @PCI_EXP_SLTCTL2
	.comm	_PCI_EXP_SAVE_REGS,4,2          ; @PCI_EXP_SAVE_REGS
	.no_dead_strip	_quirk_intel_qat_vf_cap
.subsections_via_symbols
