	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_rxfh
_mlx4_en_set_rxfh:                      ## @mlx4_en_set_rxfh
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_mlx4_en_get_rxfh_indir_size
	movl	%eax, %ecx
	movq	32(%r12), %rbx
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.2:
	movq	%rbx, %r9
	movl	%ecx, %r8d
	xorl	%edi, %edi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14,%rdi,4), %ebx
	movl	%ebx, %eax
	orl	%r13d, %eax
	cmovel	%edi, %r13d
	movl	%edi, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %ebx
	xorl	%eax, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	movl	%r13d, %esi
	cmovel	%ecx, %esi
	cltd
	idivl	%esi
	cmpl	%edx, %ebx
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%r8, %rdi
	jb	LBB0_4
## %bb.9:
	testl	%r13d, %r13d
	movq	%r9, %rbx
	jne	LBB0_11
LBB0_10:
	movl	%ecx, %r13d
LBB0_11:
	movl	%r13d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_RSS_HASH_NO_CHANGE@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_mlx4_en_check_rxfh_func
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
LBB0_14:
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	24(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mlx4_en_stop_port
LBB0_16:
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:
	movq	16(%r12), %rax
	movl	%r13d, (%rax)
LBB0_18:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:
	movl	8(%r12), %edi
	movq	_MLX4_EN_RSS_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_ETH_RSS_HASH_NO_CHANGE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_22
## %bb.21:
	movq	%rax, (%r12)
LBB0_22:
	movq	%rbx, %r14
	xorl	%r12d, %r12d
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_25
## %bb.23:
	movq	%r15, %rdi
	callq	_mlx4_en_start_port
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_en_err
	movl	%ebx, %r12d
LBB0_25:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_26
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_RSS_HASH_NO_CHANGE,8,3     ## @ETH_RSS_HASH_NO_CHANGE
	.comm	_MLX4_EN_RSS_KEY_SIZE,4,2       ## @MLX4_EN_RSS_KEY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed starting port\n"

	.no_dead_strip	_mlx4_en_set_rxfh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_set_rxfh
_mlx4_en_set_rxfh:                      ; @mlx4_en_set_rxfh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_mlx4_en_get_rxfh_indir_size
	ldr	x19, [x20, #32]
	cbz	x24, LBB0_9
; %bb.1:
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x8, #0
	mov	w25, #0
	mov	w9, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x24, x8, lsl #2]
	orr	w11, w10, w25
	cmp	w11, #0
	csel	w25, w25, w8, ne
	mov	x11, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w11, #0
	ldr	w10, [x24]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, #0
	csel	w12, w0, w25, eq
	sdiv	w13, w11, w12
	msub	w11, w13, w12, w11
	cmp	w10, w11
	b.ne	LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.lo	LBB0_3
; %bb.8:
	cbnz	w25, LBB0_10
LBB0_9:
	mov	x25, x0
LBB0_10:
	mov	x0, x25
	bl	_is_power_of_2
	cbz	w0, LBB0_25
; %bb.11:
Lloh0:
	adrp	x27, _ETH_RSS_HASH_NO_CHANGE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ETH_RSS_HASH_NO_CHANGE@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, x22
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	bl	_mlx4_en_check_rxfh_func
	mov	x26, x0
	cbnz	w0, LBB0_26
LBB0_13:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x26, [x20, #24]
	cbz	x26, LBB0_15
; %bb.14:
	mov	x0, x21
	mov	w1, #1
	bl	_mlx4_en_stop_port
LBB0_15:
	cbz	x24, LBB0_17
; %bb.16:
	ldr	x8, [x20, #16]
	str	w25, [x8]
LBB0_17:
	cbz	x23, LBB0_19
; %bb.18:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _MLX4_EN_RSS_KEY_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_EN_RSS_KEY_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
LBB0_19:
	ldr	x8, [x27]
	cmp	x8, x22
	b.eq	LBB0_21
; %bb.20:
	str	x22, [x20]
LBB0_21:
	cbz	x26, LBB0_24
; %bb.22:
	mov	x0, x21
	bl	_mlx4_en_start_port
	mov	x26, x0
	cbz	w0, LBB0_24
; %bb.23:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_en_err
LBB0_24:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_26
LBB0_25:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_26:
	mov	x0, x26
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_RSS_HASH_NO_CHANGE,8,3     ; @ETH_RSS_HASH_NO_CHANGE
	.comm	_MLX4_EN_RSS_KEY_SIZE,4,2       ; @MLX4_EN_RSS_KEY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed starting port\n"

	.no_dead_strip	_mlx4_en_set_rxfh
.subsections_via_symbols
