	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_adjust_link
_emac_adjust_link:                      ## @emac_adjust_link
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%r15), %r12
	leaq	12(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.1:
	movl	8(%r12), %eax
	movl	16(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, 16(%rbx)
LBB0_3:
	movq	(%r12), %rdx
	cmpq	(%rbx), %rdx
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	cmpl	%ecx, %eax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	cmpl	$0, 8(%rbx)
	je	LBB0_11
## %bb.9:
	movl	$0, 8(%rbx)
	movq	$0, (%rbx)
	movl	$-1, 16(%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	%rdx, (%rbx)
	cmpl	$0, 8(%rbx)
	jne	LBB0_10
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rax
	movl	$1, (%rax)
LBB0_10:
	movq	%rbx, %rdi
	callq	_emac_update_phystatus
	movq	(%r15), %rdi
	callq	_phy_print_status
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_emac_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_adjust_link
_emac_adjust_link:                      ; @emac_adjust_link
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x19]
	add	x20, x0, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x22, #8]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
	str	w8, [x21, #16]
LBB0_3:
	ldr	x10, [x22]
	ldr	x11, [x21]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.4:
	mov	x10, x21
	ldr	w11, [x10, #8]!
	cbz	w11, LBB0_9
; %bb.5:
	cmp	w8, w9
	b.ne	LBB0_10
	b	LBB0_11
LBB0_6:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_11
; %bb.7:
	str	wzr, [x21, #8]
	str	xzr, [x21]
	mov	w8, #-1
	str	w8, [x21, #16]
	b	LBB0_10
LBB0_8:
	str	x10, [x21]
	mov	x10, x21
	ldr	w8, [x10, #8]!
	cbnz	w8, LBB0_10
LBB0_9:
	mov	w8, #1
	str	w8, [x10]
LBB0_10:
	mov	x0, x21
	bl	_emac_update_phystatus
	ldr	x0, [x19]
	bl	_phy_print_status
LBB0_11:
	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	_emac_adjust_link
.subsections_via_symbols
