	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_container_io_cache_write
_vc_container_io_cache_write:           ## @vc_container_io_cache_write
	.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	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
LBB0_4:
	xorl	%r14d, %r14d
	testq	%r12, %r12
	je	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r13
	movq	32(%rbx), %rdi
	addq	24(%rbx), %rdi
	subq	%rdi, %r13
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_vc_container_io_cache_flush
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r12, %r13
	cmovaeq	%r12, %r13
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	40(%rbx), %r13
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rbx), %rdi
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	%r13, %rdx
	callq	*(%rdi)
	addl	%eax, 48(%rbx)
	movq	56(%rbx), %rcx
	movq	8(%rcx), %rcx
	addq	%rax, (%rcx)
	addl	%eax, %r14d
	cmpq	%r13, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	subq	%r13, %r12
	jne	LBB0_5
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	%r13, %rdx
	callq	_memcpy
	addq	%r13, 32(%rbx)
	movl	$1, 8(%rbx)
	addl	%r13d, %r14d
	subq	%r13, %r12
	jne	LBB0_5
LBB0_13:
	movl	48(%rbx), %eax
	addl	32(%rbx), %eax
	movl	(%r15), %ecx
	addl	%r14d, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_vc_container_assert
	movq	32(%rbx), %rax
	cmpq	(%rbx), %rax
	jbe	LBB0_15
## %bb.14:
	movq	%rax, (%rbx)
	jmp	LBB0_15
LBB0_7:
	subl	%eax, %r14d
	jmp	LBB0_15
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_vc_container_io_cache_flush
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r14
	negl	%r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vc_container_io_cache_write
.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_write
_vc_container_io_cache_write:           ; @vc_container_io_cache_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
LBB0_2:
	mov	w20, #0
	cbz	x22, LBB0_11
; %bb.3:
	mov	w25, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #16]
	ldr	x10, [x19, #32]
	add	x0, x10, x9
	subs	x8, x8, x0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_vc_container_io_cache_flush
	cbz	x0, LBB0_4
	b	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x22
	csel	x24, x8, x22, lo
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #40]
	cmp	x24, x8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #56]
	ldr	x8, [x0]
	add	x1, x23, w20, sxtw #2
	mov	x2, x24
	blr	x8
	ldr	w8, [x19, #48]
	add	w8, w8, w0
	str	w8, [x19, #48]
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	add	x9, x9, x0
	str	x9, [x8]
	add	w20, w20, w0
	cmp	x0, x24
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	x22, x22, x24
	b.ne	LBB0_4
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x23, w20, sxtw #2
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x8, x8, x24
	str	x8, [x19, #32]
	str	w25, [x19, #8]
	add	w20, w20, w24
	subs	x22, x22, x24
	b.ne	LBB0_4
LBB0_11:
	ldr	w8, [x19, #48]
	ldr	w9, [x19, #32]
	add	w8, w8, w9
	ldr	w9, [x21]
	add	w9, w9, w20
	cmp	w8, w9
	cset	w0, eq
	bl	_vc_container_assert
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ls	LBB0_16
; %bb.12:
	str	x8, [x19]
	b	LBB0_16
LBB0_13:
	sub	w20, w20, w0
	b	LBB0_16
LBB0_14:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_vc_container_io_cache_flush
	cbz	x0, LBB0_2
; %bb.15:
	neg	w20, w0
LBB0_16:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vc_container_io_cache_write
.subsections_via_symbols
