	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_mdmac_chan_init
_uniphier_mdmac_chan_init:              ## @uniphier_mdmac_chan_init
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rsi), %r13
	movl	%edx, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movslq	%r15d, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rsi
	addq	%r13, %rsi
	movq	_uniphier_mdmac_interrupt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movq	%rsi, %r12
	movl	%ebx, %esi
	movq	%rax, %r8
	movq	%r12, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, 16(%r13,%rdx,8)
	movq	_UNIPHIER_MDMAC_CH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%r14), %rax
	movq	_UNIPHIER_MDMAC_CH_STRIDE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rax, %rcx
	movq	%rcx, 8(%r13,%rdx,8)
	movl	%r15d, (%r12)
	movq	_uniphier_mdmac_desc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(,%rdx,8), %rdi
	addq	%r13, %rdi
	movl	%eax, 4(%r13,%rdx,8)
	movq	%r14, %rsi
	callq	_vchan_init
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uniphier-mio-dmac-ch%d"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_uniphier_mdmac_interrupt,4,2   ## @uniphier_mdmac_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_UNIPHIER_MDMAC_CH_OFFSET,8,3   ## @UNIPHIER_MDMAC_CH_OFFSET
	.comm	_UNIPHIER_MDMAC_CH_STRIDE,4,2   ## @UNIPHIER_MDMAC_CH_STRIDE
	.comm	_uniphier_mdmac_desc_free,4,2   ## @uniphier_mdmac_desc_free
	.no_dead_strip	_uniphier_mdmac_chan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_mdmac_chan_init
_uniphier_mdmac_chan_init:              ; @uniphier_mdmac_chan_init
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x24, [x1, #16]
	mov	x1, x2
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x20
	bl	_devm_kasprintf
	cbz	x0, LBB0_4
; %bb.2:
	mov	x4, x0
	mov	w8, #24
	smaddl	x23, w20, w8, x24
Lloh5:
	adrp	x8, _uniphier_mdmac_interrupt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _uniphier_mdmac_interrupt@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x5, x23
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	sxtw	x8, w20
	mov	w9, #24
Lloh11:
	adrp	x10, _UNIPHIER_MDMAC_CH_STRIDE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _UNIPHIER_MDMAC_CH_STRIDE@GOTPAGEOFF]
	madd	x0, x8, x9, x24
Lloh13:
	ldrsw	x8, [x10]
	str	w20, [x23]
Lloh14:
	adrp	x9, _uniphier_mdmac_desc_free@GOTPAGE
Lloh15:
	ldr	x9, [x9, _uniphier_mdmac_desc_free@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x0, #4]!
	stur	x19, [x0, #12]
	ldr	x9, [x19, #8]
Lloh17:
	adrp	x10, _UNIPHIER_MDMAC_CH_OFFSET@GOTPAGE
Lloh18:
	ldr	x10, [x10, _UNIPHIER_MDMAC_CH_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x9, x10, x9
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x10, w20
	madd	x8, x8, x10, x9
	stur	x8, [x0, #4]
	mov	x1, x19
	bl	_vchan_init
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uniphier-mio-dmac-ch%d"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_uniphier_mdmac_interrupt,4,2   ; @uniphier_mdmac_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_UNIPHIER_MDMAC_CH_OFFSET,8,3   ; @UNIPHIER_MDMAC_CH_OFFSET
	.comm	_UNIPHIER_MDMAC_CH_STRIDE,4,2   ; @UNIPHIER_MDMAC_CH_STRIDE
	.comm	_uniphier_mdmac_desc_free,4,2   ; @uniphier_mdmac_desc_free
	.no_dead_strip	_uniphier_mdmac_chan_init
.subsections_via_symbols
