	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_dcp_irq
_mxs_dcp_irq:                           ## @mxs_dcp_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	_MXS_DCP_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	_MXS_DCP_STAT_IRQ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	je	LBB0_1
## %bb.2:
	movq	_MXS_DCP_STAT_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_DCP_MAX_CHANS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r15d, %r13d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	callq	_complete
	movl	(%r12), %eax
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXS_DCP_STAT,8,3               ## @MXS_DCP_STAT
	.comm	_MXS_DCP_STAT_IRQ_MASK,4,2      ## @MXS_DCP_STAT_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_MXS_DCP_STAT_CLR,8,3           ## @MXS_DCP_STAT_CLR
	.comm	_DCP_MAX_CHANS,4,2              ## @DCP_MAX_CHANS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mxs_dcp_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_dcp_irq
_mxs_dcp_irq:                           ; @mxs_dcp_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
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _MXS_DCP_STAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MXS_DCP_STAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _MXS_DCP_STAT_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MXS_DCP_STAT_IRQ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w20, w8, w0
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MXS_DCP_STAT_CLR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MXS_DCP_STAT_CLR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
Lloh9:
	adrp	x22, _DCP_MAX_CHANS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _DCP_MAX_CHANS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh11:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x23, x23, #4
	cmp	x24, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w24
	tbz	w9, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x0, x8, x23
	bl	_complete
	ldr	w8, [x22]
	b	LBB0_3
LBB0_6:
Lloh13:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x21]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MXS_DCP_STAT,8,3               ; @MXS_DCP_STAT
	.comm	_MXS_DCP_STAT_IRQ_MASK,4,2      ; @MXS_DCP_STAT_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_MXS_DCP_STAT_CLR,8,3           ; @MXS_DCP_STAT_CLR
	.comm	_DCP_MAX_CHANS,4,2              ; @DCP_MAX_CHANS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mxs_dcp_irq
.subsections_via_symbols
