	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_container_io_cache_flush
_vc_container_io_cache_flush:           ## @vc_container_io_cache_flush
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_2
## %bb.1:
	movq	%rax, 8(%rbx)
	movq	%rax, %rdx
LBB0_2:
	cmpq	$0, 56(%rbx)
	je	LBB0_3
## %bb.4:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movq	16(%rbx), %rsi
	cmpq	%rsi, (%rax)
	je	LBB0_12
## %bb.7:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_async_io_wait_complete
	movq	16(%rbx), %rsi
LBB0_9:
	movq	64(%rbx), %rdi
	callq	*(%rdi)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	(%r15), %rax
LBB0_12:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rsi
	callq	_async_io_write
	movq	%rax, %r12
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_async_io_wait_complete
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	cmoveq	%r12, %rcx
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_5:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	movq	64(%rbx), %rdi
	movq	8(%rbx), %rdx
	movq	48(%rbx), %rsi
	callq	*8(%rdi)
	movq	%rax, %rcx
LBB0_15:
	movq	16(%rbx), %rax
	addq	%rcx, %rax
	movq	64(%rbx), %rdx
	movq	16(%rdx), %rdx
	movq	%rax, (%rdx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	subq	%rcx, %rax
LBB0_16:
	movq	$0, 56(%rbx)
	addq	16(%rbx), %rdx
	movq	%rdx, 16(%rbx)
	movq	24(%rbx), %rcx
	cmpq	32(%rbx), %rcx
	jne	LBB0_18
## %bb.17:
	movq	_MEM_CACHE_ALIGNMENT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rcx, %rdx
	addq	40(%rbx), %rdx
	movq	%rdx, 48(%rbx)
LBB0_18:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MEM_CACHE_ALIGNMENT,4,2        ## @MEM_CACHE_ALIGNMENT
	.no_dead_strip	_vc_container_io_cache_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_container_io_cache_flush
_vc_container_io_cache_flush:           ; @vc_container_io_cache_flush
	.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	x19, x1
	mov	x21, x0
	ldp	x9, x8, [x1]
	cmp	x9, x8
	b.ls	LBB0_2
; %bb.1:
	str	x9, [x19, #8]
	mov	x8, x9
LBB0_2:
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_11
; %bb.3:
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x8, [x21]
	ldr	x9, [x8]
	ldr	x1, [x19, #16]
	cmp	x9, x1
	b.eq	LBB0_9
; %bb.5:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x19
	mov	x2, x20
	bl	_async_io_wait_complete
	ldr	x1, [x19, #16]
LBB0_7:
	ldr	x0, [x19, #64]
	ldr	x8, [x0]
	blr	x8
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.8:
	ldr	x8, [x21]
LBB0_9:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x1, x19
	bl	_async_io_write
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	mov	x1, x19
	mov	x2, x20
	bl	_async_io_wait_complete
Lloh3:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x0, x22, xzr, eq
	b	LBB0_13
LBB0_11:
	mov	x0, #0
	b	LBB0_14
LBB0_12:
	ldr	x0, [x19, #64]
	ldr	x8, [x0, #8]
	ldr	x1, [x19, #48]
	ldr	x2, [x19, #8]
	blr	x8
LBB0_13:
	ldr	x8, [x19, #16]
	add	x8, x8, x0
	ldr	x9, [x19, #64]
	ldr	x9, [x9, #16]
	str	x8, [x9]
	ldp	x9, x8, [x19]
	sub	x0, x9, x0
LBB0_14:
	str	xzr, [x19, #56]
	ldp	x9, x10, [x19, #16]
	add	x8, x9, x8
	str	x8, [x19, #16]
	ldr	x9, [x19, #32]
	cmp	x10, x9
	b.ne	LBB0_16
; %bb.15:
Lloh6:
	adrp	x9, _MEM_CACHE_ALIGNMENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEM_CACHE_ALIGNMENT@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	ldr	x9, [x19, #40]
	add	x8, x8, x9
	str	x8, [x19, #48]
LBB0_16:
	stp	xzr, xzr, [x19]
LBB0_17:
	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_18:
	mov	x0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MEM_CACHE_ALIGNMENT,4,2        ; @MEM_CACHE_ALIGNMENT
	.no_dead_strip	_vc_container_io_cache_flush
.subsections_via_symbols
