	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advance_dma_data               ## -- Begin function advance_dma_data
	.p2align	4, 0x90
_advance_dma_data:                      ## @advance_dma_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %ecx
	movl	12(%rdi), %eax
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	(%rdi), %r10
	movq	24(%rdi), %r9
	leaq	(%r9,%r10,4), %r8
	movl	(%r9,%r10,4), %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %edx
	subl	%ecx, %edx
	cmpl	%edx, %esi
	cmovbl	%esi, %edx
	addl	%edx, %ecx
	subl	%edx, %eax
	subl	%edx, %esi
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r9d, %ecx
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movq	%r10, (%rdi)
	cmpq	16(%rdi), %r10
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r8), %r9d
	addq	$4, %r8
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_6:
	movl	%ecx, 8(%rdi)
	movl	%eax, 12(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advance_dma_data               ; -- Begin function advance_dma_data
	.p2align	2
_advance_dma_data:                      ; @advance_dma_data
	.cfi_startproc
; %bb.0:
	ldp	w10, w9, [x0, #8]
	cbz	w1, LBB0_6
; %bb.1:
	ldr	x11, [x0, #24]
	ldr	x8, [x0]
	add	x11, x11, x8, lsl #2
	ldr	w12, [x11]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w13, w12, w10
	cmp	w1, w13
	csel	w13, w1, w13, lo
	add	w10, w13, w10
	sub	w9, w9, w13
	subs	w1, w1, w13
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w12
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	str	x8, [x0]
	ldr	x10, [x0, #16]
	cmp	x8, x10
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #0
	ldr	w12, [x11, #4]!
	b	LBB0_2
LBB0_6:
	stp	w10, w9, [x0, #8]
	mov	w0, #0
	ret
LBB0_7:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
