	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_phy_link_adjust
_ag71xx_phy_link_adjust:                ## @ag71xx_phy_link_adjust
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r15
	movq	%rax, %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	8(%r15), %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	movb	$1, %dl
	cmpq	16(%r15), %rdi
	je	LBB0_5
LBB0_4:
	xorl	%edx, %edx
	movq	%rsi, %rcx
	jmp	LBB0_5
LBB0_1:
	movq	8(%r15), %rcx
	movb	$1, %dl
LBB0_5:
	movq	16(%rbx), %rsi
	movq	%rax, 16(%rbx)
	movq	%rcx, (%rbx)
	movq	16(%r15), %rcx
	movq	%rcx, 8(%rbx)
	testb	%dl, %dl
	je	LBB0_7
## %bb.6:
	cmpq	%rsi, %rax
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_ag71xx_link_adjust
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ag71xx_phy_link_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_phy_link_adjust
_ag71xx_phy_link_adjust:                ; @ag71xx_phy_link_adjust
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #32]
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x11, [x19]
	ldr	x9, [x21, #8]
	cmp	x11, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x10, [x19, #8]
	ldr	x12, [x21, #16]
	cmp	x10, x12
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #1
	mov	x9, x11
	b	LBB0_6
LBB0_4:
	mov	w10, #0
	b	LBB0_6
LBB0_5:
	ldr	x9, [x21, #8]
	mov	w10, #1
LBB0_6:
	ldr	x11, [x19, #16]
	str	x8, [x19, #16]
	ldr	x12, [x21, #16]
	stp	x9, x12, [x19]
	cbz	w10, LBB0_8
; %bb.7:
	cmp	x8, x11
	b.eq	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_ag71xx_link_adjust
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ag71xx_phy_link_adjust
.subsections_via_symbols
