	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_get_link_ksettings
_mlxsw_sp_port_get_link_ksettings:      ## @mlxsw_sp_port_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r15
	movq	_MLXSW_REG_PTYS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	8(%r15), %rbx
	movl	4(%r14), %edx
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	callq	*16(%rbx)
	movl	(%r15), %r13d
	movq	_ptys@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_mlxsw_reg_query
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rsi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movl	-68(%rbp), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_mlxsw_sp_port_get_link_supported
	movl	-64(%rbp), %esi
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movq	%rbx, %r8
	callq	_mlxsw_sp_port_get_link_advertise
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_mlxsw_reg_ptys_connector_type_get
	movl	%eax, %edi
	callq	_mlxsw_sp_port_connector_port
	movl	%eax, (%rbx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_netif_carrier_ok
	movl	-60(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	*%r14
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_5:
	movq	%rcx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_PTYS_LEN,4,2         ## @MLXSW_REG_PTYS_LEN
	.comm	_ptys,4,2                       ## @ptys
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_mlxsw_sp_port_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 mlxsw_sp_port_get_link_ksettings
_mlxsw_sp_port_get_link_ksettings:      ; @mlxsw_sp_port_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_netdev_priv
	mov	x24, x0
	mov	x26, sp
	ldr	x21, [x0, #16]
Lloh3:
	adrp	x8, _MLXSW_REG_PTYS_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_PTYS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x27, [x21, #8]
	ldr	x8, [x27, #16]
	ldp	w2, w25, [x0, #4]
	mov	x0, x21
	mov	x1, x23
	mov	w3, #0
	mov	w4, #0
	blr	x8
	ldr	w22, [x21]
Lloh8:
	adrp	x8, _ptys@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ptys@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_mlxsw_reg_query
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x27, #8]
	sub	x2, x29, #92
	sub	x3, x29, #96
	sub	x4, x29, #100
	mov	x0, x21
	mov	x1, x23
	blr	x8
	ldur	w1, [x29, #-92]
	ldr	w2, [x24]
	mov	x0, x21
	mov	x3, x19
	bl	_mlxsw_sp_port_get_link_supported
	ldur	w1, [x29, #-96]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x2, x25
	mov	x4, x19
	bl	_mlxsw_sp_port_get_link_advertise
Lloh11:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh13:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x23
	bl	_mlxsw_reg_ptys_connector_type_get
	bl	_mlxsw_sp_port_connector_port
	str	w0, [x19]
	ldr	x23, [x27]
	mov	x0, x20
	bl	_netif_carrier_ok
	mov	x1, x0
	ldur	w2, [x29, #-100]
	mov	x0, x21
	mov	x3, x19
	blr	x23
LBB0_2:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	sub	sp, x29, #80
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_PTYS_LEN,4,2         ; @MLXSW_REG_PTYS_LEN
	.comm	_ptys,4,2                       ; @ptys
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_mlxsw_sp_port_get_link_ksettings
.subsections_via_symbols
