	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idma64_desc_fill
_idma64_desc_fill:                      ## @idma64_desc_fill
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movl	8(%rsi), %edx
	movq	16(%rsi), %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %r13d
	leaq	(%r13,%r13,2), %rbx
	leaq	(%r15,%rbx,8), %rdi
	movq	16(%r15,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_idma64_hw_desc_fill
	movl	(%r15,%rbx,8), %eax
	movl	8(%r15,%rbx,8), %ecx
	addl	%eax, 4(%r12)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	$-2, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	leaq	(%r15,%rbx), %rdi
	movl	8(%r12), %edx
	movq	%r14, %rsi
	callq	_idma64_hw_desc_fill
	movl	(%r15,%rbx), %eax
	movl	8(%r15,%rbx), %ecx
	addl	%eax, 4(%r12)
	addq	$-24, %rbx
	decl	%r13d
	jne	LBB0_2
LBB0_3:
	movq	_IDMA64C_CTLL_INT_EN@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rsi)
	movq	_IDMA64C_CTLL_LLP_S_EN@GOTPCREL(%rip), %rax
	movq	_IDMA64C_CTLL_LLP_D_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rsi)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDMA64C_CTLL_INT_EN,4,2        ## @IDMA64C_CTLL_INT_EN
	.comm	_IDMA64C_CTLL_LLP_S_EN,4,2      ## @IDMA64C_CTLL_LLP_S_EN
	.comm	_IDMA64C_CTLL_LLP_D_EN,4,2      ## @IDMA64C_CTLL_LLP_D_EN
	.no_dead_strip	_idma64_desc_fill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idma64_desc_fill
_idma64_desc_fill:                      ; @idma64_desc_fill
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w24, [x1]
	ldr	x8, [x1, #16]
	sub	w23, w24, #1
	mov	w25, #24
	umaddl	x21, w23, w25, x8
	ldr	x22, [x21, #16]
	ldr	w2, [x1, #8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	_idma64_hw_desc_fill
	ldr	w3, [x21, #8]
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	cbz	w23, LBB0_3
; %bb.1:
	sub	w8, w24, #2
	umull	x24, w8, w25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	sub	w23, w23, #1
	add	x21, x8, x24
	ldr	w2, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_idma64_hw_desc_fill
	ldr	w3, [x21, #8]
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	sub	x24, x24, #24
	cbnz	w23, LBB0_2
LBB0_3:
Lloh0:
	adrp	x8, _IDMA64C_CTLL_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDMA64C_CTLL_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh3:
	adrp	x9, _IDMA64C_CTLL_LLP_S_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IDMA64C_CTLL_LLP_S_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IDMA64C_CTLL_LLP_D_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IDMA64C_CTLL_LLP_D_EN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDMA64C_CTLL_INT_EN,4,2        ; @IDMA64C_CTLL_INT_EN
	.comm	_IDMA64C_CTLL_LLP_S_EN,4,2      ; @IDMA64C_CTLL_LLP_S_EN
	.comm	_IDMA64C_CTLL_LLP_D_EN,4,2      ; @IDMA64C_CTLL_LLP_D_EN
	.no_dead_strip	_idma64_desc_fill
.subsections_via_symbols
