	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_vc_add_qch_msg
_i40e_vc_add_qch_msg:                   ## @i40e_vc_add_qch_msg
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	64(%rdi), %r15
	movq	_I40E_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_30
## %bb.1:
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.2:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_4:
	movq	_VIRTCHNL_VF_OFFLOAD_ADQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.7:
	movl	(%r14), %ecx
	movq	_I40E_MAX_VF_VSI@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.8:
	cmpl	%r8d, %ecx
	jg	LBB0_29
## %bb.9:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.11:
	movq	8(%r14), %rdx
	movq	_I40E_DEFAULT_QUEUES_PER_VF@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %r8
	testq	%r8, %r8
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r9, %r8
	jg	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	addq	$16, %rdx
	cmpq	%rax, %rcx
	jne	LBB0_12
	jmp	LBB0_16
LBB0_5:
	movq	8(%r15), %rdi
	movl	32(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_29:
	movq	8(%r15), %rdi
	movl	32(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_10:
	movq	_I40E_DEFAULT_QUEUES_PER_VF@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
LBB0_16:
	movq	_I40E_MAX_VF_QUEUES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	subl	%r9d, %edx
	cmpl	%edx, (%r15)
	jge	LBB0_18
## %bb.17:
	movq	8(%r15), %rdi
	movl	32(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_30:
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VIRTCHNL_OP_ENABLE_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40e_vc_send_resp_to_vf        ## TAILCALL
LBB0_18:
	movq	%rax, 40(%rbx)
	movl	16(%r15), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_19
## %bb.20:
	cltq
	leaq	l_switch.table.i40e_vc_add_qch_msg(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %r8
	movl	%ecx, 4(%rbx)
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.21:
	movq	8(%r14), %rsi
	shlq	$4, %rcx
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%rbx), %rax
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	(%rsi,%rdi), %rdx
	movq	%rdx, 8(%rax,%rdi)
	addq	$16, %rdi
	cmpq	%rdi, %rcx
	je	LBB0_28
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi,%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpq	%r8, %rdx
	jg	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%rbx), %rax
	movq	%rdx, (%rax,%rdi)
	jmp	LBB0_27
LBB0_14:
	movq	8(%r15), %rdi
	movl	32(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_19:
	movq	8(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_3
LBB0_28:
	movl	$1, 8(%rbx)
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_i40e_vc_notify_vf_reset
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i40e_reset_vf
	movq	_I40E_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	8(%r15), %rdi
	movl	32(%rbx), %ecx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ## @I40E_VF_STATE_ACTIVE
	.comm	_I40E_ERR_PARAM,4,2             ## @I40E_ERR_PARAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spoof check is ON, turn it OFF to enable ADq\n"

	.comm	_VIRTCHNL_VF_OFFLOAD_ADQ,4,2    ## @VIRTCHNL_VF_OFFLOAD_ADQ
L_.str.1:                               ## @.str.1
	.asciz	"VF %d attempting to enable ADq, but hasn't properly negotiated that capability\n"

	.comm	_I40E_MAX_VF_VSI,4,2            ## @I40E_MAX_VF_VSI
L_.str.2:                               ## @.str.2
	.asciz	"VF %d trying to set %u TCs, valid range 1-%u TCs per VF\n"

	.comm	_I40E_DEFAULT_QUEUES_PER_VF,8,3 ## @I40E_DEFAULT_QUEUES_PER_VF
L_.str.3:                               ## @.str.3
	.asciz	"VF %d: TC %d trying to set %u queues, valid range 1-%u queues per TC\n"

	.comm	_I40E_MAX_VF_QUEUES,8,3         ## @I40E_MAX_VF_QUEUES
L_.str.4:                               ## @.str.4
	.asciz	"No queues left to allocate to VF %d\n"

	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_SPEED_20000,8,3                ## @SPEED_20000
	.comm	_SPEED_25000,8,3                ## @SPEED_25000
	.comm	_SPEED_40000,8,3                ## @SPEED_40000
L_.str.5:                               ## @.str.5
	.asciz	"Cannot detect link speed\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid max tx rate %llu specified for VF %d."

	.comm	_I40E_SUCCESS,4,2               ## @I40E_SUCCESS
	.comm	_VIRTCHNL_OP_ENABLE_CHANNELS,4,2 ## @VIRTCHNL_OP_ENABLE_CHANNELS
	.no_dead_strip	_i40e_vc_add_qch_msg
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.i40e_vc_add_qch_msg
l_switch.table.i40e_vc_add_qch_msg:
	.quad	_SPEED_40000
	.quad	_SPEED_25000
	.quad	_SPEED_20000
	.quad	_SPEED_1000
	.quad	_SPEED_10000
	.quad	_SPEED_100

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_vc_add_qch_msg
_i40e_vc_add_qch_msg:                   ; @i40e_vc_add_qch_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #64]
Lloh0:
	adrp	x8, _I40E_VF_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #56
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x21, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	bl	_dev_err
LBB0_4:
Lloh5:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _VIRTCHNL_OP_ENABLE_CHANNELS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIRTCHNL_OP_ENABLE_CHANNELS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_i40e_vc_send_resp_to_vf
LBB0_5:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _VIRTCHNL_VF_OFFLOAD_ADQ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VIRTCHNL_VF_OFFLOAD_ADQ@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _I40E_MAX_VF_VSI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I40E_MAX_VF_VSI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cbz	w8, LBB0_13
; %bb.7:
	cmp	w8, w9
	b.gt	LBB0_13
; %bb.8:
	cmp	w8, #0
	b.le	LBB0_14
; %bb.9:
	mov	x10, #0
	ldr	x11, [x20, #8]
Lloh17:
	adrp	x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, #0
	ccmp	x12, x9, #0, ne
	b.gt	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x8, x10
	b.ne	LBB0_10
	b	LBB0_15
LBB0_12:
	ldr	x0, [x21, #8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_13:
	ldr	x0, [x21, #8]
	ldr	w10, [x19, #32]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_14:
Lloh24:
	adrp	x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I40E_DEFAULT_QUEUES_PER_VF@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
LBB0_15:
Lloh27:
	adrp	x10, _I40E_MAX_VF_QUEUES@GOTPAGE
Lloh28:
	ldr	x10, [x10, _I40E_MAX_VF_QUEUES@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	ldr	w11, [x21]
	sub	w9, w10, w9
	cmp	w11, w9
	b.ge	LBB0_17
; %bb.16:
	ldr	x0, [x21, #8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_17:
	str	x10, [x19, #40]
	ldr	w9, [x21, #16]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hs	LBB0_26
; %bb.18:
Lloh32:
	adrp	x10, l_switch.table.i40e_vc_add_qch_msg@PAGE
Lloh33:
	add	x10, x10, l_switch.table.i40e_vc_add_qch_msg@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	ldr	x9, [x9]
	str	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.19:
	mov	x10, #0
	ldr	x11, [x20, #8]
	lsl	x8, x8, #4
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x13, [x19, #24]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x12, [x11, x10]
	add	x13, x13, x10
	str	x12, [x13, #8]
	add	x10, x10, #16
	cmp	x8, x10
	b.eq	LBB0_27
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x11, x10
	ldr	x12, [x12, #8]
	cbz	x12, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x12, x9
	b.gt	LBB0_28
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x13, [x19, #24]
	str	x12, [x13, x10]
	b	LBB0_21
LBB0_25:
	ldr	x0, [x21, #8]
	ldr	w8, [x19, #32]
	stp	x12, x9, [sp, #16]
	stp	x8, x10, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_26:
	ldr	x0, [x21, #8]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_27:
	mov	w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_i40e_vc_notify_vf_reset
	mov	x0, x19
	mov	w1, #0
	bl	_i40e_reset_vf
Lloh38:
	adrp	x8, _I40E_SUCCESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _I40E_SUCCESS@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_28:
	ldr	x0, [x21, #8]
	ldr	w8, [x19, #32]
	stp	x12, x8, [sp]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_VF_STATE_ACTIVE,4,2       ; @I40E_VF_STATE_ACTIVE
	.comm	_I40E_ERR_PARAM,4,2             ; @I40E_ERR_PARAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spoof check is ON, turn it OFF to enable ADq\n"

	.comm	_VIRTCHNL_VF_OFFLOAD_ADQ,4,2    ; @VIRTCHNL_VF_OFFLOAD_ADQ
l_.str.1:                               ; @.str.1
	.asciz	"VF %d attempting to enable ADq, but hasn't properly negotiated that capability\n"

	.comm	_I40E_MAX_VF_VSI,4,2            ; @I40E_MAX_VF_VSI
l_.str.2:                               ; @.str.2
	.asciz	"VF %d trying to set %u TCs, valid range 1-%u TCs per VF\n"

	.comm	_I40E_DEFAULT_QUEUES_PER_VF,8,3 ; @I40E_DEFAULT_QUEUES_PER_VF
l_.str.3:                               ; @.str.3
	.asciz	"VF %d: TC %d trying to set %u queues, valid range 1-%u queues per TC\n"

	.comm	_I40E_MAX_VF_QUEUES,8,3         ; @I40E_MAX_VF_QUEUES
l_.str.4:                               ; @.str.4
	.asciz	"No queues left to allocate to VF %d\n"

	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_SPEED_20000,8,3                ; @SPEED_20000
	.comm	_SPEED_25000,8,3                ; @SPEED_25000
	.comm	_SPEED_40000,8,3                ; @SPEED_40000
l_.str.5:                               ; @.str.5
	.asciz	"Cannot detect link speed\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid max tx rate %llu specified for VF %d."

	.comm	_I40E_SUCCESS,4,2               ; @I40E_SUCCESS
	.comm	_VIRTCHNL_OP_ENABLE_CHANNELS,4,2 ; @VIRTCHNL_OP_ENABLE_CHANNELS
	.no_dead_strip	_i40e_vc_add_qch_msg
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.i40e_vc_add_qch_msg
l_switch.table.i40e_vc_add_qch_msg:
	.quad	_SPEED_40000
	.quad	_SPEED_25000
	.quad	_SPEED_20000
	.quad	_SPEED_1000
	.quad	_SPEED_10000
	.quad	_SPEED_100

.subsections_via_symbols
