	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_handler
_interrupt_handler:                     ## @interrupt_handler
	.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, %r14
	movq	_DBG_FLOW@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_INT_SOURCE_REG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rd_regl
	movl	%eax, %r15d
	movq	_INTERESTING_INTERRUPTS@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_11
## %bb.1:
	movq	_DBG_IRQ@GOTPCREL(%rip), %r12
	movq	_DBG_BUS@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_INT_SOURCE_REG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rd_regl
	movl	%eax, %r15d
	movq	_INTERESTING_INTERRUPTS@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RX_BUS_MASTER_COMPLETE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r13), %edi
	orl	(%r12), %edi
	movq	_DBG_RX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINTD
	movq	%r14, %rdi
	callq	_rx_bus_master_complete_handler
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_BUS_MASTER_COMPLETE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r13), %edi
	orl	(%r12), %edi
	movq	_DBG_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINTD
	movq	%r14, %rdi
	callq	_tx_bus_master_complete_handler
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_DATA_AV@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	_DBG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_PRINTD
	movq	%r14, %rdi
	callq	_rx_data_av_handler
	jmp	LBB0_8
LBB0_9:
	testl	%ebx, %ebx
	movq	_DBG_FLOW@GOTPCREL(%rip), %r13
	je	LBB0_11
## %bb.10:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_11:
	movq	_DBG_IRQ@GOTPCREL(%rip), %rax
	movq	_DBG_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_PRINTD
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_12:
	movq	_DBG_IRQ@GOTPCREL(%rip), %rax
	movl	(%r13), %edi
	orl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_PRINTD
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_FLOW,4,2                   ## @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt_handler: %p"

	.comm	_INT_SOURCE_REG_OFF,4,2         ## @INT_SOURCE_REG_OFF
	.comm	_INTERESTING_INTERRUPTS,4,2     ## @INTERESTING_INTERRUPTS
	.comm	_RX_BUS_MASTER_COMPLETE,4,2     ## @RX_BUS_MASTER_COMPLETE
	.comm	_DBG_IRQ,4,2                    ## @DBG_IRQ
	.comm	_DBG_BUS,4,2                    ## @DBG_BUS
	.comm	_DBG_RX,4,2                     ## @DBG_RX
L_.str.1:                               ## @.str.1
	.asciz	"rx_bus_master_complete asserted"

	.comm	_TX_BUS_MASTER_COMPLETE,4,2     ## @TX_BUS_MASTER_COMPLETE
	.comm	_DBG_TX,4,2                     ## @DBG_TX
L_.str.2:                               ## @.str.2
	.asciz	"tx_bus_master_complete asserted"

	.comm	_RX_DATA_AV,4,2                 ## @RX_DATA_AV
L_.str.3:                               ## @.str.3
	.asciz	"rx_data_av asserted"

L_.str.4:                               ## @.str.4
	.asciz	"work done: %u"

	.comm	_DBG_WARN,4,2                   ## @DBG_WARN
L_.str.5:                               ## @.str.5
	.asciz	"spurious interrupt source: %#x"

L_.str.6:                               ## @.str.6
	.asciz	"interrupt_handler done: %p"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_handler
_interrupt_handler:                     ; @interrupt_handler
	.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	x21, _DBG_FLOW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DBG_FLOW@GOTPAGEOFF]
	ldr	w0, [x21]
	str	x1, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTD
Lloh4:
	adrp	x8, _INT_SOURCE_REG_OFF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT_SOURCE_REG_OFF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd_regl
Lloh7:
	adrp	x27, _INTERESTING_INTERRUPTS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _INTERESTING_INTERRUPTS@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh9:
	adrp	x24, _DBG_IRQ@GOTPAGE
Lloh10:
	ldr	x24, [x24, _DBG_IRQ@GOTPAGEOFF]
	ands	w25, w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w26, #0
Lloh11:
	adrp	x28, _RX_BUS_MASTER_COMPLETE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _RX_BUS_MASTER_COMPLETE@GOTPAGEOFF]
Lloh13:
	adrp	x23, _TX_BUS_MASTER_COMPLETE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TX_BUS_MASTER_COMPLETE@GOTPAGEOFF]
Lloh15:
	adrp	x20, _RX_DATA_AV@GOTPAGE
Lloh16:
	ldr	x20, [x20, _RX_DATA_AV@GOTPAGEOFF]
Lloh17:
	adrp	x21, _DBG_RX@GOTPAGE
Lloh18:
	ldr	x21, [x21, _DBG_RX@GOTPAGEOFF]
Lloh19:
	adrp	x22, _DBG_BUS@GOTPAGE
Lloh20:
	ldr	x22, [x22, _DBG_BUS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x8, _INT_SOURCE_REG_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INT_SOURCE_REG_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd_regl
	ldr	w8, [x27]
	ands	w25, w8, w0
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	tst	w8, w25
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	w8, [x24]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w0, w8, w9
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PRINTD
	mov	x0, x19
	bl	_rx_bus_master_complete_handler
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	tst	w8, w25
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	w8, [x24]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _DBG_TX@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DBG_TX@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PRINTD
	mov	x0, x19
	bl	_tx_bus_master_complete_handler
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	tst	w8, w25
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w0, w9, w8
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_PRINTD
	mov	x0, x19
	bl	_rx_data_av_handler
	b	LBB0_2
LBB0_9:
Lloh33:
	adrp	x21, _DBG_FLOW@GOTPAGE
Lloh34:
	ldr	x21, [x21, _DBG_FLOW@GOTPAGEOFF]
	cbz	w26, LBB0_11
; %bb.10:
	ldr	w0, [x24]
	str	x26, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_PRINTD
Lloh37:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh38:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x24]
Lloh39:
	adrp	x9, _DBG_WARN@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DBG_WARN@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	xzr, [sp]
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_PRINTD
Lloh44:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh45:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x24]
	ldr	w9, [x21]
	orr	w0, w9, w8
	str	x19, [sp]
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_PRINTD
	ldr	w0, [x20]
	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	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_FLOW,4,2                   ; @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt_handler: %p"

	.comm	_INT_SOURCE_REG_OFF,4,2         ; @INT_SOURCE_REG_OFF
	.comm	_INTERESTING_INTERRUPTS,4,2     ; @INTERESTING_INTERRUPTS
	.comm	_RX_BUS_MASTER_COMPLETE,4,2     ; @RX_BUS_MASTER_COMPLETE
	.comm	_DBG_IRQ,4,2                    ; @DBG_IRQ
	.comm	_DBG_BUS,4,2                    ; @DBG_BUS
	.comm	_DBG_RX,4,2                     ; @DBG_RX
l_.str.1:                               ; @.str.1
	.asciz	"rx_bus_master_complete asserted"

	.comm	_TX_BUS_MASTER_COMPLETE,4,2     ; @TX_BUS_MASTER_COMPLETE
	.comm	_DBG_TX,4,2                     ; @DBG_TX
l_.str.2:                               ; @.str.2
	.asciz	"tx_bus_master_complete asserted"

	.comm	_RX_DATA_AV,4,2                 ; @RX_DATA_AV
l_.str.3:                               ; @.str.3
	.asciz	"rx_data_av asserted"

l_.str.4:                               ; @.str.4
	.asciz	"work done: %u"

	.comm	_DBG_WARN,4,2                   ; @DBG_WARN
l_.str.5:                               ; @.str.5
	.asciz	"spurious interrupt source: %#x"

l_.str.6:                               ; @.str.6
	.asciz	"interrupt_handler done: %p"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_interrupt_handler
.subsections_via_symbols
