	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_async
_rx_async:                              ## @rx_async
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	48(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r14
	movl	(%rdi), %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, 4(%r13)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r12d, %edx
	callq	_free_rbufs
	incl	%r12d
	cmpl	12(%r13), %r12d
	movl	$0, %eax
	cmovel	%eax, %r12d
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r12d, %r12d
	movq	(%r14,%r12,8), %rdi
	callq	_desc_complete
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14,%r12,8), %rdi
	callq	_desc_count
	movslq	4(%r13), %rbx
	movslq	%eax, %r15
	subq	%rbx, %r15
	addq	(%r14,%r12,8), %rbx
	movq	%r15, %rdi
	callq	_DBGISR
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_DBGDATA
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	movq	_BIT1@GOTPCREL(%rip), %r8
	movq	_BIT0@GOTPCREL(%rip), %r9
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	addq	$2, %r14
	cmpl	%r15d, %r14d
	jge	LBB0_18
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx,%r14), %eax
	incl	40(%r13)
	movzbl	(%r8), %edx
	movzbl	(%r9), %ecx
	leal	(%rcx,%rdx), %esi
	andb	1(%rbx,%r14), %sil
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	testb	%dl, %sil
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	incl	36(%r13)
	testb	%sil, 8(%r13)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_TTY_PARITY@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	%cl, %sil
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	32(%r13)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	testb	%sil, 8(%r13)
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
	testb	%cl, %sil
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	_TTY_FRAME@GOTPCREL(%rip), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rcx), %edx
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movzbl	%al, %esi
	callq	_tty_insert_flip_char
	movq	_BIT0@GOTPCREL(%rip), %r9
	movq	_BIT1@GOTPCREL(%rip), %r8
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_17
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_flip_buffer_push           ## TAILCALL
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"rx"

	.comm	_BIT1,1,0                       ## @BIT1
	.comm	_BIT0,1,0                       ## @BIT0
	.comm	_TTY_PARITY,4,2                 ## @TTY_PARITY
	.comm	_TTY_FRAME,4,2                  ## @TTY_FRAME
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_rx_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_async
_rx_async:                              ; @rx_async
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	mov	w25, #0
	ldr	x19, [x0, #48]
	ldr	x26, [x0, #24]
Lloh0:
	adrp	x27, _BIT1@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BIT1@GOTPAGEOFF]
Lloh2:
	adrp	x28, _BIT0@GOTPAGE
Lloh3:
	ldr	x28, [x28, _BIT0@GOTPAGEOFF]
	ldr	w21, [x0]
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x22
	bl	_free_rbufs
	add	w8, w22, #1
	ldr	w9, [x20, #12]
	cmp	w8, w9
	csinc	w21, wzr, w22, eq
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w21, w8
	b.eq	LBB0_16
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x0, [x26, w21, uxtw #3]
	bl	_desc_complete
	cbz	x0, LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, w21
	lsl	x21, x22, #3
	ldr	x0, [x26, x21]
	bl	_desc_count
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x20, #4]
	sxtw	x9, w0
	sub	x23, x9, x8
	ldr	x9, [x26, x21]
	add	x24, x9, x8
	mov	x0, x23
	bl	_DBGISR
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_DBGDATA
	cmp	w23, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #2
	cmp	w21, w23
	b.ge	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x24, x21
	ldrb	w1, [x8]
	ldr	w9, [x20, #40]
	add	w9, w9, #1
	str	w9, [x20, #40]
	ldrb	w8, [x8, #1]
	ldrb	w10, [x27]
	ldrb	w9, [x28]
	add	w11, w9, w10
	and	w8, w11, w8
	tst	w8, #0xff
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	tst	w8, w10
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x20, #36]
	add	w9, w9, #1
	str	w9, [x20, #36]
	ldrb	w9, [x20, #8]
	tst	w8, w9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh6:
	adrp	x8, _TTY_PARITY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTY_PARITY@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	cbnz	x19, LBB0_11
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	w2, #0
	cbz	x19, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	bl	_tty_insert_flip_char
	add	w25, w25, #1
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=2
	ands	w9, w8, w9
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w10, [x20, #32]
	add	w10, w10, #1
	str	w10, [x20, #32]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w10, [x20, #8]
	tst	w8, w10
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh9:
	adrp	x8, _TTY_FRAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TTY_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w9, #0
	csel	w2, wzr, w8, eq
	cbnz	x19, LBB0_11
	b	LBB0_5
LBB0_16:
	cbz	x19, LBB0_19
; %bb.17:
	cbz	w25, LBB0_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_tty_flip_buffer_push
LBB0_19:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"rx"

	.comm	_BIT1,1,0                       ; @BIT1
	.comm	_BIT0,1,0                       ; @BIT0
	.comm	_TTY_PARITY,4,2                 ; @TTY_PARITY
	.comm	_TTY_FRAME,4,2                  ; @TTY_FRAME
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_rx_async
.subsections_via_symbols
