	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_req_dma_iter_next_transfer ## -- Begin function mv_cesa_req_dma_iter_next_transfer
	.p2align	4, 0x90
_mv_cesa_req_dma_iter_next_transfer:    ## @mv_cesa_req_dma_iter_next_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rsi), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movl	%edx, %eax
	movdqu	(%rsi), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqa	%xmm1, -48(%rbp)                ## 16-byte Spill
	movdqu	%xmm1, (%rsi)
	callq	_sg_dma_len
	movdqa	-48(%rbp), %xmm0                ## 16-byte Reload
	pextrq	$1, %xmm0, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rdi
	callq	_sg_is_last
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	$0, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_sg_next
	movq	%rax, 16(%rbx)
LBB0_4:
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	(%r14), %rax
	setne	%r15b
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_req_dma_iter_next_transfer ; -- Begin function mv_cesa_req_dma_iter_next_transfer
	.p2align	2
_mv_cesa_req_dma_iter_next_transfer:    ; @mv_cesa_req_dma_iter_next_transfer
	.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	x0, [x1, #16]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	w8, w2
	ldp	x9, x10, [x1]
	add	x9, x9, x8
	add	x21, x10, x8
	stp	x9, x21, [x1]
	bl	_sg_dma_len
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x20, #16]
	bl	_sg_is_last
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	str	xzr, [x20, #8]
	ldr	x0, [x20, #16]
	bl	_sg_next
	str	x0, [x20, #16]
LBB0_5:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, ne
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
