	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_vf_mbx_qid
_qed_iov_vf_mbx_qid:                    ## @qed_iov_vf_mbx_qid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rsi)
	je	LBB0_1
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	8(%rsi), %esi
	movq	_CHANNEL_TLV_QID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_qed_iov_search_list_tlvs
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rax), %rax
	movq	_MAX_QUEUES_PER_QZONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.7:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	jmp	LBB0_8
LBB0_1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	_QED_IOV_LEGACY_QID_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
LBB0_8:
	movq	_QED_IOV_QID_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_QED_IOV_LEGACY_QID_RX@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFPF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ## @VFPF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_QED_IOV_LEGACY_QID_TX,8,3      ## @QED_IOV_LEGACY_QID_TX
	.comm	_QED_IOV_LEGACY_QID_RX,8,3      ## @QED_IOV_LEGACY_QID_RX
	.comm	_CHANNEL_TLV_QID,4,2            ## @CHANNEL_TLV_QID
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF[%2x]: Failed to provide qid\n"

	.comm	_QED_IOV_QID_INVALID,8,3        ## @QED_IOV_QID_INVALID
	.comm	_MAX_QUEUES_PER_QZONE,8,3       ## @MAX_QUEUES_PER_QZONE
L_.str.1:                               ## @.str.1
	.asciz	"VF[%02x]: Provided qid out-of-bounds %02x\n"

	.no_dead_strip	_qed_iov_vf_mbx_qid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_vf_mbx_qid
_qed_iov_vf_mbx_qid:                    ; @qed_iov_vf_mbx_qid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x1, #4]
Lloh0:
	adrp	x9, _VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VFPF_ACQUIRE_CAP_QUEUE_QIDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #8]
Lloh3:
	adrp	x8, _CHANNEL_TLV_QID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL_TLV_QID@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_qed_iov_search_list_tlvs
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x0]
Lloh6:
	adrp	x8, _MAX_QUEUES_PER_QZONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_QUEUES_PER_QZONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x20]
	str	x0, [sp]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
	cbz	w2, LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _QED_IOV_LEGACY_QID_TX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QED_IOV_LEGACY_QID_TX@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_DP_VERBOSE
Lloh21:
	adrp	x8, _QED_IOV_QID_INVALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QED_IOV_QID_INVALID@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _QED_IOV_LEGACY_QID_RX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QED_IOV_LEGACY_QID_RX@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.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 AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_VFPF_ACQUIRE_CAP_QUEUE_QIDS,4,2 ; @VFPF_ACQUIRE_CAP_QUEUE_QIDS
	.comm	_QED_IOV_LEGACY_QID_TX,8,3      ; @QED_IOV_LEGACY_QID_TX
	.comm	_QED_IOV_LEGACY_QID_RX,8,3      ; @QED_IOV_LEGACY_QID_RX
	.comm	_CHANNEL_TLV_QID,4,2            ; @CHANNEL_TLV_QID
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF[%2x]: Failed to provide qid\n"

	.comm	_QED_IOV_QID_INVALID,8,3        ; @QED_IOV_QID_INVALID
	.comm	_MAX_QUEUES_PER_QZONE,8,3       ; @MAX_QUEUES_PER_QZONE
l_.str.1:                               ; @.str.1
	.asciz	"VF[%02x]: Provided qid out-of-bounds %02x\n"

	.no_dead_strip	_qed_iov_vf_mbx_qid
.subsections_via_symbols
