	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_skip
_test_skip:                             ## @test_skip
	.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	%edi, %edi
	callq	_LOG_DEBUG
	movq	_bits_0_to_10@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_countof
	leaq	-44(%rbp), %r13
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BITS_INIT
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_BITS_AVAILABLE
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	movl	%r15d, %r12d
	cmpl	$11, %ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_BITS_SKIP
	xorl	%edi, %edi
	movq	%r13, %rsi
	callq	_BITS_AVAILABLE
	movl	%eax, %r15d
	leal	(%r15,%rbx), %eax
	cmpl	%r12d, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	%r15d, %r12d
	movl	%ebx, %edi
	callq	_plural_ext
	movl	%r14d, %r13d
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_plural_ext
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r13d, %r14d
	leaq	-44(%rbp), %r13
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str.3(%rip), %rcx
	leaq	-44(%rbp), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_BITS_SKIP
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	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_AVAILABLE
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_8:
	leaq	L_.str.6(%rip), %rcx
	leaq	-44(%rbp), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_BITS_SKIP
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_10:
	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_skip"

	.comm	_bits_0_to_10,4,2               ## @bits_0_to_10
L_.str.1:                               ## @.str.1
	.asciz	"test_skip"

L_.str.2:                               ## @.str.2
	.asciz	"Tried to skip %u bit%s, actually skipped %d bit%s"

L_.str.3:                               ## @.str.3
	.asciz	"Final bit"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to skip final bit"

L_.str.5:                               ## @.str.5
	.asciz	"End of stream not reached by skipping"

L_.str.6:                               ## @.str.6
	.asciz	"Beyond final bit"

L_.str.7:                               ## @.str.7
	.asciz	"Unexpectedly succeeded skipping beyond expected end of stream"

	.no_dead_strip	_test_skip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_skip
_test_skip:                             ; @test_skip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_LOG_DEBUG
Lloh2:
	adrp	x8, _bits_0_to_10@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bits_0_to_10@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	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_AVAILABLE
	mov	x24, x0
	mov	w20, #0
	mov	w19, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x22, l_.str.2@PAGE
Lloh8:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	mov	x24, x23
	cmp	w20, #11
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #44
	mov	x0, #0
	mov	x2, x20
	mov	x3, x21
	bl	_BITS_SKIP
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_AVAILABLE
	mov	x23, x0
	add	w8, w0, w20
	cmp	w8, w24
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w24, w23
	mov	x0, x20
	bl	_plural_ext
	mov	x25, x0
	mov	x0, x24
	bl	_plural_ext
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp, #16]
	stp	x20, x25, [sp]
	mov	x0, #0
	mov	x1, x22
	bl	_LOG_ERROR
	add	w19, w19, #1
	b	LBB0_1
LBB0_4:
Lloh9:
	adrp	x3, l_.str.3@PAGE
Lloh10:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_SKIP
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_6:
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_AVAILABLE
	cbz	w0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_8:
Lloh15:
	adrp	x3, l_.str.6@PAGE
Lloh16:
	add	x3, x3, l_.str.6@PAGEOFF
	add	x1, sp, #44
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_SKIP
	add	x1, sp, #44
	mov	x0, #0
	bl	_BITS_VALID
	cbz	x0, LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing vc_container_bits_skip"

	.comm	_bits_0_to_10,4,2               ; @bits_0_to_10
l_.str.1:                               ; @.str.1
	.asciz	"test_skip"

l_.str.2:                               ; @.str.2
	.asciz	"Tried to skip %u bit%s, actually skipped %d bit%s"

l_.str.3:                               ; @.str.3
	.asciz	"Final bit"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to skip final bit"

l_.str.5:                               ; @.str.5
	.asciz	"End of stream not reached by skipping"

l_.str.6:                               ; @.str.6
	.asciz	"Beyond final bit"

l_.str.7:                               ; @.str.7
	.asciz	"Unexpectedly succeeded skipping beyond expected end of stream"

	.no_dead_strip	_test_skip
.subsections_via_symbols
