	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hsdma_probe
_mtk_hsdma_probe:                       ## @mtk_hsdma_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$120, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r12
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 40(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	40(%r12), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 36(%r12)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 32(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	32(%r12), %edi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_8:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_24
## %bb.9:
	leaq	48(%r12), %r15
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	leaq	28(%r12), %rdi
	xorl	%esi, %esi
	callq	_refcount_set
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	116(%r12), %esi
	callq	_dma_cap_set
	movq	_MTK_HSDMA_ALIGN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r12)
	movq	_mtk_hsdma_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r12)
	movq	_mtk_hsdma_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r12)
	movq	_mtk_hsdma_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%r12)
	movq	_mtk_hsdma_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r12)
	movq	_mtk_hsdma_prep_dma_memcpy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r12)
	movq	_mtk_hsdma_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r12)
	movq	_MTK_HSDMA_DMA_BUSWIDTHS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%r12)
	movq	%rax, 72(%r12)
	movq	_DMA_MEM_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, 68(%r12)
	movq	_DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	%r14, 56(%r12)
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	_MTK_HSDMA_NR_VCHANS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_12:
	movq	_MTK_HSDMA_NR_MAX_PCHANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_21
## %bb.13:
	movl	(%r12), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	cmpl	$0, (%r12)
	movq	%r15, %rcx
	jle	LBB0_18
## %bb.15:
	movq	%rax, %rbx
	movq	_mtk_hsdma_vdesc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %rdi
	movl	%eax, 8(%rbx)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vchan_init
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$2, (%r12)
	jl	LBB0_18
## %bb.16:
	movl	$1, %ebx
	movl	$20, %r15d
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r13
	movq	_mtk_hsdma_vdesc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%r13), %rdi
	movl	%eax, (%r13,%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_vchan_init
	leaq	(%r15,%r13), %rdi
	addq	$-4, %rdi
	callq	_init_completion
	leaq	(%r15,%r13), %rdi
	addq	$-8, %rdi
	callq	_INIT_LIST_HEAD
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rbx
	movslq	(%r12), %rax
	addq	$12, %r15
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	movq	%rcx, %rdi
	movq	%rcx, %r15
	callq	_dma_async_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:
	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_25
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_27
LBB0_21:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_22:
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_25:
	movq	%r12, %rdi
	callq	_mtk_hsdma_hw_init
	movl	4(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_mtk_hsdma_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_28
## %bb.26:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %ebx
LBB0_27:
	movq	%r15, %rdi
	callq	_dma_async_device_unregister
	jmp	LBB0_23
LBB0_28:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No device match found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"hsdma"

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

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_MTK_HSDMA_ALIGN_SIZE,4,2       ## @MTK_HSDMA_ALIGN_SIZE
	.comm	_mtk_hsdma_alloc_chan_resources,4,2 ## @mtk_hsdma_alloc_chan_resources
	.comm	_mtk_hsdma_free_chan_resources,4,2 ## @mtk_hsdma_free_chan_resources
	.comm	_mtk_hsdma_tx_status,4,2        ## @mtk_hsdma_tx_status
	.comm	_mtk_hsdma_issue_pending,4,2    ## @mtk_hsdma_issue_pending
	.comm	_mtk_hsdma_prep_dma_memcpy,4,2  ## @mtk_hsdma_prep_dma_memcpy
	.comm	_mtk_hsdma_terminate_all,4,2    ## @mtk_hsdma_terminate_all
	.comm	_MTK_HSDMA_DMA_BUSWIDTHS,8,3    ## @MTK_HSDMA_DMA_BUSWIDTHS
	.comm	_DMA_MEM_TO_MEM,4,2             ## @DMA_MEM_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ## @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_MTK_HSDMA_NR_VCHANS,4,2        ## @MTK_HSDMA_NR_VCHANS
L_.str.4:                               ## @.str.4
	.asciz	"dma-requests"

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

	.comm	_MTK_HSDMA_NR_MAX_PCHANS,4,2    ## @MTK_HSDMA_NR_MAX_PCHANS
	.comm	_mtk_hsdma_vdesc_free,4,2       ## @mtk_hsdma_vdesc_free
	.comm	_of_dma_xlate_by_chan_id,4,2    ## @of_dma_xlate_by_chan_id
L_.str.6:                               ## @.str.6
	.asciz	"MediaTek HSDMA OF registration failed %d\n"

	.comm	_mtk_hsdma_irq,4,2              ## @mtk_hsdma_irq
L_.str.7:                               ## @.str.7
	.asciz	"request_irq failed with err %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"MediaTek HSDMA driver registered\n"

	.no_dead_strip	_mtk_hsdma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hsdma_probe
_mtk_hsdma_probe:                       ; @mtk_hsdma_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #120
	bl	_devm_kzalloc
	cbz	x0, LBB0_21
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #40]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_4:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #36]
	cbz	w0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #32]
	b	LBB0_3
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_22
LBB0_8:
Lloh13:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_24
; %bb.9:
	add	x21, x20, #48
	ldr	w8, [x0]
	str	w8, [x20, #4]
	add	x0, x20, #28
	mov	w1, #0
	bl	_refcount_set
	add	x0, x20, #24
	bl	_spin_lock_init
Lloh16:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x20, #116]
	bl	_dma_cap_set
Lloh19:
	adrp	x8, _MTK_HSDMA_ALIGN_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MTK_HSDMA_ALIGN_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #112]
Lloh22:
	adrp	x8, _mtk_hsdma_alloc_chan_resources@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mtk_hsdma_alloc_chan_resources@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _mtk_hsdma_free_chan_resources@GOTPAGE
Lloh26:
	ldr	x9, [x9, _mtk_hsdma_free_chan_resources@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #104]
Lloh28:
	adrp	x8, _mtk_hsdma_tx_status@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mtk_hsdma_tx_status@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _mtk_hsdma_issue_pending@GOTPAGE
Lloh32:
	ldr	x9, [x9, _mtk_hsdma_issue_pending@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #96]
Lloh34:
	adrp	x8, _mtk_hsdma_prep_dma_memcpy@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mtk_hsdma_prep_dma_memcpy@GOTPAGEOFF]
Lloh36:
	adrp	x9, _mtk_hsdma_terminate_all@GOTPAGE
Lloh37:
	ldr	x9, [x9, _mtk_hsdma_terminate_all@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #88]
Lloh40:
	adrp	x8, _MTK_HSDMA_DMA_BUSWIDTHS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MTK_HSDMA_DMA_BUSWIDTHS@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #72]
Lloh43:
	adrp	x8, _DMA_MEM_TO_MEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DMA_MEM_TO_MEM@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_BIT
Lloh46:
	adrp	x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #64]
	str	x19, [x20, #56]
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh49:
	adrp	x23, _MTK_HSDMA_NR_VCHANS@GOTPAGE
Lloh50:
	ldr	x23, [x23, _MTK_HSDMA_NR_VCHANS@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x20]
	ldr	x0, [x19]
	cbz	x0, LBB0_12
; %bb.10:
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_of_property_read_u32
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_12:
Lloh55:
	adrp	x8, _MTK_HSDMA_NR_MAX_PCHANS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MTK_HSDMA_NR_MAX_PCHANS@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_21
; %bb.13:
	ldr	w1, [x20]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #12
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_21
; %bb.14:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x22, x0
Lloh58:
	adrp	x24, _mtk_hsdma_vdesc_free@GOTPAGE
Lloh59:
	ldr	x24, [x24, _mtk_hsdma_vdesc_free@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x0, #8]!
	mov	x1, x21
	bl	_vchan_init
	add	x0, x22, #4
	bl	_init_completion
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.16:
	mov	w25, #1
	mov	w26, #20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w9, [x24]
	add	x22, x8, x26
	mov	x23, x22
	str	w9, [x23], #-8
	mov	x0, x22
	mov	x1, x21
	bl	_vchan_init
	sub	x0, x22, #4
	bl	_init_completion
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x25, x25, #1
	ldrsw	x8, [x20]
	add	x26, x26, #12
	cmp	x25, x8
	b.lt	LBB0_17
LBB0_18:
	mov	x0, x21
	bl	_dma_async_device_register
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.19:
	ldr	x0, [x19]
Lloh60:
	adrp	x8, _of_dma_xlate_by_chan_id@GOTPAGE
Lloh61:
	ldr	x8, [x8, _of_dma_xlate_by_chan_id@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_of_dma_controller_register
	cbz	w0, LBB0_25
; %bb.20:
	mov	x22, x0
	str	x22, [sp]
Lloh63:
	adrp	x1, l_.str.6@PAGE
Lloh64:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_27
LBB0_21:
Lloh65:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
	mov	x0, x19
	bl	_dev_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh69:
	adrp	x8, _EINVAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_25:
	mov	x0, x20
	bl	_mtk_hsdma_hw_init
	ldr	w22, [x20, #4]
Lloh71:
	adrp	x8, _mtk_hsdma_irq@GOTPAGE
Lloh72:
	ldr	x8, [x8, _mtk_hsdma_irq@GOTPAGEOFF]
Lloh73:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbz	w0, LBB0_28
; %bb.26:
	str	x22, [sp]
Lloh74:
	adrp	x1, l_.str.7@PAGE
Lloh75:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_27:
	mov	x0, x21
	bl	_dma_async_device_unregister
	b	LBB0_23
LBB0_28:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh76:
	adrp	x1, l_.str.8@PAGE
Lloh77:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh38
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No device match found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"hsdma"

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

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_MTK_HSDMA_ALIGN_SIZE,4,2       ; @MTK_HSDMA_ALIGN_SIZE
	.comm	_mtk_hsdma_alloc_chan_resources,4,2 ; @mtk_hsdma_alloc_chan_resources
	.comm	_mtk_hsdma_free_chan_resources,4,2 ; @mtk_hsdma_free_chan_resources
	.comm	_mtk_hsdma_tx_status,4,2        ; @mtk_hsdma_tx_status
	.comm	_mtk_hsdma_issue_pending,4,2    ; @mtk_hsdma_issue_pending
	.comm	_mtk_hsdma_prep_dma_memcpy,4,2  ; @mtk_hsdma_prep_dma_memcpy
	.comm	_mtk_hsdma_terminate_all,4,2    ; @mtk_hsdma_terminate_all
	.comm	_MTK_HSDMA_DMA_BUSWIDTHS,8,3    ; @MTK_HSDMA_DMA_BUSWIDTHS
	.comm	_DMA_MEM_TO_MEM,4,2             ; @DMA_MEM_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ; @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_MTK_HSDMA_NR_VCHANS,4,2        ; @MTK_HSDMA_NR_VCHANS
l_.str.4:                               ; @.str.4
	.asciz	"dma-requests"

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

	.comm	_MTK_HSDMA_NR_MAX_PCHANS,4,2    ; @MTK_HSDMA_NR_MAX_PCHANS
	.comm	_mtk_hsdma_vdesc_free,4,2       ; @mtk_hsdma_vdesc_free
	.comm	_of_dma_xlate_by_chan_id,4,2    ; @of_dma_xlate_by_chan_id
l_.str.6:                               ; @.str.6
	.asciz	"MediaTek HSDMA OF registration failed %d\n"

	.comm	_mtk_hsdma_irq,4,2              ; @mtk_hsdma_irq
l_.str.7:                               ; @.str.7
	.asciz	"request_irq failed with err %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"MediaTek HSDMA driver registered\n"

	.no_dead_strip	_mtk_hsdma_probe
.subsections_via_symbols
