	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_write_rss_vi_config       ## -- Begin function t4vf_write_rss_vi_config
	.p2align	4, 0x90
_t4vf_write_rss_vi_config:              ## @t4vf_write_rss_vi_config
	.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	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	leaq	-64(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_FW_RSS_VI_CONFIG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %ebx
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_WRITE_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_FW_RSS_VI_CONFIG_CMD_VIID
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%rsp)
	movdqu	-64(%rbp), %xmm0
	movdqu	%xmm0, (%rsp)
	callq	_FW_LEN16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	cmpl	$128, (%r14)
	jne	LBB0_12
## %bb.1:
	movl	20(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movq	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movdqu	4(%r15), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %eax
	xorl	%r12d, %r12d
	movl	$0, %ebx
	testb	$8, %al
	jne	LBB0_5
## %bb.4:
	movq	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_5:
	movl	$0, %edx
	testb	$4, %al
	jne	LBB0_7
## %bb.6:
	movq	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_7:
	orl	%ecx, %ebx
	movl	$0, %ecx
	testb	$2, %al
	jne	LBB0_9
## %bb.8:
	movq	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	%ecx, %edx
	orl	%edx, %ebx
	testb	$1, %al
	jne	LBB0_11
## %bb.10:
	movq	_FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movl	(%r15), %edi
	callq	_FW_RSS_VI_CONFIG_CMD_DEFAULTQ_V
	orl	%eax, %r12d
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-88(%rbp), %rcx
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_t4vf_wr_mbox
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_RSS_VI_CONFIG_CMD,4,2       ## @FW_RSS_VI_CONFIG_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_WRITE_F,4,2             ## @FW_CMD_WRITE_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_UDPEN_F,4,2 ## @FW_RSS_VI_CONFIG_CMD_UDPEN_F
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4vf_write_rss_vi_config       ; -- Begin function t4vf_write_rss_vi_config
	.p2align	2
_t4vf_write_rss_vi_config:              ; @t4vf_write_rss_vi_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _FW_RSS_VI_CONFIG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_RSS_VI_CONFIG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh3:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _FW_CMD_WRITE_F@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_CMD_WRITE_F@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	x0, x21
	bl	_FW_RSS_VI_CONFIG_CMD_VIID
	orr	w0, w22, w0
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	ldur	q0, [sp, #24]
	str	q0, [sp]
	str	x0, [sp, #16]
	mov	x0, sp
	bl	_FW_LEN16
	bl	_cpu_to_be32
	str	x0, [sp, #32]
	ldr	w8, [x19]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldp	w10, w9, [x20, #16]
	cmp	w9, #0
	csel	w8, wzr, w8, eq
Lloh12:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldp	w11, w10, [x20, #8]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w11, #0
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FW_RSS_VI_CONFIG_CMD_UDPEN_F@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldp	w0, w10, [x20]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w20, w8, w9
	bl	_FW_RSS_VI_CONFIG_CMD_DEFAULTQ_V
	orr	w0, w20, w0
	bl	_cpu_to_be32
	str	x0, [sp, #24]
	add	x1, sp, #24
	mov	x3, sp
	mov	x0, x19
	mov	w2, #24
	bl	_t4vf_wr_mbox
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_RSS_VI_CONFIG_CMD,4,2       ; @FW_RSS_VI_CONFIG_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_WRITE_F,4,2             ; @FW_CMD_WRITE_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP6FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP6TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP4FOURTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_IP4TWOTUPEN_F
	.comm	_FW_RSS_VI_CONFIG_CMD_UDPEN_F,4,2 ; @FW_RSS_VI_CONFIG_CMD_UDPEN_F
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
