	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_uart_output_close
_snd_gf1_uart_output_close:             ## @snd_gf1_uart_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movq	_snd_gf1_interrupt_midi_in@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_snd_gf1_uart_reset
LBB0_2:
	movq	_SNDRV_GF1_HANDLER_MIDI_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_set_default_handlers
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_gf1_interrupt_midi_in,8,3  ## @snd_gf1_interrupt_midi_in
	.comm	_SNDRV_GF1_HANDLER_MIDI_OUT,4,2 ## @SNDRV_GF1_HANDLER_MIDI_OUT
	.no_dead_strip	_snd_gf1_uart_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_gf1_uart_output_close
_snd_gf1_uart_output_close:             ; @snd_gf1_uart_output_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _snd_gf1_interrupt_midi_in@GOTPAGE
Lloh1:
	ldr	x9, [x9, _snd_gf1_interrupt_midi_in@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_gf1_uart_reset
LBB0_2:
Lloh3:
	adrp	x8, _SNDRV_GF1_HANDLER_MIDI_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_GF1_HANDLER_MIDI_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_gf1_set_default_handlers
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_gf1_interrupt_midi_in,8,3  ; @snd_gf1_interrupt_midi_in
	.comm	_SNDRV_GF1_HANDLER_MIDI_OUT,4,2 ; @SNDRV_GF1_HANDLER_MIDI_OUT
	.no_dead_strip	_snd_gf1_uart_output_close
.subsections_via_symbols
