	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_set_rss_hash_opt
_sxgbe_set_rss_hash_opt:                ## @sxgbe_set_rss_hash_opt
	.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	%rdi, %r14
	movl	(%rsi), %r9d
	movq	_RXH_IP_SRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_RXH_IP_DST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edi
	orl	%ebx, %edi
	movq	_RXH_L4_B_0_1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_RXH_L4_B_2_3@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%edx, %eax
	orl	%r8d, %eax
	orl	%edi, %eax
	notl	%eax
	testl	%eax, %r9d
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rsi), %esi
	leal	-132(%rsi), %eax
	cmpl	$10, %eax
	jae	LBB0_3
## %bb.9:
	testl	%r9d, %ebx
	je	LBB0_1
## %bb.10:
	andl	%r9d, %ecx
	je	LBB0_1
## %bb.11:
	andl	%r9d, %edx
	jne	LBB0_1
## %bb.12:
	andl	%r9d, %r8d
	jne	LBB0_1
## %bb.13:
	movq	_SXGBE_CORE_RSS_CTL_IP2TE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
	movq	_SXGBE_CORE_RSS_CTL_REG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	orl	%eax, %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.4:
	addl	$-130, %esi
	cmpl	$1, %esi
	ja	LBB0_1
## %bb.5:
	movd	%ebx, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %r8d, %xmm0
	movd	%r9d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movmskps	%xmm0, %eax
	testl	%eax, %eax
	jne	LBB0_1
## %bb.6:
	movq	_SXGBE_CORE_RSS_CTL_TCP4TE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movd	%ebx, %xmm0
	pinsrd	$1, %ecx, %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %r8d, %xmm0
	movd	%r9d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movmskps	%xmm0, %eax
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:
	movq	_SXGBE_CORE_RSS_CTL_UDP4TE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_RXH_IP_SRC,4,2                 ## @RXH_IP_SRC
	.comm	_RXH_IP_DST,4,2                 ## @RXH_IP_DST
	.comm	_RXH_L4_B_0_1,4,2               ## @RXH_L4_B_0_1
	.comm	_RXH_L4_B_2_3,4,2               ## @RXH_L4_B_2_3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SXGBE_CORE_RSS_CTL_TCP4TE,4,2  ## @SXGBE_CORE_RSS_CTL_TCP4TE
	.comm	_SXGBE_CORE_RSS_CTL_UDP4TE,4,2  ## @SXGBE_CORE_RSS_CTL_UDP4TE
	.comm	_SXGBE_CORE_RSS_CTL_IP2TE,4,2   ## @SXGBE_CORE_RSS_CTL_IP2TE
	.comm	_SXGBE_CORE_RSS_CTL_REG,8,3     ## @SXGBE_CORE_RSS_CTL_REG
	.no_dead_strip	_sxgbe_set_rss_hash_opt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_set_rss_hash_opt
_sxgbe_set_rss_hash_opt:                ; @sxgbe_set_rss_hash_opt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _RXH_IP_SRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXH_IP_SRC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _RXH_IP_DST@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RXH_IP_DST@GOTPAGEOFF]
Lloh4:
	ldr	w12, [x9]
Lloh5:
	ldr	w9, [x10]
	orr	w11, w9, w12
Lloh6:
	adrp	x10, _RXH_L4_B_0_1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RXH_L4_B_0_1@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w13, w11, w10
Lloh9:
	adrp	x11, _RXH_L4_B_2_3@GOTPAGE
Lloh10:
	ldr	x11, [x11, _RXH_L4_B_2_3@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w13, w13, w11
	bics	wzr, w8, w13
	b.eq	LBB0_3
LBB0_1:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	w13, [x1, #4]
	sub	w14, w13, #132
	cmp	w14, #10
	b.hs	LBB0_7
; %bb.4:
	and	w12, w12, w8
	and	w9, w9, w8
	and	w10, w10, w8
	and	w8, w11, w8
	cmp	w12, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #0, ne
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_1
; %bb.5:
Lloh15:
	adrp	x8, _SXGBE_CORE_RSS_CTL_IP2TE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SXGBE_CORE_RSS_CTL_IP2TE@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
	ldr	x8, [x19]
Lloh17:
	adrp	x21, _SXGBE_CORE_RSS_CTL_REG@GOTPAGE
Lloh18:
	ldr	x21, [x21, _SXGBE_CORE_RSS_CTL_REG@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	w0, #0
	b	LBB0_2
LBB0_7:
	sub	w14, w13, #128
	cmp	w14, #2
	b.lo	LBB0_11
; %bb.8:
	sub	w13, w13, #130
	cmp	w13, #1
	b.hi	LBB0_1
; %bb.9:
	and	w12, w12, w8
	and	w9, w9, w8
	and	w10, w10, w8
	and	w8, w11, w8
	cmp	w12, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_1
; %bb.10:
Lloh19:
	adrp	x8, _SXGBE_CORE_RSS_CTL_TCP4TE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SXGBE_CORE_RSS_CTL_TCP4TE@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	and	w12, w12, w8
	and	w9, w9, w8
	and	w10, w10, w8
	and	w8, w11, w8
	cmp	w12, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_1
; %bb.12:
Lloh21:
	adrp	x8, _SXGBE_CORE_RSS_CTL_UDP4TE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SXGBE_CORE_RSS_CTL_UDP4TE@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RXH_IP_SRC,4,2                 ; @RXH_IP_SRC
	.comm	_RXH_IP_DST,4,2                 ; @RXH_IP_DST
	.comm	_RXH_L4_B_0_1,4,2               ; @RXH_L4_B_0_1
	.comm	_RXH_L4_B_2_3,4,2               ; @RXH_L4_B_2_3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SXGBE_CORE_RSS_CTL_TCP4TE,4,2  ; @SXGBE_CORE_RSS_CTL_TCP4TE
	.comm	_SXGBE_CORE_RSS_CTL_UDP4TE,4,2  ; @SXGBE_CORE_RSS_CTL_UDP4TE
	.comm	_SXGBE_CORE_RSS_CTL_IP2TE,4,2   ; @SXGBE_CORE_RSS_CTL_IP2TE
	.comm	_SXGBE_CORE_RSS_CTL_REG,8,3     ; @SXGBE_CORE_RSS_CTL_REG
	.no_dead_strip	_sxgbe_set_rss_hash_opt
.subsections_via_symbols
