	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mii_parse_lxt971_sr2
_mii_parse_lxt971_sr2:                  ## @mii_parse_lxt971_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
	movl	(%rax), %edi
	movq	_PHY_STAT_SPMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PHY_STAT_LINK@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_PHY_STAT_ANC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%edi, %ecx
	xorl	%edi, %edi
	testl	$1024, %ebx                     ## imm = 0x400
	je	LBB0_2
## %bb.1:
	orl	(%rsi), %ecx
	movl	$1, %edi
LBB0_2:
	movl	%edi, 4(%rax)
	testb	$-128, %bl
	je	LBB0_4
## %bb.3:
	orl	(%rdx), %ecx
LBB0_4:
	testl	$512, %ebx                      ## imm = 0x200
	movq	_PHY_STAT_10FDX@GOTPCREL(%rip), %rdx
	cmoveq	_PHY_STAT_10HDX@GOTPCREL(%rip), %rdx
	movq	_PHY_STAT_100FDX@GOTPCREL(%rip), %rsi
	cmoveq	_PHY_STAT_100HDX@GOTPCREL(%rip), %rsi
	testl	$16384, %ebx                    ## imm = 0x4000
	cmoveq	%rdx, %rsi
	orl	(%rsi), %ecx
	shll	$28, %ebx
	sarl	$31, %ebx
	movq	_PHY_STAT_FAULT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ebx
	orl	%ecx, %ebx
	movl	%ebx, (%rax)
	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_100FDX,4,2            ## @PHY_STAT_100FDX
	.comm	_PHY_STAT_100HDX,4,2            ## @PHY_STAT_100HDX
	.comm	_PHY_STAT_10FDX,4,2             ## @PHY_STAT_10FDX
	.comm	_PHY_STAT_10HDX,4,2             ## @PHY_STAT_10HDX
	.comm	_PHY_STAT_FAULT,4,2             ## @PHY_STAT_FAULT
	.no_dead_strip	_mii_parse_lxt971_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_lxt971_sr2
_mii_parse_lxt971_sr2:                  ; @mii_parse_lxt971_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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PHY_STAT_SPMASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_STAT_SPMASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _PHY_STAT_LINK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PHY_STAT_LINK@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w11, w11, w9
Lloh5:
	adrp	x9, _PHY_STAT_ANC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHY_STAT_ANC@GOTPAGEOFF]
	ldr	w12, [x9]
	orr	w11, w11, w12
	bic	w8, w8, w11
	tbnz	w19, #10, LBB0_2
; %bb.1:
	mov	w10, #0
	str	w10, [x0, #4]
	tbnz	w19, #7, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w10, [x10]
	orr	w8, w10, w8
	mov	w10, #1
	str	w10, [x0, #4]
	tbz	w19, #7, LBB0_4
LBB0_3:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
Lloh7:
	adrp	x9, _PHY_STAT_10HDX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PHY_STAT_10HDX@GOTPAGEOFF]
Lloh9:
	adrp	x10, _PHY_STAT_10FDX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PHY_STAT_10FDX@GOTPAGEOFF]
	tst	w19, #0x200
	csel	x9, x9, x10, eq
Lloh11:
	adrp	x10, _PHY_STAT_100HDX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PHY_STAT_100HDX@GOTPAGEOFF]
Lloh13:
	adrp	x11, _PHY_STAT_100FDX@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PHY_STAT_100FDX@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	tst	w19, #0x4000
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w9, w19, #28
Lloh15:
	adrp	x10, _PHY_STAT_FAULT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PHY_STAT_FAULT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w9, w10, w9, asr #31
	orr	w8, w8, w9
	str	w8, [x0]
	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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.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_100FDX,4,2            ; @PHY_STAT_100FDX
	.comm	_PHY_STAT_100HDX,4,2            ; @PHY_STAT_100HDX
	.comm	_PHY_STAT_10FDX,4,2             ; @PHY_STAT_10FDX
	.comm	_PHY_STAT_10HDX,4,2             ; @PHY_STAT_10HDX
	.comm	_PHY_STAT_FAULT,4,2             ; @PHY_STAT_FAULT
	.no_dead_strip	_mii_parse_lxt971_sr2
.subsections_via_symbols
