	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ethtool_set_rxfh_context
_efx_ethtool_set_rxfh_context:          ## @efx_ethtool_set_rxfh_context
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_ETH_RSS_HASH_NO_CHANGE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_ETH_RSS_HASH_TOP@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_4
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_4:
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_ETH_RXFH_CONTEXT_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%r15d, %esi
	jne	LBB0_10
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	%r13, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_efx_find_rss_context_entry
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.13:
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	movq	%rax, %r14
	movq	%rax, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.14:
	movq	%r14, %rdi
	callq	_efx_free_rss_context_entry
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_8:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_efx_alloc_rss_context_entry
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:
	movq	_EFX_EF10_RSS_CONTEXT_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%r13, %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_efx_set_default_rx_indir_table
	movq	(%rbx), %rdi
	movl	$8, %esi
	callq	_netdev_rss_key_fill
	movq	%rbx, %rax
LBB0_16:
	testq	%r12, %r12
	movq	%r14, %rdx
	jne	LBB0_18
## %bb.17:
	movq	(%rax), %r12
LBB0_18:
	testq	%rdx, %rdx
	jne	LBB0_20
## %bb.19:
	movq	16(%rax), %rdx
LBB0_20:
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	movq	%rax, %r14
	movq	%rax, %rsi
	movq	%r12, %rcx
	callq	*(%rbx)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	callq	_efx_free_rss_context_entry
	jmp	LBB0_24
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_23:
	movl	8(%r14), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_24
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_RSS_HASH_NO_CHANGE,8,3     ## @ETH_RSS_HASH_NO_CHANGE
	.comm	_ETH_RSS_HASH_TOP,8,3           ## @ETH_RSS_HASH_TOP
	.comm	_ETH_RXFH_CONTEXT_ALLOC,4,2     ## @ETH_RXFH_CONTEXT_ALLOC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFX_EF10_RSS_CONTEXT_INVALID,4,2 ## @EFX_EF10_RSS_CONTEXT_INVALID
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_efx_ethtool_set_rxfh_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ethtool_set_rxfh_context
_efx_ethtool_set_rxfh_context:          ; @efx_ethtool_set_rxfh_context
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ETH_RSS_HASH_NO_CHANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_RSS_HASH_NO_CHANGE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ETH_RSS_HASH_TOP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_RSS_HASH_TOP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x19, x0
	bl	_mutex_lock
	ldr	w24, [x20]
Lloh6:
	adrp	x8, _ETH_RXFH_CONTEXT_ALLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_RXFH_CONTEXT_ALLOC@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
	cmp	w24, w26
	b.ne	LBB0_6
; %bb.3:
	cbz	w25, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_5:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_23
LBB0_6:
	mov	x0, x19
	mov	x1, x24
	bl	_efx_find_rss_context_entry
	cbz	x0, LBB0_18
; %bb.7:
	mov	x23, x0
	cbz	w25, LBB0_11
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	mov	x3, #0
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_22
	b	LBB0_17
LBB0_9:
	mov	x0, x19
	bl	_efx_alloc_rss_context_entry
	cbz	x0, LBB0_20
; %bb.10:
	mov	x23, x0
Lloh14:
	adrp	x8, _EFX_EF10_RSS_CONTEXT_INVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFX_EF10_RSS_CONTEXT_INVALID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	x0, x19
	mov	x1, x23
	bl	_efx_set_default_rx_indir_table
	ldr	x0, [x23]
	mov	w1, #8
	bl	_netdev_rss_key_fill
LBB0_11:
	cbnz	x21, LBB0_13
; %bb.12:
	ldr	x21, [x23]
LBB0_13:
	cbnz	x22, LBB0_15
; %bb.14:
	ldr	x22, [x23, #16]
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.16:
	cmp	w24, w26
	b.ne	LBB0_19
LBB0_17:
	mov	x0, x23
	bl	_efx_free_rss_context_entry
	b	LBB0_22
LBB0_18:
Lloh17:
	adrp	x8, _ENOENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:
	ldr	w8, [x23, #8]
	str	w8, [x20]
	b	LBB0_22
LBB0_20:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_22:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_23:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_RSS_HASH_NO_CHANGE,8,3     ; @ETH_RSS_HASH_NO_CHANGE
	.comm	_ETH_RSS_HASH_TOP,8,3           ; @ETH_RSS_HASH_TOP
	.comm	_ETH_RXFH_CONTEXT_ALLOC,4,2     ; @ETH_RXFH_CONTEXT_ALLOC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFX_EF10_RSS_CONTEXT_INVALID,4,2 ; @EFX_EF10_RSS_CONTEXT_INVALID
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_efx_ethtool_set_rxfh_context
.subsections_via_symbols
