	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxfifo_putchar
_rxfifo_putchar:                        ## @rxfifo_putchar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	16(%rdi), %eax
	movl	$-1, %r14d
	cmpl	20(%rdi), %eax
	jge	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	32(%rdi), %rcx
	movl	%esi, (%rcx,%rax,4)
	incq	%rax
	movslq	20(%rdi), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%rdx, 24(%rbx)
	incl	16(%rbx)
	movq	%rbx, %rdi
	callq	_rxfifo_available
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	callq	_mevent_disable
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rxfifo_putchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxfifo_putchar
_rxfifo_putchar:                        ; @rxfifo_putchar
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w9, [x0, #16]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #24]
	str	w1, [x8, x9, lsl #2]
	add	x8, x9, #1
	ldp	w10, w9, [x0, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	str	x8, [x0, #24]
	add	w8, w10, #1
	str	w8, [x0, #16]
	bl	_rxfifo_available
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	bl	_mevent_disable
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rxfifo_putchar
.subsections_via_symbols
