	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_link_status_r
_get_link_status_r:                     ## @get_link_status_r
	.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	%rcx, %r14
	movq	%rdx, %r15
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PMA_RXDET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PCS_10GBRT_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PHYXS_LNSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	-44(%rbp), %eax
	movl	-36(%rbp), %ecx
	andl	-40(%rbp), %eax
	shrl	$12, %ecx
	andl	%ecx, %eax
	andl	$1, %eax
	movl	%eax, (%r12)
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_7:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_RXDET,4,2             ## @MDIO_PMA_RXDET
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_PCS_10GBRT_STAT1,4,2      ## @MDIO_PCS_10GBRT_STAT1
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_LNSTAT,4,2          ## @MDIO_PHYXS_LNSTAT
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_get_link_status_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_link_status_r
_get_link_status_r:                     ; @get_link_status_r
	.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, x3
	mov	x20, x2
	cbz	x1, LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_PMA_RXDET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_PMA_RXDET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _MDIO_MMD_PCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_MMD_PCS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MDIO_PCS_10GBRT_STAT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_PCS_10GBRT_STAT1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x22
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.3:
Lloh12:
	adrp	x8, _MDIO_MMD_PHYXS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MDIO_PHYXS_LNSTAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDIO_PHYXS_LNSTAT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x0, x22
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.4:
	ldp	w9, w8, [sp, #8]
	ldr	w10, [sp, #4]
	and	w8, w8, w9
	and	w8, w8, w10, lsr #12
	and	w8, w8, #0x1
	str	w8, [x21]
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_7:
	mov	w0, #0
	cbz	x19, LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_PMA_RXDET,4,2             ; @MDIO_PMA_RXDET
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_PCS_10GBRT_STAT1,4,2      ; @MDIO_PCS_10GBRT_STAT1
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_LNSTAT,4,2          ; @MDIO_PHYXS_LNSTAT
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_get_link_status_r
.subsections_via_symbols
