	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_opal_intr
_uart_opal_intr:                        ## @uart_opal_intr
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_tty_lock
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_uart_opal_getc
	movq	%rbx, %rdi
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ttydisc_rint
	jmp	LBB0_2
LBB0_3:
	callq	_ttydisc_rint_done
	movq	%rbx, %rdi
	callq	_tty_unlock
	movq	_OPAL_POLL_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_opal_call
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	4(%r14), %rdi
	movl	(%r14), %esi
	leaq	_uart_opal_intr(%rip), %rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPAL_POLL_EVENTS,4,2           ## @OPAL_POLL_EVENTS
	.no_dead_strip	_uart_opal_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_opal_intr
_uart_opal_intr:                        ; @uart_opal_intr
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	x0, x20
	bl	_tty_lock
	mov	x0, x19
	bl	_uart_opal_getc
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x1, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w2, #0
	bl	_ttydisc_rint
	mov	x0, x19
	bl	_uart_opal_getc
	mov	x1, x0
	cmp	w0, #0
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_ttydisc_rint_done
	mov	x0, x20
	bl	_tty_unlock
Lloh0:
	adrp	x8, _OPAL_POLL_EVENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPAL_POLL_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_opal_call
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	ldr	w1, [x0], #4
Lloh3:
	adrp	x2, _uart_opal_intr@PAGE
Lloh4:
	add	x2, x2, _uart_opal_intr@PAGEOFF
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_callout_reset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OPAL_POLL_EVENTS,4,2           ; @OPAL_POLL_EVENTS
	.no_dead_strip	_uart_opal_intr
.subsections_via_symbols
