	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdc_dma_probe
_mdc_dma_probe:                         ## @mdc_dma_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	$40, %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), %rax
	movl	(%rax), %edx
	movl	$136, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 132(%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, 128(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	128(%r12), %edi
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 124(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	124(%r12), %edi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 120(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	120(%r12), %edi
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movl	88(%r12), %edi
	callq	_dma_cap_zero
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	88(%r12), %esi
	callq	_dma_cap_set
	movq	_DMA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	88(%r12), %esi
	callq	_dma_cap_set
	movq	_DMA_CYCLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	88(%r12), %esi
	callq	_dma_cap_set
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	88(%r12), %esi
	callq	_dma_cap_set
	movq	_MDC_GLOBAL_CONFIG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mdc_readl
	movq	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	%edx, (%r12)
	movq	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movl	$1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
	movl	%esi, 4(%r12)
	movq	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	$1, %edx
	movq	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %ecx
	shll	%cl, %edx
	leal	7(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$3, %eax
	movl	%eax, 8(%r12)
	movq	_MDC_TRANSFER_SIZE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	negl	%eax
	cltq
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, 112(%r12)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	movl	(%r14), %edi
	leaq	12(%r12), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_of_property_read_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:
	movq	%r14, 80(%r12)
	movq	_mdc_prep_slave_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	_mdc_prep_dma_cyclic@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movq	_mdc_prep_dma_memcpy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_mdc_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_mdc_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	_mdc_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_mdc_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_mdc_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_mdc_synchronize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_mdc_slave_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, 16(%r12)
	movq	_DMA_RESIDUE_GRANULARITY_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	cmpl	$0, 8(%r12)
	je	LBB0_15
## %bb.13:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 20(%r12)
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 24(%r12)
	addl	%ebx, %ebx
	cmpl	8(%r12), %ebx
	jbe	LBB0_14
LBB0_15:
	leaq	16(%r12), %r15
	movq	%r12, %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, (%r12)
	je	LBB0_20
## %bb.16:
	movl	$16, %r13d
	xorl	%esi, %esi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %r15
	movq	%r12, 8(%r15,%r13)
	movl	%esi, -16(%r15,%r13)
	movq	%r14, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_platform_get_irq
	movq	%rax, %rbx
	movq	%rax, -8(%r15,%r13)
	testq	%rax, %rax
	js	LBB0_5
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	(%r15,%r13), %rax
	addq	$-16, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_mdc_chan_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_mdc_desc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15,%r13)
	addq	%r13, %r15
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_vchan_init
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movl	(%r12), %eax
	addq	$32, %r13
	cmpq	%rax, %rsi
	jb	LBB0_17
LBB0_20:
	movq	%r14, %rdi
	callq	_dev_name
	xorl	%ebx, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_dmam_pool_create
	movl	%eax, 96(%r12)
	testl	%eax, %eax
	je	LBB0_28
## %bb.21:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_enabled
	testl	%eax, %eax
	je	LBB0_30
LBB0_22:
	movq	%r15, %rdi
	callq	_dma_async_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.23:
	movl	(%r14), %edi
	movq	_mdc_of_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_of_dma_controller_register
	testl	%eax, %eax
	je	LBB0_31
## %bb.24:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_dma_async_device_unregister
LBB0_25:
	movq	%r14, %rdi
	callq	_pm_runtime_enabled
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_img_mdc_runtime_suspend
LBB0_27:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_5
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_29:
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_30:
	movq	%r14, %rdi
	callq	_img_mdc_runtime_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_22
LBB0_31:
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.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	"img,cr-periph"

L_.str.1:                               ## @.str.1
	.asciz	"sys"

	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_DMA_PRIVATE,4,2                ## @DMA_PRIVATE
	.comm	_DMA_CYCLIC,4,2                 ## @DMA_CYCLIC
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_MDC_GLOBAL_CONFIG_A,4,2        ## @MDC_GLOBAL_CONFIG_A
	.comm	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT,4,2 ## @MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK,4,2 ## @MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK
	.comm	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT,4,2 ## @MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK,4,2 ## @MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK
	.comm	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT,4,2 ## @MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK,4,2 ## @MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK
	.comm	_MDC_TRANSFER_SIZE_MASK,8,3     ## @MDC_TRANSFER_SIZE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"dma-channels"

L_.str.3:                               ## @.str.3
	.asciz	"img,max-burst-multiplier"

	.comm	_mdc_prep_slave_sg,4,2          ## @mdc_prep_slave_sg
	.comm	_mdc_prep_dma_cyclic,4,2        ## @mdc_prep_dma_cyclic
	.comm	_mdc_prep_dma_memcpy,4,2        ## @mdc_prep_dma_memcpy
	.comm	_mdc_alloc_chan_resources,4,2   ## @mdc_alloc_chan_resources
	.comm	_mdc_free_chan_resources,4,2    ## @mdc_free_chan_resources
	.comm	_mdc_tx_status,4,2              ## @mdc_tx_status
	.comm	_mdc_issue_pending,4,2          ## @mdc_issue_pending
	.comm	_mdc_terminate_all,4,2          ## @mdc_terminate_all
	.comm	_mdc_synchronize,4,2            ## @mdc_synchronize
	.comm	_mdc_slave_config,4,2           ## @mdc_slave_config
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_RESIDUE_GRANULARITY_BURST,4,2 ## @DMA_RESIDUE_GRANULARITY_BURST
	.comm	_mdc_chan_irq,4,2               ## @mdc_chan_irq
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.comm	_mdc_desc_free,4,2              ## @mdc_desc_free
	.comm	_mdc_of_xlate,4,2               ## @mdc_of_xlate
L_.str.4:                               ## @.str.4
	.asciz	"MDC with %u channels and %u threads\n"

	.no_dead_strip	_mdc_dma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdc_dma_probe
_mdc_dma_probe:                         ; @mdc_dma_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #136
	bl	_devm_kzalloc
	cbz	x0, LBB0_25
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #132]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	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, #128]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #128]
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #124]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20, #124]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #120]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x20, #120]
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_8:
	ldr	w0, [x20, #88]
	bl	_dma_cap_zero
Lloh10:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x20, #88]
	bl	_dma_cap_set
Lloh13:
	adrp	x8, _DMA_PRIVATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_PRIVATE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x20, #88]
	bl	_dma_cap_set
Lloh16:
	adrp	x8, _DMA_CYCLIC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DMA_CYCLIC@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x20, #88]
	bl	_dma_cap_set
Lloh19:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w1, [x20, #88]
	bl	_dma_cap_set
Lloh22:
	adrp	x8, _MDC_GLOBAL_CONFIG_A@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MDC_GLOBAL_CONFIG_A@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mdc_readl
Lloh25:
	adrp	x8, _MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh28:
	adrp	x9, _MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w8, w8, w9
	str	w8, [x20]
Lloh31:
	adrp	x8, _MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh34:
	adrp	x9, _MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT@GOTPAGEOFF]
	and	w8, w8, w9
Lloh39:
	ldr	w9, [x10]
	asr	w9, w0, w9
Lloh40:
	adrp	x10, _MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	and	w9, w9, w10
	mov	w10, #1
	lsl	w8, w10, w8
	lsl	w9, w10, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w8, w9, [x20, #4]
Lloh43:
	adrp	x8, _MDC_TRANSFER_SIZE_MASK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MDC_TRANSFER_SIZE_MASK@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	neg	w9, w9
	add	x8, x8, w9, sxtw
	add	x8, x8, #1
	str	x8, [x20, #112]
	ldr	w0, [x19]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_of_property_read_u32
	ldr	w0, [x19]
	add	x2, x20, #12
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_u32
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.9:
Lloh50:
	adrp	x8, _mdc_prep_slave_sg@GOTPAGE
Lloh51:
	ldr	x8, [x8, _mdc_prep_slave_sg@GOTPAGEOFF]
	add	x25, x20, #16
	str	x19, [x20, #80]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _mdc_prep_dma_cyclic@GOTPAGE
Lloh54:
	ldr	x9, [x9, _mdc_prep_dma_cyclic@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #68]
Lloh56:
	adrp	x8, _mdc_prep_dma_memcpy@GOTPAGE
Lloh57:
	ldr	x8, [x8, _mdc_prep_dma_memcpy@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _mdc_alloc_chan_resources@GOTPAGE
Lloh60:
	ldr	x9, [x9, _mdc_alloc_chan_resources@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #60]
Lloh62:
	adrp	x8, _mdc_free_chan_resources@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mdc_free_chan_resources@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _mdc_tx_status@GOTPAGE
Lloh66:
	ldr	x9, [x9, _mdc_tx_status@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x10, _mdc_issue_pending@GOTPAGE
Lloh69:
	ldr	x10, [x10, _mdc_issue_pending@GOTPAGEOFF]
	stp	w9, w8, [x20, #52]
Lloh70:
	ldr	w8, [x10]
Lloh71:
	adrp	x9, _mdc_terminate_all@GOTPAGE
Lloh72:
	ldr	x9, [x9, _mdc_terminate_all@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
Lloh74:
	adrp	x8, _mdc_synchronize@GOTPAGE
Lloh75:
	ldr	x8, [x8, _mdc_synchronize@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
Lloh77:
	adrp	x9, _mdc_slave_config@GOTPAGE
Lloh78:
	ldr	x9, [x9, _mdc_slave_config@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
Lloh80:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh81:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh83:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh84:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w22
	str	w8, [x20, #16]
Lloh86:
	adrp	x8, _DMA_RESIDUE_GRANULARITY_BURST@GOTPAGE
Lloh87:
	ldr	x8, [x8, _DMA_RESIDUE_GRANULARITY_BURST@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_12
; %bb.10:
	mov	w22, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_BIT
	ldr	w8, [x20, #20]
	orr	w8, w8, w0
	str	w8, [x20, #20]
	mov	x0, x22
	bl	_BIT
	ldr	w8, [x20, #24]
	orr	w8, w8, w0
	str	w8, [x20, #24]
	lsl	w22, w22, #1
	ldr	w8, [x20, #8]
	cmp	w22, w8
	b.ls	LBB0_11
LBB0_12:
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	ldr	w8, [x20]
	cbz	w8, LBB0_17
; %bb.13:
	mov	x27, #0
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x20, #104]
	add	x24, x28, x27
	str	x20, [x24, #24]
	str	w23, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_platform_get_irq
	mov	x22, x0
	str	x0, [x24, #8]
	tbnz	x0, #63, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh89:
	adrp	x8, _mdc_chan_irq@GOTPAGE
Lloh90:
	ldr	x8, [x8, _mdc_chan_irq@GOTPAGEOFF]
Lloh91:
	ldr	w21, [x8]
Lloh92:
	adrp	x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh94:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x5, x24
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh95:
	adrp	x8, _mdc_desc_free@GOTPAGE
Lloh96:
	ldr	x8, [x8, _mdc_desc_free@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	add	x0, x28, x27
	str	w8, [x0, #16]!
	mov	x1, x25
	bl	_vchan_init
	add	x23, x23, #1
	ldr	w8, [x20]
	add	x27, x27, #32
	cmp	x23, x8
	b.lo	LBB0_14
LBB0_17:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x19
	mov	w2, #4
	mov	w3, #4
	mov	w4, #0
	bl	_dmam_pool_create
	str	w0, [x20, #96]
	cbz	w0, LBB0_25
; %bb.18:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_enabled
	cbz	w0, LBB0_28
LBB0_19:
	mov	x0, x25
	bl	_dma_async_device_register
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.20:
	ldr	w0, [x19]
Lloh98:
	adrp	x8, _mdc_of_xlate@GOTPAGE
Lloh99:
	ldr	x8, [x8, _mdc_of_xlate@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_of_dma_controller_register
	mov	x22, x0
	cbz	w0, LBB0_29
; %bb.21:
	mov	x0, x25
	bl	_dma_async_device_unregister
LBB0_22:
	mov	x0, x19
	bl	_pm_runtime_enabled
	cbnz	w0, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_img_mdc_runtime_suspend
LBB0_24:
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_26
LBB0_25:
Lloh101:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh102:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_26:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	mov	x22, x0
	b	LBB0_26
LBB0_28:
	mov	x0, x19
	bl	_img_mdc_runtime_resume
	mov	x22, x0
	cbnz	w0, LBB0_26
	b	LBB0_19
LBB0_29:
	ldp	w2, w3, [x20]
Lloh104:
	adrp	x1, l_.str.4@PAGE
Lloh105:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpAdd	Lloh104, Lloh105
	.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	"img,cr-periph"

l_.str.1:                               ; @.str.1
	.asciz	"sys"

	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_DMA_PRIVATE,4,2                ; @DMA_PRIVATE
	.comm	_DMA_CYCLIC,4,2                 ; @DMA_CYCLIC
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_MDC_GLOBAL_CONFIG_A,4,2        ; @MDC_GLOBAL_CONFIG_A
	.comm	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT,4,2 ; @MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK,4,2 ; @MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_MASK
	.comm	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT,4,2 ; @MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK,4,2 ; @MDC_GLOBAL_CONFIG_A_THREAD_ID_WIDTH_MASK
	.comm	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT,4,2 ; @MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_SHIFT
	.comm	_MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK,4,2 ; @MDC_GLOBAL_CONFIG_A_SYS_DAT_WIDTH_MASK
	.comm	_MDC_TRANSFER_SIZE_MASK,8,3     ; @MDC_TRANSFER_SIZE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"dma-channels"

l_.str.3:                               ; @.str.3
	.asciz	"img,max-burst-multiplier"

	.comm	_mdc_prep_slave_sg,4,2          ; @mdc_prep_slave_sg
	.comm	_mdc_prep_dma_cyclic,4,2        ; @mdc_prep_dma_cyclic
	.comm	_mdc_prep_dma_memcpy,4,2        ; @mdc_prep_dma_memcpy
	.comm	_mdc_alloc_chan_resources,4,2   ; @mdc_alloc_chan_resources
	.comm	_mdc_free_chan_resources,4,2    ; @mdc_free_chan_resources
	.comm	_mdc_tx_status,4,2              ; @mdc_tx_status
	.comm	_mdc_issue_pending,4,2          ; @mdc_issue_pending
	.comm	_mdc_terminate_all,4,2          ; @mdc_terminate_all
	.comm	_mdc_synchronize,4,2            ; @mdc_synchronize
	.comm	_mdc_slave_config,4,2           ; @mdc_slave_config
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_RESIDUE_GRANULARITY_BURST,4,2 ; @DMA_RESIDUE_GRANULARITY_BURST
	.comm	_mdc_chan_irq,4,2               ; @mdc_chan_irq
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.comm	_mdc_desc_free,4,2              ; @mdc_desc_free
	.comm	_mdc_of_xlate,4,2               ; @mdc_of_xlate
l_.str.4:                               ; @.str.4
	.asciz	"MDC with %u channels and %u threads\n"

	.no_dead_strip	_mdc_dma_probe
.subsections_via_symbols
