	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_max_linkspeed       ## -- Begin function mlx5e_port_max_linkspeed
	.p2align	4, 0x90
_mlx5e_port_max_linkspeed:              ## @mlx5e_port_max_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	%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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ptys_extended_ethernet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_PCAM_FEATURE
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_mlx5_port_query_eth_proto
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_mlx5e_port_get_speed_arr
	cmpl	$0, -44(%rbp)
	movl	$0, %r12d
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %r13d
	movl	%ebx, %edi
	callq	_MLX5E_PROT_MASK
	testl	%r13d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%r12d, %edi
	callq	_max
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_6:
	movl	%r12d, (%r14)
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ptys_extended_ethernet,4,2     ## @ptys_extended_ethernet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_max_linkspeed       ; -- Begin function mlx5e_port_max_linkspeed
	.p2align	2
_mlx5e_port_max_linkspeed:              ; @mlx5e_port_max_linkspeed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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	x2, x0
	add	x3, sp, #24
	mov	x0, x20
	mov	w1, #1
	bl	_mlx5_port_query_eth_proto
	cbnz	w0, LBB0_8
; %bb.1:
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #0
	bl	_mlx5e_port_get_speed_arr
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
	mov	w21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [sp, #12]
	cmp	x20, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [sp, #24]
	mov	x0, x20
	bl	_MLX5E_PROT_MASK
	tst	w0, w22
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x21
	bl	_max
	mov	x21, x0
	b	LBB0_3
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	w0, #0
	str	w21, [x19]
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ptys_extended_ethernet,4,2     ; @ptys_extended_ethernet
.subsections_via_symbols
