	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcde_display_irq               ## -- Begin function mcde_display_irq
	.p2align	4, 0x90
_mcde_display_irq:                      ## @mcde_display_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	%rdi, %rbx
	movq	_MCDE_MISPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_MCDE_MISOVL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_MCDE_MISCHNL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	movl	40(%rbx), %edi
	callq	_mcde_dsi_irq
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_5
## %bb.2:
	leaq	24(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	decq	(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_MCDE_CRA0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MCDE_CRX0_FLOEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_MCDE_CRA0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
LBB0_4:
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_5:
	movq	_MCDE_PP_VCMPA@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.7:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	$1, %r13d
	jmp	LBB0_8
LBB0_6:
	xorl	%r13d, %r13d
LBB0_8:
	movq	_MCDE_PP_VCMPB@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.9:
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	$1, %r13d
LBB0_10:
	movq	_MCDE_PP_VCMPC0@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movl	16(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
LBB0_12:
	movq	_MCDE_PP_VCMPC1@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:
	movl	16(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
LBB0_14:
	movq	_MCDE_PP_VSCC0@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_16
## %bb.15:
	movl	16(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
LBB0_16:
	movq	_MCDE_PP_VSCC1@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_18
## %bb.17:
	movl	16(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
LBB0_18:
	movq	_MCDE_RISPP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_writel
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.19:
	leaq	20(%rbx), %rdi
	callq	_drm_crtc_handle_vblank
LBB0_20:
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.21:
	movl	16(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_info
LBB0_22:
	movq	_MCDE_RISOVL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	testl	%r14d, %r14d
	je	LBB0_24
## %bb.23:
	movl	16(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
LBB0_24:
	movq	_MCDE_RISCHNL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCDE_MISPP,8,3                 ## @MCDE_MISPP
	.comm	_MCDE_MISOVL,8,3                ## @MCDE_MISOVL
	.comm	_MCDE_MISCHNL,8,3               ## @MCDE_MISCHNL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TE0 IRQ\n"

	.comm	_MCDE_CRA0,8,3                  ## @MCDE_CRA0
	.comm	_MCDE_CRX0_FLOEN,4,2            ## @MCDE_CRX0_FLOEN
	.comm	_MCDE_PP_VCMPA,4,2              ## @MCDE_PP_VCMPA
L_.str.1:                               ## @.str.1
	.asciz	"chnl A vblank IRQ\n"

	.comm	_MCDE_PP_VCMPB,4,2              ## @MCDE_PP_VCMPB
L_.str.2:                               ## @.str.2
	.asciz	"chnl B vblank IRQ\n"

	.comm	_MCDE_PP_VCMPC0,4,2             ## @MCDE_PP_VCMPC0
L_.str.3:                               ## @.str.3
	.asciz	"chnl C0 vblank IRQ\n"

	.comm	_MCDE_PP_VCMPC1,4,2             ## @MCDE_PP_VCMPC1
L_.str.4:                               ## @.str.4
	.asciz	"chnl C1 vblank IRQ\n"

	.comm	_MCDE_PP_VSCC0,4,2              ## @MCDE_PP_VSCC0
L_.str.5:                               ## @.str.5
	.asciz	"chnl C0 TE IRQ\n"

	.comm	_MCDE_PP_VSCC1,4,2              ## @MCDE_PP_VSCC1
L_.str.6:                               ## @.str.6
	.asciz	"chnl C1 TE IRQ\n"

	.comm	_MCDE_RISPP,8,3                 ## @MCDE_RISPP
L_.str.7:                               ## @.str.7
	.asciz	"some stray overlay IRQ %08x\n"

	.comm	_MCDE_RISOVL,8,3                ## @MCDE_RISOVL
L_.str.8:                               ## @.str.8
	.asciz	"some stray channel error IRQ %08x\n"

	.comm	_MCDE_RISCHNL,8,3               ## @MCDE_RISCHNL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mcde_display_irq               ; -- Begin function mcde_display_irq
	.p2align	2
_mcde_display_irq:                      ; @mcde_display_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, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MCDE_MISPP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCDE_MISPP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MCDE_MISOVL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCDE_MISOVL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MCDE_MISCHNL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCDE_MISCHNL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	w0, [x19, #40]
	bl	_mcde_dsi_irq
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.2:
	add	x23, x19, #24
	mov	x0, x23
	bl	_spin_lock
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x24, _MCDE_CRA0@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MCDE_CRA0@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh13:
	adrp	x8, _MCDE_CRX0_FLOEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MCDE_CRX0_FLOEN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
LBB0_4:
	mov	x0, x23
	bl	_spin_unlock
LBB0_5:
Lloh16:
	adrp	x8, _MCDE_PP_VCMPA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MCDE_PP_VCMPA@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #16]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w23, #1
	b	LBB0_8
LBB0_7:
	mov	w23, #0
LBB0_8:
Lloh21:
	adrp	x8, _MCDE_PP_VCMPB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MCDE_PP_VCMPB@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #16]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w23, #1
LBB0_10:
Lloh26:
	adrp	x8, _MCDE_PP_VCMPC0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MCDE_PP_VCMPC0@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #16]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_12:
Lloh31:
	adrp	x8, _MCDE_PP_VCMPC1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MCDE_PP_VCMPC1@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #16]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
LBB0_14:
Lloh36:
	adrp	x8, _MCDE_PP_VSCC0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MCDE_PP_VSCC0@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #16]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
LBB0_16:
Lloh41:
	adrp	x8, _MCDE_PP_VSCC1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MCDE_PP_VSCC1@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19, #16]
Lloh44:
	adrp	x1, l_.str.6@PAGE
Lloh45:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
LBB0_18:
	ldr	x8, [x19, #8]
Lloh46:
	adrp	x9, _MCDE_RISPP@GOTPAGE
Lloh47:
	ldr	x9, [x9, _MCDE_RISPP@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	cbz	w23, LBB0_20
; %bb.19:
	add	x0, x19, #20
	bl	_drm_crtc_handle_vblank
LBB0_20:
	cbz	w21, LBB0_22
; %bb.21:
	ldr	w0, [x19, #16]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x21
	bl	_dev_info
LBB0_22:
	ldr	x8, [x19, #8]
Lloh51:
	adrp	x9, _MCDE_RISOVL@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MCDE_RISOVL@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	cbz	w20, LBB0_24
; %bb.23:
	ldr	w0, [x19, #16]
Lloh54:
	adrp	x1, l_.str.8@PAGE
Lloh55:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x20
	bl	_dev_info
LBB0_24:
	ldr	x8, [x19, #8]
Lloh56:
	adrp	x9, _MCDE_RISCHNL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _MCDE_RISCHNL@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_MCDE_MISPP,8,3                 ; @MCDE_MISPP
	.comm	_MCDE_MISOVL,8,3                ; @MCDE_MISOVL
	.comm	_MCDE_MISCHNL,8,3               ; @MCDE_MISCHNL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TE0 IRQ\n"

	.comm	_MCDE_CRA0,8,3                  ; @MCDE_CRA0
	.comm	_MCDE_CRX0_FLOEN,4,2            ; @MCDE_CRX0_FLOEN
	.comm	_MCDE_PP_VCMPA,4,2              ; @MCDE_PP_VCMPA
l_.str.1:                               ; @.str.1
	.asciz	"chnl A vblank IRQ\n"

	.comm	_MCDE_PP_VCMPB,4,2              ; @MCDE_PP_VCMPB
l_.str.2:                               ; @.str.2
	.asciz	"chnl B vblank IRQ\n"

	.comm	_MCDE_PP_VCMPC0,4,2             ; @MCDE_PP_VCMPC0
l_.str.3:                               ; @.str.3
	.asciz	"chnl C0 vblank IRQ\n"

	.comm	_MCDE_PP_VCMPC1,4,2             ; @MCDE_PP_VCMPC1
l_.str.4:                               ; @.str.4
	.asciz	"chnl C1 vblank IRQ\n"

	.comm	_MCDE_PP_VSCC0,4,2              ; @MCDE_PP_VSCC0
l_.str.5:                               ; @.str.5
	.asciz	"chnl C0 TE IRQ\n"

	.comm	_MCDE_PP_VSCC1,4,2              ; @MCDE_PP_VSCC1
l_.str.6:                               ; @.str.6
	.asciz	"chnl C1 TE IRQ\n"

	.comm	_MCDE_RISPP,8,3                 ; @MCDE_RISPP
l_.str.7:                               ; @.str.7
	.asciz	"some stray overlay IRQ %08x\n"

	.comm	_MCDE_RISOVL,8,3                ; @MCDE_RISOVL
l_.str.8:                               ; @.str.8
	.asciz	"some stray channel error IRQ %08x\n"

	.comm	_MCDE_RISCHNL,8,3               ; @MCDE_RISCHNL
.subsections_via_symbols
