	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_rpmsg_probe
_fastrpc_rpmsg_probe:                   ## @fastrpc_rpmsg_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_8
LBB0_2:
	movq	_CDSP_DOMAIN_ID@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	js	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_domains@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	-56(%rbp), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %r14
	movq	_MISC_DYNAMIC_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 44(%r14)
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_kasprintf
	movl	%eax, 40(%r14)
	movq	_fastrpc_fops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_misc_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.11:
	leaq	28(%r14), %rdi
	callq	_kref_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	leaq	24(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_idr_init
	movl	%ebx, (%r14)
	movq	%r15, 8(%r14)
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_of_platform_populate
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"label"

L_.str.1:                               ## @.str.1
	.asciz	"FastRPC Domain not specified in DT\n"

	.comm	_CDSP_DOMAIN_ID,4,2             ## @CDSP_DOMAIN_ID
	.comm	_domains,8,3                    ## @domains
L_.str.2:                               ## @.str.2
	.asciz	"FastRPC Invalid Domain ID %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MISC_DYNAMIC_MINOR,4,2         ## @MISC_DYNAMIC_MINOR
L_.str.3:                               ## @.str.3
	.asciz	"fastrpc-%s"

	.comm	_fastrpc_fops,4,2               ## @fastrpc_fops
	.no_dead_strip	_fastrpc_rpmsg_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_rpmsg_probe
_fastrpc_rpmsg_probe:                   ; @fastrpc_rpmsg_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_string
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_8
LBB0_2:
Lloh4:
	adrp	x20, _CDSP_DOMAIN_ID@GOTPAGE
Lloh5:
	ldr	x20, [x20, _CDSP_DOMAIN_ID@GOTPAGEOFF]
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_6
; %bb.3:
	mov	x22, #0
Lloh6:
	adrp	x21, _domains@GOTPAGE
Lloh7:
	ldr	x21, [x21, _domains@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	ldr	x1, [sp, #8]
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x22, #1
	ldrsw	x9, [x20]
	cmp	x22, x9
	mov	x22, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w8, #-1
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh12:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x20, x0
Lloh14:
	adrp	x8, _MISC_DYNAMIC_MINOR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MISC_DYNAMIC_MINOR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x0, #44]
	ldr	w0, [x23]
	ldr	x8, [x21]
	ldr	w2, [x8, x22, lsl #2]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_kasprintf
Lloh19:
	adrp	x9, _fastrpc_fops@GOTPAGE
Lloh20:
	ldr	x9, [x9, _fastrpc_fops@GOTPAGEOFF]
	mov	x8, x20
	str	x9, [x8, #32]!
	str	w0, [x8, #8]
	mov	x0, x8
	bl	_misc_register
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.11:
	add	x0, x20, #28
	bl	_kref_init
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
	add	x0, x20, #24
	bl	_INIT_LIST_HEAD
	add	x0, x20, #20
	bl	_spin_lock_init
	add	x0, x20, #16
	bl	_idr_init
	str	w22, [x20]
	str	x19, [x20, #8]
	ldr	w0, [x19]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_of_platform_populate
	mov	x21, x0
	b	LBB0_8
LBB0_12:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"label"

l_.str.1:                               ; @.str.1
	.asciz	"FastRPC Domain not specified in DT\n"

	.comm	_CDSP_DOMAIN_ID,4,2             ; @CDSP_DOMAIN_ID
	.comm	_domains,8,3                    ; @domains
l_.str.2:                               ; @.str.2
	.asciz	"FastRPC Invalid Domain ID %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MISC_DYNAMIC_MINOR,4,2         ; @MISC_DYNAMIC_MINOR
l_.str.3:                               ; @.str.3
	.asciz	"fastrpc-%s"

	.comm	_fastrpc_fops,4,2               ; @fastrpc_fops
	.no_dead_strip	_fastrpc_rpmsg_probe
.subsections_via_symbols
