	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipoctal_irq_channel
_ipoctal_irq_channel:                   ## @ipoctal_irq_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	callq	_ioread8
	movl	%eax, %r14d
	movq	32(%rbx), %rdi
	addq	$4, %rdi
	callq	_ioread8
	movl	%eax, %r15d
	movq	_IMR_DELTA_BREAK_A@GOTPCREL(%rip), %rax
	movq	_IMR_DELTA_BREAK_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_CR_CMD_RESET_BREAK_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	callq	_iowrite8
LBB0_2:
	movq	_SR_TX_EMPTY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	_CR_DISABLE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	callq	_iowrite8
	movq	8(%rbx), %rax
	movq	_IPACK1_DEVICE_ID_SBS_OCTAL_485@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_CR_CMD_NEGATE_RTSN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	callq	_iowrite8
	movq	_CR_ENABLE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rsi
	callq	_iowrite8
	movl	$1, 16(%rbx)
LBB0_6:
	testl	%r14d, 20(%rbx)
	je	LBB0_9
## %bb.7:
	movq	_SR_RX_READY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ipoctal_irq_rx
LBB0_9:
	testl	%r14d, 24(%rbx)
	je	LBB0_11
## %bb.10:
	movq	_SR_TX_READY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipoctal_irq_tx                 ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMR_DELTA_BREAK_A,4,2          ## @IMR_DELTA_BREAK_A
	.comm	_IMR_DELTA_BREAK_B,4,2          ## @IMR_DELTA_BREAK_B
	.comm	_CR_CMD_RESET_BREAK_CHANGE,4,2  ## @CR_CMD_RESET_BREAK_CHANGE
	.comm	_SR_TX_EMPTY,4,2                ## @SR_TX_EMPTY
	.comm	_CR_DISABLE_TX,4,2              ## @CR_DISABLE_TX
	.comm	_IPACK1_DEVICE_ID_SBS_OCTAL_485,8,3 ## @IPACK1_DEVICE_ID_SBS_OCTAL_485
	.comm	_CR_CMD_NEGATE_RTSN,4,2         ## @CR_CMD_NEGATE_RTSN
	.comm	_CR_ENABLE_RX,4,2               ## @CR_ENABLE_RX
	.comm	_SR_RX_READY,4,2                ## @SR_RX_READY
	.comm	_SR_TX_READY,4,2                ## @SR_TX_READY
	.no_dead_strip	_ipoctal_irq_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipoctal_irq_channel
_ipoctal_irq_channel:                   ; @ipoctal_irq_channel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	bl	_ioread8
	mov	x20, x0
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_ioread8
	mov	x21, x0
Lloh0:
	adrp	x8, _IMR_DELTA_BREAK_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMR_DELTA_BREAK_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IMR_DELTA_BREAK_B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMR_DELTA_BREAK_B@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CR_CMD_RESET_BREAK_CHANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CR_CMD_RESET_BREAK_CHANGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_iowrite8
LBB0_2:
Lloh9:
	adrp	x8, _SR_TX_EMPTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SR_TX_EMPTY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _CR_DISABLE_TX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CR_DISABLE_TX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_iowrite8
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _IPACK1_DEVICE_ID_SBS_OCTAL_485@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPACK1_DEVICE_ID_SBS_OCTAL_485@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _CR_CMD_NEGATE_RTSN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CR_CMD_NEGATE_RTSN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_iowrite8
Lloh21:
	adrp	x8, _CR_ENABLE_RX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CR_ENABLE_RX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_iowrite8
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_6:
	ldr	w8, [x19, #20]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.7:
Lloh24:
	adrp	x8, _SR_RX_READY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SR_RX_READY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_ipoctal_irq_rx
LBB0_9:
	ldr	w8, [x19, #24]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.10:
Lloh27:
	adrp	x8, _SR_TX_READY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SR_TX_READY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ipoctal_irq_tx
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IMR_DELTA_BREAK_A,4,2          ; @IMR_DELTA_BREAK_A
	.comm	_IMR_DELTA_BREAK_B,4,2          ; @IMR_DELTA_BREAK_B
	.comm	_CR_CMD_RESET_BREAK_CHANGE,4,2  ; @CR_CMD_RESET_BREAK_CHANGE
	.comm	_SR_TX_EMPTY,4,2                ; @SR_TX_EMPTY
	.comm	_CR_DISABLE_TX,4,2              ; @CR_DISABLE_TX
	.comm	_IPACK1_DEVICE_ID_SBS_OCTAL_485,8,3 ; @IPACK1_DEVICE_ID_SBS_OCTAL_485
	.comm	_CR_CMD_NEGATE_RTSN,4,2         ; @CR_CMD_NEGATE_RTSN
	.comm	_CR_ENABLE_RX,4,2               ; @CR_ENABLE_RX
	.comm	_SR_RX_READY,4,2                ; @SR_RX_READY
	.comm	_SR_TX_READY,4,2                ; @SR_TX_READY
	.no_dead_strip	_ipoctal_irq_channel
.subsections_via_symbols
