	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_interrupt_midi_out
_snd_gf1_interrupt_midi_out:            ## @snd_gf1_interrupt_midi_out
	.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, %rbx
	callq	_snd_gf1_uart_stat
	testb	$1, %al
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_snd_gf1_interrupt_midi_in
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_snd_gf1_uart_stat
	testb	$2, %al
	je	LBB0_6
## %bb.3:
	movl	8(%rbx), %edi
	leaq	-9(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.5:
	movsbl	-9(%rbp), %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_uart_put
	jmp	LBB0_6
LBB0_4:
	movl	4(%rbx), %esi
	andl	$-33, %esi
	movq	%rbx, %rdi
	callq	_snd_gf1_uart_cmd
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_gf1_interrupt_midi_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_gf1_interrupt_midi_out
_snd_gf1_interrupt_midi_out:            ; @snd_gf1_interrupt_midi_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_snd_gf1_uart_stat
	tbz	w0, #0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_snd_gf1_interrupt_midi_in
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_snd_gf1_uart_stat
	tbz	w0, #1, LBB0_6
; %bb.3:
	ldr	w0, [x19, #8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldrsb	w1, [sp, #15]
	mov	x0, x19
	bl	_snd_gf1_uart_put
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #4]
	and	w1, w8, #0xffffffdf
	mov	x0, x19
	bl	_snd_gf1_uart_cmd
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_gf1_interrupt_midi_out
.subsections_via_symbols
