	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_linkspeed           ## -- Begin function mlx5e_port_linkspeed
	.p2align	4, 0x90
_mlx5e_port_linkspeed:                  ## @mlx5e_port_linkspeed
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_ptys_extended_ethernet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_PCAM_FEATURE
	movl	%eax, %ebx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_mlx5_port_query_eth_proto
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$0, -36(%rbp)
	jne	LBB0_4
## %bb.3:
	movl	$1, %r15d
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_mlx5_port_query_eth_proto
	testl	%eax, %eax
	jne	LBB0_6
LBB0_4:
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_mlx5e_port_ptys2speed
	movl	%eax, %ecx
	movl	%eax, (%r14)
	movl	$0, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ptys_extended_ethernet,4,2     ## @ptys_extended_ethernet
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_linkspeed           ; -- Begin function mlx5e_port_linkspeed
	.p2align	2
_mlx5e_port_linkspeed:                  ; @mlx5e_port_linkspeed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ptys_extended_ethernet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ptys_extended_ethernet@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_PCAM_FEATURE
	mov	x21, x0
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_mlx5_port_query_eth_proto
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w21, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_3
; %bb.2:
	mov	w21, #0
	b	LBB0_4
LBB0_3:
	mov	w21, #1
	add	x3, sp, #8
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_mlx5_port_query_eth_proto
	cbnz	w0, LBB0_7
LBB0_4:
	ldr	w1, [sp, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_mlx5e_port_ptys2speed
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ptys_extended_ethernet,4,2     ; @ptys_extended_ethernet
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
