	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqr107_read_rate
_aqr107_read_rate:                      ## @aqr107_read_rate
	.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, %r14
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_TX_VEND_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_read_mmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_MDIO_AN_TX_VEND_STATUS1_RATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.aqr107_read_rate(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_5
## %bb.6:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_TX_VEND_STATUS1,4,2    ## @MDIO_AN_TX_VEND_STATUS1
	.comm	_MDIO_AN_TX_VEND_STATUS1_RATE_MASK,4,2 ## @MDIO_AN_TX_VEND_STATUS1_RATE_MASK
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.comm	_SPEED_5000,4,2                 ## @SPEED_5000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX,4,2 ## @MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_aqr107_read_rate
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.aqr107_read_rate
l_switch.table.aqr107_read_rate:
	.quad	_SPEED_5000
	.quad	_SPEED_2500
	.quad	_SPEED_10000
	.quad	_SPEED_10
	.quad	_SPEED_100
	.quad	_SPEED_1000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqr107_read_rate
_aqr107_read_rate:                      ; @aqr107_read_rate
	.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	x8, _MDIO_MMD_AN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_AN_TX_VEND_STATUS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_AN_TX_VEND_STATUS1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_phy_read_mmd
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _MDIO_AN_TX_VEND_STATUS1_RATE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_AN_TX_VEND_STATUS1_RATE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.2:
Lloh9:
	adrp	x9, l_switch.table.aqr107_read_rate@PAGE
Lloh10:
	add	x9, x9, l_switch.table.aqr107_read_rate@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh13:
	adrp	x8, _MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX@GOTPAGEOFF]
Lloh15:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh17:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_TX_VEND_STATUS1,4,2    ; @MDIO_AN_TX_VEND_STATUS1
	.comm	_MDIO_AN_TX_VEND_STATUS1_RATE_MASK,4,2 ; @MDIO_AN_TX_VEND_STATUS1_RATE_MASK
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.comm	_SPEED_5000,4,2                 ; @SPEED_5000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX,4,2 ; @MDIO_AN_TX_VEND_STATUS1_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_aqr107_read_rate
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.aqr107_read_rate
l_switch.table.aqr107_read_rate:
	.quad	_SPEED_5000
	.quad	_SPEED_2500
	.quad	_SPEED_10000
	.quad	_SPEED_10
	.quad	_SPEED_100
	.quad	_SPEED_1000

.subsections_via_symbols
