	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_uart16550_output_write
_snd_uart16550_output_write:            ## @snd_uart16550_output_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	leaq	32(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r15)
	jns	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_snd_uart16550_io_loop
LBB0_2:
	movq	8(%r15), %rax
	movq	_SNDRV_SERIAL_MS124W_MB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.12:
	movq	_TX_BUFF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	$-2, %eax
	cmpl	%eax, 16(%r15)
	jg	LBB0_24
## %bb.13:
	leaq	-41(%rbp), %r12
	movl	$248, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movzbl	(%rbx), %eax
	shlb	$4, %al
	orb	$8, %al
	cmpb	$8, %al
	movzbl	%al, %eax
	cmovel	%r14d, %eax
	movzbl	%al, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_uart16550_output_byte
	movzbl	-41(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_uart16550_output_byte
	movl	(%r13), %eax
	addl	$-2, %eax
	cmpl	%eax, 16(%r15)
	jle	LBB0_14
	jmp	LBB0_24
LBB0_3:
	leaq	-41(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit_peek
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.4:
	movq	8(%r15), %rax
	movq	_SNDRV_SERIAL_SOUNDCANVAS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:
	movq	_SNDRV_SERIAL_GENERIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_17:
	leaq	-41(%rbp), %r12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_snd_rawmidi_transmit_ack
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit_peek
	cmpl	$1, %eax
	jne	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-41(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_uart16550_output_byte
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, 36(%r15)
	je	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movzbl	-41(%rbp), %eax
	cmpb	$-17, %al
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	24(%r15), %rcx
	movslq	20(%r15), %rdx
	movb	%al, (%rcx,%rdx)
	jmp	LBB0_22
LBB0_6:
	movl	20(%r15), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	addq	_snd_uart16550_output_write.lasttime(%rip), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_17
LBB0_8:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_snd_uart16550_buffer_can_write
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movl	(%rbx), %eax
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$245, %edx
	callq	_snd_uart16550_output_byte
	movb	20(%r15), %al
	incb	%al
	movzbl	%al, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_uart16550_output_byte
	cmpb	$0, -41(%rbp)
	js	LBB0_17
## %bb.10:
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_17
## %bb.11:
	movq	24(%r15), %rax
	movslq	20(%r15), %rcx
	movzbl	(%rax,%rcx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_uart16550_output_byte
	jmp	LBB0_17
LBB0_16:
	cmpl	$0, 36(%r15)
	jne	LBB0_17
LBB0_23:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, _snd_uart16550_output_write.lasttime(%rip)
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_snd_uart16550_output_write.lasttime,8,3 ## @snd_uart16550_output_write.lasttime
	.comm	_SNDRV_SERIAL_MS124W_MB,8,3     ## @SNDRV_SERIAL_MS124W_MB
	.comm	_TX_BUFF_SIZE,4,2               ## @TX_BUFF_SIZE
	.comm	_SNDRV_SERIAL_SOUNDCANVAS,8,3   ## @SNDRV_SERIAL_SOUNDCANVAS
	.comm	_SNDRV_SERIAL_GENERIC,8,3       ## @SNDRV_SERIAL_GENERIC
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_snd_uart16550_output_write
.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_write
_snd_uart16550_output_write:            ; @snd_uart16550_output_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	add	x19, x21, #32
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x21]
	tbz	x8, #63, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_snd_uart16550_io_loop
LBB0_2:
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _SNDRV_SERIAL_MS124W_MB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_SERIAL_MS124W_MB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x21, #16]
Lloh3:
	adrp	x22, _TX_BUFF_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TX_BUFF_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #2
	cmp	w8, w9
	b.gt	LBB0_17
; %bb.4:
	mov	w23, #-8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x20]
	mov	w9, #8
	bfi	w9, w8, #4, #28
	and	w8, w9, #0xf8
	cmp	w8, #8
	csel	w8, w23, w9, eq
	and	w2, w8, #0xf8
	mov	x0, x21
	mov	x1, x20
	bl	_snd_uart16550_output_byte
	ldrb	w2, [sp, #15]
	mov	x0, x21
	mov	x1, x20
	bl	_snd_uart16550_output_byte
	ldr	w8, [x21, #16]
	ldr	w9, [x22]
	sub	w9, w9, #2
	cmp	w8, w9
	b.le	LBB0_5
	b	LBB0_17
LBB0_7:
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_snd_rawmidi_transmit_peek
Lloh5:
	adrp	x22, _jiffies@GOTPAGE
Lloh6:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	adrp	x23, _snd_uart16550_output_write.lasttime@PAGE
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.8:
	ldr	x8, [x21, #8]
Lloh7:
	adrp	x24, _SNDRV_SERIAL_SOUNDCANVAS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SNDRV_SERIAL_SOUNDCANVAS@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh9:
	adrp	x10, _SNDRV_SERIAL_GENERIC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SNDRV_SERIAL_GENERIC@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_19
; %bb.9:
	ldr	w8, [x21, #20]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x22]
	ldr	x8, [x23, _snd_uart16550_output_write.lasttime@PAGEOFF]
Lloh12:
	adrp	x9, _HZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	add	x1, x8, x9
	bl	_time_after
	cbz	x0, LBB0_19
LBB0_11:
	mov	x0, x21
	mov	w1, #3
	bl	_snd_uart16550_buffer_can_write
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w8, [x20]
	str	w8, [x21, #20]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #245
	bl	_snd_uart16550_output_byte
	ldrb	w8, [x21, #20]
	add	w8, w8, #1
	and	w2, w8, #0xff
	mov	x0, x21
	mov	x1, x20
	bl	_snd_uart16550_output_byte
	ldrsb	w8, [sp, #15]
	tbnz	w8, #31, LBB0_19
; %bb.13:
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.14:
	ldr	x8, [x21, #24]
	ldrsw	x9, [x21, #20]
	ldrb	w2, [x8, x9]
	mov	x0, x21
	mov	x1, x20
	bl	_snd_uart16550_output_byte
	b	LBB0_19
LBB0_15:
	ldr	w8, [x21, #36]
	cbnz	w8, LBB0_19
LBB0_16:
	ldr	x8, [x22]
	str	x8, [x23, _snd_uart16550_output_write.lasttime@PAGEOFF]
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_snd_rawmidi_transmit_ack
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_snd_rawmidi_transmit_peek
	cmp	w0, #1
	b.ne	LBB0_16
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w2, [sp, #15]
	mov	x0, x21
	mov	x1, x20
	bl	_snd_uart16550_output_byte
	cbnz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x21, #36]
	cbz	w8, LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	ldrsb	w8, [sp, #15]
	cmn	w8, #17
	b.gt	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x9, [x21, #24]
	ldrsw	x10, [x21, #20]
	strb	w8, [x9, x10]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_snd_uart16550_output_write.lasttime,8,3 ; @snd_uart16550_output_write.lasttime
	.comm	_SNDRV_SERIAL_MS124W_MB,8,3     ; @SNDRV_SERIAL_MS124W_MB
	.comm	_TX_BUFF_SIZE,4,2               ; @TX_BUFF_SIZE
	.comm	_SNDRV_SERIAL_SOUNDCANVAS,8,3   ; @SNDRV_SERIAL_SOUNDCANVAS
	.comm	_SNDRV_SERIAL_GENERIC,8,3       ; @SNDRV_SERIAL_GENERIC
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_snd_uart16550_output_write
.subsections_via_symbols
