	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_interrupt_midi_in
_snd_gf1_interrupt_midi_in:             ## @snd_gf1_interrupt_midi_in
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	16(%rdi), %r14
	movl	$10, %r13d
	leaq	-41(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	decl	%r13d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_snd_gf1_uart_stat
	testb	$1, %al
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_snd_gf1_uart_get
	testb	$-128, (%r12)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$16, %bl
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_snd_gf1_uart_get
	movb	%al, -41(%rbp)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	12(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_receive
	movl	$100, %r13d
	testb	$32, %bl
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	4(%r12)
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	8(%r12)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$100, %r13d
	jmp	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_gf1_interrupt_midi_in
.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_in
_snd_gf1_interrupt_midi_in:             ; @snd_gf1_interrupt_midi_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	add	x20, x0, #16
	mov	w22, #10
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	sub	w22, w22, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_snd_gf1_uart_stat
	tbz	w0, #0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	mov	x0, x19
	bl	_snd_gf1_uart_get
	ldrb	w8, [x19]
	tbz	w8, #7, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w21, #4, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_snd_gf1_uart_get
	strb	w0, [sp, #15]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #12]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_rawmidi_receive
	tbnz	w21, #5, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #100
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w22, #100
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	w22, #100
	b	LBB0_2
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_gf1_interrupt_midi_in
.subsections_via_symbols
