	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hinic_set_rss_hash_opts
_hinic_set_rss_hash_opts:               ## @hinic_set_rss_hash_opts
	.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, %rbx
	movq	_HINIC_RSS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	(%rbx), %eax
	movq	_RXH_IP_SRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RXH_IP_DST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	orl	%edx, %esi
	movq	_RXH_L4_B_0_1@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	_RXH_L4_B_2_3@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	notl	%esi
	testl	%esi, %eax
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_1:
	movl	$0, (%rbx)
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%eax, %edx
	je	LBB0_3
## %bb.5:
	andl	%eax, %ecx
	je	LBB0_3
## %bb.6:
	leaq	8(%r14), %r15
	movl	4(%r14), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_hinic_get_rss_type
	testl	%eax, %eax
	je	LBB0_7
LBB0_14:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_7:
	movl	4(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_8
## %bb.17:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_set_l4_rss_hash_ops
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_12
LBB0_8:
	cmpl	$132, %eax
	je	LBB0_10
## %bb.9:
	cmpl	$133, %eax
	jne	LBB0_3
	jmp	LBB0_11
LBB0_10:
	leaq	12(%r14), %r15
LBB0_11:
	movl	$1, (%r15)
LBB0_12:
	movl	4(%r14), %esi
	movq	8(%r14), %rdx
	movq	%r14, %rdi
	callq	_hinic_set_rss_type
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_RSS_ENABLE,4,2           ## @HINIC_RSS_ENABLE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.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	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_hinic_set_rss_hash_opts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hinic_set_rss_hash_opts
_hinic_set_rss_hash_opts:               ; @hinic_set_rss_hash_opts
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w8, [x20], #8
Lloh0:
	adrp	x9, _HINIC_RSS_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HINIC_RSS_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _RXH_IP_SRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RXH_IP_SRC@GOTPAGEOFF]
Lloh5:
	adrp	x11, _RXH_IP_DST@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RXH_IP_DST@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x9]
Lloh8:
	ldr	w9, [x11]
	orr	w11, w9, w10
Lloh9:
	adrp	x12, _RXH_L4_B_0_1@GOTPAGE
Lloh10:
	ldr	x12, [x12, _RXH_L4_B_0_1@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh12:
	adrp	x12, _RXH_L4_B_2_3@GOTPAGE
Lloh13:
	ldr	x12, [x12, _RXH_L4_B_2_3@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	orr	w11, w11, w12
	bics	wzr, w8, w11
	b.ne	LBB0_3
; %bb.2:
	and	w10, w10, w8
	and	w8, w9, w8
	cmp	w10, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_7
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	wzr, [x21]
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	mov	x19, x0
	ldr	w1, [x0, #4]
	mov	x2, x20
	bl	_hinic_get_rss_type
	cbz	w0, LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _EFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	w8, [x21, #4]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	bl	_set_l4_rss_hash_ops
	cbnz	w0, LBB0_6
	b	LBB0_15
LBB0_11:
	cmp	w8, #132
	b.eq	LBB0_13
; %bb.12:
	cmp	w8, #133
	b.ne	LBB0_3
	b	LBB0_14
LBB0_13:
	add	x20, x19, #12
LBB0_14:
	mov	w8, #1
	str	w8, [x20]
LBB0_15:
	ldr	w1, [x19, #4]
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_hinic_set_rss_type
	cbnz	w0, LBB0_8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_RSS_ENABLE,4,2           ; @HINIC_RSS_ENABLE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.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	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_hinic_set_rss_hash_opts
.subsections_via_symbols
