	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_read_u32
_test_read_u32:                         ## @test_read_u32
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_countof
	leaq	-28(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BITS_INIT
	leaq	L_.str.1(%rip), %rcx
	xorl	%edi, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_BITS_READ_U32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movl	$1, %r14d
LBB0_2:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_BITS_READ_U32
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$1, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_4:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$2, %edx
	callq	_BITS_READ_U32
	cmpl	$2, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$2, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_6:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$3, %edx
	callq	_BITS_READ_U32
	cmpl	$3, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$3, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_8:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_BITS_READ_U32
	cmpl	$4, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$4, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_10:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$5, %edx
	callq	_BITS_READ_U32
	cmpl	$5, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$5, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_12:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$6, %edx
	callq	_BITS_READ_U32
	cmpl	$6, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$6, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_14:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$7, %edx
	callq	_BITS_READ_U32
	cmpl	$7, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$7, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_16:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$8, %edx
	callq	_BITS_READ_U32
	cmpl	$8, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$8, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_18:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$9, %edx
	callq	_BITS_READ_U32
	cmpl	$9, %eax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$9, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_20:
	leaq	L_.str.1(%rip), %rcx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	movl	$10, %edx
	callq	_BITS_READ_U32
	cmpl	$10, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	$10, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_22:
	leaq	L_.str.3(%rip), %rcx
	leaq	-28(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_BITS_READ_U32
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	testl	%ebx, %ebx
	je	LBB0_25
LBB0_24:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_25:
	leaq	L_.str.5(%rip), %rcx
	leaq	-28(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_BITS_READ_U32
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	testl	%ebx, %ebx
	je	LBB0_28
LBB0_27:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing vc_container_bits_get_u32"

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

L_.str.2:                               ## @.str.2
	.asciz	"Expected %u, got %u"

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"Unexpectedly succeeded reading beyond expected end of stream"

	.no_dead_strip	_test_read_u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_read_u32
_test_read_u32:                         ; @test_read_u32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
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
	sub	x1, x29, #20
	mov	x0, #0
	mov	x2, x19
	bl	_BITS_INIT
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #0
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	stp	xzr, x0, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	mov	w19, #1
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	stp	x8, x0, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_5:
Lloh13:
	adrp	x3, l_.str.1@PAGE
Lloh14:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #2
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #2
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #2
	stp	x8, x0, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_7:
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #3
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #3
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #3
	stp	x8, x0, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_9:
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #4
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #4
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #4
	stp	x8, x0, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_11:
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #5
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #5
	b.eq	LBB0_13
; %bb.12:
	mov	w8, #5
	stp	x8, x0, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_13:
Lloh29:
	adrp	x3, l_.str.1@PAGE
Lloh30:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #6
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #6
	b.eq	LBB0_15
; %bb.14:
	mov	w8, #6
	stp	x8, x0, [sp]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_15:
Lloh33:
	adrp	x3, l_.str.1@PAGE
Lloh34:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #7
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #7
	b.eq	LBB0_17
; %bb.16:
	mov	w8, #7
	stp	x8, x0, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_17:
Lloh37:
	adrp	x3, l_.str.1@PAGE
Lloh38:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #8
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #8
	b.eq	LBB0_19
; %bb.18:
	mov	w8, #8
	stp	x8, x0, [sp]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_19:
Lloh41:
	adrp	x3, l_.str.1@PAGE
Lloh42:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #9
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #9
	b.eq	LBB0_21
; %bb.20:
	mov	w8, #9
	stp	x8, x0, [sp]
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_21:
Lloh45:
	adrp	x3, l_.str.1@PAGE
Lloh46:
	add	x3, x3, l_.str.1@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #10
	bl	_BITS_READ_U32
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #10
	b.eq	LBB0_23
; %bb.22:
	mov	w8, #10
	stp	x8, x0, [sp]
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_23:
Lloh49:
	adrp	x3, l_.str.3@PAGE
Lloh50:
	add	x3, x3, l_.str.3@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_READ_U32
	mov	x20, x0
	sub	x1, x29, #20
	mov	x0, #0
	bl	_BITS_VALID
	cbz	x0, LBB0_25
; %bb.24:
	cbz	w20, LBB0_26
LBB0_25:
Lloh51:
	adrp	x1, l_.str.4@PAGE
Lloh52:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_26:
Lloh53:
	adrp	x3, l_.str.5@PAGE
Lloh54:
	add	x3, x3, l_.str.5@PAGEOFF
	sub	x1, x29, #20
	mov	x0, #0
	mov	w2, #1
	bl	_BITS_READ_U32
	mov	x20, x0
	sub	x1, x29, #20
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_28
; %bb.27:
	cbz	w20, LBB0_29
LBB0_28:
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_29:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing vc_container_bits_get_u32"

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

l_.str.2:                               ; @.str.2
	.asciz	"Expected %u, got %u"

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"Unexpectedly succeeded reading beyond expected end of stream"

	.no_dead_strip	_test_read_u32
.subsections_via_symbols
