	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mii_parse_dp8384x_sr2
_mii_parse_dp8384x_sr2:                 ## @mii_parse_dp8384x_sr2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	_PHY_STAT_SPMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PHY_STAT_LINK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_PHY_STAT_ANC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%esi, (%rax)
	xorl	%esi, %esi
	testb	$1, %bl
	je	LBB0_2
## %bb.1:
	movl	(%rdx), %edx
	orl	%edx, (%rax)
	movl	$1, %esi
LBB0_2:
	movl	%esi, 4(%rax)
	testb	$16, %bl
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_4:
	testb	$4, %bl
	movq	_PHY_STAT_10FDX@GOTPCREL(%rip), %rcx
	cmoveq	_PHY_STAT_10HDX@GOTPCREL(%rip), %rcx
	movq	_PHY_STAT_100FDX@GOTPCREL(%rip), %rdx
	cmoveq	_PHY_STAT_100HDX@GOTPCREL(%rip), %rdx
	testb	$2, %bl
	cmovneq	%rcx, %rdx
	movl	(%rdx), %ecx
	orl	%ecx, (%rax)
	testb	$8, %bl
	je	LBB0_6
## %bb.5:
	movq	_PHY_STAT_FAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_STAT_SPMASK,4,2            ## @PHY_STAT_SPMASK
	.comm	_PHY_STAT_LINK,4,2              ## @PHY_STAT_LINK
	.comm	_PHY_STAT_ANC,4,2               ## @PHY_STAT_ANC
	.comm	_PHY_STAT_10FDX,4,2             ## @PHY_STAT_10FDX
	.comm	_PHY_STAT_10HDX,4,2             ## @PHY_STAT_10HDX
	.comm	_PHY_STAT_100FDX,4,2            ## @PHY_STAT_100FDX
	.comm	_PHY_STAT_100HDX,4,2            ## @PHY_STAT_100HDX
	.comm	_PHY_STAT_FAULT,4,2             ## @PHY_STAT_FAULT
	.no_dead_strip	_mii_parse_dp8384x_sr2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mii_parse_dp8384x_sr2
_mii_parse_dp8384x_sr2:                 ; @mii_parse_dp8384x_sr2
	.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
	mov	x0, x1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _PHY_STAT_SPMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_STAT_SPMASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _PHY_STAT_LINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_STAT_LINK@GOTPAGEOFF]
	ldr	w11, [x9]
Lloh5:
	adrp	x8, _PHY_STAT_ANC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_STAT_ANC@GOTPAGEOFF]
	orr	w10, w11, w10
	ldr	w11, [x8]
	orr	w10, w10, w11
	ldr	w11, [x0]
	bic	w10, w11, w10
	str	w10, [x0]
	tbnz	w19, #0, LBB0_2
; %bb.1:
	mov	w9, #0
	str	w9, [x0, #4]
	tbnz	w19, #4, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	mov	w9, #1
	str	w9, [x0, #4]
	tbz	w19, #4, LBB0_4
LBB0_3:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_4:
Lloh7:
	adrp	x8, _PHY_STAT_10FDX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_STAT_10FDX@GOTPAGEOFF]
Lloh9:
	adrp	x9, _PHY_STAT_10HDX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_STAT_10HDX@GOTPAGEOFF]
	tst	w19, #0x4
	csel	x8, x9, x8, eq
Lloh11:
	adrp	x9, _PHY_STAT_100FDX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PHY_STAT_100FDX@GOTPAGEOFF]
Lloh13:
	adrp	x10, _PHY_STAT_100HDX@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PHY_STAT_100HDX@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	tst	w19, #0x2
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	tbz	w19, #3, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _PHY_STAT_FAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_STAT_FAULT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_STAT_SPMASK,4,2            ; @PHY_STAT_SPMASK
	.comm	_PHY_STAT_LINK,4,2              ; @PHY_STAT_LINK
	.comm	_PHY_STAT_ANC,4,2               ; @PHY_STAT_ANC
	.comm	_PHY_STAT_10FDX,4,2             ; @PHY_STAT_10FDX
	.comm	_PHY_STAT_10HDX,4,2             ; @PHY_STAT_10HDX
	.comm	_PHY_STAT_100FDX,4,2            ; @PHY_STAT_100FDX
	.comm	_PHY_STAT_100HDX,4,2            ; @PHY_STAT_100HDX
	.comm	_PHY_STAT_FAULT,4,2             ; @PHY_STAT_FAULT
	.no_dead_strip	_mii_parse_dp8384x_sr2
.subsections_via_symbols
