	.file	"extr_test_bits.c_test_reduce_bytes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Testing vc_container_bits_reduce_bytes"
	.align 8
.LC1:
	.string	"Expected bytes available to initially match given size"
	.align 8
.LC2:
	.string	"Expected initial current pointer to match original buffer"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"test_reduce_bytes"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Did not expect current pointer to have moved"
	.align 8
.LC5:
	.string	"Tried to reduce by %u byte%s, actually reduced by %d byte%s"
	.align 8
.LC6:
	.string	"Reached end of stream too soon"
	.section	.rodata.str1.1
.LC7:
	.string	"Expected stream to be valid"
.LC8:
	.string	"Reducing an empty stream"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"Unexpectedly succeeded reducing by too many bytes"
	.align 8
.LC10:
	.string	"Expected stream to have been reset"
	.text
	.p2align 4
	.type	test_reduce_bytes, @function
test_reduce_bytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC0[rip]
	xor	edi, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 20[rsp]
	call	LOG_DEBUG@PLT
	mov	rdi, QWORD PTR bits_0_to_10[rip]
	call	countof@PLT
	mov	rdx, QWORD PTR bits_0_to_10[rip]
	mov	rsi, r12
	xor	edi, edi
	mov	rcx, rax
	call	BITS_INIT@PLT
	mov	rsi, r12
	xor	edi, edi
	call	BITS_BYTES_AVAILABLE@PLT
	mov	rdi, QWORD PTR bits_0_to_10[rip]
	mov	r13, rax
	call	countof@PLT
	cmp	rax, r13
	je	.L2
	lea	rsi, .LC1[rip]
	xor	edi, edi
	xor	eax, eax
	mov	r14d, 1
	call	LOG_ERROR@PLT
.L2:
	xor	edi, edi
	mov	rsi, r12
	call	BITS_CURRENT_POINTER@PLT
	cmp	rax, QWORD PTR bits_0_to_10[rip]
	je	.L3
	lea	rsi, .LC2[rip]
	xor	edi, edi
	xor	eax, eax
	add	r14d, 1
	call	LOG_ERROR@PLT
.L3:
	xor	ebp, ebp
	lea	r15, .LC3[rip]
.L6:
	xor	edi, edi
	mov	rcx, r15
	mov	rdx, rbp
	mov	rsi, r12
	call	BITS_REDUCE_BYTES@PLT
	xor	edi, edi
	mov	rsi, r12
	call	BITS_CURRENT_POINTER@PLT
	cmp	rax, QWORD PTR bits_0_to_10[rip]
	je	.L4
	lea	rsi, .LC4[rip]
	xor	edi, edi
	xor	eax, eax
	add	r14d, 1
	call	LOG_ERROR@PLT
.L4:
	mov	rsi, r12
	xor	edi, edi
	call	BITS_BYTES_AVAILABLE@PLT
	mov	rbx, rax
	lea	rax, [rax+rbp]
	cmp	rax, r13
	je	.L5
	mov	r8, r13
	add	r14d, 1
	sub	r8, rbx
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	plural_ext@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	plural_ext@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	r9d, r13d
	mov	rdx, rbp
	mov	ecx, eax
	lea	rsi, .LC5[rip]
	xor	edi, edi
	xor	eax, eax
	call	LOG_ERROR@PLT
.L5:
	add	rbp, 1
	cmp	rbp, 4
	je	.L23
	mov	r13, rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	test	rbx, rbx
	je	.L24
	xor	edi, edi
	mov	rsi, r12
	call	BITS_VALID@PLT
	test	rax, rax
	je	.L25
.L8:
	xor	edi, edi
	lea	rdx, 1[rbx]
	lea	rcx, .LC8[rip]
	mov	rsi, r12
	call	BITS_REDUCE_BYTES@PLT
	xor	edi, edi
	mov	rsi, r12
	call	BITS_VALID@PLT
	test	rax, rax
	jne	.L26
.L9:
	xor	edi, edi
	mov	rsi, r12
	call	BITS_AVAILABLE@PLT
	test	rax, rax
	jne	.L27
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	xor	edi, edi
	lea	rsi, .LC6[rip]
	xor	eax, eax
	add	r14d, 1
	call	LOG_ERROR@PLT
	xor	edi, edi
	mov	rsi, r12
	call	BITS_VALID@PLT
	test	rax, rax
	jne	.L8
.L25:
	lea	rsi, .LC7[rip]
	xor	edi, edi
	add	r14d, 1
	call	LOG_ERROR@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rsi, .LC10[rip]
	xor	edi, edi
	xor	eax, eax
	add	r14d, 1
	call	LOG_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC9[rip]
	xor	edi, edi
	xor	eax, eax
	add	r14d, 1
	call	LOG_ERROR@PLT
	jmp	.L9
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_reduce_bytes, .-test_reduce_bytes
	.comm	bits_0_to_10,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_test_bits.c_test_reduce_bytes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Testing vc_container_bits_reduce_bytes\000"
	.align	2
.LC1:
	.ascii	"Expected bytes available to initially match given s"
	.ascii	"ize\000"
	.align	2
.LC2:
	.ascii	"Expected initial current pointer to match original "
	.ascii	"buffer\000"
	.align	2
.LC3:
	.ascii	"test_reduce_bytes\000"
	.align	2
.LC4:
	.ascii	"Did not expect current pointer to have moved\000"
	.align	2
.LC5:
	.ascii	"Tried to reduce by %u byte%s, actually reduced by %"
	.ascii	"d byte%s\000"
	.align	2
.LC6:
	.ascii	"Reached end of stream too soon\000"
	.align	2
.LC7:
	.ascii	"Expected stream to be valid\000"
	.align	2
.LC8:
	.ascii	"Reducing an empty stream\000"
	.align	2
.LC9:
	.ascii	"Unexpectedly succeeded reducing by too many bytes\000"
	.align	2
.LC10:
	.ascii	"Expected stream to have been reset\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_reduce_bytes, %function
test_reduce_bytes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L28
	ldr	r8, .L28+4
	sub	sp, sp, #28
	ldr	r1, .L28+8
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	LOG_DEBUG
	ldr	r4, [r8]
	mov	r0, r4
	bl	countof
	mov	r2, r4
	mov	r3, r0
	add	r1, sp, #16
	mov	r0, #0
	bl	BITS_INIT
	add	r1, sp, #16
	mov	r0, #0
	bl	BITS_BYTES_AVAILABLE
	mov	r6, r0
	ldr	r0, [r8]
	bl	countof
	cmp	r0, r6
	moveq	r7, #0
	beq	.L2
	mov	r0, #0
	ldr	r1, .L28+12
	bl	LOG_ERROR
	mov	r7, #1
.L2:
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_CURRENT_POINTER
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L3
	mov	r0, #0
	ldr	r1, .L28+16
	bl	LOG_ERROR
	add	r7, r7, #1
.L3:
	mov	r4, #0
	ldr	r9, .L28+20
	ldr	fp, .L28+24
	ldr	r10, .L28+28
.L6:
	mov	r3, r9
	mov	r2, r4
	add	r1, sp, #16
	mov	r0, #0
	bl	BITS_REDUCE_BYTES
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_CURRENT_POINTER
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L4
	mov	r1, fp
	mov	r0, #0
	bl	LOG_ERROR
	add	r7, r7, #1
.L4:
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_BYTES_AVAILABLE
	add	r3, r0, r4
	cmp	r3, r6
	mov	r5, r0
	beq	.L5
	mov	r0, r4
	bl	plural_ext
	mov	r3, r0
	sub	r2, r6, r5
	mov	r0, r2
	mov	r6, r3
	str	r2, [sp, #12]
	bl	plural_ext
	ldr	r2, [sp, #12]
	str	r0, [sp, #4]
	str	r2, [sp]
	mov	r3, r6
	mov	r2, r4
	mov	r1, r10
	mov	r0, #0
	bl	LOG_ERROR
	add	r7, r7, #1
.L5:
	add	r4, r4, #1
	cmp	r4, #4
	movne	r6, r5
	bne	.L6
.L22:
	cmp	r5, #0
	beq	.L23
.L7:
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_VALID
	cmp	r0, #0
	beq	.L24
.L8:
	ldr	r3, .L28+32
	add	r2, r5, #1
	add	r1, sp, #16
	mov	r0, #0
	bl	BITS_REDUCE_BYTES
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_VALID
	cmp	r0, #0
	bne	.L25
.L9:
	mov	r0, #0
	add	r1, sp, #16
	bl	BITS_AVAILABLE
	cmp	r0, #0
	bne	.L26
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r0, r5
	ldr	r1, .L28+36
	bl	LOG_ERROR
	add	r7, r7, #1
	b	.L7
.L26:
	mov	r0, #0
	ldr	r1, .L28+40
	bl	LOG_ERROR
	add	r7, r7, #1
	b	.L1
.L25:
	mov	r0, #0
	ldr	r1, .L28+44
	bl	LOG_ERROR
	add	r7, r7, #1
	b	.L9
.L24:
	ldr	r1, .L28+48
	bl	LOG_ERROR
	add	r7, r7, #1
	b	.L8
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	bits_0_to_10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC8
	.word	.LC6
	.word	.LC10
	.word	.LC9
	.word	.LC7
	.size	test_reduce_bytes, .-test_reduce_bytes
	.comm	bits_0_to_10,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
