	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_dma_set_uid
_sprd_dma_set_uid:                      ## @sprd_dma_set_uid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	addq	$16, %rdi
	callq	_to_sprd_dma_dev
	movq	%rax, %r14
	movq	(%r15), %rdi
	movq	_SPRD_DMA_SOFTWARE_UID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SPRD_DMA_GLB_REQ_UID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	_SPRD_DMA_GLB_REQ_UID
	addq	%rax, %rbx
	movq	8(%r15), %rdi
	incq	%rdi
	addq	(%r14), %rbx
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPRD_DMA_SOFTWARE_UID,8,3      ## @SPRD_DMA_SOFTWARE_UID
	.comm	_SPRD_DMA_GLB_REQ_UID_OFFSET,8,3 ## @SPRD_DMA_GLB_REQ_UID_OFFSET
	.no_dead_strip	_sprd_dma_set_uid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_dma_set_uid
_sprd_dma_set_uid:                      ; @sprd_dma_set_uid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #16
	bl	_to_sprd_dma_dev
	mov	x20, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _SPRD_DMA_SOFTWARE_UID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPRD_DMA_SOFTWARE_UID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x8, _SPRD_DMA_GLB_REQ_UID_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPRD_DMA_GLB_REQ_UID_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	bl	_SPRD_DMA_GLB_REQ_UID
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	ldr	x9, [x20]
	add	x10, x0, x21
	add	x1, x10, x9
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPRD_DMA_SOFTWARE_UID,8,3      ; @SPRD_DMA_SOFTWARE_UID
	.comm	_SPRD_DMA_GLB_REQ_UID_OFFSET,8,3 ; @SPRD_DMA_GLB_REQ_UID_OFFSET
	.no_dead_strip	_sprd_dma_set_uid
.subsections_via_symbols
