	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5i_get_link_ksettings
_mlx5i_get_link_ksettings:              ## @mlx5i_get_link_ksettings
	.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	%rsi, %rbx
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	_mlx5i_get_port_settings
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movl	-16(%rbp), %edi
	movl	-12(%rbp), %esi
	callq	_mlx5i_get_speed_settings
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_PORT_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported,4,2                  ## @supported
	.comm	_advertising,4,2                ## @advertising
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_PORT_OTHER,4,2                 ## @PORT_OTHER
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_mlx5i_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5i_get_link_ksettings
_mlx5i_get_link_ksettings:              ; @mlx5i_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_mlx5i_get_port_settings
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _supported@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
Lloh3:
	adrp	x8, _advertising@GOTPAGE
Lloh4:
	ldr	x8, [x8, _advertising@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
	ldp	w1, w0, [sp, #8]
	bl	_mlx5i_get_speed_settings
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _PORT_OTHER@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PORT_OTHER@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #8]
Lloh12:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [x19]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_supported,4,2                  ; @supported
	.comm	_advertising,4,2                ; @advertising
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_PORT_OTHER,4,2                 ; @PORT_OTHER
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_mlx5i_get_link_ksettings
.subsections_via_symbols
