	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_test_speed
_mlx4_en_test_speed:                    ## @mlx4_en_test_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_mlx4_en_QUERY_PORT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %rcx
	movq	_SPEED_100@GOTPCREL(%rip), %r8
	movq	_SPEED_1000@GOTPCREL(%rip), %r9
	movq	_SPEED_10000@GOTPCREL(%rip), %rdi
	movq	_SPEED_20000@GOTPCREL(%rip), %rbx
	movq	_SPEED_40000@GOTPCREL(%rip), %rdx
	movq	_SPEED_56000@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	(%rax), %rcx
	movl	%ecx, %eax
	cmovel	%esi, %eax
	cmpq	(%rdx), %rcx
	cmovel	%esi, %eax
	cmpq	(%rbx), %rcx
	cmovel	%esi, %eax
	cmpq	(%rdi), %rcx
	cmovel	%esi, %eax
	cmpq	(%r9), %rcx
	cmovel	%esi, %eax
	cmpq	(%r8), %rcx
	cmovel	%esi, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_SPEED_20000,8,3                ## @SPEED_20000
	.comm	_SPEED_40000,8,3                ## @SPEED_40000
	.comm	_SPEED_56000,8,3                ## @SPEED_56000
	.no_dead_strip	_mlx4_en_test_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_test_speed
_mlx4_en_test_speed:                    ; @mlx4_en_test_speed
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	bl	_mlx4_en_QUERY_PORT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh8:
	adrp	x11, _SPEED_10000@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SPEED_10000@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _SPEED_20000@GOTPAGE
Lloh13:
	ldr	x12, [x12, _SPEED_20000@GOTPAGEOFF]
Lloh14:
	adrp	x13, _SPEED_40000@GOTPAGE
Lloh15:
	ldr	x13, [x13, _SPEED_40000@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
Lloh17:
	ldr	x13, [x13]
Lloh18:
	adrp	x14, _SPEED_56000@GOTPAGE
Lloh19:
	ldr	x14, [x14, _SPEED_56000@GOTPAGEOFF]
Lloh20:
	ldr	x14, [x14]
	cmp	x9, x14
	ccmp	x9, x13, #4, ne
	ccmp	x9, x12, #4, ne
	ccmp	x9, x11, #4, ne
	ccmp	x9, x10, #4, ne
	ccmp	x9, x8, #4, ne
	csel	w0, wzr, w9, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_SPEED_20000,8,3                ; @SPEED_20000
	.comm	_SPEED_40000,8,3                ; @SPEED_40000
	.comm	_SPEED_56000,8,3                ; @SPEED_56000
	.no_dead_strip	_mlx4_en_test_speed
.subsections_via_symbols
