	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqr107_link_change_notify
_aqr107_link_change_notify:             ## @aqr107_link_change_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_PHY_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.2:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MDIO_AN_RX_LP_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	%eax, %r14d
	movq	_MDIO_AN_RX_LP_STAT1_AQ_PHY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_MDIO_AN_RX_LP_STAT1_SHORT_REACH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %esi
	movq	_MDIO_AN_RX_LP_STAT4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	%eax, %r12d
	movq	_MDIO_AN_RX_LP_STAT4_FW_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MDIO_AN_RX_LP_STAT4_FW_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_FIELD_GET
	movq	%rax, %r12
	movl	(%r15), %esi
	movq	_MDIO_AN_RX_VEND_STAT3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	_MDIO_AN_RX_VEND_STAT3_AFR@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	testl	%r14d, %r13d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rcx, %r8
	testl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rcx, %r9
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rcx, %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_phydev_dbg
	movq	_MDIO_MMD_VEND1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VEND1_GLOBAL_RSVD_STAT9@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	_VEND1_GLOBAL_RSVD_STAT9_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	movq	_VEND1_GLOBAL_RSVD_STAT9_1000BT2@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phydev_info                    ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_RUNNING,8,3                ## @PHY_RUNNING
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_RX_LP_STAT1,4,2        ## @MDIO_AN_RX_LP_STAT1
	.comm	_MDIO_AN_RX_LP_STAT1_AQ_PHY,4,2 ## @MDIO_AN_RX_LP_STAT1_AQ_PHY
	.comm	_MDIO_AN_RX_LP_STAT1_SHORT_REACH,4,2 ## @MDIO_AN_RX_LP_STAT1_SHORT_REACH
	.comm	_MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT,4,2 ## @MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT
	.comm	_MDIO_AN_RX_LP_STAT4,4,2        ## @MDIO_AN_RX_LP_STAT4
	.comm	_MDIO_AN_RX_LP_STAT4_FW_MAJOR,4,2 ## @MDIO_AN_RX_LP_STAT4_FW_MAJOR
	.comm	_MDIO_AN_RX_LP_STAT4_FW_MINOR,4,2 ## @MDIO_AN_RX_LP_STAT4_FW_MINOR
	.comm	_MDIO_AN_RX_VEND_STAT3,4,2      ## @MDIO_AN_RX_VEND_STAT3
	.comm	_MDIO_AN_RX_VEND_STAT3_AFR,4,2  ## @MDIO_AN_RX_VEND_STAT3_AFR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link partner is Aquantia PHY, FW %u.%u%s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	", short reach mode"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	", fast-retrain downshift advertised"

L_.str.4:                               ## @.str.4
	.asciz	", fast reframe advertised"

	.comm	_MDIO_MMD_VEND1,4,2             ## @MDIO_MMD_VEND1
	.comm	_VEND1_GLOBAL_RSVD_STAT9,4,2    ## @VEND1_GLOBAL_RSVD_STAT9
	.comm	_VEND1_GLOBAL_RSVD_STAT9_MODE,4,2 ## @VEND1_GLOBAL_RSVD_STAT9_MODE
	.comm	_VEND1_GLOBAL_RSVD_STAT9_1000BT2,4,2 ## @VEND1_GLOBAL_RSVD_STAT9_1000BT2
L_.str.5:                               ## @.str.5
	.asciz	"Aquantia 1000Base-T2 mode active\n"

	.no_dead_strip	_aqr107_link_change_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqr107_link_change_notify
_aqr107_link_change_notify:             ; @aqr107_link_change_notify
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.2:
Lloh6:
	adrp	x23, _MDIO_MMD_AN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x8, _MDIO_AN_RX_LP_STAT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT1@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh11:
	adrp	x8, _MDIO_AN_RX_LP_STAT1_AQ_PHY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT1_AQ_PHY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.4:
Lloh14:
	adrp	x8, _MDIO_AN_RX_LP_STAT1_SHORT_REACH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT1_SHORT_REACH@GOTPAGEOFF]
Lloh16:
	adrp	x9, _MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w25, [x8]
Lloh19:
	ldr	w24, [x9]
	ldr	w1, [x23]
Lloh20:
	adrp	x8, _MDIO_AN_RX_LP_STAT4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT4@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	x22, x0
Lloh23:
	adrp	x8, _MDIO_AN_RX_LP_STAT4_FW_MAJOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT4_FW_MAJOR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	mov	x21, x0
Lloh26:
	adrp	x8, _MDIO_AN_RX_LP_STAT4_FW_MINOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MDIO_AN_RX_LP_STAT4_FW_MINOR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	mov	x22, x0
	ldr	w1, [x23]
Lloh29:
	adrp	x8, _MDIO_AN_RX_VEND_STAT3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MDIO_AN_RX_VEND_STAT3@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_9
; %bb.6:
	and	w8, w25, w20
	and	w9, w24, w20
Lloh32:
	adrp	x10, _MDIO_AN_RX_VEND_STAT3_AFR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _MDIO_AN_RX_VEND_STAT3_AFR@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	adrp	x11, l_.str.1@PAGE
Lloh36:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh37:
	adrp	x12, l_.str.2@PAGE
Lloh38:
	add	x12, x12, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x4, x12, x11, eq
Lloh39:
	adrp	x8, l_.str.3@PAGE
Lloh40:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	w9, #0
	csel	x5, x12, x8, eq
Lloh41:
	adrp	x8, l_.str.4@PAGE
Lloh42:
	add	x8, x8, l_.str.4@PAGEOFF
	tst	w10, w0
	csel	x6, x12, x8, eq
Lloh43:
	adrp	x1, l_.str@PAGE
Lloh44:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_phydev_dbg
Lloh45:
	adrp	x8, _MDIO_MMD_VEND1@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MDIO_MMD_VEND1@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _VEND1_GLOBAL_RSVD_STAT9@GOTPAGE
Lloh49:
	ldr	x8, [x8, _VEND1_GLOBAL_RSVD_STAT9@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	x1, x0
Lloh51:
	adrp	x8, _VEND1_GLOBAL_RSVD_STAT9_MODE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _VEND1_GLOBAL_RSVD_STAT9_MODE@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_FIELD_GET
Lloh54:
	adrp	x8, _VEND1_GLOBAL_RSVD_STAT9_1000BT2@GOTPAGE
Lloh55:
	ldr	x8, [x8, _VEND1_GLOBAL_RSVD_STAT9_1000BT2@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_9
; %bb.8:
Lloh57:
	adrp	x1, l_.str.5@PAGE
Lloh58:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_phydev_info
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_RUNNING,8,3                ; @PHY_RUNNING
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_RX_LP_STAT1,4,2        ; @MDIO_AN_RX_LP_STAT1
	.comm	_MDIO_AN_RX_LP_STAT1_AQ_PHY,4,2 ; @MDIO_AN_RX_LP_STAT1_AQ_PHY
	.comm	_MDIO_AN_RX_LP_STAT1_SHORT_REACH,4,2 ; @MDIO_AN_RX_LP_STAT1_SHORT_REACH
	.comm	_MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT,4,2 ; @MDIO_AN_RX_LP_STAT1_AQRATE_DOWNSHIFT
	.comm	_MDIO_AN_RX_LP_STAT4,4,2        ; @MDIO_AN_RX_LP_STAT4
	.comm	_MDIO_AN_RX_LP_STAT4_FW_MAJOR,4,2 ; @MDIO_AN_RX_LP_STAT4_FW_MAJOR
	.comm	_MDIO_AN_RX_LP_STAT4_FW_MINOR,4,2 ; @MDIO_AN_RX_LP_STAT4_FW_MINOR
	.comm	_MDIO_AN_RX_VEND_STAT3,4,2      ; @MDIO_AN_RX_VEND_STAT3
	.comm	_MDIO_AN_RX_VEND_STAT3_AFR,4,2  ; @MDIO_AN_RX_VEND_STAT3_AFR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link partner is Aquantia PHY, FW %u.%u%s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	", short reach mode"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	", fast-retrain downshift advertised"

l_.str.4:                               ; @.str.4
	.asciz	", fast reframe advertised"

	.comm	_MDIO_MMD_VEND1,4,2             ; @MDIO_MMD_VEND1
	.comm	_VEND1_GLOBAL_RSVD_STAT9,4,2    ; @VEND1_GLOBAL_RSVD_STAT9
	.comm	_VEND1_GLOBAL_RSVD_STAT9_MODE,4,2 ; @VEND1_GLOBAL_RSVD_STAT9_MODE
	.comm	_VEND1_GLOBAL_RSVD_STAT9_1000BT2,4,2 ; @VEND1_GLOBAL_RSVD_STAT9_1000BT2
l_.str.5:                               ; @.str.5
	.asciz	"Aquantia 1000Base-T2 mode active\n"

	.no_dead_strip	_aqr107_link_change_notify
.subsections_via_symbols
