	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_set_entropy
_mlx5_set_entropy:                      ## @mlx5_set_entropy
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	leaq	-64(%rbp), %rsi
	callq	_mlx5_query_port_tun_entropy
	cmpq	$0, -32(%rbp)
	je	LBB0_4
## %bb.1:
	movq	_MLX5_REFORMAT_TYPE_L2_TO_NVGRE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, -56(%rbp)
	je	LBB0_15
## %bb.3:
	movl	4(%r15), %edi
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	movl	%r14d, %esi
	callq	_mlx5_set_port_gre_tun_entropy_calc
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_4:
	cmpq	$0, -40(%rbp)
	je	LBB0_15
## %bb.5:
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.6:
	cmpl	%r14d, -64(%rbp)
	jne	LBB0_8
## %bb.7:
	movl	4(%r15), %edi
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_core_warn
	jmp	LBB0_9
LBB0_8:
	cmpq	$0, 8(%r15)
	je	LBB0_10
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_10:
	movl	4(%r15), %edi
	movq	-56(%rbp), %rdx
	movl	%r14d, %esi
	callq	_mlx5_set_port_tun_entropy_calc
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movl	%r14d, (%r15)
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.12:
	cmpq	$0, -56(%rbp)
	je	LBB0_15
## %bb.13:
	movl	4(%r15), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_mlx5_set_port_tun_entropy_calc
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_REFORMAT_TYPE_L2_TO_NVGRE,4,2 ## @MLX5_REFORMAT_TYPE_L2_TO_NVGRE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected entropy calc setting - expected %d"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_mlx5_set_entropy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_set_entropy
_mlx5_set_entropy:                      ; @mlx5_set_entropy
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	add	x1, sp, #8
	bl	_mlx5_query_port_tun_entropy
	ldr	x8, [sp, #40]
Lloh0:
	adrp	x9, _MLX5_REFORMAT_TYPE_L2_TO_NVGRE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_REFORMAT_TYPE_L2_TO_NVGRE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, w21, #0, ne
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w8, [sp, #8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20, #4]
	cmp	w19, #0
	cset	w2, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_core_warn
	b	LBB0_9
LBB0_5:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #4]
	cmp	w19, #0
	cset	w2, eq
	mov	x1, x19
	bl	_mlx5_set_port_gre_tun_entropy_calc
	cbnz	w0, LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	ldr	w0, [x20, #4]
	ldr	x2, [sp, #16]
	mov	x1, x19
	bl	_mlx5_set_port_tun_entropy_calc
	cbnz	w0, LBB0_10
; %bb.12:
	str	w19, [x20]
	cbz	w19, LBB0_7
; %bb.13:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.14:
	ldr	w0, [x20, #4]
	mov	w1, #1
	mov	x2, #0
	bl	_mlx5_set_port_tun_entropy_calc
	cbnz	w0, LBB0_10
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_REFORMAT_TYPE_L2_TO_NVGRE,4,2 ; @MLX5_REFORMAT_TYPE_L2_TO_NVGRE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected entropy calc setting - expected %d"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_mlx5_set_entropy
.subsections_via_symbols
