	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_irq
_mtk_dsi_irq:                           ## @mtk_dsi_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	_LPRX_RD_RDY_INT_FLAG@GOTPCREL(%rip), %rax
	movq	_CMD_DONE_INT_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	%rsi, %rbx
	movq	_VM_DONE_INT_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DSI_INTSTA@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rsi), %rdi
	callq	_readl
	andl	%r14d, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DSI_RACK@GOTPCREL(%rip), %r12
	movq	_RACK@GOTPCREL(%rip), %r13
	movq	_DSI_BUSY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_mtk_dsi_mask
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r14)
	jne	LBB0_2
## %bb.3:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_mtk_dsi_mask
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mtk_dsi_irq_data_set
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPRX_RD_RDY_INT_FLAG,4,2       ## @LPRX_RD_RDY_INT_FLAG
	.comm	_CMD_DONE_INT_FLAG,4,2          ## @CMD_DONE_INT_FLAG
	.comm	_VM_DONE_INT_FLAG,4,2           ## @VM_DONE_INT_FLAG
	.comm	_DSI_INTSTA,8,3                 ## @DSI_INTSTA
	.comm	_DSI_RACK,8,3                   ## @DSI_RACK
	.comm	_RACK,4,2                       ## @RACK
	.comm	_DSI_BUSY,4,2                   ## @DSI_BUSY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mtk_dsi_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_irq
_mtk_dsi_irq:                           ; @mtk_dsi_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, x1
Lloh0:
	adrp	x8, _LPRX_RD_RDY_INT_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LPRX_RD_RDY_INT_FLAG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CMD_DONE_INT_FLAG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMD_DONE_INT_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VM_DONE_INT_FLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VM_DONE_INT_FLAG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	x8, [x1, #8]
Lloh9:
	adrp	x21, _DSI_INTSTA@GOTPAGE
Lloh10:
	ldr	x21, [x21, _DSI_INTSTA@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ands	w20, w0, w20
	b.eq	LBB0_4
; %bb.1:
Lloh11:
	adrp	x22, _DSI_RACK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _DSI_RACK@GOTPAGEOFF]
Lloh13:
	adrp	x23, _RACK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _RACK@GOTPAGEOFF]
Lloh15:
	adrp	x24, _DSI_BUSY@GOTPAGE
Lloh16:
	ldr	x24, [x24, _DSI_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	mov	x3, x2
	bl	_mtk_dsi_mask
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.3:
	ldr	x1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_mtk_dsi_mask
	mov	x0, x19
	mov	x1, x20
	bl	_mtk_dsi_irq_data_set
	mov	x0, x19
	bl	_wake_up_interruptible
LBB0_4:
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LPRX_RD_RDY_INT_FLAG,4,2       ; @LPRX_RD_RDY_INT_FLAG
	.comm	_CMD_DONE_INT_FLAG,4,2          ; @CMD_DONE_INT_FLAG
	.comm	_VM_DONE_INT_FLAG,4,2           ; @VM_DONE_INT_FLAG
	.comm	_DSI_INTSTA,8,3                 ; @DSI_INTSTA
	.comm	_DSI_RACK,8,3                   ; @DSI_RACK
	.comm	_RACK,4,2                       ; @RACK
	.comm	_DSI_BUSY,4,2                   ; @DSI_BUSY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mtk_dsi_irq
.subsections_via_symbols
