	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_msgmgr_probe
_ti_msgmgr_probe:                       ## @ti_msgmgr_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	_ti_msgmgr_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, 104(%rax)
	movq	%r13, 96(%rax)
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r13), %edx
	movq	%rbx, %rdi
	callq	_platform_get_resource_byname
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 80(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	80(%r15), %rdi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_8:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	44(%r13), %edx
	movq	%rbx, %rdi
	callq	_platform_get_resource_byname
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 72(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	72(%r15), %rdi
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	cmpq	$0, 32(%r13)
	je	LBB0_14
## %bb.12:
	movl	(%r14), %esi
	movl	40(%r13), %edx
	movq	%rbx, %rdi
	callq	_platform_get_resource_byname
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 88(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	88(%r15), %rdi
	jmp	LBB0_10
LBB0_14:
	movq	72(%r15), %rcx
	movq	80(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movl	(%r13), %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %ecx
	testl	%r14d, %r14d
	je	LBB0_27
## %bb.15:
	cmpl	%ecx, %r14d
	jg	LBB0_27
## %bb.16:
	movl	%r14d, (%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 64(%r15)
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.18:
	movq	%rax, 8(%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 32(%rcx)
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_28
## %bb.19:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jle	LBB0_32
## %bb.20:
	xorl	%r13d, %r13d
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -96(%rbp)
	movl	%r13d, -104(%rbp)
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	leaq	-104(%rbp), %r9
	pushq	%rax
	pushq	%r10
	callq	_ti_msgmgr_queue_setup
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_38
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	incl	%r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addq	$4, %rcx
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	movq	%rax, %r10
	movq	%rcx, %rax
	jne	LBB0_21
	jmp	LBB0_32
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_24:
	xorl	%r14d, %r14d
LBB0_25:
	subl	(%rax), %r14d
LBB0_26:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_dev_crit
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_28:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_32
## %bb.29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %r9
	xorl	%edi, %edi
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -76(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	pushq	%rax
	pushq	%r13
	callq	_ti_msgmgr_queue_setup
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	incl	%edi
	addq	$4, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	addq	$16, %r9
	cmpl	%edi, -60(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_30
LBB0_32:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	addq	$16, %r14
	movq	%rbx, 56(%r15)
	movq	_ti_msgmgr_chan_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r15)
	movq	8(%r15), %rax
	movq	%rax, 40(%r15)
	movl	(%r15), %eax
	movl	%eax, 16(%r15)
	movl	$0, 20(%r15)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	16(%r13), %rax
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movl	8(%r13), %eax
	movl	%eax, 28(%r15)
LBB0_34:
	movq	_ti_msgmgr_of_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_devm_mbox_controller_register
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_38:
	movl	%eax, %r14d
	jmp	LBB0_26
LBB0_36:
	xorl	%r14d, %r14d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no OF information\n"

	.comm	_ti_msgmgr_of_match,4,2         ## @ti_msgmgr_of_match
L_.str.1:                               ## @.str.1
	.asciz	"OF data missing\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"proxy region=%p, queue_state=%p\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid Number of queues %d. Max %d\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_ti_msgmgr_chan_ops,4,2         ## @ti_msgmgr_chan_ops
	.comm	_ti_msgmgr_of_xlate,4,2         ## @ti_msgmgr_of_xlate
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register mbox_controller(%d)\n"

	.no_dead_strip	_ti_msgmgr_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_msgmgr_probe
_ti_msgmgr_probe:                       ; @ti_msgmgr_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	ldr	x22, [x0]
	cbz	x22, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ti_msgmgr_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ti_msgmgr_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x21, [x0]
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_23
; %bb.3:
	mov	x20, x0
	stp	x21, x19, [x0, #96]
Lloh5:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x21, #48]
	mov	x0, x19
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x20, #80]
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_24
LBB0_8:
	ldr	w1, [x23]
	ldr	w2, [x21, #44]
	mov	x0, x19
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20, #72]
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
LBB0_11:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	w1, [x23]
	ldr	w2, [x21, #40]
	mov	x0, x19
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #88]
	b	LBB0_10
LBB0_14:
	ldp	x3, x2, [x20, #72]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	w23, w3, [x21]
	cmp	w23, #0
	ccmp	w23, w3, #0, ne
	b.le	LBB0_16
; %bb.15:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_crit
Lloh17:
	adrp	x8, _ERANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:
	str	w23, [x20]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_23
; %bb.17:
	mov	x24, x0
	str	x0, [x20, #64]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #4
	bl	_devm_kcalloc
	cbz	x0, LBB0_23
; %bb.18:
	mov	x25, x0
	str	x0, [x20, #8]
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_26
; %bb.19:
	cmp	w23, #1
	b.lt	LBB0_30
; %bb.20:
	mov	w27, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #24]
	str	w27, [sp, #16]
	add	x5, sp, #16
	mov	x0, x27
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x21
	mov	x6, x24
	mov	x7, x25
	bl	_ti_msgmgr_queue_setup
	cbnz	w0, LBB0_34
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	add	w27, w27, #1
	add	x24, x24, #4
	add	x25, x25, #4
	cmp	w23, w27
	b.ne	LBB0_21
	b	LBB0_30
LBB0_23:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_25:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_26:
	cmp	w23, #1
	b.lt	LBB0_30
; %bb.27:
	mov	w27, #0
	ldr	x28, [x21, #24]
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x21
	mov	x5, x28
	mov	x6, x24
	mov	x7, x25
	bl	_ti_msgmgr_queue_setup
	cbnz	w0, LBB0_34
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	add	w27, w27, #1
	add	x24, x24, #4
	add	x25, x25, #4
	add	x28, x28, #16
	cmp	w23, w27
	b.ne	LBB0_28
LBB0_30:
	ldr	w8, [x20]
	mov	x22, x20
	str	w8, [x22, #16]!
	str	x19, [x22, #40]
Lloh21:
	adrp	x8, _ti_msgmgr_chan_ops@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ti_msgmgr_chan_ops@GOTPAGEOFF]
	ldur	x9, [x22, #-8]
	stp	x9, x8, [x22, #24]
	str	wzr, [x22, #4]
	ldr	x8, [x21, #16]
	str	x8, [x22, #16]
	cbz	x8, LBB0_32
; %bb.31:
	ldr	w8, [x21, #8]
	str	w8, [x20, #28]
LBB0_32:
Lloh23:
	adrp	x8, _ti_msgmgr_of_xlate@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ti_msgmgr_of_xlate@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x22
	bl	_devm_mbox_controller_register
	mov	x26, x0
	cbz	w0, LBB0_25
; %bb.33:
	str	x26, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_25
LBB0_34:
	mov	x26, x0
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no OF information\n"

	.comm	_ti_msgmgr_of_match,4,2         ; @ti_msgmgr_of_match
l_.str.1:                               ; @.str.1
	.asciz	"OF data missing\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"proxy region=%p, queue_state=%p\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid Number of queues %d. Max %d\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_ti_msgmgr_chan_ops,4,2         ; @ti_msgmgr_chan_ops
	.comm	_ti_msgmgr_of_xlate,4,2         ; @ti_msgmgr_of_xlate
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register mbox_controller(%d)\n"

	.no_dead_strip	_ti_msgmgr_probe
.subsections_via_symbols
