	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_vf_pf_acquire
_qed_vf_pf_acquire:                     ## @qed_vf_pf_acquire
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	16(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_VF_ACQUIRE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_CHANNEL_TLV_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edx
	callq	_qed_vf_pf_prep
	movq	%rax, %r14
	movq	%rbx, %r15
	movl	8(%rbx), %eax
	movl	%eax, 44(%r14)
	movq	_QED_MAX_VF_CHAINS_PER_PF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 88(%r14)
	movq	%rax, 80(%r14)
	movq	%rax, 72(%r14)
	movq	_QED_ETH_VF_NUM_MAC_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_QED_ETH_VF_NUM_VLAN_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_QED_ETH_VF_DEFAULT_NUM_CIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_VFPF_ACQUIRE_OS_LINUX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_FW_MAJOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_FW_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_FW_REVISION_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_FW_ENGINEERING_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_ETH_HSI_VER_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_ETH_HSI_VER_MINOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_VFPF_ACQUIRE_CAP_100G@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movq	%r14, %rsi
	movl	%eax, (%r14)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 32(%r12)
	je	LBB0_2
## %bb.1:
	movq	_VFPF_ACQUIRE_CAP_PHYSICAL_BAR@GOTPCREL(%rip), %rcx
	movq	_VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	%eax, (%rsi)
	movq	_QED_ETH_VF_MAX_NUM_CIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rsi)
LBB0_2:
	addq	$56, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %eax
	movl	%eax, 52(%rsi)
	movl	4(%rbx), %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 48(%rsi)
	leaq	24(%rbx), %rsi
	movq	_CHANNEL_TLV_LIST_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_qed_add_tlv
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	72(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	leaq	12(%rbx), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	addq	$48, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_qed_vf_pf_acquire_reduce_resc
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	callq	_DP_VERBOSE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$80, %edx
	callq	_qed_send_msg2pf
	movl	%eax, %r13d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_35
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	72(%rbx), %rdx
	movq	_PFVF_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
	movq	_PFVF_STATUS_NO_RESOURCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_VF_ACQUIRE_THRESH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PFVF_STATUS_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, (%rbx)
	jne	LBB0_30
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP_INFO
	movl	(%r13), %eax
	orl	%eax, (%rbx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rdx
	callq	_DP_VERBOSE
	decl	-52(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_15:
	movq	_PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPCREL(%rip), %r12
	jne	LBB0_17
## %bb.16:
	movl	(%r12), %eax
	orl	%eax, (%r14)
LBB0_17:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_DP_VERBOSE
	movl	(%r12), %eax
	testl	%eax, (%r14)
	je	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_19:
	movq	_PFVF_ACQUIRE_CAP_QUEUE_QIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_21
## %bb.20:
	movq	48(%rbx), %rax
	addq	56(%rbx), %rax
	movq	%rax, 64(%rbx)
LBB0_21:
	movl	40(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	32(%rbx), %eax
	movq	(%r15), %rcx
	movl	%eax, 12(%rcx)
	movl	28(%rbx), %eax
	movl	%eax, 8(%rcx)
	movzwl	24(%rbx), %eax
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_IS_LEAD_HWFN
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_PFVF_ACQUIRE_CAP_100G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_24
## %bb.23:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	movq	(%r15), %rax
	movl	$2, 4(%rax)
LBB0_24:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_35
## %bb.25:
	movq	16(%rbx), %rcx
	movq	_ETH_HSI_VER_MINOR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_35
## %bb.26:
	movq	_ETH_HSI_VER_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_INFO
	jmp	LBB0_35
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_34
LBB0_28:
	movq	_ETH_HSI_VER_MAJOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rdx
	jne	LBB0_32
## %bb.29:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_31
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
LBB0_31:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
	jmp	LBB0_33
LBB0_32:
	movq	16(%rbx), %rcx
	movq	_ETH_HSI_VER_MINOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%rdx, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_DP_NOTICE
LBB0_33:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_34:
	subl	(%rax), %r13d
LBB0_35:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_qed_vf_pf_req_end
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VF_ACQUIRE_THRESH,4,2          ## @VF_ACQUIRE_THRESH
	.comm	_CHANNEL_TLV_ACQUIRE,4,2        ## @CHANNEL_TLV_ACQUIRE
	.comm	_QED_MAX_VF_CHAINS_PER_PF,8,3   ## @QED_MAX_VF_CHAINS_PER_PF
	.comm	_QED_ETH_VF_NUM_MAC_FILTERS,4,2 ## @QED_ETH_VF_NUM_MAC_FILTERS
	.comm	_QED_ETH_VF_NUM_VLAN_FILTERS,4,2 ## @QED_ETH_VF_NUM_VLAN_FILTERS
	.comm	_QED_ETH_VF_DEFAULT_NUM_CIDS,4,2 ## @QED_ETH_VF_DEFAULT_NUM_CIDS
	.comm	_VFPF_ACQUIRE_OS_LINUX,4,2      ## @VFPF_ACQUIRE_OS_LINUX
	.comm	_FW_MAJOR_VERSION,4,2           ## @FW_MAJOR_VERSION
	.comm	_FW_MINOR_VERSION,4,2           ## @FW_MINOR_VERSION
	.comm	_FW_REVISION_VERSION,4,2        ## @FW_REVISION_VERSION
	.comm	_FW_ENGINEERING_VERSION,4,2     ## @FW_ENGINEERING_VERSION
	.comm	_ETH_HSI_VER_MAJOR,8,3          ## @ETH_HSI_VER_MAJOR
	.comm	_ETH_HSI_VER_MINOR,8,3          ## @ETH_HSI_VER_MINOR
	.comm	_VFPF_ACQUIRE_CAP_100G,4,2      ## @VFPF_ACQUIRE_CAP_100G
	.comm	_VFPF_ACQUIRE_CAP_PHYSICAL_BAR,4,2 ## @VFPF_ACQUIRE_CAP_PHYSICAL_BAR
	.comm	_VFPF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ## @VFPF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_QED_ETH_VF_MAX_NUM_CIDS,4,2    ## @QED_ETH_VF_MAX_NUM_CIDS
	.comm	_CHANNEL_TLV_LIST_END,4,2       ## @CHANNEL_TLV_LIST_END
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting to acquire resources\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"VF retrying to acquire due to VPC timeout\n"

	.comm	_PFVF_STATUS_SUCCESS,8,3        ## @PFVF_STATUS_SUCCESS
	.comm	_PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE,4,2 ## @PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE
	.comm	_VFPF_ACQUIRE_CAP_PRE_FP_HSI,4,2 ## @VFPF_ACQUIRE_CAP_PRE_FP_HSI
L_.str.2:                               ## @.str.2
	.asciz	"resources acquired\n"

	.comm	_PFVF_STATUS_NO_RESOURCE,8,3    ## @PFVF_STATUS_NO_RESOURCE
	.comm	_PFVF_STATUS_NOT_SUPPORTED,8,3  ## @PFVF_STATUS_NOT_SUPPORTED
L_.str.3:                               ## @.str.3
	.asciz	"PF uses an incompatible fastpath HSI %02x.%02x [VF requires %02x.%02x]. Please change to a VF driver using %02x.xx.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"PF uses very old drivers. Please change to a VF driver using no later than 8.8.x.x.\n"

L_.str.5:                               ## @.str.5
	.asciz	"PF is old - try re-acquire to see if it supports FW-version override\n"

L_.str.6:                               ## @.str.6
	.asciz	"PF rejected acquisition by VF\n"

L_.str.7:                               ## @.str.7
	.asciz	"PF returned error %d to VF acquisition request\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PFVF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ## @PFVF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_PFVF_ACQUIRE_CAP_100G,4,2      ## @PFVF_ACQUIRE_CAP_100G
L_.str.8:                               ## @.str.8
	.asciz	"100g VF\n"

L_.str.9:                               ## @.str.9
	.asciz	"PF is using older fastpath HSI; %02x.%02x is configured\n"

	.no_dead_strip	_qed_vf_pf_acquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_vf_pf_acquire
_qed_vf_pf_acquire:                     ; @qed_vf_pf_acquire
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x27, [x0, #16]
	ldr	x20, [x27, #16]
Lloh0:
	adrp	x8, _VF_ACQUIRE_THRESH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VF_ACQUIRE_THRESH@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _CHANNEL_TLV_ACQUIRE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_TLV_ACQUIRE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #96
	bl	_qed_vf_pf_prep
	mov	x21, x0
Lloh6:
	adrp	x8, _QED_ETH_VF_DEFAULT_NUM_CIDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_ETH_VF_DEFAULT_NUM_CIDS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, x0
	str	w8, [x9, #56]!
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _QED_MAX_VF_CHAINS_PER_PF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QED_MAX_VF_CHAINS_PER_PF@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x9, [x0, #80]
	str	x9, [x0, #72]
Lloh12:
	adrp	x9, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _QED_ETH_VF_NUM_VLAN_FILTERS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _QED_ETH_VF_NUM_VLAN_FILTERS@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #60]
Lloh18:
	adrp	x9, _VFPF_ACQUIRE_OS_LINUX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VFPF_ACQUIRE_OS_LINUX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _FW_MAJOR_VERSION@GOTPAGE
Lloh22:
	ldr	x10, [x10, _FW_MAJOR_VERSION@GOTPAGEOFF]
	stp	w9, w8, [x0, #40]
Lloh23:
	ldr	w8, [x10]
Lloh24:
	adrp	x9, _FW_MINOR_VERSION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FW_MINOR_VERSION@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh27:
	adrp	x8, _FW_REVISION_VERSION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FW_REVISION_VERSION@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _FW_ENGINEERING_VERSION@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FW_ENGINEERING_VERSION@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh33:
	adrp	x8, _ETH_HSI_VER_MAJOR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ETH_HSI_VER_MAJOR@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _ETH_HSI_VER_MINOR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ETH_HSI_VER_MINOR@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _VFPF_ACQUIRE_CAP_100G@GOTPAGE
Lloh40:
	ldr	x10, [x10, _VFPF_ACQUIRE_CAP_100G@GOTPAGEOFF]
	stp	x9, x8, [x0, #8]
Lloh41:
	ldr	w8, [x10]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x9, [x27, #32]
	cbz	x9, LBB0_2
; %bb.1:
Lloh42:
	adrp	x9, _VFPF_ACQUIRE_CAP_PHYSICAL_BAR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _VFPF_ACQUIRE_CAP_PHYSICAL_BAR@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGE
Lloh46:
	ldr	x10, [x10, _VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
	str	w8, [x21]
Lloh48:
	adrp	x8, _QED_ETH_VF_MAX_NUM_CIDS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _QED_ETH_VF_MAX_NUM_CIDS@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	str	w8, [x21, #56]
LBB0_2:
	ldur	d0, [x27, #4]
	str	d0, [x21, #48]
	add	x1, x27, #24
Lloh51:
	adrp	x8, _CHANNEL_TLV_LIST_END@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CHANNEL_TLV_LIST_END@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #4
	bl	_qed_add_tlv
	mov	w25, #0
	add	x23, x20, #72
	add	x24, x27, #12
	add	x8, x20, #48
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
Lloh54:
	adrp	x26, l_.str@PAGE
Lloh55:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	ldp	x2, x1, [sp, #48]               ; 16-byte Folded Reload
	bl	_qed_vf_pf_acquire_reduce_resc
	add	w25, w25, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh56:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh57:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x26
	bl	_DP_VERBOSE
	ldr	x0, [x27, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	mov	x1, x23
	mov	w2, #80
	bl	_qed_send_msg2pf
	mov	x28, x0
	cbz	w22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh59:
	adrp	x8, _EBUSY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	cmn	w28, w8
	b.eq	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_34
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x2, [x20, #72]
Lloh62:
	adrp	x8, _PFVF_STATUS_SUCCESS@GOTPAGE
Lloh63:
	ldr	x8, [x8, _PFVF_STATUS_SUCCESS@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w25, #1
Lloh65:
	adrp	x9, _PFVF_STATUS_NO_RESOURCE@GOTPAGE
Lloh66:
	ldr	x9, [x9, _PFVF_STATUS_NO_RESOURCE@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
Lloh68:
	adrp	x10, _VF_ACQUIRE_THRESH@GOTPAGE
Lloh69:
	ldr	x10, [x10, _VF_ACQUIRE_THRESH@GOTPAGEOFF]
Lloh70:
	ldr	w10, [x10]
	cmp	x2, x9
	ccmp	w8, w10, #0, eq
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh71:
	adrp	x8, _PFVF_STATUS_NOT_SUPPORTED@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PFVF_STATUS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_28
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
Lloh74:
	adrp	x28, _VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPAGE
Lloh75:
	ldr	x28, [x28, _VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_30
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh76:
	adrp	x1, l_.str.5@PAGE
Lloh77:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DP_INFO
	ldr	w8, [x28]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	add	w25, w25, #1
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh78:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh79:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x19
Lloh81:
	adrp	x2, l_.str.1@PAGE
Lloh82:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_DP_VERBOSE
	sub	w22, w22, #1
	b	LBB0_4
LBB0_14:
	ldr	w8, [x20]
Lloh83:
	adrp	x9, _PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE@GOTPAGE
Lloh84:
	ldr	x9, [x9, _PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	tst	w9, w8
Lloh86:
	adrp	x22, _VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPAGE
Lloh87:
	ldr	x22, [x22, _VFPF_ACQUIRE_CAP_PRE_FP_HSI@GOTPAGEOFF]
	b.ne	LBB0_16
; %bb.15:
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_16:
Lloh88:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh89:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
Lloh91:
	adrp	x2, l_.str.2@PAGE
Lloh92:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x27]
LBB0_18:
	ldr	w8, [x20]
Lloh93:
	adrp	x9, _PFVF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGE
Lloh94:
	ldr	x9, [x9, _PFVF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.19:
	ldp	x9, x8, [x20, #48]
	add	x8, x9, x8
	str	x8, [x20, #64]
LBB0_20:
	ldr	w8, [x20, #40]
	str	w8, [x27, #4]
	ldr	x8, [x19]
	ldur	d0, [x20, #28]
	str	d0, [x8, #8]
	ldrh	w9, [x20, #24]
	str	w9, [x8]
	mov	x0, x19
	bl	_IS_LEAD_HWFN
	cbz	x0, LBB0_23
; %bb.21:
	ldr	w8, [x20]
Lloh96:
	adrp	x9, _PFVF_ACQUIRE_CAP_100G@GOTPAGE
Lloh97:
	ldr	x9, [x9, _PFVF_ACQUIRE_CAP_100G@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
Lloh99:
	adrp	x1, l_.str.8@PAGE
Lloh100:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	ldr	x8, [x19]
	mov	w9, #2
	str	w9, [x8, #4]
LBB0_23:
	ldr	w8, [x27]
	cbnz	w8, LBB0_26
; %bb.24:
	ldr	x8, [x20, #16]
Lloh101:
	adrp	x9, _ETH_HSI_VER_MINOR@GOTPAGE
Lloh102:
	ldr	x9, [x9, _ETH_HSI_VER_MINOR@GOTPAGEOFF]
Lloh103:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_26
; %bb.25:
Lloh104:
	adrp	x9, _ETH_HSI_VER_MAJOR@GOTPAGE
Lloh105:
	ldr	x9, [x9, _ETH_HSI_VER_MAJOR@GOTPAGEOFF]
Lloh106:
	ldr	x9, [x9]
	stp	x9, x8, [sp]
Lloh107:
	adrp	x1, l_.str.9@PAGE
Lloh108:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
LBB0_26:
	mov	w28, #0
	b	LBB0_34
LBB0_27:
Lloh109:
	adrp	x1, l_.str.7@PAGE
Lloh110:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
Lloh111:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh112:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_33
LBB0_28:
Lloh113:
	adrp	x9, _ETH_HSI_VER_MAJOR@GOTPAGE
Lloh114:
	ldr	x9, [x9, _ETH_HSI_VER_MAJOR@GOTPAGEOFF]
Lloh115:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.29:
Lloh116:
	adrp	x1, l_.str.6@PAGE
Lloh117:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_30:
Lloh118:
	adrp	x1, l_.str.4@PAGE
Lloh119:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	x10, [x20, #16]
Lloh120:
	adrp	x11, _ETH_HSI_VER_MINOR@GOTPAGE
Lloh121:
	ldr	x11, [x11, _ETH_HSI_VER_MINOR@GOTPAGEOFF]
Lloh122:
	ldr	x11, [x11]
	stp	x11, x8, [sp, #24]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh123:
	adrp	x1, l_.str.3@PAGE
Lloh124:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_DP_NOTICE
Lloh125:
	adrp	x8, _EINVAL@GOTPAGE
Lloh126:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_33:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_34:
	mov	x0, x19
	mov	x1, x28
	bl	_qed_vf_pf_req_end
	mov	x0, x28
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh125, Lloh126
	.cfi_endproc
                                        ; -- End function
	.comm	_VF_ACQUIRE_THRESH,4,2          ; @VF_ACQUIRE_THRESH
	.comm	_CHANNEL_TLV_ACQUIRE,4,2        ; @CHANNEL_TLV_ACQUIRE
	.comm	_QED_MAX_VF_CHAINS_PER_PF,8,3   ; @QED_MAX_VF_CHAINS_PER_PF
	.comm	_QED_ETH_VF_NUM_MAC_FILTERS,4,2 ; @QED_ETH_VF_NUM_MAC_FILTERS
	.comm	_QED_ETH_VF_NUM_VLAN_FILTERS,4,2 ; @QED_ETH_VF_NUM_VLAN_FILTERS
	.comm	_QED_ETH_VF_DEFAULT_NUM_CIDS,4,2 ; @QED_ETH_VF_DEFAULT_NUM_CIDS
	.comm	_VFPF_ACQUIRE_OS_LINUX,4,2      ; @VFPF_ACQUIRE_OS_LINUX
	.comm	_FW_MAJOR_VERSION,4,2           ; @FW_MAJOR_VERSION
	.comm	_FW_MINOR_VERSION,4,2           ; @FW_MINOR_VERSION
	.comm	_FW_REVISION_VERSION,4,2        ; @FW_REVISION_VERSION
	.comm	_FW_ENGINEERING_VERSION,4,2     ; @FW_ENGINEERING_VERSION
	.comm	_ETH_HSI_VER_MAJOR,8,3          ; @ETH_HSI_VER_MAJOR
	.comm	_ETH_HSI_VER_MINOR,8,3          ; @ETH_HSI_VER_MINOR
	.comm	_VFPF_ACQUIRE_CAP_100G,4,2      ; @VFPF_ACQUIRE_CAP_100G
	.comm	_VFPF_ACQUIRE_CAP_PHYSICAL_BAR,4,2 ; @VFPF_ACQUIRE_CAP_PHYSICAL_BAR
	.comm	_VFPF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ; @VFPF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_QED_ETH_VF_MAX_NUM_CIDS,4,2    ; @QED_ETH_VF_MAX_NUM_CIDS
	.comm	_CHANNEL_TLV_LIST_END,4,2       ; @CHANNEL_TLV_LIST_END
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting to acquire resources\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"VF retrying to acquire due to VPC timeout\n"

	.comm	_PFVF_STATUS_SUCCESS,8,3        ; @PFVF_STATUS_SUCCESS
	.comm	_PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE,4,2 ; @PFVF_ACQUIRE_CAP_POST_FW_OVERRIDE
	.comm	_VFPF_ACQUIRE_CAP_PRE_FP_HSI,4,2 ; @VFPF_ACQUIRE_CAP_PRE_FP_HSI
l_.str.2:                               ; @.str.2
	.asciz	"resources acquired\n"

	.comm	_PFVF_STATUS_NO_RESOURCE,8,3    ; @PFVF_STATUS_NO_RESOURCE
	.comm	_PFVF_STATUS_NOT_SUPPORTED,8,3  ; @PFVF_STATUS_NOT_SUPPORTED
l_.str.3:                               ; @.str.3
	.asciz	"PF uses an incompatible fastpath HSI %02x.%02x [VF requires %02x.%02x]. Please change to a VF driver using %02x.xx.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"PF uses very old drivers. Please change to a VF driver using no later than 8.8.x.x.\n"

l_.str.5:                               ; @.str.5
	.asciz	"PF is old - try re-acquire to see if it supports FW-version override\n"

l_.str.6:                               ; @.str.6
	.asciz	"PF rejected acquisition by VF\n"

l_.str.7:                               ; @.str.7
	.asciz	"PF returned error %d to VF acquisition request\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PFVF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ; @PFVF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_PFVF_ACQUIRE_CAP_100G,4,2      ; @PFVF_ACQUIRE_CAP_100G
l_.str.8:                               ; @.str.8
	.asciz	"100g VF\n"

l_.str.9:                               ; @.str.9
	.asciz	"PF is using older fastpath HSI; %02x.%02x is configured\n"

	.no_dead_strip	_qed_vf_pf_acquire
.subsections_via_symbols
