	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moxart_dma_start_sg
_moxart_dma_start_sg:                   ## @moxart_dma_start_sg
	.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, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %r14
	movl	%esi, %r15d
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	4(%r14,%r15,8), %esi
	movl	8(%rax), %edx
	jmp	LBB0_4
LBB0_2:
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movl	8(%rax), %esi
	movl	4(%r14,%r15,8), %edx
LBB0_4:
	movq	%rbx, %rdi
	callq	_moxart_dma_set_params
LBB0_5:
	movl	(%r14,%r15,8), %esi
	movq	%rbx, %rdi
	callq	_moxart_set_transfer_params
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_moxart_start_dma               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEM_TO_DEV,8,3             ## @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.no_dead_strip	_moxart_dma_start_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moxart_dma_start_sg
_moxart_dma_start_sg:                   ; @moxart_dma_start_sg
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, #16]
	mov	w21, w1
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _DMA_MEM_TO_DEV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	add	x9, x20, x21, lsl #3
	ldr	w1, [x9, #4]
	ldr	w2, [x8, #8]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x10, _DMA_DEV_TO_MEM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x8, #8]
	add	x8, x20, x21, lsl #3
	ldr	w2, [x8, #4]
LBB0_4:
	mov	x0, x19
	bl	_moxart_dma_set_params
LBB0_5:
	lsl	x8, x21, #3
	ldr	w1, [x20, x8]
	mov	x0, x19
	bl	_moxart_set_transfer_params
	mov	x0, x19
	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	_moxart_start_dma
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEM_TO_DEV,8,3             ; @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.no_dead_strip	_moxart_dma_start_sg
.subsections_via_symbols
