	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tve200_irq                     ## -- Begin function tve200_irq
	.p2align	4, 0x90
_tve200_irq:                            ## @tve200_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_TVE200_INT_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rsi), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_TVE200_INT_V_STATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_TVE200_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_TVE200_VSTSTYPE_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_4
## %bb.5:
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_4:
	leaq	16(%rbx), %rdi
	callq	_drm_crtc_handle_vblank
	movq	_TVE200_VSTSTYPE_VAI@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_6:
	movq	(%r12), %rsi
	addq	(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
LBB0_8:
	movq	_TVE200_INT_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVE200_INT_STAT,8,3            ## @TVE200_INT_STAT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_TVE200_INT_V_STATUS,4,2        ## @TVE200_INT_V_STATUS
	.comm	_TVE200_CTRL,8,3                ## @TVE200_CTRL
	.comm	_TVE200_VSTSTYPE_BITS,4,2       ## @TVE200_VSTSTYPE_BITS
	.comm	_TVE200_VSTSTYPE_VAI,4,2        ## @TVE200_VSTSTYPE_VAI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stray IRQ %08x\n"

	.comm	_TVE200_INT_CLR,8,3             ## @TVE200_INT_CLR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tve200_irq                     ; -- Begin function tve200_irq
	.p2align	2
_tve200_irq:                            ; @tve200_irq
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TVE200_INT_STAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TVE200_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _TVE200_INT_V_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVE200_INT_V_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh6:
	adrp	x22, _TVE200_CTRL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TVE200_CTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh8:
	adrp	x8, _TVE200_VSTSTYPE_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TVE200_VSTSTYPE_BITS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	bic	w0, w21, w8
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_8
LBB0_6:
	add	x0, x19, #16
	bl	_drm_crtc_handle_vblank
Lloh15:
	adrp	x8, _TVE200_VSTSTYPE_VAI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TVE200_VSTSTYPE_VAI@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w21
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
LBB0_8:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _TVE200_INT_CLR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TVE200_INT_CLR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TVE200_INT_STAT,8,3            ; @TVE200_INT_STAT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_TVE200_INT_V_STATUS,4,2        ; @TVE200_INT_V_STATUS
	.comm	_TVE200_CTRL,8,3                ; @TVE200_CTRL
	.comm	_TVE200_VSTSTYPE_BITS,4,2       ; @TVE200_VSTSTYPE_BITS
	.comm	_TVE200_VSTSTYPE_VAI,4,2        ; @TVE200_VSTSTYPE_VAI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stray IRQ %08x\n"

	.comm	_TVE200_INT_CLR,8,3             ; @TVE200_INT_CLR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
