	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stripe_chunks_rw
_stripe_chunks_rw:                      ## @stripe_chunks_rw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_RS
	movq	%rax, %r14
	movq	_stripe_get_references@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_for_each_io_dev
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r14, %r12
	addq	$8, %r12
	movq	_stripe_chunk_rw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_for_each_io_dev
	movq	%r12, %rdi
	callq	_sc_active
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_atomic_read
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_atomic_set
LBB0_3:
	movq	_S_FLUSHS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_atomic_inc
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stripe_get_references,4,2      ## @stripe_get_references
	.comm	_stripe_chunk_rw,4,2            ## @stripe_chunk_rw
	.comm	_S_FLUSHS,8,3                   ## @S_FLUSHS
	.no_dead_strip	_stripe_chunks_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stripe_chunks_rw
_stripe_chunks_rw:                      ; @stripe_chunks_rw
	.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	x22, x0
	ldr	w0, [x0]
	bl	_RS
	mov	x20, x0
Lloh0:
	adrp	x8, _stripe_get_references@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stripe_get_references@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_for_each_io_dev
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.1:
	add	x21, x20, #8
Lloh3:
	adrp	x8, _stripe_chunk_rw@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stripe_chunk_rw@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_for_each_io_dev
	mov	x0, x21
	bl	_sc_active
	mov	x22, x0
	mov	x0, x21
	bl	_atomic_read
	cmp	w0, w22
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_set
LBB0_3:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _S_FLUSHS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_FLUSHS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_inc
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_stripe_get_references,4,2      ; @stripe_get_references
	.comm	_stripe_chunk_rw,4,2            ; @stripe_chunk_rw
	.comm	_S_FLUSHS,8,3                   ; @S_FLUSHS
	.no_dead_strip	_stripe_chunks_rw
.subsections_via_symbols
