	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_mdmac_handle
_uniphier_mdmac_handle:                 ## @uniphier_mdmac_handle
	.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
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_UNIPHIER_MDMAC_CH_IRQ__DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	shlq	$2, %rbx
	addq	16(%rsi), %rbx
	movq	8(%rsi), %rax
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_sg_dma_address
	movq	%rax, %r13
	movq	_UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	_UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_sg_dma_address
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_3:
	movq	%rbx, %rdi
	callq	_sg_dma_len
	movq	%rax, %rbx
	movq	_UNIPHIER_MDMAC_CH_SRC_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_DEST_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_SRC_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r13, %rdi
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_DEST_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_IRQ_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_writel
	movq	_UNIPHIER_MDMAC_CH_IRQ_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movl	(%r12), %edi
	callq	_BIT
	movq	_UNIPHIER_MDMAC_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rsi
	movq	%rax, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_MDMAC_CH_IRQ__DONE,8,3 ## @UNIPHIER_MDMAC_CH_IRQ__DONE
	.comm	_DMA_MEM_TO_DEV,8,3             ## @DMA_MEM_TO_DEV
	.comm	_UNIPHIER_MDMAC_CH_MODE__ADDR_INC,8,3 ## @UNIPHIER_MDMAC_CH_MODE__ADDR_INC
	.comm	_UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED,8,3 ## @UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED
	.comm	_UNIPHIER_MDMAC_CH_SRC_MODE,8,3 ## @UNIPHIER_MDMAC_CH_SRC_MODE
	.comm	_UNIPHIER_MDMAC_CH_DEST_MODE,8,3 ## @UNIPHIER_MDMAC_CH_DEST_MODE
	.comm	_UNIPHIER_MDMAC_CH_SRC_ADDR,8,3 ## @UNIPHIER_MDMAC_CH_SRC_ADDR
	.comm	_UNIPHIER_MDMAC_CH_DEST_ADDR,8,3 ## @UNIPHIER_MDMAC_CH_DEST_ADDR
	.comm	_UNIPHIER_MDMAC_CH_SIZE,8,3     ## @UNIPHIER_MDMAC_CH_SIZE
	.comm	_UNIPHIER_MDMAC_CH_IRQ_REQ,8,3  ## @UNIPHIER_MDMAC_CH_IRQ_REQ
	.comm	_UNIPHIER_MDMAC_CH_IRQ_EN,8,3   ## @UNIPHIER_MDMAC_CH_IRQ_EN
	.comm	_UNIPHIER_MDMAC_CMD,8,3         ## @UNIPHIER_MDMAC_CMD
	.no_dead_strip	_uniphier_mdmac_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_mdmac_handle
_uniphier_mdmac_handle:                 ; @uniphier_mdmac_handle
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x26, [x0, #16]
Lloh0:
	adrp	x8, _UNIPHIER_MDMAC_CH_IRQ__DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIPHIER_MDMAC_CH_IRQ__DONE@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldp	x10, x8, [x1, #8]
	ldr	x9, [x1]
	add	x22, x8, x9, lsl #2
Lloh3:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	mov	x0, x22
	bl	_sg_dma_address
	mov	x24, x0
	mov	x21, #0
Lloh9:
	adrp	x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
Lloh15:
	adrp	x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UNIPHIER_MDMAC_CH_MODE__ADDR_INC@GOTPAGEOFF]
Lloh17:
	ldr	x25, [x8]
	mov	x0, x22
	bl	_sg_dma_address
	mov	x21, x0
	mov	x24, #0
LBB0_3:
	mov	x0, x22
	bl	_sg_dma_len
	mov	x22, x0
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _UNIPHIER_MDMAC_CH_SRC_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_SRC_MODE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	ldr	x8, [x19, #8]
Lloh21:
	adrp	x9, _UNIPHIER_MDMAC_CH_DEST_MODE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_DEST_MODE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x25
	bl	_writel
	ldr	x8, [x19, #8]
Lloh24:
	adrp	x9, _UNIPHIER_MDMAC_CH_SRC_ADDR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_SRC_ADDR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x24
	bl	_writel
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _UNIPHIER_MDMAC_CH_DEST_ADDR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_DEST_ADDR@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19, #8]
Lloh30:
	adrp	x9, _UNIPHIER_MDMAC_CH_SIZE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_SIZE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x19, #8]
Lloh33:
	adrp	x9, _UNIPHIER_MDMAC_CH_IRQ_REQ@GOTPAGE
Lloh34:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_IRQ_REQ@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, _UNIPHIER_MDMAC_CH_IRQ_EN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CH_IRQ_EN@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19]
	bl	_BIT
	ldr	x8, [x26]
Lloh39:
	adrp	x9, _UNIPHIER_MDMAC_CMD@GOTPAGE
Lloh40:
	ldr	x9, [x9, _UNIPHIER_MDMAC_CMD@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_MDMAC_CH_IRQ__DONE,8,3 ; @UNIPHIER_MDMAC_CH_IRQ__DONE
	.comm	_DMA_MEM_TO_DEV,8,3             ; @DMA_MEM_TO_DEV
	.comm	_UNIPHIER_MDMAC_CH_MODE__ADDR_INC,8,3 ; @UNIPHIER_MDMAC_CH_MODE__ADDR_INC
	.comm	_UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED,8,3 ; @UNIPHIER_MDMAC_CH_MODE__ADDR_FIXED
	.comm	_UNIPHIER_MDMAC_CH_SRC_MODE,8,3 ; @UNIPHIER_MDMAC_CH_SRC_MODE
	.comm	_UNIPHIER_MDMAC_CH_DEST_MODE,8,3 ; @UNIPHIER_MDMAC_CH_DEST_MODE
	.comm	_UNIPHIER_MDMAC_CH_SRC_ADDR,8,3 ; @UNIPHIER_MDMAC_CH_SRC_ADDR
	.comm	_UNIPHIER_MDMAC_CH_DEST_ADDR,8,3 ; @UNIPHIER_MDMAC_CH_DEST_ADDR
	.comm	_UNIPHIER_MDMAC_CH_SIZE,8,3     ; @UNIPHIER_MDMAC_CH_SIZE
	.comm	_UNIPHIER_MDMAC_CH_IRQ_REQ,8,3  ; @UNIPHIER_MDMAC_CH_IRQ_REQ
	.comm	_UNIPHIER_MDMAC_CH_IRQ_EN,8,3   ; @UNIPHIER_MDMAC_CH_IRQ_EN
	.comm	_UNIPHIER_MDMAC_CMD,8,3         ; @UNIPHIER_MDMAC_CMD
	.no_dead_strip	_uniphier_mdmac_handle
.subsections_via_symbols
