	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iov_hw_info                ## -- Begin function qed_iov_hw_info
	.p2align	4, 0x90
_qed_iov_hw_info:                       ## @qed_iov_hw_info
	.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, %r14
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_IS_VF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r14), %rax
	movl	8(%rax), %edi
	movq	_PCI_EXT_CAP_ID_SRIOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%ebx, (%rax)
	movq	%r15, %rdi
	callq	_qed_iov_pci_cfg_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	(%r15), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_7
## %bb.8:
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %edx
	movl	(%r14), %ecx
	movl	$256, %esi                      ## imm = 0x100
	subl	%ecx, %esi
	addl	%edx, %ecx
	cmpl	%esi, %edx
	jge	LBB0_12
## %bb.9:
	addl	$-16, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 8(%rax)
	movq	%r14, %rdi
	callq	_QED_PATH_ID
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_MAX_NUM_VFS_BB@GOTPCREL(%rip), %rax
	movq	(%r15), %rdx
	movq	8(%rdx), %rcx
	subq	(%rax), %rcx
	movq	%rcx, 8(%rdx)
	jmp	LBB0_13
LBB0_2:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
	jmp	LBB0_14
LBB0_12:
	addl	$-256, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_13
LBB0_10:
	movq	(%r15), %rax
	movq	8(%rax), %rcx
LBB0_13:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ## @PCI_EXT_CAP_ID_SRIOV
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No PCIe IOV support\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"IOV capabilities, but no VFs are published\n"

	.comm	_MAX_NUM_VFS_BB,8,3             ## @MAX_NUM_VFS_BB
L_.str.2:                               ## @.str.2
	.asciz	"First VF in hwfn 0x%08x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iov_hw_info                ; -- Begin function qed_iov_hw_info
	.p2align	2
_qed_iov_hw_info:                       ; @qed_iov_hw_info
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_IS_VF
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_SRIOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.3:
	str	w21, [x0]
	mov	x0, x20
	bl	_qed_iov_pci_cfg_info
	cbnz	w0, LBB0_11
; %bb.4:
	ldr	x8, [x20]
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_13
; %bb.5:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	w10, [x9, #4]
	ldr	w11, [x19]
	mov	w12, #256
	add	w9, w11, w10
	sub	w11, w12, w11
	cmp	w10, w11
	b.ge	LBB0_14
; %bb.6:
	sub	w9, w9, #16
	sxtw	x9, w9
	str	x9, [x8, #8]
	mov	x0, x19
	bl	_QED_PATH_ID
	cbz	x0, LBB0_15
; %bb.7:
Lloh6:
	adrp	x8, _MAX_NUM_VFS_BB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_NUM_VFS_BB@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x10, [x20]
	ldr	x9, [x10, #8]
	sub	x9, x9, x8
	str	x9, [x10, #8]
	b	LBB0_16
LBB0_8:
Lloh9:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_13:
Lloh17:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	x0, [x20]
	bl	_kfree
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_11
LBB0_14:
	sub	w9, w9, #256
	sxtw	x9, w9
	str	x9, [x8, #8]
	b	LBB0_16
LBB0_15:
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
LBB0_16:
Lloh22:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	str	x9, [sp]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_SRIOV,4,2       ; @PCI_EXT_CAP_ID_SRIOV
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PCIe IOV support\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"IOV capabilities, but no VFs are published\n"

	.comm	_MAX_NUM_VFS_BB,8,3             ; @MAX_NUM_VFS_BB
l_.str.2:                               ; @.str.2
	.asciz	"First VF in hwfn 0x%08x\n"

.subsections_via_symbols
