	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz8873mll_read_status
_ksz8873mll_read_status:                ## @ksz8873mll_read_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
	movq	%rdi, %rbx
	movq	_KSZ8873MLL_GLOBAL_CONTROL_4@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_phy_read
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movq	_KSZ8873MLL_GLOBAL_CONTROL_4_SPEED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4,4,2 ## @KSZ8873MLL_GLOBAL_CONTROL_4
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX,4,2 ## @KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4_SPEED,4,2 ## @KSZ8873MLL_GLOBAL_CONTROL_4_SPEED
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.no_dead_strip	_ksz8873mll_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz8873mll_read_status
_ksz8873mll_read_status:                ; @ksz8873mll_read_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _KSZ8873MLL_GLOBAL_CONTROL_4@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KSZ8873MLL_GLOBAL_CONTROL_4@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_phy_read
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
Lloh2:
	adrp	x8, _KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh7:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh9:
	adrp	x8, _KSZ8873MLL_GLOBAL_CONTROL_4_SPEED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KSZ8873MLL_GLOBAL_CONTROL_4_SPEED@GOTPAGEOFF]
Lloh11:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4,4,2 ; @KSZ8873MLL_GLOBAL_CONTROL_4
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX,4,2 ; @KSZ8873MLL_GLOBAL_CONTROL_4_DUPLEX
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_KSZ8873MLL_GLOBAL_CONTROL_4_SPEED,4,2 ; @KSZ8873MLL_GLOBAL_CONTROL_4_SPEED
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.no_dead_strip	_ksz8873mll_read_status
.subsections_via_symbols
