	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_isr
_tw5864_isr:                            ## @tw5864_isr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_TW5864_INTR_STATUS_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_readl
	movl	%eax, %r15d
	movq	_TW5864_INTR_STATUS_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_readl
	movl	%eax, %ebx
	shll	$16, %ebx
	orl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	movq	_TW5864_INTR_CLR_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_tw_writel
	movq	_TW5864_INTR_CLR_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_tw_writel
	movq	_TW5864_INTR_VLC_DONE@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_tw5864_h264_isr
LBB0_4:
	movq	_TW5864_INTR_TIMER@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_tw5864_timer_isr
	movl	(%r12), %eax
LBB0_6:
	orl	(%r15), %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TW5864_INTR_STATUS_L,4,2       ## @TW5864_INTR_STATUS_L
	.comm	_TW5864_INTR_STATUS_H,4,2       ## @TW5864_INTR_STATUS_H
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_TW5864_INTR_CLR_L,4,2          ## @TW5864_INTR_CLR_L
	.comm	_TW5864_INTR_CLR_H,4,2          ## @TW5864_INTR_CLR_H
	.comm	_TW5864_INTR_VLC_DONE,4,2       ## @TW5864_INTR_VLC_DONE
	.comm	_TW5864_INTR_TIMER,4,2          ## @TW5864_INTR_TIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown interrupt, status 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_tw5864_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_isr
_tw5864_isr:                            ; @tw5864_isr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _TW5864_INTR_STATUS_L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TW5864_INTR_STATUS_L@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_tw_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _TW5864_INTR_STATUS_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TW5864_INTR_STATUS_H@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_tw_readl
	orr	w20, w20, w0, lsl #16
	cbz	w20, LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _TW5864_INTR_CLR_L@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TW5864_INTR_CLR_L@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_tw_writel
Lloh9:
	adrp	x8, _TW5864_INTR_CLR_H@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TW5864_INTR_CLR_H@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #65535
	bl	_tw_writel
Lloh12:
	adrp	x21, _TW5864_INTR_VLC_DONE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _TW5864_INTR_VLC_DONE@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_tw5864_h264_isr
LBB0_3:
Lloh14:
	adrp	x22, _TW5864_INTR_TIMER@GOTPAGE
Lloh15:
	ldr	x22, [x22, _TW5864_INTR_TIMER@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tw5864_timer_isr
	ldr	w8, [x22]
LBB0_5:
	ldr	w9, [x21]
	orr	w8, w9, w8
	tst	w8, w20
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
LBB0_7:
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TW5864_INTR_STATUS_L,4,2       ; @TW5864_INTR_STATUS_L
	.comm	_TW5864_INTR_STATUS_H,4,2       ; @TW5864_INTR_STATUS_H
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_TW5864_INTR_CLR_L,4,2          ; @TW5864_INTR_CLR_L
	.comm	_TW5864_INTR_CLR_H,4,2          ; @TW5864_INTR_CLR_H
	.comm	_TW5864_INTR_VLC_DONE,4,2       ; @TW5864_INTR_VLC_DONE
	.comm	_TW5864_INTR_TIMER,4,2          ; @TW5864_INTR_TIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown interrupt, status 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_tw5864_isr
.subsections_via_symbols
