	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_mu_isr
_imx_mu_isr:                            ## @imx_mu_isr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	8(%rsi), %edi
	callq	_to_imx_mu_priv
	movq	%rax, %r15
	movq	(%r14), %r13
	movq	_IMX_MU_xCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_imx_mu_read
	movq	%rax, %r12
	movq	_IMX_MU_xSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_imx_mu_read
	movq	%rax, %rbx
	movl	(%r13), %eax
	cmpl	$130, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.3:
	movl	4(%r13), %edi
	callq	_IMX_MU_xSR_TEn
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_IMX_MU_xCR_TIEn
	jmp	LBB0_6
LBB0_4:
	movl	4(%r13), %edi
	callq	_IMX_MU_xSR_RFn
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_IMX_MU_xCR_RIEn
	jmp	LBB0_6
LBB0_5:
	movl	4(%r13), %edi
	callq	_IMX_MU_xSR_GIPn
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_IMX_MU_xCR_GIEn
LBB0_6:
	andq	%r12, %rbx
	andq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	andq	%rax, %rbx
LBB0_7:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.8:
	movl	4(%r13), %edi
	callq	_IMX_MU_xSR_TEn
	movl	4(%r13), %edi
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	callq	_IMX_MU_xCR_TIEn
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_imx_mu_xcr_rmw
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mbox_chan_txdone
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	jmp	LBB0_16
LBB0_10:
	callq	_IMX_MU_xSR_RFn
	movl	4(%r13), %edi
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.11:
	callq	_IMX_MU_xRRn
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_imx_mu_read
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	jmp	LBB0_12
LBB0_13:
	callq	_IMX_MU_xSR_GIPn
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.14:
	movl	4(%r13), %edi
	callq	_IMX_MU_xSR_GIPn
	movq	_IMX_MU_xSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_imx_mu_write
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_12:
	callq	_mbox_chan_received_data
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	jmp	LBB0_16
LBB0_15:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn_ratelimited
LBB0_16:
	movl	(%r12), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX_MU_xCR,4,2                 ## @IMX_MU_xCR
	.comm	_IMX_MU_xSR,4,2                 ## @IMX_MU_xSR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not handled interrupt\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_imx_mu_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_mu_isr
_imx_mu_isr:                            ; @imx_mu_isr
	.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, x1
	ldr	w0, [x1, #8]
	bl	_to_imx_mu_priv
	mov	x20, x0
	ldr	x24, [x19]
Lloh0:
	adrp	x8, _IMX_MU_xCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMX_MU_xCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_imx_mu_read
	mov	x22, x0
Lloh3:
	adrp	x25, _IMX_MU_xSR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IMX_MU_xSR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_imx_mu_read
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xSR_TEn
	mov	x23, x0
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xCR_TIEn
	b	LBB0_6
LBB0_4:
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xSR_RFn
	mov	x23, x0
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xCR_RIEn
	b	LBB0_6
LBB0_5:
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xSR_GIPn
	mov	x23, x0
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xCR_GIEn
LBB0_6:
	and	x8, x21, x22
	and	x8, x8, x23
	and	x21, x8, x0
LBB0_7:
	cbz	x21, LBB0_17
; %bb.8:
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xSR_TEn
	mov	x8, x0
	ldr	w0, [x24, #4]
	cmp	x21, x8
	b.ne	LBB0_10
; %bb.9:
	bl	_IMX_MU_xCR_TIEn
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_imx_mu_xcr_rmw
	mov	x0, x19
	mov	w1, #0
	bl	_mbox_chan_txdone
	b	LBB0_15
LBB0_10:
	bl	_IMX_MU_xSR_RFn
	mov	x8, x0
	ldr	w0, [x24, #4]
	cmp	x21, x8
	b.ne	LBB0_12
; %bb.11:
	bl	_IMX_MU_xRRn
	mov	x1, x0
	mov	x0, x20
	bl	_imx_mu_read
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	b	LBB0_14
LBB0_12:
	bl	_IMX_MU_xSR_GIPn
	cmp	x21, x0
	b.ne	LBB0_16
; %bb.13:
	ldr	w0, [x24, #4]
	bl	_IMX_MU_xSR_GIPn
	mov	x1, x0
	ldr	w2, [x25]
	mov	x0, x20
	bl	_imx_mu_write
	mov	x0, x19
	mov	x1, #0
LBB0_14:
	bl	_mbox_chan_received_data
LBB0_15:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn_ratelimited
LBB0_17:
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX_MU_xCR,4,2                 ; @IMX_MU_xCR
	.comm	_IMX_MU_xSR,4,2                 ; @IMX_MU_xSR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not handled interrupt\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_imx_mu_isr
.subsections_via_symbols
