	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_copy_bytes
_test_copy_bytes:                       ## @test_copy_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_bits_0_to_10@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_countof
	movl	%eax, %r14d
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_LOG_DEBUG
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_countof
	leaq	-52(%rbp), %r12
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_BITS_INIT
	shll	$2, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	callq	_memset
	movq	%r13, %rdi
	callq	_countof
	leaq	L_.str.1(%rip), %r8
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_BITS_COPY_BYTES
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_BITS_VALID
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_2:
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_countof
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_4:
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_countof
	leaq	-52(%rbp), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_BITS_INIT
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	(%r15), %rdi
	callq	_countof
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	leaq	L_.str.4(%rip), %r13
	leaq	-52(%rbp), %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_BITS_COPY_BYTES
	incq	%r14
	movq	(%r15), %rdi
	callq	_countof
	cltq
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_7:
	leaq	-52(%rbp), %rsi
	xorl	%edi, %edi
	callq	_BITS_VALID
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	incl	%r14d
LBB0_10:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_countof
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	incl	%r14d
LBB0_12:
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_countof
	leaq	-52(%rbp), %r12
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_BITS_INIT
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	leaq	L_.str.7(%rip), %rbx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_BITS_SKIP_BYTES
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_BITS_REDUCE_BYTES
	movq	%r13, %rdi
	callq	_countof
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %edx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_BITS_COPY_BYTES
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_BITS_VALID
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.8(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	incl	%r14d
LBB0_14:
	movq	(%r15), %rdi
	leaq	4(%rdi), %rbx
	callq	_countof
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.9(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_ERROR
	incl	%r14d
LBB0_16:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_bits_0_to_10,8,3               ## @bits_0_to_10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing vc_container_bits_copy_bytes"

L_.str.1:                               ## @.str.1
	.asciz	"Copy whole buffer"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to copy the whole buffer"

L_.str.3:                               ## @.str.3
	.asciz	"Single copy doesn't match original"

L_.str.4:                               ## @.str.4
	.asciz	"Copy buffer piecemeal"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to copy the buffer piecemeal"

L_.str.6:                               ## @.str.6
	.asciz	"Multiple copy doesn't match original"

L_.str.7:                               ## @.str.7
	.asciz	"Copy part of buffer"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to copy part of buffer"

L_.str.9:                               ## @.str.9
	.asciz	"Partial copy doesn't match original"

	.no_dead_strip	_test_copy_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_copy_bytes
_test_copy_bytes:                       ; @test_copy_bytes
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _bits_0_to_10@GOTPAGE
Lloh4:
	ldr	x25, [x25, _bits_0_to_10@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_countof
	mov	x20, x0
	mov	x24, sp
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_LOG_DEBUG
	ldr	x21, [x25]
	mov	x0, x21
	bl	_countof
	mov	x3, x0
	sub	x1, x29, #76
	mov	x0, #0
	mov	x2, x21
	bl	_BITS_INIT
	lsl	w21, w20, #2
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	x0, x19
	bl	_countof
	mov	x2, x0
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	sub	x1, x29, #76
	mov	x0, #0
	mov	x3, x19
	bl	_BITS_COPY_BYTES
	sub	x1, x29, #76
	mov	x0, #0
	bl	_BITS_VALID
	mov	w20, #0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	mov	w20, #1
LBB0_2:
	ldr	x22, [x25]
	mov	x0, x22
	bl	_countof
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w20, w20, #1
LBB0_4:
	ldr	x22, [x25]
	mov	x0, x22
	bl	_countof
	mov	x3, x0
	sub	x1, x29, #76
	mov	x0, #0
	mov	x2, x22
	bl	_BITS_INIT
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldr	x0, [x25]
	bl	_countof
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x26, #0
Lloh15:
	adrp	x22, l_.str.4@PAGE
Lloh16:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x23, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #76
	mov	x0, #0
	mov	w2, #1
	mov	x3, x23
	mov	x4, x22
	bl	_BITS_COPY_BYTES
	add	x26, x26, #1
	ldr	x0, [x25]
	bl	_countof
	add	x23, x23, #4
	cmp	x26, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
	sub	x1, x29, #76
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	w0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w20, w20, #1
LBB0_9:
	ldr	x22, [x25]
	mov	x0, x22
	bl	_countof
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_11
; %bb.10:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w20, w20, #1
LBB0_11:
	ldr	x22, [x25]
	mov	x0, x22
	bl	_countof
	mov	x3, x0
	sub	x1, x29, #76
	mov	x0, #0
	mov	x2, x22
	bl	_BITS_INIT
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh21:
	adrp	x21, l_.str.7@PAGE
Lloh22:
	add	x21, x21, l_.str.7@PAGEOFF
	sub	x1, x29, #76
	mov	x0, #0
	mov	w2, #1
	mov	x3, x21
	bl	_BITS_SKIP_BYTES
	sub	x1, x29, #76
	mov	x0, #0
	mov	w2, #1
	mov	x3, x21
	bl	_BITS_REDUCE_BYTES
	mov	x0, x19
	bl	_countof
	sub	w2, w0, #2
	sub	x1, x29, #76
	mov	x0, #0
	mov	x3, x19
	mov	x4, x21
	bl	_BITS_COPY_BYTES
	sub	x1, x29, #76
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	w0, LBB0_13
; %bb.12:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w20, w20, #1
LBB0_13:
	ldr	x0, [x25]
	add	x21, x0, #4
	bl	_countof
	sub	w2, w0, #2
	mov	x0, x19
	mov	x1, x21
	bl	_memcmp
	cbz	x0, LBB0_15
; %bb.14:
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w20, w20, #1
LBB0_15:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	sub	sp, x29, #64
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_bits_0_to_10,8,3               ; @bits_0_to_10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing vc_container_bits_copy_bytes"

l_.str.1:                               ; @.str.1
	.asciz	"Copy whole buffer"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to copy the whole buffer"

l_.str.3:                               ; @.str.3
	.asciz	"Single copy doesn't match original"

l_.str.4:                               ; @.str.4
	.asciz	"Copy buffer piecemeal"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to copy the buffer piecemeal"

l_.str.6:                               ; @.str.6
	.asciz	"Multiple copy doesn't match original"

l_.str.7:                               ; @.str.7
	.asciz	"Copy part of buffer"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to copy part of buffer"

l_.str.9:                               ; @.str.9
	.asciz	"Partial copy doesn't match original"

	.no_dead_strip	_test_copy_bytes
.subsections_via_symbols
