	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_rss         ## -- Begin function qlcnic_83xx_config_rss
	.p2align	4, 0x90
_qlcnic_83xx_config_rss:                ## @qlcnic_83xx_config_rss
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	l___const.qlcnic_83xx_config_rss.key+16(%rip), %eax
	movl	%eax, -48(%rbp)
	movaps	l___const.qlcnic_83xx_config_rss.key(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_QLCNIC_CMD_CONFIGURE_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_RSS_HASHTYPE_IP_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$3, %eax
	shll	$4, %eax
	leal	(%rax,%rax,4), %eax
	andl	$1, %r15d
	shll	$8, %r15d
	orl	%eax, %r15d
	orl	$458752, %r15d                  ## imm = 0x70000
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rdi
	movl	%eax, 4(%rdi)
	movl	%r15d, 8(%rdi)
	addq	$16, %rdi
	leaq	-64(%rbp), %rsi
	movl	$20, %edx
	callq	_memcpy
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_3:
	leaq	-72(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.qlcnic_83xx_config_rss.key
l___const.qlcnic_83xx_config_rss.key:
	.long	1782757179                      ## 0x6a42b73b
	.long	2009804195                      ## 0x77cb2da3
	.long	3502910411                      ## 0xd0ca2bcb
	.long	1097278781                      ## 0x4167253d
	.long	1834637018                      ## 0x6d5a56da

	.comm	_QLCNIC_CMD_CONFIGURE_RSS,4,2   ## @QLCNIC_CMD_CONFIGURE_RSS
	.comm	_RSS_HASHTYPE_IP_TCP,4,2        ## @RSS_HASHTYPE_IP_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSS config failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_config_rss         ; -- Begin function qlcnic_83xx_config_rss
	.p2align	2
_qlcnic_83xx_config_rss:                ; @qlcnic_83xx_config_rss
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, l___const.qlcnic_83xx_config_rss.key@PAGE
Lloh4:
	add	x8, x8, l___const.qlcnic_83xx_config_rss.key@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	w8, [x8, #16]
	str	w8, [sp, #32]
Lloh5:
	adrp	x8, _QLCNIC_CMD_CONFIGURE_RSS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIGURE_RSS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _RSS_HASHTYPE_IP_TCP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RSS_HASHTYPE_IP_TCP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w9, w8, #0x3
	bfi	w8, w9, #2, #2
	ubfiz	w9, w21, #8, #1
	bfi	w9, w8, #4, #4
	orr	w8, w9, #0x70000
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	ldr	x10, [sp, #8]
	stp	w9, w8, [x10, #4]
	add	x0, x10, #16
	add	x1, sp, #16
	mov	w2, #20
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_3:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_4:
	ldr	x8, [sp, #40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.qlcnic_83xx_config_rss.key
l___const.qlcnic_83xx_config_rss.key:
	.long	1782757179                      ; 0x6a42b73b
	.long	2009804195                      ; 0x77cb2da3
	.long	3502910411                      ; 0xd0ca2bcb
	.long	1097278781                      ; 0x4167253d
	.long	1834637018                      ; 0x6d5a56da

	.comm	_QLCNIC_CMD_CONFIGURE_RSS,4,2   ; @QLCNIC_CMD_CONFIGURE_RSS
	.comm	_RSS_HASHTYPE_IP_TCP,4,2        ; @RSS_HASHTYPE_IP_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSS config failed\n"

.subsections_via_symbols
