	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_user_sdma_send_frag
_ipath_user_sdma_send_frag:             ## @ipath_user_sdma_send_frag
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	movslq	%edx, %r13
	leaq	(,%r13,2), %rdx
	addq	%r13, %rdx
	movl	(%rax,%rdx,8), %esi
	movl	8(%rax,%rdx,8), %ebx
	addl	16(%rax,%rdx,8), %ebx
	leal	3(%rsi), %edx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	sarl	$2, %edx
	movq	(%rdi), %rax
	movq	(%rax,%r8,8), %r12
	movl	%ebx, %esi
	callq	_ipath_sdma_make_desc0
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_ipath_sdma_make_first_desc0
LBB0_2:
	movl	(%r15), %ecx
	decl	%ecx
	cmpl	%r14d, %ecx
	jne	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_ipath_sdma_make_last_desc0
LBB0_4:
	movl	%eax, (%r12)
	movl	%ebx, %edi
	callq	_ipath_sdma_make_desc1
	movl	%eax, 4(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ipath_user_sdma_send_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_user_sdma_send_frag
_ipath_user_sdma_send_frag:             ; @ipath_user_sdma_send_frag
	.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	x20, x2
	mov	x21, x1
	ldr	x8, [x1, #8]
	mov	w9, #24
	smaddl	x8, w2, w9, x8
	ldr	w9, [x8, #16]
	ldr	w10, [x8, #8]
	add	w19, w10, w9
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #2
	ldr	x8, [x0]
	ldr	x22, [x8, x4, lsl #3]
	mov	x1, x19
	bl	_ipath_sdma_make_desc0
	cbnz	w20, LBB0_2
; %bb.1:
	bl	_ipath_sdma_make_first_desc0
LBB0_2:
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	bl	_ipath_sdma_make_last_desc0
LBB0_4:
	str	w0, [x22]
	mov	x0, x19
	bl	_ipath_sdma_make_desc1
	str	w0, [x22, #4]
	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
	.no_dead_strip	_ipath_user_sdma_send_frag
.subsections_via_symbols
