	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_port_link_status
_display_port_link_status:              ## @display_port_link_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_PMSR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt753x_reg_read
	movq	_MAC_SPD_STS_M@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	andl	(%rcx), %edx
	movq	_MAC_SPD_STS_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	addl	$-128, %edx
	cmpl	$2, %edx
	ja	LBB0_1
## %bb.2:
	movslq	%edx, %rcx
	leaq	l_reltable.display_port_link_status(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rcx
LBB0_3:
	movq	_MAC_LNK_STS@GOTPCREL(%rip), %rdx
	movl	(%rbx), %edi
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_MAC_DPX_STS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_5:
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_SPD_STS_M,4,2              ## @MAC_SPD_STS_M
	.comm	_MAC_SPD_STS_S,4,2              ## @MAC_SPD_STS_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"10Mbps"

L_.str.1:                               ## @.str.1
	.asciz	"100Mbps"

L_.str.2:                               ## @.str.2
	.asciz	"1Gbps"

L_.str.3:                               ## @.str.3
	.asciz	"2.5Gbps"

	.comm	_MAC_LNK_STS,4,2                ## @MAC_LNK_STS
L_.str.4:                               ## @.str.4
	.asciz	"Port %d Link is Up - %s/%s\n"

	.comm	_MAC_DPX_STS,4,2                ## @MAC_DPX_STS
L_.str.5:                               ## @.str.5
	.asciz	"Full"

L_.str.6:                               ## @.str.6
	.asciz	"Half"

L_.str.7:                               ## @.str.7
	.asciz	"Port %d Link is Down\n"

	.no_dead_strip	_display_port_link_status
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.display_port_link_status
l_reltable.display_port_link_status:
	.long	L_.str.3-l_reltable.display_port_link_status
	.long	L_.str.2-l_reltable.display_port_link_status
	.long	L_.str.1-l_reltable.display_port_link_status

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_port_link_status
_display_port_link_status:              ; @display_port_link_status
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_PMSR
	mov	x1, x0
	mov	x0, x20
	bl	_mt753x_reg_read
Lloh0:
	adrp	x8, _MAC_SPD_STS_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_SPD_STS_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _MAC_SPD_STS_S@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC_SPD_STS_S@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.display_port_link_status@PAGE
Lloh7:
	add	x9, x9, l_switch.table.display_port_link_status@PAGEOFF
	ldr	x9, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, l_.str@PAGE
Lloh9:
	add	x9, x9, l_.str@PAGEOFF
LBB0_3:
Lloh10:
	adrp	x8, _MAC_LNK_STS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAC_LNK_STS@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x8]
	ldr	w8, [x20]
	tst	w10, w0
	b.eq	LBB0_5
; %bb.4:
Lloh13:
	adrp	x10, _MAC_DPX_STS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MAC_DPX_STS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, l_.str.5@PAGE
Lloh17:
	add	x11, x11, l_.str.5@PAGEOFF
Lloh18:
	adrp	x12, l_.str.6@PAGE
Lloh19:
	add	x12, x12, l_.str.6@PAGEOFF
	tst	w10, w0
	csel	x10, x12, x11, eq
	stp	x9, x10, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	mov	x2, x19
	bl	_dev_info
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x8
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_SPD_STS_M,4,2              ; @MAC_SPD_STS_M
	.comm	_MAC_SPD_STS_S,4,2              ; @MAC_SPD_STS_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"10Mbps"

l_.str.1:                               ; @.str.1
	.asciz	"100Mbps"

l_.str.2:                               ; @.str.2
	.asciz	"1Gbps"

l_.str.3:                               ; @.str.3
	.asciz	"2.5Gbps"

	.comm	_MAC_LNK_STS,4,2                ; @MAC_LNK_STS
l_.str.4:                               ; @.str.4
	.asciz	"Port %d Link is Up - %s/%s\n"

	.comm	_MAC_DPX_STS,4,2                ; @MAC_DPX_STS
l_.str.5:                               ; @.str.5
	.asciz	"Full"

l_.str.6:                               ; @.str.6
	.asciz	"Half"

l_.str.7:                               ; @.str.7
	.asciz	"Port %d Link is Down\n"

	.no_dead_strip	_display_port_link_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.display_port_link_status
l_switch.table.display_port_link_status:
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
