	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqr107_read_status
_aqr107_read_status:                    ## @aqr107_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_aqr_read_status
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	cmpl	$0, 12(%rbx)
	je	LBB0_8
## %bb.2:
	movq	(%rbx), %rcx
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.3:
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_PHYXS_VEND_IF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	_MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.6:
	cltq
	leaq	l_switch.table.aqr107_read_status(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_aqr107_read_downshift_event
	testl	%eax, %eax
	jle	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_phydev_warn
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_aqr107_read_rate               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_VEND_IF_STATUS,4,2  ## @MDIO_PHYXS_VEND_IF_STATUS
	.comm	_MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK,4,2 ## @MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK
	.comm	_PHY_INTERFACE_MODE_10GKR,4,2   ## @PHY_INTERFACE_MODE_10GKR
	.comm	_PHY_INTERFACE_MODE_USXGMII,4,2 ## @PHY_INTERFACE_MODE_USXGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_2500BASEX,4,2 ## @PHY_INTERFACE_MODE_2500BASEX
	.comm	_PHY_INTERFACE_MODE_NA,4,2      ## @PHY_INTERFACE_MODE_NA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Downshift occurred! Cabling may be defective.\n"

	.no_dead_strip	_aqr107_read_status
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.aqr107_read_status
l_switch.table.aqr107_read_status:
	.quad	_PHY_INTERFACE_MODE_10GKR
	.quad	_PHY_INTERFACE_MODE_USXGMII
	.quad	_PHY_INTERFACE_MODE_SGMII
	.quad	_PHY_INTERFACE_MODE_2500BASEX
	.quad	_PHY_INTERFACE_MODE_10GKR

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqr107_read_status
_aqr107_read_status:                    ; @aqr107_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
	bl	_aqr_read_status
	mov	x1, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_3:
	mov	w1, #0
LBB0_4:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _MDIO_MMD_PHYXS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MDIO_PHYXS_VEND_IF_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_PHYXS_VEND_IF_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.6:
Lloh9:
	adrp	x8, _MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_FIELD_GET
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.7:
Lloh12:
	adrp	x9, l_switch.table.aqr107_read_status@PAGE
Lloh13:
	add	x9, x9, l_switch.table.aqr107_read_status@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _PHY_INTERFACE_MODE_NA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_NA@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_aqr107_read_downshift_event
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_phydev_warn
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_aqr107_read_rate
LBB0_11:
	mov	x1, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MDIO_PHYXS_VEND_IF_STATUS,4,2  ; @MDIO_PHYXS_VEND_IF_STATUS
	.comm	_MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK,4,2 ; @MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK
	.comm	_PHY_INTERFACE_MODE_10GKR,4,2   ; @PHY_INTERFACE_MODE_10GKR
	.comm	_PHY_INTERFACE_MODE_USXGMII,4,2 ; @PHY_INTERFACE_MODE_USXGMII
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_PHY_INTERFACE_MODE_2500BASEX,4,2 ; @PHY_INTERFACE_MODE_2500BASEX
	.comm	_PHY_INTERFACE_MODE_NA,4,2      ; @PHY_INTERFACE_MODE_NA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Downshift occurred! Cabling may be defective.\n"

	.no_dead_strip	_aqr107_read_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.aqr107_read_status
l_switch.table.aqr107_read_status:
	.quad	_PHY_INTERFACE_MODE_10GKR
	.quad	_PHY_INTERFACE_MODE_USXGMII
	.quad	_PHY_INTERFACE_MODE_SGMII
	.quad	_PHY_INTERFACE_MODE_2500BASEX
	.quad	_PHY_INTERFACE_MODE_10GKR

.subsections_via_symbols
