	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_adjust_link
_fec_enet_adjust_link:                  ## @fec_enet_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	16(%r14), %rcx
	movq	16(%r15), %rax
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rcx, 16(%r15)
LBB0_6:
	movq	(%r14), %rcx
	cmpq	%rcx, (%r15)
	jne	LBB0_10
## %bb.7:
	movq	8(%r14), %rcx
	cmpq	8(%r15), %rcx
	jne	LBB0_11
## %bb.8:
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_2:
	movq	$0, 16(%r15)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	%r15, %r12
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_tx_lock_bh
	movq	%rbx, %rdi
	callq	_fec_stop
	movq	%rbx, %rdi
	callq	_netif_tx_unlock_bh
	movq	%r12, %rdi
	callq	_napi_enable
	movq	16(%r14), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_15
LBB0_10:
	movq	%rcx, (%r15)
	movq	8(%r14), %rcx
	cmpq	8(%r15), %rcx
	je	LBB0_12
LBB0_11:
	leaq	8(%r15), %rax
	movq	%rcx, (%rax)
LBB0_12:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_netif_tx_lock_bh
	movq	%rbx, %rdi
	callq	_fec_restart
	movq	%rbx, %rdi
	callq	_netif_tx_wake_all_queues
	movq	%rbx, %rdi
	callq	_netif_tx_unlock_bh
	movq	%r15, %rdi
	callq	_napi_enable
LBB0_15:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fec_enet_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_adjust_link
_fec_enet_adjust_link:                  ; @fec_enet_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	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x22, x0
	ldr	x19, [x20]
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_netif_device_present
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x9, [x22, #16]
	cbz	x8, LBB0_10
; %bb.3:
	cbnz	x9, LBB0_5
; %bb.4:
	str	x8, [x22, #16]
LBB0_5:
	ldr	x10, [x22]
	ldr	x8, [x19]
	cmp	x10, x8
	b.ne	LBB0_12
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x10, [x22, #8]!
	cmp	x8, x10
	b.ne	LBB0_13
; %bb.7:
	cbnz	x9, LBB0_9
	b	LBB0_14
LBB0_8:
	str	xzr, [x22, #16]
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:
	cbz	x9, LBB0_9
; %bb.11:
	add	x21, x21, #24
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x20
	bl	_netif_tx_lock_bh
	mov	x0, x20
	bl	_fec_stop
	mov	x0, x20
	bl	_netif_tx_unlock_bh
	mov	x0, x21
	bl	_napi_enable
	ldr	x8, [x19, #16]
	str	x8, [x22, #16]
	b	LBB0_15
LBB0_12:
	str	x8, [x22]
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #8]!
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_13:
	str	x8, [x22]
LBB0_14:
	add	x21, x21, #24
	mov	x0, x21
	bl	_napi_disable
	mov	x0, x20
	bl	_netif_tx_lock_bh
	mov	x0, x20
	bl	_fec_restart
	mov	x0, x20
	bl	_netif_tx_wake_all_queues
	mov	x0, x20
	bl	_netif_tx_unlock_bh
	mov	x0, x21
	bl	_napi_enable
LBB0_15:
	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	_fec_enet_adjust_link
.subsections_via_symbols
