	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_read_s32_exp_golomb
_test_read_s32_exp_golomb:              ## @test_read_s32_exp_golomb
	.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	_exp_golomb_0_to_10@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_countof
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BITS_INIT
	leaq	L_.str.1(%rip), %r13
	movq	_exp_golomb_values@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$11, %rbx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_BITS_READ_S32_EXP
	movq	(%r12), %rcx
	cmpl	(%rcx,%rbx,4), %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str.3(%rip), %rdx
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_READ_S32_EXP
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_7:
	leaq	L_.str.5(%rip), %rdx
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_READ_S32_EXP
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_9:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_10:
	movq	_exp_golomb_large@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_countof
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BITS_INIT
	leaq	L_.str.7(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_READ_S32_EXP
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpl	$-2147483647, %ebx              ## imm = 0x80000001
	je	LBB0_13
LBB0_12:
	leaq	L_.str.8(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_13:
	leaq	L_.str.9(%rip), %rdx
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_READ_S32_EXP
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	testl	%ebx, %ebx
	je	LBB0_16
LBB0_15:
	leaq	L_.str.10(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_16:
	movq	_exp_golomb_oversize@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_countof
	leaq	-44(%rbp), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_BITS_INIT
	leaq	L_.str.11(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_READ_S32_EXP
	movl	%eax, %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	testl	%ebx, %ebx
	je	LBB0_19
LBB0_18:
	leaq	L_.str.12(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	incl	%r14d
LBB0_19:
	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_get_s32_exp_golomb"

	.comm	_exp_golomb_0_to_10,4,2         ## @exp_golomb_0_to_10
L_.str.1:                               ## @.str.1
	.asciz	"test_read_s32_exp_golomb"

	.comm	_exp_golomb_values,8,3          ## @exp_golomb_values
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 Exp-Golomb value (expected a zero)"

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

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

	.comm	_exp_golomb_large,4,2           ## @exp_golomb_large
L_.str.7:                               ## @.str.7
	.asciz	"Largest signed 32-bit value"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to get largest signed 32-bit value: %d"

L_.str.9:                               ## @.str.9
	.asciz	"Just too large signed 33-bit value"

L_.str.10:                              ## @.str.10
	.asciz	"Unexpectedly got slightly too large signed 32-bit value: %d"

	.comm	_exp_golomb_oversize,4,2        ## @exp_golomb_oversize
L_.str.11:                              ## @.str.11
	.asciz	"Larger signed 33-bit value"

L_.str.12:                              ## @.str.12
	.asciz	"Unexpectedly got signed 33-bit value: %d"

	.no_dead_strip	_test_read_s32_exp_golomb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_read_s32_exp_golomb
_test_read_s32_exp_golomb:              ; @test_read_s32_exp_golomb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, _exp_golomb_0_to_10@GOTPAGE
Lloh3:
	ldr	x8, [x8, _exp_golomb_0_to_10@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_countof
	mov	x3, x0
	add	x1, sp, #28
	mov	x0, #0
	mov	x2, x19
	bl	_BITS_INIT
	mov	x22, #0
	mov	w19, #0
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, _exp_golomb_values@GOTPAGE
Lloh8:
	ldr	x23, [x23, _exp_golomb_values@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str.2@PAGE
Lloh10:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x22, #11
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #28
	mov	x0, #0
	mov	x2, x20
	bl	_BITS_READ_S32_EXP
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x22, x0, [sp]
	mov	x0, #0
	mov	x1, x21
	bl	_LOG_ERROR
	add	w19, w19, #1
	b	LBB0_1
LBB0_4:
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_READ_S32_EXP
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_VALID
	cbz	x0, LBB0_6
; %bb.5:
	cbz	w20, LBB0_7
LBB0_6:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_7:
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_READ_S32_EXP
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_9
; %bb.8:
	cbz	w20, LBB0_10
LBB0_9:
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_10:
Lloh19:
	adrp	x8, _exp_golomb_large@GOTPAGE
Lloh20:
	ldr	x8, [x8, _exp_golomb_large@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_countof
	mov	x3, x0
	add	x1, sp, #28
	mov	x0, #0
	mov	x2, x20
	bl	_BITS_INIT
Lloh22:
	adrp	x2, l_.str.7@PAGE
Lloh23:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_READ_S32_EXP
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_VALID
	cbz	x0, LBB0_12
; %bb.11:
	mov	w8, #-2147483647
	cmp	w20, w8
	b.eq	LBB0_13
LBB0_12:
	str	x20, [sp]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_13:
Lloh26:
	adrp	x2, l_.str.9@PAGE
Lloh27:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_READ_S32_EXP
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_15
; %bb.14:
	cbz	w20, LBB0_16
LBB0_15:
	str	x20, [sp]
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_16:
Lloh30:
	adrp	x8, _exp_golomb_oversize@GOTPAGE
Lloh31:
	ldr	x8, [x8, _exp_golomb_oversize@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_countof
	mov	x3, x0
	add	x1, sp, #28
	mov	x0, #0
	mov	x2, x20
	bl	_BITS_INIT
Lloh33:
	adrp	x2, l_.str.11@PAGE
Lloh34:
	add	x2, x2, l_.str.11@PAGEOFF
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_READ_S32_EXP
	mov	x20, x0
	add	x1, sp, #28
	mov	x0, #0
	bl	_BITS_VALID
	cbnz	x0, LBB0_18
; %bb.17:
	cbz	w20, LBB0_19
LBB0_18:
	str	x20, [sp]
Lloh35:
	adrp	x1, l_.str.12@PAGE
Lloh36:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
	add	w19, w19, #1
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing vc_container_bits_get_s32_exp_golomb"

	.comm	_exp_golomb_0_to_10,4,2         ; @exp_golomb_0_to_10
l_.str.1:                               ; @.str.1
	.asciz	"test_read_s32_exp_golomb"

	.comm	_exp_golomb_values,8,3          ; @exp_golomb_values
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 Exp-Golomb value (expected a zero)"

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

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

	.comm	_exp_golomb_large,4,2           ; @exp_golomb_large
l_.str.7:                               ; @.str.7
	.asciz	"Largest signed 32-bit value"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to get largest signed 32-bit value: %d"

l_.str.9:                               ; @.str.9
	.asciz	"Just too large signed 33-bit value"

l_.str.10:                              ; @.str.10
	.asciz	"Unexpectedly got slightly too large signed 32-bit value: %d"

	.comm	_exp_golomb_oversize,4,2        ; @exp_golomb_oversize
l_.str.11:                              ; @.str.11
	.asciz	"Larger signed 33-bit value"

l_.str.12:                              ; @.str.12
	.asciz	"Unexpectedly got signed 33-bit value: %d"

	.no_dead_strip	_test_read_s32_exp_golomb
.subsections_via_symbols
