	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_reduce_bytes
_test_reduce_bytes:                     ## @test_reduce_bytes
	.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
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_LOG_DEBUG
	movq	_bits_0_to_10@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	callq	_countof
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_BITS_INIT
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %r12
	movq	(%r13), %rdi
	callq	_countof
	cmpq	%rax, %r12
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movl	$1, %r14d
LBB0_2:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_CURRENT_POINTER
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_4:
	leaq	L_.str.3(%rip), %rcx
	leaq	-44(%rbp), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_BITS_REDUCE_BYTES
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_CURRENT_POINTER
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_6:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %r15
	subq	%rax, %r12
	je	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	callq	_plural_ext
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_plural_ext
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	%r12, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_8:
	leaq	L_.str.3(%rip), %rcx
	leaq	-44(%rbp), %rbx
	movl	$1, %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_REDUCE_BYTES
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_CURRENT_POINTER
	cmpq	(%r13), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_10:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %r13
	incq	%rax
	cmpq	%r15, %rax
	je	LBB0_12
## %bb.11:
	subq	%r13, %r15
	movl	$1, %edi
	callq	_plural_ext
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_plural_ext
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edx
	xorl	%edi, %edi
	movl	%r12d, %ecx
	movq	%r15, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_12:
	leaq	L_.str.3(%rip), %rcx
	leaq	-44(%rbp), %rbx
	movl	$2, %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_REDUCE_BYTES
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_CURRENT_POINTER
	movq	_bits_0_to_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_14:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %r15
	addq	$2, %rax
	cmpq	%r13, %rax
	je	LBB0_16
## %bb.15:
	subq	%r15, %r13
	movl	$2, %edi
	callq	_plural_ext
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_plural_ext
	leaq	L_.str.5(%rip), %rsi
	movl	$2, %edx
	xorl	%edi, %edi
	movl	%ebx, %ecx
	movq	%r13, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_16:
	movq	_bits_0_to_10@GOTPCREL(%rip), %r12
	leaq	L_.str.3(%rip), %rcx
	leaq	-44(%rbp), %rbx
	movl	$3, %edx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_REDUCE_BYTES
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_CURRENT_POINTER
	cmpq	(%r12), %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_18:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %rbx
	addq	$3, %rax
	cmpq	%r15, %rax
	je	LBB0_20
## %bb.19:
	subq	%rbx, %r15
	movl	$3, %edi
	callq	_plural_ext
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_plural_ext
	leaq	L_.str.5(%rip), %rsi
	movl	$3, %edx
	xorl	%edi, %edi
	movl	%r12d, %ecx
	movq	%r15, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_20:
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_22:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_24:
	incq	%rbx
	leaq	L_.str.8(%rip), %rcx
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_BITS_REDUCE_BYTES
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_26:
	leaq	-44(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_AVAILABLE
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.10(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing vc_container_bits_reduce_bytes"

	.comm	_bits_0_to_10,8,3               ## @bits_0_to_10
L_.str.1:                               ## @.str.1
	.asciz	"Expected bytes available to initially match given size"

L_.str.2:                               ## @.str.2
	.asciz	"Expected initial current pointer to match original buffer"

L_.str.3:                               ## @.str.3
	.asciz	"test_reduce_bytes"

L_.str.4:                               ## @.str.4
	.asciz	"Did not expect current pointer to have moved"

L_.str.5:                               ## @.str.5
	.asciz	"Tried to reduce by %u byte%s, actually reduced by %d byte%s"

L_.str.6:                               ## @.str.6
	.asciz	"Reached end of stream too soon"

L_.str.7:                               ## @.str.7
	.asciz	"Expected stream to be valid"

L_.str.8:                               ## @.str.8
	.asciz	"Reducing an empty stream"

L_.str.9:                               ## @.str.9
	.asciz	"Unexpectedly succeeded reducing by too many bytes"

L_.str.10:                              ## @.str.10
	.asciz	"Expected stream to have been reset"

	.no_dead_strip	_test_reduce_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_reduce_bytes
_test_reduce_bytes:                     ; @test_reduce_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_LOG_DEBUG
Lloh2:
	adrp	x23, _bits_0_to_10@GOTPAGE
Lloh3:
	ldr	x23, [x23, _bits_0_to_10@GOTPAGEOFF]
	ldr	x19, [x23]
	mov	x0, x19
	bl	_countof
	mov	x3, x0
	add	x1, sp, #44
	mov	x0, #0
	mov	x2, x19
	bl	_BITS_INIT
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_BYTES_AVAILABLE
	mov	x20, x0
	ldr	x0, [x23]
	bl	_countof
	cmp	x20, x0
	b.ne	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	mov	w19, #1
LBB0_3:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_CURRENT_POINTER
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_5:
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	x2, #0
	bl	_BITS_REDUCE_BYTES
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_CURRENT_POINTER
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_7:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_BYTES_AVAILABLE
	mov	x22, x0
	subs	x20, x20, x0
	b.eq	LBB0_9
; %bb.8:
	mov	x0, #0
	bl	_plural_ext
	mov	x21, x0
	mov	x0, x20
	bl	_plural_ext
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #16]
	stp	xzr, x21, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_9:
Lloh14:
	adrp	x3, l_.str.3@PAGE
Lloh15:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_REDUCE_BYTES
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_CURRENT_POINTER
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_11:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_BYTES_AVAILABLE
	mov	x21, x0
	add	x8, x0, #1
	cmp	x8, x22
	b.eq	LBB0_13
; %bb.12:
	sub	x20, x22, x21
	mov	w24, #1
	mov	w0, #1
	bl	_plural_ext
	mov	x22, x0
	mov	x0, x20
	bl	_plural_ext
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #16]
	stp	x24, x22, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_13:
Lloh20:
	adrp	x3, l_.str.3@PAGE
Lloh21:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	w2, #2
	bl	_BITS_REDUCE_BYTES
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_CURRENT_POINTER
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.14:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_15:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_BYTES_AVAILABLE
	mov	x20, x0
	add	x8, x0, #2
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.16:
	sub	x21, x21, x20
	mov	w24, #2
	mov	w0, #2
	bl	_plural_ext
	mov	x22, x0
	mov	x0, x21
	bl	_plural_ext
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #16]
	stp	x24, x22, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_17:
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	w2, #3
	bl	_BITS_REDUCE_BYTES
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_CURRENT_POINTER
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_19:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_BYTES_AVAILABLE
	mov	x21, x0
	add	x8, x0, #3
	cmp	x8, x20
	b.eq	LBB0_21
; %bb.20:
	sub	x20, x20, x21
	mov	w23, #3
	mov	w0, #3
	bl	_plural_ext
	mov	x22, x0
	mov	x0, x20
	bl	_plural_ext
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #16]
	stp	x23, x22, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_21:
	cbnz	x21, LBB0_23
; %bb.22:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_23:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_25
; %bb.24:
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_25:
	add	x2, x21, #1
Lloh36:
	adrp	x3, l_.str.8@PAGE
Lloh37:
	add	x3, x3, l_.str.8@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_REDUCE_BYTES
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_VALID
	cbz	x0, LBB0_27
; %bb.26:
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_27:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_AVAILABLE
	cbz	x0, LBB0_29
; %bb.28:
Lloh40:
	adrp	x1, l_.str.10@PAGE
Lloh41:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_29:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing vc_container_bits_reduce_bytes"

	.comm	_bits_0_to_10,8,3               ; @bits_0_to_10
l_.str.1:                               ; @.str.1
	.asciz	"Expected bytes available to initially match given size"

l_.str.2:                               ; @.str.2
	.asciz	"Expected initial current pointer to match original buffer"

l_.str.3:                               ; @.str.3
	.asciz	"test_reduce_bytes"

l_.str.4:                               ; @.str.4
	.asciz	"Did not expect current pointer to have moved"

l_.str.5:                               ; @.str.5
	.asciz	"Tried to reduce by %u byte%s, actually reduced by %d byte%s"

l_.str.6:                               ; @.str.6
	.asciz	"Reached end of stream too soon"

l_.str.7:                               ; @.str.7
	.asciz	"Expected stream to be valid"

l_.str.8:                               ; @.str.8
	.asciz	"Reducing an empty stream"

l_.str.9:                               ; @.str.9
	.asciz	"Unexpectedly succeeded reducing by too many bytes"

l_.str.10:                              ; @.str.10
	.asciz	"Expected stream to have been reset"

	.no_dead_strip	_test_reduce_bytes
.subsections_via_symbols
