	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10dmac_transfer
_a10dmac_transfer:                      ## @a10dmac_transfer
	.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	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_a10dmac_read_ctl
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	_CH_NDMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_AWIN_NDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	_AWIN_NDMA_SRC_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_NDMA_DEST_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_NDMA_BC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_NDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_AWIN_DDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_5:
	movq	_AWIN_DDMA_SRC_START_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_DDMA_DEST_START_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_DDMA_BC_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_DMACH_WRITE
	movq	_AWIN_DDMA_CTL_DMA_LOADING@GOTPCREL(%rip), %rax
LBB0_6:
	orl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_a10dmac_write_ctl
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CH_NDMA,8,3                    ## @CH_NDMA
	.comm	_AWIN_NDMA_CTL_DMA_LOADING,4,2  ## @AWIN_NDMA_CTL_DMA_LOADING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AWIN_NDMA_SRC_ADDR_REG,4,2     ## @AWIN_NDMA_SRC_ADDR_REG
	.comm	_AWIN_NDMA_DEST_ADDR_REG,4,2    ## @AWIN_NDMA_DEST_ADDR_REG
	.comm	_AWIN_NDMA_BC_REG,4,2           ## @AWIN_NDMA_BC_REG
	.comm	_AWIN_DDMA_CTL_DMA_LOADING,4,2  ## @AWIN_DDMA_CTL_DMA_LOADING
	.comm	_AWIN_DDMA_SRC_START_ADDR_REG,4,2 ## @AWIN_DDMA_SRC_START_ADDR_REG
	.comm	_AWIN_DDMA_DEST_START_ADDR_REG,4,2 ## @AWIN_DDMA_DEST_START_ADDR_REG
	.comm	_AWIN_DDMA_BC_REG,4,2           ## @AWIN_DDMA_BC_REG
	.no_dead_strip	_a10dmac_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10dmac_transfer
_a10dmac_transfer:                      ; @a10dmac_transfer
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x0, x1
	bl	_a10dmac_read_ctl
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CH_NDMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CH_NDMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x24, _AWIN_NDMA_CTL_DMA_LOADING@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AWIN_NDMA_CTL_DMA_LOADING@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _AWIN_NDMA_SRC_ADDR_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AWIN_NDMA_SRC_ADDR_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_DMACH_WRITE
Lloh8:
	adrp	x8, _AWIN_NDMA_DEST_ADDR_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AWIN_NDMA_DEST_ADDR_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_DMACH_WRITE
Lloh11:
	adrp	x8, _AWIN_NDMA_BC_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AWIN_NDMA_BC_REG@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x24, _AWIN_DDMA_CTL_DMA_LOADING@GOTPAGE
Lloh14:
	ldr	x24, [x24, _AWIN_DDMA_CTL_DMA_LOADING@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x8, _AWIN_DDMA_SRC_START_ADDR_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AWIN_DDMA_SRC_START_ADDR_REG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_DMACH_WRITE
Lloh21:
	adrp	x8, _AWIN_DDMA_DEST_START_ADDR_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AWIN_DDMA_DEST_START_ADDR_REG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_DMACH_WRITE
Lloh24:
	adrp	x8, _AWIN_DDMA_BC_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AWIN_DDMA_BC_REG@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_DMACH_WRITE
	ldr	w8, [x24]
	orr	w1, w8, w21
	mov	x0, x19
	bl	_a10dmac_write_ctl
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CH_NDMA,8,3                    ; @CH_NDMA
	.comm	_AWIN_NDMA_CTL_DMA_LOADING,4,2  ; @AWIN_NDMA_CTL_DMA_LOADING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AWIN_NDMA_SRC_ADDR_REG,4,2     ; @AWIN_NDMA_SRC_ADDR_REG
	.comm	_AWIN_NDMA_DEST_ADDR_REG,4,2    ; @AWIN_NDMA_DEST_ADDR_REG
	.comm	_AWIN_NDMA_BC_REG,4,2           ; @AWIN_NDMA_BC_REG
	.comm	_AWIN_DDMA_CTL_DMA_LOADING,4,2  ; @AWIN_DDMA_CTL_DMA_LOADING
	.comm	_AWIN_DDMA_SRC_START_ADDR_REG,4,2 ; @AWIN_DDMA_SRC_START_ADDR_REG
	.comm	_AWIN_DDMA_DEST_START_ADDR_REG,4,2 ; @AWIN_DDMA_DEST_START_ADDR_REG
	.comm	_AWIN_DDMA_BC_REG,4,2           ; @AWIN_DDMA_BC_REG
	.no_dead_strip	_a10dmac_transfer
.subsections_via_symbols
