	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_scu_probe
_imx_scu_probe:                         ## @imx_scu_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_SCU_MU_CHAN_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.2:
	movl	$16, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$3, %rbx
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-4(%rbx), %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.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %r14
	leaq	(%r14,%r13), %rdi
	movq	%r15, 16(%r14,%r13)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r14,%r13)
	movq	_imx_scu_rx_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%r13)
	movq	%rcx, -8(%r14,%r13)
	movl	%ebx, %eax
	andl	$3, %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_9
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_dbg
	movq	%r12, %rdi
	callq	_kfree
	incq	%rbx
	movq	_SCU_MU_CHAN_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$40, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_init_completion
	movq	_imx_sc_ipc_handle@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	callq	_imx_scu_enable_general_irq_channel
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r15, %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	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-12(%r14,%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_dev_err
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCU_MU_CHAN_NUM,4,2            ## @SCU_MU_CHAN_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx%d"

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

	.comm	_imx_scu_rx_callback,4,2        ## @imx_scu_rx_callback
	.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"

	.comm	_imx_sc_ipc_handle,8,3          ## @imx_sc_ipc_handle
L_.str.4:                               ## @.str.4
	.asciz	"failed to enable general irq channel: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"NXP i.MX SCU Initialized\n"

	.no_dead_strip	_imx_scu_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_scu_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_imx_scu_probe:                         ; @imx_scu_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	x19, x0
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x27, _SCU_MU_CHAN_NUM@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SCU_MU_CHAN_NUM@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x28, #0
	mov	x21, #0
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh6:
	adrp	x22, _imx_scu_rx_callback@GOTPAGE
Lloh7:
	ldr	x22, [x22, _imx_scu_rx_callback@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, [x26]
	cmp	x21, #3
	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, #4
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_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	add	x24, x8, x28
	mov	x0, x24
	str	d8, [x0, #16]!
	str	x19, [x24, #32]
	ldr	w8, [x22]
	str	w8, [x24, #24]
	str	x20, [x24, #8]
	and	w8, w21, #0x3
	str	w8, [x24]
	mov	x1, x25
	bl	_mbox_request_channel_byname
	str	w0, [x24, #4]
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_dev_dbg
	mov	x0, x25
	bl	_kfree
	add	x21, x21, #1
	ldrsw	x8, [x27]
	add	x28, x28, #40
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_9:
	str	x19, [x20, #8]
	add	x0, x20, #4
	bl	_mutex_init
	mov	x0, x20
	bl	_init_completion
Lloh14:
	adrp	x8, _imx_sc_ipc_handle@GOTPAGE
Lloh15:
	ldr	x8, [x8, _imx_sc_ipc_handle@GOTPAGEOFF]
Lloh16:
	str	x20, [x8]
	mov	x0, x19
	bl	_imx_scu_enable_general_irq_channel
	cbz	w0, LBB0_11
; %bb.10:
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_11:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	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_12:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	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
	ret
LBB0_14:
	ldr	w0, [x24, #4]
	bl	_PTR_ERR
	mov	x20, x0
Lloh24:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.15:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x25
	mov	x3, x20
	bl	_dev_err
	b	LBB0_13
	.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 AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCU_MU_CHAN_NUM,4,2            ; @SCU_MU_CHAN_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx%d"

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

	.comm	_imx_scu_rx_callback,4,2        ; @imx_scu_rx_callback
	.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"

	.comm	_imx_sc_ipc_handle,8,3          ; @imx_sc_ipc_handle
l_.str.4:                               ; @.str.4
	.asciz	"failed to enable general irq channel: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"NXP i.MX SCU Initialized\n"

	.no_dead_strip	_imx_scu_probe
.subsections_via_symbols
