	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw68_irq
_tw68_irq:                              ## @tw68_irq
	.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	_TW68_INTSTAT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_tw_readl
	movl	%eax, %r14d
	andl	(%r15), %r14d
	je	LBB0_1
## %bb.2:
	movl	$10, %ebx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r13
	movl	%r14d, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, 4(%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_tw68_irq_video_done
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	callq	_tw_readl
	andl	(%r15), %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	jne	LBB0_4
## %bb.7:
	movq	16(%r15), %rbx
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	callq	_tw_readl
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	movq	16(%r15), %rdi
	movl	8(%r15), %edx
	movl	(%r15), %ecx
	movl	4(%r15), %r8d
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_TW68_INTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_tw_clearl
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TW68_INTSTAT,4,2               ## @TW68_INTSTAT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: **** INTERRUPT NOT HANDLED - clearing mask (orig 0x%08x, cur 0x%08x)"

L_.str.1:                               ## @.str.1
	.asciz	"%s: pci_irqmask 0x%08x; board_virqmask 0x%08x ****\n"

	.comm	_TW68_INTMASK,4,2               ## @TW68_INTMASK
	.no_dead_strip	_tw68_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw68_irq
_tw68_irq:                              ; @tw68_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x23, _TW68_INTSTAT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TW68_INTSTAT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_tw_readl
	ldr	w8, [x19]
	ands	w20, w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	w22, #10
Lloh2:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
	mov	x1, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_tw68_irq_video_done
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23]
	bl	_tw_readl
	ldr	w8, [x19]
	ands	w1, w8, w0
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_2
; %bb.6:
	ldr	x21, [x19, #16]
	ldr	w22, [x19, #8]
	ldr	w0, [x23]
	bl	_tw_readl
	mov	x4, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x20
	bl	_dev_dbg
	ldr	x0, [x19, #16]
	ldp	w4, w2, [x19, #4]
	ldr	w3, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh8:
	adrp	x8, _TW68_INTMASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TW68_INTMASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_tw_clearl
Lloh11:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TW68_INTSTAT,4,2               ; @TW68_INTSTAT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: **** INTERRUPT NOT HANDLED - clearing mask (orig 0x%08x, cur 0x%08x)"

l_.str.1:                               ; @.str.1
	.asciz	"%s: pci_irqmask 0x%08x; board_virqmask 0x%08x ****\n"

	.comm	_TW68_INTMASK,4,2               ; @TW68_INTMASK
	.no_dead_strip	_tw68_irq
.subsections_via_symbols
