	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_mdmac_probe
_uniphier_mdmac_probe:                  ## @uniphier_mdmac_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, %r13
	callq	_platform_irq_count
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movq	_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 80(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	80(%r14), %edi
	jmp	LBB0_7
LBB0_1:
	movl	%r15d, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	(%r14), %edi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movl	(%r14), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movq	%r13, 72(%r14)
	movq	_DMA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	64(%r14), %esi
	callq	_dma_cap_set
	movq	_UNIPHIER_MDMAC_SLAVE_BUSWIDTHS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r14)
	movq	%rax, 48(%r14)
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, 8(%r14)
	movq	_DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_uniphier_mdmac_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_uniphier_mdmac_prep_slave_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_uniphier_mdmac_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_uniphier_mdmac_synchronize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_uniphier_mdmac_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_uniphier_mdmac_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 16(%r14)
	leaq	12(%r12), %rdi
	callq	_INIT_LIST_HEAD
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.12:
	xorl	%r14d, %r14d
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_uniphier_mdmac_chan_init
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_14
LBB0_16:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_dma_async_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_20
## %bb.17:
	movl	(%r13), %edi
	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_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_dma_async_device_unregister
	jmp	LBB0_20
LBB0_15:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_20:
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_21
LBB0_18:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_channels,4,2                   ## @channels
	.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	"failed to get clock\n"

	.comm	_DMA_PRIVATE,4,2                ## @DMA_PRIVATE
	.comm	_UNIPHIER_MDMAC_SLAVE_BUSWIDTHS,8,3 ## @UNIPHIER_MDMAC_SLAVE_BUSWIDTHS
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ## @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_uniphier_mdmac_free_chan_resources,4,2 ## @uniphier_mdmac_free_chan_resources
	.comm	_uniphier_mdmac_prep_slave_sg,4,2 ## @uniphier_mdmac_prep_slave_sg
	.comm	_uniphier_mdmac_terminate_all,4,2 ## @uniphier_mdmac_terminate_all
	.comm	_uniphier_mdmac_synchronize,4,2 ## @uniphier_mdmac_synchronize
	.comm	_uniphier_mdmac_tx_status,4,2   ## @uniphier_mdmac_tx_status
	.comm	_uniphier_mdmac_issue_pending,4,2 ## @uniphier_mdmac_issue_pending
	.comm	_of_dma_xlate_by_chan_id,4,2    ## @of_dma_xlate_by_chan_id
	.no_dead_strip	_uniphier_mdmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_mdmac_probe
_uniphier_mdmac_probe:                  ; @uniphier_mdmac_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_platform_irq_count
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _channels@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_struct_size
	mov	x1, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh8:
	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, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20, #80]
	b	LBB0_10
LBB0_5:
	mov	x23, x21
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_8:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_11:
	ldr	w0, [x20]
	bl	_clk_prepare_enable
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.12:
	str	x19, [x20, #72]
Lloh14:
	adrp	x8, _DMA_PRIVATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_PRIVATE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20, #64]
	bl	_dma_cap_set
Lloh17:
	adrp	x8, _UNIPHIER_MDMAC_SLAVE_BUSWIDTHS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UNIPHIER_MDMAC_SLAVE_BUSWIDTHS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #48]
Lloh20:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh23:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w22
	mov	x22, x20
	str	w8, [x22, #8]!
Lloh26:
	adrp	x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _uniphier_mdmac_free_chan_resources@GOTPAGE
Lloh30:
	ldr	x9, [x9, _uniphier_mdmac_free_chan_resources@GOTPAGEOFF]
	str	w8, [x22, #32]
Lloh31:
	ldr	w8, [x9]
Lloh32:
	adrp	x9, _uniphier_mdmac_prep_slave_sg@GOTPAGE
Lloh33:
	ldr	x9, [x9, _uniphier_mdmac_prep_slave_sg@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
Lloh35:
	adrp	x8, _uniphier_mdmac_terminate_all@GOTPAGE
Lloh36:
	ldr	x8, [x8, _uniphier_mdmac_terminate_all@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _uniphier_mdmac_synchronize@GOTPAGE
Lloh39:
	ldr	x9, [x9, _uniphier_mdmac_synchronize@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #16]
Lloh41:
	adrp	x8, _uniphier_mdmac_tx_status@GOTPAGE
Lloh42:
	ldr	x8, [x8, _uniphier_mdmac_tx_status@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _uniphier_mdmac_issue_pending@GOTPAGE
Lloh45:
	ldr	x9, [x9, _uniphier_mdmac_issue_pending@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #8]
	add	x0, x22, #4
	bl	_INIT_LIST_HEAD
	cbz	w21, LBB0_16
; %bb.13:
	mov	w24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_uniphier_mdmac_chan_init
	cbnz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w24, w24, #1
	cmp	w21, w24
	b.ne	LBB0_14
LBB0_16:
	mov	x0, x22
	bl	_dma_async_device_register
	mov	x23, x0
	cbnz	w0, LBB0_20
; %bb.17:
	ldr	w0, [x19]
Lloh47:
	adrp	x8, _of_dma_xlate_by_chan_id@GOTPAGE
Lloh48:
	ldr	x8, [x8, _of_dma_xlate_by_chan_id@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_of_dma_controller_register
	mov	x23, x0
	cbz	w0, LBB0_21
; %bb.18:
	mov	x0, x22
	bl	_dma_async_device_unregister
	b	LBB0_20
LBB0_19:
	mov	x23, x0
LBB0_20:
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_6
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_channels,4,2                   ; @channels
	.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	"failed to get clock\n"

	.comm	_DMA_PRIVATE,4,2                ; @DMA_PRIVATE
	.comm	_UNIPHIER_MDMAC_SLAVE_BUSWIDTHS,8,3 ; @UNIPHIER_MDMAC_SLAVE_BUSWIDTHS
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ; @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_uniphier_mdmac_free_chan_resources,4,2 ; @uniphier_mdmac_free_chan_resources
	.comm	_uniphier_mdmac_prep_slave_sg,4,2 ; @uniphier_mdmac_prep_slave_sg
	.comm	_uniphier_mdmac_terminate_all,4,2 ; @uniphier_mdmac_terminate_all
	.comm	_uniphier_mdmac_synchronize,4,2 ; @uniphier_mdmac_synchronize
	.comm	_uniphier_mdmac_tx_status,4,2   ; @uniphier_mdmac_tx_status
	.comm	_uniphier_mdmac_issue_pending,4,2 ; @uniphier_mdmac_issue_pending
	.comm	_of_dma_xlate_by_chan_id,4,2    ; @of_dma_xlate_by_chan_id
	.no_dead_strip	_uniphier_mdmac_probe
.subsections_via_symbols
