	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_uart16550_write_buffer
_snd_uart16550_write_buffer:            ## @snd_uart16550_write_buffer
	.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	8(%rdi), %rax
	movq	_TX_BUFF_SIZE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movzwl	(%rdi), %eax
	movq	16(%rdi), %rcx
	movb	%sil, (%rcx,%rax)
	incl	%eax
	movq	_TX_BUFF_MASK@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	movw	%ax, (%rdi)
	incq	8(%rdi)
	movl	$1, %ebx
	cmpq	$0, 24(%rdi)
	jns	LBB0_3
## %bb.2:
	callq	_snd_uart16550_add_timer
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BUFF_SIZE,8,3               ## @TX_BUFF_SIZE
	.comm	_TX_BUFF_MASK,2,1               ## @TX_BUFF_MASK
	.no_dead_strip	_snd_uart16550_write_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_uart16550_write_buffer
_snd_uart16550_write_buffer:            ; @snd_uart16550_write_buffer
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _TX_BUFF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_BUFF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	ldrh	w8, [x0]
	ldr	x9, [x0, #16]
	strb	w1, [x9, x8]
	add	w8, w8, #1
Lloh3:
	adrp	x9, _TX_BUFF_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_BUFF_MASK@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w9, w8
	strh	w8, [x0]
	ldr	x8, [x0, #8]
	add	x8, x8, #1
	str	x8, [x0, #8]
	ldr	x8, [x0, #24]
	tbz	x8, #63, LBB0_3
; %bb.2:
	bl	_snd_uart16550_add_timer
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BUFF_SIZE,8,3               ; @TX_BUFF_SIZE
	.comm	_TX_BUFF_MASK,2,1               ; @TX_BUFF_MASK
	.no_dead_strip	_snd_uart16550_write_buffer
.subsections_via_symbols
