	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc_dma_probe
_mpc_dma_probe:                         ## @mpc_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	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r12)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_irq_of_parse_and_map
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	cmpl	$0, (%r12)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_8:
	movl	-48(%rbp), %r15d
	leaq	-48(%rbp), %rdi
	callq	_resource_size
	movl	%eax, %ebx
	movq	_DRV_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_devm_request_mem_region
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_devm_ioremap
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_MPC_DMA_TCD_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 104(%r12)
	movq	8(%r12), %rdi
	movl	(%r13), %ecx
	movq	_mpc_dma_irq@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r15d, %r15d
LBB0_16:
	subl	(%rax), %r15d
	cmpl	$0, (%r12)
	je	LBB0_18
LBB0_17:
	movq	16(%r12), %rdi
	callq	_irq_dispose_mapping
LBB0_18:
	movq	8(%r12), %rdi
	callq	_irq_dispose_mapping
LBB0_19:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpl	$0, (%r12)
	je	LBB0_23
## %bb.21:
	movq	16(%r12), %rdi
	movl	(%r13), %ecx
	movq	_mpc_dma_irq@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_35
LBB0_23:
	leaq	96(%r12), %rdi
	callq	_spin_lock_init
	leaq	48(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 88(%r12)
	movq	_mpc_dma_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r12)
	movq	_mpc_dma_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r12)
	movq	_mpc_dma_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r12)
	movq	_mpc_dma_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	_mpc_dma_prep_memcpy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movq	_mpc_dma_prep_slave_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_mpc_dma_device_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_mpc_dma_device_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	callq	_INIT_LIST_HEAD
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	52(%r12), %esi
	callq	_dma_cap_set
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	52(%r12), %esi
	callq	_dma_cap_set
	cmpl	$0, (%r12)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_25
## %bb.24:
	movq	_MPC512x_DMACHAN_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_MPC8308_DMACHAN_MAX@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_29
## %bb.27:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %r13
	leaq	(%r15,%r13), %rbx
	movq	%r14, 8(%r13,%r15)
	movq	%rbx, %rdi
	callq	_dma_cookie_init
	leaq	(%r15,%r13), %rdi
	addq	$36, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$20, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	addq	$40, %r15
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_28
LBB0_29:
	movq	%r12, %rdi
	addq	$32, %rdi
	movq	_mpc_dma_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_tasklet_init
	movq	24(%r12), %rdi
	addq	$40, %rdi
	cmpl	$0, (%r12)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_31
## %bb.30:
	movq	_MPC_DMA_DMACR_ERCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$44, %rdi
	movq	_MPC_DMA_DMAGPOR_SNOOP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$24, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$16, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$8, %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	jmp	LBB0_32
LBB0_31:
	movq	_MPC_DMA_DMACR_EDCG@GOTPCREL(%rip), %rax
	movq	_MPC_DMA_DMACR_ERGA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MPC_DMA_DMACR_ERCA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$36, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$32, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$28, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$24, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$20, %rdi
	movl	$-1, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$16, %rdi
	movl	$-1, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$12, %rdi
	movl	$-1, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$8, %rdi
	movl	$-1, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_out_be32
	movq	24(%r12), %rdi
	xorl	%esi, %esi
LBB0_32:
	callq	_out_be32
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%rbx, %rdi
	callq	_dma_async_device_register
	testl	%eax, %eax
	je	LBB0_36
## %bb.33:
	movl	%eax, %r15d
	cmpl	$0, (%r12)
	je	LBB0_35
## %bb.34:
	movq	16(%r12), %rdi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_35:
	movq	8(%r12), %rdi
	movq	%r12, %rsi
	callq	_free_irq
	cmpl	$0, (%r12)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_36:
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.37:
	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_19
## %bb.38:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_19
	.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	"Error mapping IRQ!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"fsl,mpc8308-dma"

L_.str.2:                               ## @.str.2
	.asciz	"Error parsing memory region!\n"

	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.3:                               ## @.str.3
	.asciz	"Error requesting memory region!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.4:                               ## @.str.4
	.asciz	"Error mapping memory region!\n"

	.comm	_MPC_DMA_TCD_OFFSET,4,2         ## @MPC_DMA_TCD_OFFSET
	.comm	_mpc_dma_irq,4,2                ## @mpc_dma_irq
L_.str.5:                               ## @.str.5
	.asciz	"Error requesting IRQ!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Error requesting IRQ2!\n"

	.comm	_mpc_dma_alloc_chan_resources,4,2 ## @mpc_dma_alloc_chan_resources
	.comm	_mpc_dma_free_chan_resources,4,2 ## @mpc_dma_free_chan_resources
	.comm	_mpc_dma_issue_pending,4,2      ## @mpc_dma_issue_pending
	.comm	_mpc_dma_tx_status,4,2          ## @mpc_dma_tx_status
	.comm	_mpc_dma_prep_memcpy,4,2        ## @mpc_dma_prep_memcpy
	.comm	_mpc_dma_prep_slave_sg,4,2      ## @mpc_dma_prep_slave_sg
	.comm	_mpc_dma_device_config,4,2      ## @mpc_dma_device_config
	.comm	_mpc_dma_device_terminate_all,4,2 ## @mpc_dma_device_terminate_all
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_MPC8308_DMACHAN_MAX,4,2        ## @MPC8308_DMACHAN_MAX
	.comm	_MPC512x_DMACHAN_MAX,4,2        ## @MPC512x_DMACHAN_MAX
	.comm	_mpc_dma_tasklet,4,2            ## @mpc_dma_tasklet
	.comm	_MPC_DMA_DMACR_ERCA,4,2         ## @MPC_DMA_DMACR_ERCA
	.comm	_MPC_DMA_DMAGPOR_SNOOP_ENABLE,4,2 ## @MPC_DMA_DMAGPOR_SNOOP_ENABLE
	.comm	_MPC_DMA_DMACR_EDCG,4,2         ## @MPC_DMA_DMACR_EDCG
	.comm	_MPC_DMA_DMACR_ERGA,4,2         ## @MPC_DMA_DMACR_ERGA
	.comm	_of_dma_xlate_by_chan_id,4,2    ## @of_dma_xlate_by_chan_id
L_.str.7:                               ## @.str.7
	.asciz	"Could not register for OF lookup\n"

	.no_dead_strip	_mpc_dma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc_dma_probe
_mpc_dma_probe:                         ; @mpc_dma_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	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	mov	w1, #1
	bl	_irq_of_parse_and_map
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
LBB0_4:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	w0, LBB0_9
; %bb.5:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19]
	cbnz	w8, LBB0_17
	b	LBB0_18
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_9:
	ldr	w21, [sp, #8]
	add	x0, sp, #8
	bl	_resource_size
	mov	x22, x0
Lloh13:
	adrp	x23, _DRV_NAME@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DRV_NAME@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_devm_request_mem_region
	cbz	w0, LBB0_14
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_devm_ioremap
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.11:
Lloh15:
	adrp	x8, _MPC_DMA_TCD_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MPC_DMA_TCD_OFFSET@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	add	x8, x0, x8, lsl #2
	str	x8, [x19, #104]
	ldr	x0, [x19, #8]
	ldr	w3, [x23]
Lloh18:
	adrp	x1, _mpc_dma_irq@GOTPAGE
Lloh19:
	ldr	x1, [x1, _mpc_dma_irq@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_20
; %bb.12:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_14:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh31:
	adrp	x8, _EBUSY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w8, [x19]
	cbz	w8, LBB0_18
LBB0_17:
	ldr	x0, [x19, #16]
	bl	_irq_dispose_mapping
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_irq_dispose_mapping
LBB0_19:
	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_20:
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.21:
	ldr	x0, [x19, #16]
	ldr	w3, [x23]
Lloh37:
	adrp	x1, _mpc_dma_irq@GOTPAGE
Lloh38:
	ldr	x1, [x1, _mpc_dma_irq@GOTPAGEOFF]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_23
; %bb.22:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_32
LBB0_23:
	add	x0, x19, #96
	bl	_spin_lock_init
	add	x21, x19, #48
	str	x20, [x19, #88]
Lloh44:
	adrp	x8, _mpc_dma_alloc_chan_resources@GOTPAGE
Lloh45:
	ldr	x8, [x8, _mpc_dma_alloc_chan_resources@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _mpc_dma_free_chan_resources@GOTPAGE
Lloh48:
	ldr	x9, [x9, _mpc_dma_free_chan_resources@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #80]
Lloh50:
	adrp	x8, _mpc_dma_issue_pending@GOTPAGE
Lloh51:
	ldr	x8, [x8, _mpc_dma_issue_pending@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _mpc_dma_tx_status@GOTPAGE
Lloh54:
	ldr	x9, [x9, _mpc_dma_tx_status@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
Lloh56:
	adrp	x8, _mpc_dma_prep_memcpy@GOTPAGE
Lloh57:
	ldr	x8, [x8, _mpc_dma_prep_memcpy@GOTPAGEOFF]
Lloh58:
	adrp	x9, _mpc_dma_prep_slave_sg@GOTPAGE
Lloh59:
	ldr	x9, [x9, _mpc_dma_prep_slave_sg@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
Lloh61:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh62:
	adrp	x8, _mpc_dma_device_config@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mpc_dma_device_config@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _mpc_dma_device_terminate_all@GOTPAGE
Lloh66:
	ldr	x9, [x9, _mpc_dma_device_terminate_all@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	mov	x0, x21
	bl	_INIT_LIST_HEAD
Lloh68:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	ldr	w1, [x19, #52]
	bl	_dma_cap_set
Lloh71:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh72:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	ldr	w1, [x19, #52]
	bl	_dma_cap_set
	ldr	w8, [x19]
Lloh74:
	adrp	x9, _MPC512x_DMACHAN_MAX@GOTPAGE
Lloh75:
	ldr	x9, [x9, _MPC512x_DMACHAN_MAX@GOTPAGEOFF]
Lloh76:
	adrp	x10, _MPC8308_DMACHAN_MAX@GOTPAGE
Lloh77:
	ldr	x10, [x10, _MPC8308_DMACHAN_MAX@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.24:
	mov	x23, #0
	mov	w9, #40
	umull	x24, w8, w9
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x22, x8, x23
	str	x21, [x22, #8]
	mov	x0, x22
	bl	_dma_cookie_init
	add	x0, x22, #36
	bl	_INIT_LIST_HEAD
	add	x0, x22, #32
	bl	_INIT_LIST_HEAD
	add	x0, x22, #28
	bl	_INIT_LIST_HEAD
	add	x0, x22, #24
	bl	_INIT_LIST_HEAD
	add	x0, x22, #20
	bl	_INIT_LIST_HEAD
	add	x0, x22, #16
	bl	_spin_lock_init
	mov	x0, x22
	mov	x1, x21
	bl	_list_add_tail
	add	x23, x23, #40
	cmp	x24, x23
	b.ne	LBB0_25
LBB0_26:
	add	x0, x19, #32
Lloh78:
	adrp	x8, _mpc_dma_tasklet@GOTPAGE
Lloh79:
	ldr	x8, [x8, _mpc_dma_tasklet@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	ldr	w8, [x19]
	ldr	x9, [x19, #24]
	add	x0, x9, #40
	cbz	w8, LBB0_28
; %bb.27:
Lloh81:
	adrp	x8, _MPC_DMA_DMACR_ERCA@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MPC_DMA_DMACR_ERCA@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #44
Lloh84:
	adrp	x8, _MPC_DMA_DMAGPOR_SNOOP_ENABLE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MPC_DMA_DMAGPOR_SNOOP_ENABLE@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #24
	mov	w1, #0
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #16
	mov	w1, #65535
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	mov	w1, #65535
	b	LBB0_29
LBB0_28:
Lloh87:
	adrp	x8, _MPC_DMA_DMACR_EDCG@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MPC_DMA_DMACR_EDCG@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
Lloh90:
	adrp	x9, _MPC_DMA_DMACR_ERGA@GOTPAGE
Lloh91:
	ldr	x9, [x9, _MPC_DMA_DMACR_ERGA@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh93:
	adrp	x9, _MPC_DMA_DMACR_ERCA@GOTPAGE
Lloh94:
	ldr	x9, [x9, _MPC_DMA_DMACR_ERCA@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #36
	mov	w1, #0
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #32
	mov	w1, #0
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #28
	mov	w1, #0
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #24
	mov	w1, #0
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #20
	mov	w1, #-1
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #16
	mov	w1, #-1
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #12
	mov	w1, #-1
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	mov	w1, #-1
	bl	_out_be32
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	mov	w1, #0
	bl	_out_be32
	ldr	x0, [x19, #24]
	mov	w1, #0
LBB0_29:
	bl	_out_be32
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x21
	bl	_dma_async_device_register
	cbz	w0, LBB0_33
; %bb.30:
	mov	x21, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_32
; %bb.31:
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_free_irq
LBB0_32:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	ldr	w8, [x19]
	cbnz	w8, LBB0_17
	b	LBB0_18
LBB0_33:
	ldr	x0, [x20]
	cbz	x0, LBB0_36
; %bb.34:
Lloh96:
	adrp	x8, _of_dma_xlate_by_chan_id@GOTPAGE
Lloh97:
	ldr	x8, [x8, _of_dma_xlate_by_chan_id@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_of_dma_controller_register
	cbz	w0, LBB0_36
; %bb.35:
Lloh99:
	adrp	x1, l_.str.7@PAGE
Lloh100:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_36:
	mov	w21, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh60
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.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	"Error mapping IRQ!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"fsl,mpc8308-dma"

l_.str.2:                               ; @.str.2
	.asciz	"Error parsing memory region!\n"

	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.3:                               ; @.str.3
	.asciz	"Error requesting memory region!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.4:                               ; @.str.4
	.asciz	"Error mapping memory region!\n"

	.comm	_MPC_DMA_TCD_OFFSET,4,2         ; @MPC_DMA_TCD_OFFSET
	.comm	_mpc_dma_irq,4,2                ; @mpc_dma_irq
l_.str.5:                               ; @.str.5
	.asciz	"Error requesting IRQ!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Error requesting IRQ2!\n"

	.comm	_mpc_dma_alloc_chan_resources,4,2 ; @mpc_dma_alloc_chan_resources
	.comm	_mpc_dma_free_chan_resources,4,2 ; @mpc_dma_free_chan_resources
	.comm	_mpc_dma_issue_pending,4,2      ; @mpc_dma_issue_pending
	.comm	_mpc_dma_tx_status,4,2          ; @mpc_dma_tx_status
	.comm	_mpc_dma_prep_memcpy,4,2        ; @mpc_dma_prep_memcpy
	.comm	_mpc_dma_prep_slave_sg,4,2      ; @mpc_dma_prep_slave_sg
	.comm	_mpc_dma_device_config,4,2      ; @mpc_dma_device_config
	.comm	_mpc_dma_device_terminate_all,4,2 ; @mpc_dma_device_terminate_all
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_MPC8308_DMACHAN_MAX,4,2        ; @MPC8308_DMACHAN_MAX
	.comm	_MPC512x_DMACHAN_MAX,4,2        ; @MPC512x_DMACHAN_MAX
	.comm	_mpc_dma_tasklet,4,2            ; @mpc_dma_tasklet
	.comm	_MPC_DMA_DMACR_ERCA,4,2         ; @MPC_DMA_DMACR_ERCA
	.comm	_MPC_DMA_DMAGPOR_SNOOP_ENABLE,4,2 ; @MPC_DMA_DMAGPOR_SNOOP_ENABLE
	.comm	_MPC_DMA_DMACR_EDCG,4,2         ; @MPC_DMA_DMACR_EDCG
	.comm	_MPC_DMA_DMACR_ERGA,4,2         ; @MPC_DMA_DMACR_ERGA
	.comm	_of_dma_xlate_by_chan_id,4,2    ; @of_dma_xlate_by_chan_id
l_.str.7:                               ; @.str.7
	.asciz	"Could not register for OF lookup\n"

	.no_dead_strip	_mpc_dma_probe
.subsections_via_symbols
