	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_mdss_irq
_dpu_mdss_irq:                          ## @dpu_mdss_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, %r15
	callq	_irq_desc_get_handler_data
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_chained_irq_enter
	movq	_HW_INTR_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_fls
	movl	%eax, %ebx
	decl	%ebx
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_irq_find_mapping
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_generic_handle_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, %r13d
	jne	LBB0_2
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chained_irq_exit               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_INTR_STATUS,8,3             ## @HW_INTR_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't find irq mapping for %lu\n"

L_.str.1:                               ## @.str.1
	.asciz	"handle irq fail: irq=%lu mapping=%u rc=%d\n"

	.no_dead_strip	_dpu_mdss_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_mdss_irq
_dpu_mdss_irq:                          ; @dpu_mdss_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_irq_desc_get_handler_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x20, x0
	mov	x1, x19
	bl	_chained_irq_enter
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _HW_INTR_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_INTR_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	cbz	w0, LBB0_8
; %bb.1:
	mov	x22, x0
	mov	w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_fls
	sub	w23, w0, #1
	ldr	w0, [x21]
	mov	x1, x23
	bl	_irq_find_mapping
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	bl	_generic_handle_irq
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w8, w25, w23
	bics	w22, w22, w8
	b.ne	LBB0_2
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	stp	x24, x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	mov	x1, x23
	bl	_DRM_ERROR
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_chained_irq_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_INTR_STATUS,8,3             ; @HW_INTR_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't find irq mapping for %lu\n"

l_.str.1:                               ; @.str.1
	.asciz	"handle irq fail: irq=%lu mapping=%u rc=%d\n"

	.no_dead_strip	_dpu_mdss_irq
.subsections_via_symbols
