	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_chars
_receive_chars:                         ## @receive_chars
	.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	16(%rdi), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_UART_LSR_DR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_custom@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mb
	movq	_IF_RBF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	callq	_mb
	testl	$511, %r13d                     ## imm = 0x1FF
	movq	_UART_LSR_BI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmovel	%edi, %r14d
	orl	%ebx, %r14d
	movq	_SDR_OVRUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r13d, %ebx
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmovnel	%r15d, %ebx
	incl	16(%r12)
	orl	%r14d, %ebx
	movq	_TTY_NORMAL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r11b
	movq	_UART_LSR_PE@GOTPCREL(%rip), %r10
	movl	(%r10), %esi
	movq	_UART_LSR_FE@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	movl	%ecx, %edx
	orl	%esi, %edx
	movl	%edi, %eax
	orl	%r15d, %eax
	orl	%edx, %eax
	testl	%ebx, %eax
	je	LBB0_19
## %bb.1:
	movq	%r12, %r8
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testl	%edi, %ebx
	je	LBB0_3
## %bb.2:
	notl	%edx
	andl	%edx, %ebx
	leaq	12(%r8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_19:
	movzbl	%r13b, %esi
	movzbl	%r11b, %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	jmp	LBB0_20
LBB0_3:
	testl	%ebx, %esi
	je	LBB0_5
## %bb.4:
	leaq	8(%r8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_5:
	testl	%ebx, %ecx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	leaq	4(%r8), %rax
LBB0_7:
	incl	(%rax)
LBB0_8:
	testl	%r15d, %ebx
	je	LBB0_10
## %bb.9:
	incl	(%r8)
LBB0_10:
	testl	%ebx, (%rcx)
	je	LBB0_11
## %bb.22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	andl	4(%rcx), %ebx
	movq	_UART_LSR_BI@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.12:
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	movq	_ASYNC_SAK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rcx)
	je	LBB0_17
## %bb.13:
	movq	%r13, %rdi
	callq	_do_SAK
	jmp	LBB0_17
LBB0_14:
	testl	%ebx, (%r10)
	je	LBB0_16
## %bb.15:
	movq	_TTY_PARITY@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	jmp	LBB0_17
LBB0_16:
	testl	%ebx, (%r9)
	movq	_TTY_FRAME@GOTPCREL(%rip), %rax
	movzbl	%r11b, %ecx
	movzbl	(%rax), %r14d
	cmovel	%ecx, %r14d
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_UART_LSR_OE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movzbl	%al, %esi
	movzbl	%r14b, %edx
	movq	%r13, %rdi
	callq	_tty_insert_flip_char
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.18:
	movq	_TTY_OVERRUN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
LBB0_20:
	callq	_tty_insert_flip_char
LBB0_21:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_flip_buffer_push           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UART_LSR_DR,4,2                ## @UART_LSR_DR
	.comm	_custom,8,2                     ## @custom
	.comm	_IF_RBF,4,2                     ## @IF_RBF
	.comm	_UART_LSR_BI,4,2                ## @UART_LSR_BI
	.comm	_SDR_OVRUN,4,2                  ## @SDR_OVRUN
	.comm	_UART_LSR_OE,4,2                ## @UART_LSR_OE
	.comm	_TTY_NORMAL,1,0                 ## @TTY_NORMAL
	.comm	_UART_LSR_PE,4,2                ## @UART_LSR_PE
	.comm	_UART_LSR_FE,4,2                ## @UART_LSR_FE
	.comm	_TTY_BREAK,1,0                  ## @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ## @ASYNC_SAK
	.comm	_TTY_PARITY,1,0                 ## @TTY_PARITY
	.comm	_TTY_FRAME,1,0                  ## @TTY_FRAME
	.comm	_TTY_OVERRUN,1,0                ## @TTY_OVERRUN
	.no_dead_strip	_receive_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_chars
_receive_chars:                         ; @receive_chars
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldp	x23, x19, [x0, #16]
Lloh0:
	adrp	x8, _UART_LSR_DR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UART_LSR_DR@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x24, _custom@GOTPAGE
Lloh4:
	ldr	x24, [x24, _custom@GOTPAGEOFF]
	ldr	w21, [x24]
	bl	_mb
Lloh5:
	adrp	x8, _IF_RBF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IF_RBF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x24, #4]
	bl	_mb
Lloh8:
	adrp	x8, _UART_LSR_BI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UART_LSR_BI@GOTPAGEOFF]
	ldr	w13, [x8]
	tst	w21, #0x1ff
	csel	w9, w13, wzr, eq
Lloh10:
	adrp	x10, _SDR_OVRUN@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SDR_OVRUN@GOTPAGEOFF]
	orr	w9, w9, w22
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x22, _UART_LSR_OE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _UART_LSR_OE@GOTPAGEOFF]
	ldr	w12, [x22]
	tst	w10, w21
	csel	w10, wzr, w12, eq
	orr	w11, w9, w10
	ldr	w9, [x23, #16]
	add	w9, w9, #1
Lloh15:
	adrp	x10, _TTY_NORMAL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TTY_NORMAL@GOTPAGEOFF]
	str	w9, [x23, #16]
	ldrb	w2, [x10]
Lloh17:
	adrp	x10, _UART_LSR_PE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _UART_LSR_PE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _UART_LSR_FE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UART_LSR_FE@GOTPAGEOFF]
	ldr	w15, [x10]
	ldr	w14, [x9]
	orr	w16, w14, w15
	orr	w17, w16, w13
	orr	w17, w17, w12
	tst	w17, w11
	b.eq	LBB0_3
; %bb.1:
	tst	w11, w13
	b.eq	LBB0_4
; %bb.2:
	bic	w11, w11, w16
	add	x13, x23, #12
	b	LBB0_8
LBB0_3:
	and	w1, w21, #0xff
	mov	x0, x19
	b	LBB0_21
LBB0_4:
	tst	w15, w11
	b.eq	LBB0_6
; %bb.5:
	add	x13, x23, #8
	b	LBB0_8
LBB0_6:
	tst	w14, w11
	b.eq	LBB0_9
; %bb.7:
	add	x13, x23, #4
LBB0_8:
	ldr	w14, [x13]
	add	w14, w14, #1
	str	w14, [x13]
LBB0_9:
	tst	w11, w12
	b.eq	LBB0_11
; %bb.10:
	ldr	w12, [x23]
	add	w12, w12, #1
	str	w12, [x23]
LBB0_11:
	ldr	w12, [x20]
	tst	w12, w11
	b.eq	LBB0_13
; %bb.12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w12, [x20, #4]
	and	w23, w12, w11
	ldr	w8, [x8]
	tst	w23, w8
	b.eq	LBB0_16
; %bb.14:
Lloh21:
	adrp	x8, _TTY_BREAK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TTY_BREAK@GOTPAGEOFF]
	ldrb	w24, [x8]
	ldr	w8, [x20, #8]
Lloh23:
	adrp	x9, _ASYNC_SAK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ASYNC_SAK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
	mov	x0, x19
	bl	_do_SAK
	b	LBB0_19
LBB0_16:
	ldr	w8, [x10]
	tst	w8, w23
	b.eq	LBB0_18
; %bb.17:
Lloh26:
	adrp	x8, _TTY_PARITY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TTY_PARITY@GOTPAGEOFF]
	ldrb	w24, [x8]
	b	LBB0_19
LBB0_18:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _TTY_FRAME@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TTY_FRAME@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w8, w23
	csel	w24, w2, w9, eq
LBB0_19:
	ldr	w8, [x22]
	and	w20, w8, w23
	and	w1, w21, #0xff
	and	w2, w24, #0xff
	mov	x0, x19
	bl	_tty_insert_flip_char
	cbz	w20, LBB0_22
; %bb.20:
Lloh30:
	adrp	x8, _TTY_OVERRUN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x19
	mov	w1, #0
LBB0_21:
	bl	_tty_insert_flip_char
LBB0_22:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tty_flip_buffer_push
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_UART_LSR_DR,4,2                ; @UART_LSR_DR
	.comm	_custom,8,2                     ; @custom
	.comm	_IF_RBF,4,2                     ; @IF_RBF
	.comm	_UART_LSR_BI,4,2                ; @UART_LSR_BI
	.comm	_SDR_OVRUN,4,2                  ; @SDR_OVRUN
	.comm	_UART_LSR_OE,4,2                ; @UART_LSR_OE
	.comm	_TTY_NORMAL,1,0                 ; @TTY_NORMAL
	.comm	_UART_LSR_PE,4,2                ; @UART_LSR_PE
	.comm	_UART_LSR_FE,4,2                ; @UART_LSR_FE
	.comm	_TTY_BREAK,1,0                  ; @TTY_BREAK
	.comm	_ASYNC_SAK,4,2                  ; @ASYNC_SAK
	.comm	_TTY_PARITY,1,0                 ; @TTY_PARITY
	.comm	_TTY_FRAME,1,0                  ; @TTY_FRAME
	.comm	_TTY_OVERRUN,1,0                ; @TTY_OVERRUN
	.no_dead_strip	_receive_chars
.subsections_via_symbols
