	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_handle_link_change
_emac_handle_link_change:               ## @emac_handle_link_change
	.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), %r14
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	8(%r14), %rcx
	je	LBB0_3
## %bb.2:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_emac_update_speed
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %eax
LBB0_3:
	movl	8(%rbx), %ecx
	cmpl	16(%r14), %ecx
	je	LBB0_5
## %bb.4:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	callq	_emac_update_duplex
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %eax
LBB0_5:
	movq	(%r14), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_6
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_7:
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rax
	addq	$16, %rax
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rax
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_9:
	movq	$0, (%rbx)
	movl	$-1, 8(%rbx)
	xorl	%ecx, %ecx
LBB0_10:
	movq	%rcx, (%rax)
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_emac_handle_link_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_handle_link_change
_emac_handle_link_change:               ; @emac_handle_link_change
	.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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x21]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w10, #0
	b	LBB0_5
LBB0_3:
	mov	x8, x20
	ldr	x9, [x8, #16]!
	cbnz	x9, LBB0_11
	b	LBB0_9
LBB0_4:
	add	x22, x20, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	str	x8, [x20]
	mov	x0, x21
	bl	_emac_update_speed
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w10, #1
LBB0_5:
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:
	add	x22, x20, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_emac_update_duplex
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w10, #1
LBB0_7:
	ldr	x9, [x19]
	mov	x8, x20
	ldr	x11, [x8, #16]!
	cmp	x9, x11
	b.ne	LBB0_10
; %bb.8:
	cbnz	w10, LBB0_13
LBB0_9:
	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
	ret
LBB0_10:
	cbnz	x9, LBB0_12
LBB0_11:
	mov	x9, #0
	str	xzr, [x20]
	mov	w10, #-1
	str	w10, [x20, #8]
LBB0_12:
	str	x9, [x8]
LBB0_13:
	mov	x0, x19
	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	_phy_print_status
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_emac_handle_link_change
.subsections_via_symbols
