	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_gf1_uart_output_trigger
_snd_gf1_uart_output_trigger:           ## @snd_gf1_uart_output_trigger
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r12), %esi
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.1:
	testb	$32, %sil
	jne	LBB0_13
## %bb.2:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	$-10001, %ebx                   ## imm = 0xD8EF
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_snd_gf1_uart_stat
	testb	$1, %al
	jne	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	testb	$32, 4(%r12)
	jne	LBB0_14
## %bb.6:
	movq	%r12, %rdi
	callq	_snd_gf1_uart_stat
	testb	$2, %al
	je	LBB0_9
## %bb.7:
	leaq	-33(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.8:
	movsbl	-33(%rbp), %esi
	movq	%r12, %rdi
	callq	_snd_gf1_uart_put
LBB0_9:
	movl	4(%r12), %esi
	orl	$32, %esi
	jmp	LBB0_12
LBB0_10:
	testb	$32, %sil
	je	LBB0_13
## %bb.11:
	andl	$-33, %esi
LBB0_12:
	movq	%r12, %rdi
	callq	_snd_gf1_uart_cmd
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r12, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_gf1_uart_output_trigger
.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_trigger
_snd_gf1_uart_output_trigger:           ; @snd_gf1_uart_output_trigger
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
	cbz	w21, LBB0_10
; %bb.1:
	tbnz	w8, #5, LBB0_13
; %bb.2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w21, #-10001
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_snd_gf1_uart_stat
	tbnz	w0, #0, LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldrb	w8, [x19, #4]
	tbnz	w8, #5, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_snd_gf1_uart_stat
	tbz	w0, #1, LBB0_9
; %bb.7:
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.8:
	ldrsb	w1, [sp, #15]
	mov	x0, x19
	bl	_snd_gf1_uart_put
LBB0_9:
	ldr	w8, [x19, #4]
	orr	w1, w8, #0x20
	b	LBB0_12
LBB0_10:
	tbz	w8, #5, LBB0_13
; %bb.11:
	and	w1, w8, #0xffffffdf
LBB0_12:
	mov	x0, x19
	bl	_snd_gf1_uart_cmd
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
LBB0_14:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_gf1_uart_output_trigger
.subsections_via_symbols
