	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop_desc_init_zero_sum
_iop_desc_init_zero_sum:                ## @iop_desc_init_zero_sum
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movslq	4(%rdi), %rcx
	subl	%ecx, %eax
	js	LBB0_1
## %bb.2:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movl	%ecx, %ebx
	negl	%ebx
	movl	%ecx, %edx
	shll	$5, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %r14
	incl	%r15d
	addl	%ecx, %ebx
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	%ecx, %eax
	js	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_iop_hw_desc_slot_idx
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_iop3xx_desc_init_xor
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	andq	%rcx, %rax
	orq	$1, %rax
	movq	%rax, 8(%r12)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_iop_hw_desc_slot_idx
	movslq	%r13d, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	8(%rdx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_PREP_INTERRUPT,8,3         ## @DMA_PREP_INTERRUPT
	.no_dead_strip	_iop_desc_init_zero_sum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iop_desc_init_zero_sum
_iop_desc_init_zero_sum:                ; @iop_desc_init_zero_sum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldp	w26, w27, [x0]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	cmp	w26, w27
	b.mi	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	w28, #0
	mov	x23, #0
	mov	w22, #0
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x24, [x0, #16]
	neg	w21, w27
	lsl	w19, w27, #5
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, x27
	add	w22, w22, #1
	add	w28, w28, w19
	sub	w26, w26, w27
	cmn	w21, w26
	b.mi	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_iop_hw_desc_slot_idx
	mov	x25, x0
	mov	x1, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_iop3xx_desc_init_xor
	and	x8, x0, #0xffffffff00000000
	orr	x8, x8, #0x1
	str	x8, [x25, #8]
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w1, w21, w23
	mov	x0, x24
	bl	_iop_hw_desc_slot_idx
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x8, x8, w28, sxtw
	str	x8, [x0]
	b	LBB0_2
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PREP_INTERRUPT,8,3         ; @DMA_PREP_INTERRUPT
	.no_dead_strip	_iop_desc_init_zero_sum
.subsections_via_symbols
