	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stripe_chunk_check
_stripe_chunk_check:                    ## @stripe_chunk_check
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_RS
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_CHUNK
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ChunkLocked
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_S_CHUNK_LOCKED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_atomic_inc
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_ChunkError
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	addl	(%r12), %r15d
	movl	%r15d, %edi
	callq	_DevFailed
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_ChunkUptodate
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	incl	(%r14)
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_CHUNK_LOCKED,8,3             ## @S_CHUNK_LOCKED
	.no_dead_strip	_stripe_chunk_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stripe_chunk_check
_stripe_chunk_check:                    ; @stripe_chunk_check
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_RS
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CHUNK
	mov	x20, x0
	bl	_ChunkLocked
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _S_CHUNK_LOCKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S_CHUNK_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_inc
	mov	x20, #0
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_ChunkError
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	add	w0, w8, w21
	bl	_DevFailed
	cbz	x0, LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
	mov	x0, x20
	bl	_ChunkUptodate
	cbz	x0, LBB0_5
; %bb.7:
	mov	x20, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S_CHUNK_LOCKED,8,3             ; @S_CHUNK_LOCKED
	.no_dead_strip	_stripe_chunk_check
.subsections_via_symbols
