	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tse_shutdown
_tse_shutdown:                          ## @tse_shutdown
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rbx
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_phy_stop
LBB0_2:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	leaq	28(%r15), %rdi
	callq	_napi_disable
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*24(%rax)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	20(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_reset_mac
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_netdev_dbg
LBB0_4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movq	%r14, %rdi
	callq	_free_skbufs
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot reset MAC core (error: %d)\n"

	.no_dead_strip	_tse_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tse_shutdown
_tse_shutdown:                          ; @tse_shutdown
	.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	x19, x0
	ldr	x0, [x20]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_phy_stop
LBB0_2:
	mov	x0, x20
	bl	_netif_stop_queue
	add	x0, x19, #28
	bl	_napi_disable
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_free_irq
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	add	x22, x19, #12
	mov	x0, x22
	bl	_spin_lock
	mov	x0, x19
	bl	_reset_mac
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_dbg
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_free_skbufs
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x21
	bl	_spin_unlock
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot reset MAC core (error: %d)\n"

	.no_dead_strip	_tse_shutdown
.subsections_via_symbols
