	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_cqdma_probe
_mtk_cqdma_probe:                       ## @mtk_cqdma_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	24(%r12), %edi
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	32(%r12), %rbx
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	100(%r12), %esi
	callq	_dma_cap_set
	movq	_MTK_CQDMA_ALIGN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r12)
	movq	_mtk_cqdma_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r12)
	movq	_mtk_cqdma_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r12)
	movq	_mtk_cqdma_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r12)
	movq	_mtk_cqdma_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r12)
	movq	_mtk_cqdma_prep_dma_memcpy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r12)
	movq	_mtk_cqdma_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	_MTK_CQDMA_DMA_BUSWIDTHS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movq	%rax, 56(%r12)
	movq	_DMA_MEM_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 52(%r12)
	movq	_DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	%r14, 40(%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_MTK_CQDMA_NR_VCHANS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%rbx), %eax
	movl	%eax, (%r12)
LBB0_8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	movq	%r12, %rbx
	addq	$4, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_MTK_CQDMA_NR_PCHANS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_11:
	movl	4(%r12), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	cmpl	$0, 4(%r12)
	je	LBB0_27
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$24, %edx
	callq	_devm_kcalloc
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$20, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_platform_get_resource
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 8(%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rax), %r13d
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%r13d, 4(%rax)
	movq	_mtk_cqdma_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %r15
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movq	%r15, %r14
	jb	LBB0_14
LBB0_27:
	movl	(%r12), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.28:
	cmpl	$0, (%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_32
## %bb.29:
	movq	%rax, %rbx
	movq	_mtk_cqdma_vdesc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	addq	$4, %rdi
	movl	%eax, 4(%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vchan_init
	movq	%rbx, %rdi
	callq	_init_completion
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$2, (%r12)
	jb	LBB0_32
## %bb.30:
	movl	$1, %r13d
	movl	$12, %ebx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	movq	_mtk_cqdma_vdesc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%rbx), %rdi
	movl	%eax, (%r15,%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vchan_init
	leaq	(%r15,%rbx), %rdi
	addq	$-4, %rdi
	callq	_init_completion
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%r13
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jb	LBB0_31
LBB0_32:
	movq	%rcx, %rdi
	callq	_dma_async_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_42
## %bb.33:
	movq	(%r14), %rdi
	movq	_of_dma_xlate_by_chan_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_of_dma_controller_register
	testl	%eax, %eax
	je	LBB0_36
## %bb.34:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_35
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	_dev_name
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_20:
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edi
	jmp	LBB0_21
LBB0_23:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.7(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	jmp	LBB0_18
LBB0_25:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
LBB0_18:
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_36:
	movq	%r12, %rdi
	callq	_mtk_cqdma_hw_init
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
LBB0_35:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_async_device_unregister
	jmp	LBB0_42
LBB0_38:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	cmpl	$0, 4(%r12)
	je	LBB0_41
## %bb.39:
	xorl	%ebx, %ebx
	movq	_mtk_cqdma_tasklet_cb@GOTPCREL(%rip), %r15
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r15), %esi
	movq	%rdi, %rdx
	callq	_tasklet_init
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_40
LBB0_41:
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cqdma"

L_.str.1:                               ## @.str.1
	.asciz	"No clock for %s\n"

	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_MTK_CQDMA_ALIGN_SIZE,4,2       ## @MTK_CQDMA_ALIGN_SIZE
	.comm	_mtk_cqdma_alloc_chan_resources,4,2 ## @mtk_cqdma_alloc_chan_resources
	.comm	_mtk_cqdma_free_chan_resources,4,2 ## @mtk_cqdma_free_chan_resources
	.comm	_mtk_cqdma_tx_status,4,2        ## @mtk_cqdma_tx_status
	.comm	_mtk_cqdma_issue_pending,4,2    ## @mtk_cqdma_issue_pending
	.comm	_mtk_cqdma_prep_dma_memcpy,4,2  ## @mtk_cqdma_prep_dma_memcpy
	.comm	_mtk_cqdma_terminate_all,4,2    ## @mtk_cqdma_terminate_all
	.comm	_MTK_CQDMA_DMA_BUSWIDTHS,8,3    ## @MTK_CQDMA_DMA_BUSWIDTHS
	.comm	_DMA_MEM_TO_MEM,4,2             ## @DMA_MEM_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ## @DMA_RESIDUE_GRANULARITY_SEGMENT
L_.str.2:                               ## @.str.2
	.asciz	"dma-requests"

L_.str.3:                               ## @.str.3
	.asciz	"Using %u as missing dma-requests property\n"

	.comm	_MTK_CQDMA_NR_VCHANS,4,2        ## @MTK_CQDMA_NR_VCHANS
L_.str.4:                               ## @.str.4
	.asciz	"dma-channels"

L_.str.5:                               ## @.str.5
	.asciz	"Using %u as missing dma-channels property\n"

	.comm	_MTK_CQDMA_NR_PCHANS,4,2        ## @MTK_CQDMA_NR_PCHANS
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.6:                               ## @.str.6
	.asciz	"No mem resource for %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
L_.str.7:                               ## @.str.7
	.asciz	"No irq resource for %s\n"

	.comm	_mtk_cqdma_irq,4,2              ## @mtk_cqdma_irq
L_.str.8:                               ## @.str.8
	.asciz	"request_irq failed with err %d\n"

	.comm	_mtk_cqdma_vdesc_free,4,2       ## @mtk_cqdma_vdesc_free
	.comm	_of_dma_xlate_by_chan_id,4,2    ## @of_dma_xlate_by_chan_id
L_.str.9:                               ## @.str.9
	.asciz	"MediaTek CQDMA OF registration failed %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"MediaTek CQDMA HW initialization failed %d\n"

	.comm	_mtk_cqdma_tasklet_cb,4,2       ## @mtk_cqdma_tasklet_cb
L_.str.11:                              ## @.str.11
	.asciz	"MediaTek CQDMA driver registered\n"

	.no_dead_strip	_mtk_cqdma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_cqdma_probe
_mtk_cqdma_probe:                       ; @mtk_cqdma_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_27
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #24]
LBB0_3:
	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
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_4:
	add	x21, x20, #32
Lloh6:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #100]
	bl	_dma_cap_set
Lloh9:
	adrp	x8, _MTK_CQDMA_ALIGN_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTK_CQDMA_ALIGN_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #96]
Lloh12:
	adrp	x8, _mtk_cqdma_alloc_chan_resources@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mtk_cqdma_alloc_chan_resources@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _mtk_cqdma_free_chan_resources@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mtk_cqdma_free_chan_resources@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #88]
Lloh18:
	adrp	x8, _mtk_cqdma_tx_status@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mtk_cqdma_tx_status@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _mtk_cqdma_issue_pending@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mtk_cqdma_issue_pending@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
Lloh24:
	adrp	x8, _mtk_cqdma_prep_dma_memcpy@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mtk_cqdma_prep_dma_memcpy@GOTPAGEOFF]
Lloh26:
	adrp	x9, _mtk_cqdma_terminate_all@GOTPAGE
Lloh27:
	ldr	x9, [x9, _mtk_cqdma_terminate_all@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #72]
Lloh30:
	adrp	x8, _MTK_CQDMA_DMA_BUSWIDTHS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MTK_CQDMA_DMA_BUSWIDTHS@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #56]
Lloh33:
	adrp	x8, _DMA_MEM_TO_MEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DMA_MEM_TO_MEM@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_BIT
Lloh36:
	adrp	x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #48]
	str	x19, [x20, #40]
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_of_property_read_u32
	cbz	x0, LBB0_7
; %bb.6:
Lloh41:
	adrp	x22, _MTK_CQDMA_NR_VCHANS@GOTPAGE
Lloh42:
	ldr	x22, [x22, _MTK_CQDMA_NR_VCHANS@GOTPAGEOFF]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x22]
	str	w8, [x20]
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.8:
	add	x22, x20, #4
Lloh45:
	adrp	x1, l_.str.4@PAGE
Lloh46:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_10
; %bb.9:
Lloh47:
	adrp	x23, _MTK_CQDMA_NR_PCHANS@GOTPAGE
Lloh48:
	ldr	x23, [x23, _MTK_CQDMA_NR_PCHANS@GOTPAGEOFF]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh49:
	adrp	x1, l_.str.5@PAGE
Lloh50:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x23]
	str	w8, [x22]
LBB0_10:
	ldr	w1, [x20, #4]
	ldr	w3, [x25]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_27
; %bb.11:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_19
; %bb.12:
	mov	x22, #0
Lloh51:
	adrp	x26, _IORESOURCE_MEM@GOTPAGE
Lloh52:
	ldr	x26, [x26, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh53:
	adrp	x27, _IORESOURCE_IRQ@GOTPAGE
Lloh54:
	ldr	x27, [x27, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh55:
	adrp	x28, _mtk_cqdma_irq@GOTPAGE
Lloh56:
	ldr	x28, [x28, _mtk_cqdma_irq@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x25]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #24
	bl	_devm_kcalloc
	ldr	x8, [x20, #8]
	lsl	x23, x22, #3
	str	x0, [x8, x23]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	cbz	x8, LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x0, x8, #20
	bl	_INIT_LIST_HEAD
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	add	x0, x8, #16
	bl	_spin_lock_init
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	add	x0, x8, #12
	mov	w1, #0
	bl	_refcount_set
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_platform_get_resource
	cbz	x0, LBB0_30
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	w0, [x8, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x22
	bl	_platform_get_resource
	cbz	x0, LBB0_32
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w23, [x0]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	w23, [x8, #4]
	ldr	w24, [x28]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #4]
	cmp	x22, x8
	b.lo	LBB0_13
LBB0_19:
	ldr	w1, [x20]
	ldr	w3, [x25]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_27
; %bb.20:
	ldr	w8, [x20]
	cbz	w8, LBB0_24
; %bb.21:
	mov	x22, x0
Lloh57:
	adrp	x23, _mtk_cqdma_vdesc_free@GOTPAGE
Lloh58:
	ldr	x23, [x23, _mtk_cqdma_vdesc_free@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x0, #4]!
	mov	x1, x21
	bl	_vchan_init
	mov	x0, x22
	bl	_init_completion
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_24
; %bb.22:
	mov	w24, #1
	mov	w25, #12
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w9, [x23]
	add	x0, x8, x25
	mov	x22, x0
	str	w9, [x22], #-4
	mov	x1, x21
	bl	_vchan_init
	mov	x0, x22
	bl	_init_completion
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x25, x25, #8
	cmp	x24, x8
	b.lo	LBB0_23
LBB0_24:
	mov	x0, x21
	bl	_dma_async_device_register
	mov	x22, x0
	cbnz	w0, LBB0_29
; %bb.25:
	ldr	x0, [x19]
Lloh59:
	adrp	x8, _of_dma_xlate_by_chan_id@GOTPAGE
Lloh60:
	ldr	x8, [x8, _of_dma_xlate_by_chan_id@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_of_dma_controller_register
	cbz	w0, LBB0_35
; %bb.26:
	mov	x22, x0
Lloh62:
	adrp	x1, l_.str.9@PAGE
Lloh63:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_37
LBB0_27:
Lloh64:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_29:
	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
	add	sp, sp, #112
	ret
LBB0_30:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh66:
	adrp	x1, l_.str.6@PAGE
Lloh67:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_34
LBB0_31:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8, #8]
	b	LBB0_3
LBB0_32:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh68:
	adrp	x1, l_.str.7@PAGE
Lloh69:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_34
LBB0_33:
	mov	x2, x0
Lloh70:
	adrp	x1, l_.str.8@PAGE
Lloh71:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_34:
	mov	x0, x19
	bl	_dev_err
Lloh72:
	adrp	x8, _EINVAL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_35:
	mov	x0, x20
	bl	_mtk_cqdma_hw_init
	cbz	w0, LBB0_38
; %bb.36:
	mov	x22, x0
Lloh74:
	adrp	x1, l_.str.10@PAGE
Lloh75:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_37:
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	mov	x0, x21
	bl	_dma_async_device_unregister
	b	LBB0_29
LBB0_38:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_41
; %bb.39:
	mov	x21, #0
Lloh76:
	adrp	x22, _mtk_cqdma_tasklet_cb@GOTPAGE
Lloh77:
	ldr	x22, [x22, _mtk_cqdma_tasklet_cb@GOTPAGEOFF]
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x21, lsl #3]
	ldr	w1, [x22]
	mov	x2, x0
	bl	_tasklet_init
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lo	LBB0_40
LBB0_41:
Lloh78:
	adrp	x1, l_.str.11@PAGE
Lloh79:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #0
	b	LBB0_29
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cqdma"

l_.str.1:                               ; @.str.1
	.asciz	"No clock for %s\n"

	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_MTK_CQDMA_ALIGN_SIZE,4,2       ; @MTK_CQDMA_ALIGN_SIZE
	.comm	_mtk_cqdma_alloc_chan_resources,4,2 ; @mtk_cqdma_alloc_chan_resources
	.comm	_mtk_cqdma_free_chan_resources,4,2 ; @mtk_cqdma_free_chan_resources
	.comm	_mtk_cqdma_tx_status,4,2        ; @mtk_cqdma_tx_status
	.comm	_mtk_cqdma_issue_pending,4,2    ; @mtk_cqdma_issue_pending
	.comm	_mtk_cqdma_prep_dma_memcpy,4,2  ; @mtk_cqdma_prep_dma_memcpy
	.comm	_mtk_cqdma_terminate_all,4,2    ; @mtk_cqdma_terminate_all
	.comm	_MTK_CQDMA_DMA_BUSWIDTHS,8,3    ; @MTK_CQDMA_DMA_BUSWIDTHS
	.comm	_DMA_MEM_TO_MEM,4,2             ; @DMA_MEM_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ; @DMA_RESIDUE_GRANULARITY_SEGMENT
l_.str.2:                               ; @.str.2
	.asciz	"dma-requests"

l_.str.3:                               ; @.str.3
	.asciz	"Using %u as missing dma-requests property\n"

	.comm	_MTK_CQDMA_NR_VCHANS,4,2        ; @MTK_CQDMA_NR_VCHANS
l_.str.4:                               ; @.str.4
	.asciz	"dma-channels"

l_.str.5:                               ; @.str.5
	.asciz	"Using %u as missing dma-channels property\n"

	.comm	_MTK_CQDMA_NR_PCHANS,4,2        ; @MTK_CQDMA_NR_PCHANS
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.6:                               ; @.str.6
	.asciz	"No mem resource for %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
l_.str.7:                               ; @.str.7
	.asciz	"No irq resource for %s\n"

	.comm	_mtk_cqdma_irq,4,2              ; @mtk_cqdma_irq
l_.str.8:                               ; @.str.8
	.asciz	"request_irq failed with err %d\n"

	.comm	_mtk_cqdma_vdesc_free,4,2       ; @mtk_cqdma_vdesc_free
	.comm	_of_dma_xlate_by_chan_id,4,2    ; @of_dma_xlate_by_chan_id
l_.str.9:                               ; @.str.9
	.asciz	"MediaTek CQDMA OF registration failed %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"MediaTek CQDMA HW initialization failed %d\n"

	.comm	_mtk_cqdma_tasklet_cb,4,2       ; @mtk_cqdma_tasklet_cb
l_.str.11:                              ; @.str.11
	.asciz	"MediaTek CQDMA driver registered\n"

	.no_dead_strip	_mtk_cqdma_probe
.subsections_via_symbols
