	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shutdown
_shutdown:                              ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ASYNC_INITIALIZED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movslq	56(%rdi), %rdi
	callq	_DBGINFO
	leaq	52(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	48(%rbx), %rdi
	callq	_wake_up_interruptible
	leaq	44(%rbx), %rdi
	callq	_del_timer_sync
	leaq	40(%rbx), %rdi
	callq	_del_timer_sync
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	$0, 32(%rbx)
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_tx_stop
	movq	%rbx, %rdi
	callq	_rx_stop
	movq	_IRQ_ALL@GOTPCREL(%rip), %rax
	movq	_IRQ_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_slgt_irq_off
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%rax), %rax
	movq	_HUPCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_SerialSignal_DTR@GOTPCREL(%rip), %rax
	movq	_SerialSignal_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 24(%rbx)
	movq	%rbx, %rdi
	callq	_set_signals
LBB0_4:
	leaq	20(%rbx), %rdi
	callq	_flush_cond_wait
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_bit
LBB0_6:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_INITIALIZED,4,2          ## @ASYNC_INITIALIZED
	.comm	_IRQ_ALL,4,2                    ## @IRQ_ALL
	.comm	_IRQ_MASTER,4,2                 ## @IRQ_MASTER
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_SerialSignal_DTR,4,2           ## @SerialSignal_DTR
	.comm	_SerialSignal_RTS,4,2           ## @SerialSignal_RTS
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.no_dead_strip	_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shutdown
_shutdown:                              ; @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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _ASYNC_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ASYNC_INITIALIZED@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	ldrsw	x0, [x0, #56]
	bl	_DBGINFO
	add	x0, x19, #52
	bl	_wake_up_interruptible
	add	x0, x19, #48
	bl	_wake_up_interruptible
	add	x0, x19, #44
	bl	_del_timer_sync
	add	x0, x19, #40
	bl	_del_timer_sync
	ldr	x0, [x19, #32]
	bl	_kfree
	str	xzr, [x19, #32]
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_tx_stop
	mov	x0, x19
	bl	_rx_stop
Lloh2:
	adrp	x8, _IRQ_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IRQ_MASTER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQ_MASTER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_slgt_irq_off
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _HUPCL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HUPCL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _SerialSignal_DTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SerialSignal_DTR@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SerialSignal_RTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SerialSignal_RTS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x19, #24]
	add	w8, w9, w8
	bic	w8, w10, w8
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_set_signals
LBB0_4:
	add	x0, x19, #20
	bl	_flush_cond_wait
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _TTY_IO_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TTY_IO_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_set_bit
LBB0_6:
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNC_INITIALIZED,4,2          ; @ASYNC_INITIALIZED
	.comm	_IRQ_ALL,4,2                    ; @IRQ_ALL
	.comm	_IRQ_MASTER,4,2                 ; @IRQ_MASTER
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_SerialSignal_DTR,4,2           ; @SerialSignal_DTR
	.comm	_SerialSignal_RTS,4,2           ; @SerialSignal_RTS
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.no_dead_strip	_shutdown
.subsections_via_symbols
