	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_de_irq
_malidp_de_irq:                         ## @malidp_de_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	8(%rsi), %r14
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	24(%r14), %r12
	cmpq	$0, (%r12)
	je	LBB0_1
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	8(%r12), %r13
	movq	_MALIDP_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_malidp_hw_read
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.2:
	movq	_MALIDP_DC_BLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_malidp_hw_clear_irq
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_drm_crtc_send_vblank_event
	movq	$0, 16(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_4:
	leaq	12(%r14), %rdi
	movq	_MALIDP_CONFIG_VALID_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_5:
	movq	_MALIDP_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_malidp_hw_read
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%r13d, 16(%rax)
	je	LBB0_11
## %bb.6:
	movq	_MALIDP_REG_MASKIRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_malidp_hw_read
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	20(%rax), %ebx
	andl	%r13d, %ebx
	testl	%ebx, 24(%rax)
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_drm_crtc_handle_vblank
LBB0_9:
	movq	_MALIDP_DE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_malidp_hw_clear_irq
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,8,3                   ## @IRQ_NONE
	.comm	_MALIDP_REG_STATUS,8,3          ## @MALIDP_REG_STATUS
	.comm	_MALIDP_DC_BLOCK,4,2            ## @MALIDP_DC_BLOCK
	.comm	_MALIDP_CONFIG_VALID_DONE,4,2   ## @MALIDP_CONFIG_VALID_DONE
	.comm	_IRQ_WAKE_THREAD,8,3            ## @IRQ_WAKE_THREAD
	.comm	_MALIDP_REG_MASKIRQ,8,3         ## @MALIDP_REG_MASKIRQ
	.comm	_MALIDP_DE_BLOCK,4,2            ## @MALIDP_DE_BLOCK
	.comm	_IRQ_HANDLED,8,3                ## @IRQ_HANDLED
	.no_dead_strip	_malidp_de_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_de_irq
_malidp_de_irq:                         ; @malidp_de_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x1, #8]
Lloh0:
	adrp	x23, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IRQ_NONE@GOTPAGEOFF]
	ldr	x21, [x23]
	ldr	x19, [x20, #24]
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
; %bb.1:
	mov	x22, x1
	ldr	x24, [x19, #8]
	ldr	x8, [x24, #8]
Lloh2:
	adrp	x25, _MALIDP_REG_STATUS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MALIDP_REG_STATUS@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x19
	bl	_malidp_hw_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.2:
	mov	x2, x0
Lloh4:
	adrp	x8, _MALIDP_DC_BLOCK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MALIDP_DC_BLOCK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_malidp_hw_clear_irq
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_spin_lock
	ldr	x1, [x20, #16]
	mov	x0, x20
	bl	_drm_crtc_send_vblank_event
	str	xzr, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock
LBB0_4:
	add	x0, x20, #12
Lloh7:
	adrp	x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MALIDP_CONFIG_VALID_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_atomic_set
Lloh10:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
LBB0_5:
	ldr	x1, [x25]
	mov	x0, x19
	bl	_malidp_hw_read
	ldr	w8, [x24, #16]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.6:
	mov	x22, x0
Lloh13:
	adrp	x8, _MALIDP_REG_MASKIRQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MALIDP_REG_MASKIRQ@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_malidp_hw_read
	ldp	w8, w9, [x24, #20]
	orr	w8, w8, w0
	and	w22, w8, w22
	tst	w22, w9
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_drm_crtc_handle_vblank
LBB0_9:
Lloh16:
	adrp	x8, _MALIDP_DE_BLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MALIDP_DE_BLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_malidp_hw_clear_irq
	ldr	x8, [x23]
Lloh19:
	adrp	x9, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IRQ_HANDLED@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x21, x8
	csel	x21, x9, x21, eq
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,8,3                   ; @IRQ_NONE
	.comm	_MALIDP_REG_STATUS,8,3          ; @MALIDP_REG_STATUS
	.comm	_MALIDP_DC_BLOCK,4,2            ; @MALIDP_DC_BLOCK
	.comm	_MALIDP_CONFIG_VALID_DONE,4,2   ; @MALIDP_CONFIG_VALID_DONE
	.comm	_IRQ_WAKE_THREAD,8,3            ; @IRQ_WAKE_THREAD
	.comm	_MALIDP_REG_MASKIRQ,8,3         ; @MALIDP_REG_MASKIRQ
	.comm	_MALIDP_DE_BLOCK,4,2            ; @MALIDP_DE_BLOCK
	.comm	_IRQ_HANDLED,8,3                ; @IRQ_HANDLED
	.no_dead_strip	_malidp_de_irq
.subsections_via_symbols
