	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_write_iter
_hfi1_write_iter:                       ## @hfi1_write_iter
	.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
	movq	(%rdi), %rax
	movq	(%rax), %r15
	cmpq	$0, 24(%r15)
	je	LBB0_2
## %bb.1:
	movq	32(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movq	%rsi, %r14
	movq	(%rsi), %r12
	movq	%rsi, %rdi
	callq	_iter_is_iovec
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	testq	%r12, %r12
	je	LBB0_6
## %bb.7:
	movl	16(%r15), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r12, %rcx
	callq	_trace_hfi1_sdma_request
	leaq	8(%rbx), %rdi
	callq	_atomic_read
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.13:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movslq	%r13d, %rsi
	addq	8(%r14), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	leaq	-48(%rbp), %rcx
	callq	_hfi1_user_sdma_process_request
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax
	addl	%eax, %r13d
	incl	%ebx
	subq	%rax, %r12
	jne	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_hfi1_write_iter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_write_iter
_hfi1_write_iter:                       ; @hfi1_write_iter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldp	x8, x22, [x20, #24]
	cmp	x8, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x1
	ldr	x21, [x1]
	mov	x0, x1
	bl	_iter_is_iovec
	cbz	w0, LBB0_6
; %bb.3:
	cbz	x21, LBB0_6
; %bb.4:
	ldr	w0, [x20, #16]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x3, x21
	bl	_trace_hfi1_sdma_request
	add	x0, x22, #8
	bl	_atomic_read
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, 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
	add	sp, sp, #80
	ret
LBB0_9:
	mov	w22, #0
	mov	w23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x19, #8]
	add	x1, x8, w23, sxtw
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_hfi1_user_sdma_process_request
	cbnz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]
	add	w23, w23, w8
	add	w22, w22, #1
	subs	x21, x21, x8
	b.ne	LBB0_10
	b	LBB0_8
LBB0_12:
	mov	x22, x0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_hfi1_write_iter
.subsections_via_symbols
