	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_status_1g_rgmii
_link_status_1g_rgmii:                  ## @link_status_1g_rgmii
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_spin_lock_irqsave
	movl	4(%r15), %esi
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mii_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movl	(%rax), %eax
	andl	%ebx, %eax
	setne	%al
	je	LBB0_4
## %bb.3:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movl	(%rcx), %r12d
	movl	(%rdx), %r13d
LBB0_4:
	movb	%al, %r14b
	movl	%r12d, 8(%r15)
	movl	%r13d, 12(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_INVALID,4,2              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_link_status_1g_rgmii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_status_1g_rgmii
_link_status_1g_rgmii:                  ; @link_status_1g_rgmii
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SPEED_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _DUPLEX_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	bl	_spin_lock_irqsave
	ldr	w1, [x20, #4]
Lloh6:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mii_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w24, ne
Lloh12:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	csel	w8, w22, w8, eq
	csel	w9, w23, w9, eq
	stp	w8, w9, [x20, #8]
	mov	w21, #0
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	str	w24, [x19]
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_INVALID,4,2              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_link_status_1g_rgmii
.subsections_via_symbols
