	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxfifo_getchar
_rxfifo_getchar:                        ## @rxfifo_getchar
	.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
	cmpq	$0, 16(%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_rxfifo_available
	movl	%eax, %ecx
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rax
	movl	(%rdx,%rax,4), %r14d
	incq	%rax
	movslq	40(%rbx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	decq	16(%rbx)
	movq	%rdx, 32(%rbx)
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_mevent_enable
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rxfifo_getchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxfifo_getchar
_rxfifo_getchar:                        ; @rxfifo_getchar
	.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
	ldr	x8, [x0, #16]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_rxfifo_available
	ldp	x9, x8, [x20, #24]
	ldr	x10, [x20, #16]
	ldr	w19, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x20, #40]
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	str	x8, [x20, #32]
	sub	x8, x10, #1
	str	x8, [x20, #16]
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_mevent_enable
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	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_getchar
.subsections_via_symbols
