	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function malidp_se_irq
_malidp_se_irq:                         ## @malidp_se_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), %r14
	movq	16(%r14), %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%r15)
	jne	LBB0_12
## %bb.1:
	movq	16(%r15), %r13
	movq	_MALIDP_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_malidp_hw_read
	movl	%eax, %r12d
	movl	36(%r13), %eax
	orl	32(%r13), %eax
	testl	%r12d, %eax
	je	LBB0_12
## %bb.2:
	movq	_MALIDP_REG_MASKIRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r13), %rsi
	movq	%r15, %rdi
	callq	_malidp_hw_read
	movl	%eax, %ebx
	andl	%r12d, %ebx
	testl	%ebx, 40(%r13)
	je	LBB0_11
## %bb.3:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	addq	$4, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_writeback_signal_completion
	movq	_MW_NOT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_11
LBB0_7:
	leaq	4(%r14), %rdi
	xorl	%esi, %esi
	callq	_drm_writeback_signal_completion
LBB0_8:
	movq	%r15, %rdi
	callq	*48(%r13)
	movq	_MALIDP_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movq	%r15, %rdi
	callq	_malidp_hw_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_atomic_read
	movq	_MALIDP_CONFIG_START@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	testl	%ebx, 8(%r13)
	je	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*(%r13)
	jmp	LBB0_11
LBB0_5:
	addq	$4, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_writeback_signal_completion
LBB0_11:
	movq	_MALIDP_SE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_malidp_hw_clear_irq
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MALIDP_REG_STATUS,8,3          ## @MALIDP_REG_STATUS
	.comm	_MALIDP_REG_MASKIRQ,8,3         ## @MALIDP_REG_MASKIRQ
	.comm	_MW_NOT_ENABLED,4,2             ## @MW_NOT_ENABLED
	.comm	_MALIDP_CONFIG_START,4,2        ## @MALIDP_CONFIG_START
	.comm	_MALIDP_SE_BLOCK,4,2            ## @MALIDP_SE_BLOCK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_malidp_se_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function malidp_se_irq
_malidp_se_irq:                         ; @malidp_se_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
	ldr	x21, [x1]
	ldr	x19, [x21, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	ldr	x22, [x19, #16]
	ldr	x8, [x22, #24]
Lloh2:
	adrp	x23, _MALIDP_REG_STATUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MALIDP_REG_STATUS@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x19
	bl	_malidp_hw_read
	ldp	w8, w9, [x22, #32]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_1
; %bb.3:
	mov	x20, x0
	ldr	x8, [x22, #24]
Lloh4:
	adrp	x9, _MALIDP_REG_MASKIRQ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MALIDP_REG_MASKIRQ@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_malidp_hw_read
	and	w20, w0, w20
	ldr	w8, [x22, #40]
	tst	w20, w8
	b.eq	LBB0_12
; %bb.4:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.5:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	add	x0, x21, #4
	mov	w1, #0
	bl	_drm_writeback_signal_completion
Lloh9:
	adrp	x8, _MW_NOT_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MW_NOT_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_12
LBB0_7:
	add	x0, x21, #4
	mov	w1, #0
	bl	_drm_writeback_signal_completion
LBB0_8:
	ldr	x8, [x22, #48]
	mov	x0, x19
	blr	x8
	ldr	x8, [x22, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x19
	bl	_malidp_hw_read
	mov	x20, x0
	mov	x0, x21
	bl	_atomic_read
Lloh12:
	adrp	x8, _MALIDP_CONFIG_START@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MALIDP_CONFIG_START@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x22, #8]
	tst	w8, w20
	b.eq	LBB0_12
LBB0_10:
	ldr	x8, [x22]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	b	LBB0_12
LBB0_11:
	add	x0, x21, #4
	mov	w1, #0
	bl	_drm_writeback_signal_completion
LBB0_12:
Lloh15:
	adrp	x8, _MALIDP_SE_BLOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MALIDP_SE_BLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_malidp_hw_clear_irq
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MALIDP_REG_STATUS,8,3          ; @MALIDP_REG_STATUS
	.comm	_MALIDP_REG_MASKIRQ,8,3         ; @MALIDP_REG_MASKIRQ
	.comm	_MW_NOT_ENABLED,4,2             ; @MW_NOT_ENABLED
	.comm	_MALIDP_CONFIG_START,4,2        ; @MALIDP_CONFIG_START
	.comm	_MALIDP_SE_BLOCK,4,2            ; @MALIDP_SE_BLOCK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_malidp_se_irq
.subsections_via_symbols
