	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_uart16550_output_close
_snd_uart16550_output_close:            ## @snd_uart16550_output_close
	.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	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_SERIAL_MODE_OUTPUT_OPEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	(%rbx), %rax
	movq	%rax, (%rbx)
	movq	16(%rbx), %rcx
	movq	(%r15), %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	_SERIAL_MODE_NOT_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_snd_uart16550_do_close
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERIAL_MODE_OUTPUT_OPEN,8,3    ## @SERIAL_MODE_OUTPUT_OPEN
	.comm	_SERIAL_MODE_NOT_OPENED,8,3     ## @SERIAL_MODE_NOT_OPENED
	.no_dead_strip	_snd_uart16550_output_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_uart16550_output_close
_snd_uart16550_output_close:            ; @snd_uart16550_output_close
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SERIAL_MODE_OUTPUT_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERIAL_MODE_OUTPUT_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	bic	x8, x9, x8
	str	x8, [x20]
	ldr	x9, [x20, #16]
	ldr	x10, [x21]
	str	xzr, [x9, x10, lsl #3]
Lloh3:
	adrp	x9, _SERIAL_MODE_NOT_OPENED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SERIAL_MODE_NOT_OPENED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_snd_uart16550_do_close
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SERIAL_MODE_OUTPUT_OPEN,8,3    ; @SERIAL_MODE_OUTPUT_OPEN
	.comm	_SERIAL_MODE_NOT_OPENED,8,3     ; @SERIAL_MODE_NOT_OPENED
	.no_dead_strip	_snd_uart16550_output_close
.subsections_via_symbols
