	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_dsp_probe
_imx_dsp_probe:                         ## @imx_dsp_probe
	.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, %rbx
	movl	(%rdi), %esi
	callq	_device_set_of_node_from_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_DSP_MU_CHAN_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.2:
	movl	$16, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$1, %r15
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-2(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_kasprintf
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r14
	leaq	(%r14,%r13), %rdi
	movq	%rbx, 16(%r14,%r13)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r14,%r13)
	movq	_imx_dsp_handle_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	%rcx, -8(%r14,%r13)
	movl	%r15d, %eax
	andl	$1, %eax
	movl	%eax, -16(%r14,%r13)
	movq	%r12, %rsi
	callq	_mbox_request_channel_byname
	movl	%eax, -12(%r14,%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_kfree
	incq	%r15
	movq	_DSP_MU_CHAN_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$40, %r13
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_16:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, 8(%rsi)
	movq	%rbx, %rdi
	callq	_dev_set_drvdata
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_of_platform_populate      ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-12(%r14,%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_dev_err
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.13:
	movl	$4, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx), %edi
	callq	_mbox_free_channel
	addq	$40, %rbx
	decq	%r15
	jne	LBB0_14
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DSP_MU_CHAN_NUM,4,2            ## @DSP_MU_CHAN_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"txdb%d"

L_.str.1:                               ## @.str.1
	.asciz	"rxdb%d"

	.comm	_imx_dsp_handle_rx,4,2          ## @imx_dsp_handle_rx
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request mbox chan %s ret %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"request mbox chan %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"NXP i.MX DSP IPC initialized\n"

	.no_dead_strip	_imx_dsp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function imx_dsp_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_imx_dsp_probe:                         ; @imx_dsp_probe
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x0
	ldr	w1, [x0]
	bl	_device_set_of_node_from_dev
Lloh0:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x28, _DSP_MU_CHAN_NUM@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DSP_MU_CHAN_NUM@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x21, #0
	mov	w22, #16
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh6:
	adrp	x24, _imx_dsp_handle_rx@GOTPAGE
Lloh7:
	ldr	x24, [x24, _imx_dsp_handle_rx@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	cmp	x21, #1
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w2, w21, #2
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_kasprintf
	mov	x25, x0
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	add	x26, x8, x22
	str	x20, [x26, #16]
	str	d8, [x26]
	ldr	w8, [x24]
	str	w8, [x26, #8]
	stur	x19, [x26, #-8]
	and	w8, w21, #0x1
	stur	w8, [x26, #-16]
	mov	x0, x26
	mov	x1, x25
	bl	_mbox_request_channel_byname
	stur	w0, [x26, #-12]
	bl	_IS_ERR
	cbnz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_dev_dbg
	mov	x0, x25
	bl	_kfree
	add	x21, x21, #1
	ldrsw	x8, [x28]
	add	x22, x22, #40
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_9:
	str	x20, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_devm_of_platform_populate
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_12:
	ldur	w0, [x26, #-12]
	bl	_PTR_ERR
	mov	x22, x0
Lloh19:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.13:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	mov	x3, x22
	bl	_dev_err
LBB0_14:
	mov	x0, x25
	bl	_kfree
	cbz	w21, LBB0_11
; %bb.15:
	mov	w20, #4
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20]
	bl	_mbox_free_channel
	add	x20, x20, #40
	subs	x21, x21, #1
	b.ne	LBB0_16
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DSP_MU_CHAN_NUM,4,2            ; @DSP_MU_CHAN_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"txdb%d"

l_.str.1:                               ; @.str.1
	.asciz	"rxdb%d"

	.comm	_imx_dsp_handle_rx,4,2          ; @imx_dsp_handle_rx
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request mbox chan %s ret %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"request mbox chan %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"NXP i.MX DSP IPC initialized\n"

	.no_dead_strip	_imx_dsp_probe
.subsections_via_symbols
