	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoctal_irq_rx
_ipoctal_irq_rx:                        ## @ipoctal_irq_rx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	40(%rdi), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%r12b, %esi
	movzbl	%r13b, %edx
	movq	%r14, %rdi
	callq	_tty_insert_flip_char
	movq	16(%r15), %rdi
	callq	_ioread8
	movq	%rax, %r12
	movq	8(%r15), %rdi
	callq	_ioread8
	movq	%rax, %rbx
	testl	%r12d, (%r15)
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_ioread8
	movq	%rax, %r12
	movq	_TTY_NORMAL@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
	movq	_SR_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CR_CMD_RESET_ERR_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	addq	$8, %rsi
	callq	_iowrite8
	movq	_SR_OVERRUN_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	36(%r15)
	movq	_TTY_OVERRUN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tty_insert_flip_char
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SR_PARITY_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	32(%r15)
	movq	_TTY_PARITY@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SR_FRAMING_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	28(%r15)
	movq	_TTY_FRAME@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_SR_RECEIVED_BREAK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	24(%r15)
	movq	_TTY_BREAK@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
	jmp	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tty_flip_buffer_push           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_NORMAL,1,0                 ## @TTY_NORMAL
	.comm	_SR_ERROR,4,2                   ## @SR_ERROR
	.comm	_CR_CMD_RESET_ERR_STATUS,4,2    ## @CR_CMD_RESET_ERR_STATUS
	.comm	_SR_OVERRUN_ERROR,4,2           ## @SR_OVERRUN_ERROR
	.comm	_TTY_OVERRUN,1,0                ## @TTY_OVERRUN
	.comm	_SR_PARITY_ERROR,4,2            ## @SR_PARITY_ERROR
	.comm	_TTY_PARITY,1,0                 ## @TTY_PARITY
	.comm	_SR_FRAMING_ERROR,4,2           ## @SR_FRAMING_ERROR
	.comm	_TTY_FRAME,1,0                  ## @TTY_FRAME
	.comm	_SR_RECEIVED_BREAK,4,2          ## @SR_RECEIVED_BREAK
	.comm	_TTY_BREAK,1,0                  ## @TTY_BREAK
	.no_dead_strip	_ipoctal_irq_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoctal_irq_rx
_ipoctal_irq_rx:                        ; @ipoctal_irq_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _TTY_NORMAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TTY_NORMAL@GOTPAGEOFF]
	add	x20, x0, #40
Lloh2:
	adrp	x25, _SR_ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SR_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x28, _SR_PARITY_ERROR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SR_PARITY_ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _SR_FRAMING_ERROR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _SR_FRAMING_ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x27, _SR_RECEIVED_BREAK@GOTPAGE
Lloh9:
	ldr	x27, [x27, _SR_RECEIVED_BREAK@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w1, w22, #0xff
	mov	x0, x20
	mov	x2, x23
	bl	_tty_insert_flip_char
	ldr	x0, [x19, #16]
	bl	_ioread8
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_ioread8
	mov	x21, x0
	ldr	w8, [x19]
	tst	w8, w22
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_ioread8
	mov	x22, x0
	ldrb	w23, [x24]
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh10:
	adrp	x8, _CR_CMD_RESET_ERR_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CR_CMD_RESET_ERR_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	bl	_iowrite8
Lloh13:
	adrp	x8, _SR_OVERRUN_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SR_OVERRUN_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
Lloh16:
	adrp	x8, _TTY_OVERRUN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TTY_OVERRUN@GOTPAGEOFF]
	ldrb	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_tty_insert_flip_char
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
Lloh18:
	adrp	x8, _TTY_PARITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TTY_PARITY@GOTPAGEOFF]
	ldrb	w23, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
Lloh20:
	adrp	x8, _TTY_FRAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TTY_FRAME@GOTPAGEOFF]
	ldrb	w23, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	tst	w8, w21
	b.eq	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh22:
	adrp	x8, _TTY_BREAK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TTY_BREAK@GOTPAGEOFF]
	ldrb	w23, [x8]
	b	LBB0_1
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_tty_flip_buffer_push
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_NORMAL,1,0                 ; @TTY_NORMAL
	.comm	_SR_ERROR,4,2                   ; @SR_ERROR
	.comm	_CR_CMD_RESET_ERR_STATUS,4,2    ; @CR_CMD_RESET_ERR_STATUS
	.comm	_SR_OVERRUN_ERROR,4,2           ; @SR_OVERRUN_ERROR
	.comm	_TTY_OVERRUN,1,0                ; @TTY_OVERRUN
	.comm	_SR_PARITY_ERROR,4,2            ; @SR_PARITY_ERROR
	.comm	_TTY_PARITY,1,0                 ; @TTY_PARITY
	.comm	_SR_FRAMING_ERROR,4,2           ; @SR_FRAMING_ERROR
	.comm	_TTY_FRAME,1,0                  ; @TTY_FRAME
	.comm	_SR_RECEIVED_BREAK,4,2          ; @SR_RECEIVED_BREAK
	.comm	_TTY_BREAK,1,0                  ; @TTY_BREAK
	.no_dead_strip	_ipoctal_irq_rx
.subsections_via_symbols
