	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtl1_interrupt
_dtl1_interrupt:                        ## @dtl1_interrupt
	.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
	movq	%rsi, %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%edi, %edi
	cmpl	$0, 24(%rsi)
	sete	%dil
	callq	_BUG_ON
	movq	16(%r15), %rax
	movl	(%rax), %ebx
	leaq	4(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_UART_IIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r13d
	movq	_UART_IIR_ID@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	je	LBB0_12
## %bb.1:
	movl	$102, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_UART_LSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	cmpl	$128, %r13d
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %r13d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r13d
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	decl	%r14d
	jne	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_UART_LSR_THRE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_dtl1_write_wakeup
	decl	%r14d
	jne	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_dtl1_receive
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_UART_IIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r13d
	movq	_UART_IIR_ID@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	jne	LBB0_2
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_BT_ERR
	decl	%r14d
	jne	LBB0_11
LBB0_12:
	movq	_UART_MSR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_inb
	movzbl	(%r15), %edx
	movq	_UART_MSR_RI@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	%edx, %ecx
	je	LBB0_14
## %bb.13:
	movb	%cl, (%r15)
	movq	_XMIT_WAITING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	callq	_dtl1_write_wakeup
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_UART_IIR,8,3                   ## @UART_IIR
	.comm	_UART_IIR_ID,4,2                ## @UART_IIR_ID
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_UART_LSR,8,3                   ## @UART_LSR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RLSI"

	.comm	_UART_LSR_THRE,4,2              ## @UART_LSR_THRE
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled IIR=%#x"

	.comm	_UART_MSR,8,3                   ## @UART_MSR
	.comm	_UART_MSR_RI,1,0                ## @UART_MSR_RI
	.comm	_XMIT_WAITING,4,2               ## @XMIT_WAITING
	.no_dead_strip	_dtl1_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtl1_interrupt
_dtl1_interrupt:                        ; @dtl1_interrupt
	.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	x19, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w8, [x1, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x19, #16]
	ldr	w25, [x8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
Lloh3:
	adrp	x26, _UART_IIR@GOTPAGE
Lloh4:
	ldr	x26, [x26, _UART_IIR@GOTPAGEOFF]
	ldr	x8, [x26]
	add	x0, x8, x25
	bl	_inb
Lloh5:
	adrp	x27, _UART_IIR_ID@GOTPAGE
Lloh6:
	ldr	x27, [x27, _UART_IIR_ID@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh7:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	ands	w23, w8, w0
	b.eq	LBB0_13
; %bb.1:
	mov	w28, #102
Lloh9:
	adrp	x22, _UART_LSR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _UART_LSR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x24]
	ldr	x8, [x22]
	add	x0, x8, x25
	bl	_inb
	cmp	w23, #128
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #130
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #129
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh13:
	adrp	x8, _UART_LSR_THRE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_LSR_THRE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_dtl1_write_wakeup
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_dtl1_receive
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x23, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_BT_ERR
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w28, w28, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	add	x0, x8, x25
	bl	_inb
	ldr	w8, [x27]
	ands	w23, w8, w0
	b.ne	LBB0_2
LBB0_13:
Lloh18:
	adrp	x8, _UART_MSR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UART_MSR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x0, x8, x25
	bl	_inb
	ldrb	w9, [x19]
Lloh21:
	adrp	x8, _UART_MSR_RI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UART_MSR_RI@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w0, w8
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:
	mov	x1, x19
	strb	w8, [x1], #8
Lloh23:
	adrp	x8, _XMIT_WAITING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XMIT_WAITING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_clear_bit
	mov	x0, x19
	bl	_dtl1_write_wakeup
	ldr	w21, [x24]
LBB0_15:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_UART_IIR,8,3                   ; @UART_IIR
	.comm	_UART_IIR_ID,4,2                ; @UART_IIR_ID
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_UART_LSR,8,3                   ; @UART_LSR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RLSI"

	.comm	_UART_LSR_THRE,4,2              ; @UART_LSR_THRE
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled IIR=%#x"

	.comm	_UART_MSR,8,3                   ; @UART_MSR
	.comm	_UART_MSR_RI,1,0                ; @UART_MSR_RI
	.comm	_XMIT_WAITING,4,2               ; @XMIT_WAITING
	.no_dead_strip	_dtl1_interrupt
.subsections_via_symbols
