	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_mu_send_data
_imx_mu_send_data:                      ## @imx_mu_send_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_imx_mu_priv
	movq	%rax, %r14
	movq	(%rbx), %rbx
	movl	(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %r15d
	movl	8(%rbx), %edi
	callq	_IMX_MU_xTRn
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_imx_mu_write
	movl	8(%rbx), %edi
	callq	_IMX_MU_xCR_TIEn
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_imx_mu_xcr_rmw
	jmp	LBB0_5
LBB0_3:
	movl	8(%rbx), %edi
	callq	_IMX_MU_xCR_GIRn
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_imx_mu_xcr_rmw
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn_ratelimited
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send data on wrong channel type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_imx_mu_send_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_mu_send_data
_imx_mu_send_data:                      ; @imx_mu_send_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_imx_mu_priv
	mov	x19, x0
	ldr	x21, [x21]
	ldr	w2, [x21]
	cmp	w2, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w20, [x20]
	ldr	w0, [x21, #8]
	bl	_IMX_MU_xTRn
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_imx_mu_write
	ldr	w0, [x21, #8]
	bl	_IMX_MU_xCR_TIEn
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_imx_mu_xcr_rmw
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	w0, [x21, #8]
	bl	_IMX_MU_xCR_GIRn
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_imx_mu_xcr_rmw
	add	x0, x21, #4
	bl	_tasklet_schedule
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn_ratelimited
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send data on wrong channel type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_imx_mu_send_data
.subsections_via_symbols
