	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uart_intr_reason
_uart_intr_reason:                      ## @uart_intr_reason
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_LSR_OE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_IER_ERLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_IIR_RLS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_3:
	movq	%rbx, %rdi
	callq	_rxfifo_numchars
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	movq	_IER_ERXRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_IIR_RXTOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.7:
	movq	_IER_ETXRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.8:
	movq	_IIR_TXRDY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_MSR_DELTA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_12
## %bb.10:
	movq	_IER_EMSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_IIR_MLSC@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_IIR_NOPEND@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LSR_OE,4,2                     ## @LSR_OE
	.comm	_IER_ERLS,4,2                   ## @IER_ERLS
	.comm	_IIR_RLS,4,2                    ## @IIR_RLS
	.comm	_IER_ERXRDY,4,2                 ## @IER_ERXRDY
	.comm	_IIR_RXTOUT,4,2                 ## @IIR_RXTOUT
	.comm	_IER_ETXRDY,4,2                 ## @IER_ETXRDY
	.comm	_IIR_TXRDY,4,2                  ## @IIR_TXRDY
	.comm	_MSR_DELTA_MASK,4,2             ## @MSR_DELTA_MASK
	.comm	_IER_EMSC,4,2                   ## @IER_EMSC
	.comm	_IIR_MLSC,4,2                   ## @IIR_MLSC
	.comm	_IIR_NOPEND,4,2                 ## @IIR_NOPEND
	.no_dead_strip	_uart_intr_reason
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uart_intr_reason
_uart_intr_reason:                      ; @uart_intr_reason
	.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	w8, [x0]
Lloh0:
	adrp	x9, _LSR_OE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LSR_OE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _IER_ERLS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IER_ERLS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _IIR_RLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIR_RLS@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	mov	x0, x19
	bl	_rxfifo_numchars
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x9, _IER_ERXRDY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IER_ERXRDY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _IIR_RXTOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IIR_RXTOUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x19, #4]
Lloh13:
	adrp	x9, _IER_ETXRDY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IER_ETXRDY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _IIR_TXRDY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIR_TXRDY@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	w8, [x19, #8]
Lloh18:
	adrp	x9, _MSR_DELTA_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MSR_DELTA_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x19, #4]
Lloh21:
	adrp	x9, _IER_EMSC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IER_EMSC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh24:
	adrp	x8, _IIR_MLSC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IIR_MLSC@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh26:
	adrp	x8, _IIR_NOPEND@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IIR_NOPEND@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LSR_OE,4,2                     ; @LSR_OE
	.comm	_IER_ERLS,4,2                   ; @IER_ERLS
	.comm	_IIR_RLS,4,2                    ; @IIR_RLS
	.comm	_IER_ERXRDY,4,2                 ; @IER_ERXRDY
	.comm	_IIR_RXTOUT,4,2                 ; @IIR_RXTOUT
	.comm	_IER_ETXRDY,4,2                 ; @IER_ETXRDY
	.comm	_IIR_TXRDY,4,2                  ; @IIR_TXRDY
	.comm	_MSR_DELTA_MASK,4,2             ; @MSR_DELTA_MASK
	.comm	_IER_EMSC,4,2                   ; @IER_EMSC
	.comm	_IIR_MLSC,4,2                   ; @IIR_MLSC
	.comm	_IIR_NOPEND,4,2                 ; @IIR_NOPEND
	.no_dead_strip	_uart_intr_reason
.subsections_via_symbols
