	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %edx
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_init_put_bits
	movq	_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_ue_golomb
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_5:
	leaq	-44(%rbp), %rdi
	callq	_flush_put_bits
	movl	(%r13), %edx
	shll	$3, %edx
	leaq	-48(%rbp), %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_init_get_bits
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	leaq	L_.str(%rip), %r13
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$25, %esi
	callq	_show_bits
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_get_ue_golomb
	cmpl	%eax, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_fprintf
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_1:
	movl	$2, %eax
	jmp	LBB0_36
LBB0_6:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_init_put_bits
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.12:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	andl	$7, %esi
	orl	%r12d, %esi
	movq	%r14, %rdi
	callq	_set_ue_golomb
	incl	%ebx
	addl	$8, %r12d
	cmpl	(%r15), %ebx
	jl	LBB0_13
LBB0_14:
	leaq	-44(%rbp), %rdi
	callq	_flush_put_bits
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_init_get_bits
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r12d
	addl	$8, %ebx
	cmpl	(%r15), %r12d
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_show_bits_long
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movl	%r12d, %edx
	andl	$7, %edx
	orl	%ebx, %edx
	cmpl	%edx, %eax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_fprintf
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_19:
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_init_put_bits
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.20:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	andl	$15, %esi
	orl	%r12d, %esi
	movq	%r14, %rdi
	callq	_set_ue_golomb_long
	incl	%ebx
	addl	$16, %r12d
	cmpl	(%r15), %ebx
	jl	LBB0_21
LBB0_22:
	leaq	-44(%rbp), %rdi
	callq	_flush_put_bits
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_init_get_bits
	cmpl	$0, (%r15)
	jle	LBB0_27
## %bb.23:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incl	%r12d
	addl	$16, %ebx
	cmpl	(%r15), %r12d
	jge	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_show_bits_long
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_get_ue_golomb_long
	movl	%r12d, %edx
	andl	$15, %edx
	orl	%ebx, %edx
	cmpl	%edx, %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_fprintf
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_26
LBB0_27:
	movq	_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_init_put_bits
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_30
## %bb.28:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ebx, %esi
	subl	%ecx, %esi
	movq	%r14, %rdi
	callq	_set_se_golomb
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_29
LBB0_30:
	leaq	-44(%rbp), %rdi
	callq	_flush_put_bits
	movl	(%r13), %edx
	shll	$3, %edx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_init_get_bits
	cmpl	$0, (%r15)
	jle	LBB0_35
## %bb.31:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_35
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$25, %esi
	callq	_show_bits
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_get_se_golomb
	movl	(%r15), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	%ebx, %edx
	subl	%esi, %edx
	cmpl	%eax, %edx
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r12, %rsi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_fprintf
	movl	(%r15), %ecx
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_34
LBB0_35:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_36:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_COUNT,4,2                      ## @COUNT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_ue_golomb: expected %d, got %d. bits: %7x\n"

L_.str.1:                               ## @.str.1
	.asciz	"get_ue_golomb_long: expected %d, got %d. bits: %8x\n"

L_.str.2:                               ## @.str.2
	.asciz	"get_se_golomb: expected %d, got %d. bits: %7x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x26, _SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SIZE@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_av_malloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w2, [x26]
	add	x0, sp, #12
	mov	x1, x19
	bl	_init_put_bits
Lloh2:
	adrp	x24, _COUNT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w20, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x20
	bl	_set_ue_golomb
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_4:
	add	x0, sp, #12
	bl	_flush_put_bits
	ldr	w8, [x26]
	lsl	w2, w8, #3
	add	x0, sp, #8
	mov	x1, x19
	bl	_init_get_bits
	ldr	w8, [x24]
Lloh4:
	adrp	x25, _stderr@GOTPAGE
Lloh5:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.5:
	mov	w21, #0
	mov	w20, #0
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	w8, [x24]
	cmp	w21, w8
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #25
	bl	_show_bits
	mov	x23, x0
	add	x0, sp, #8
	bl	_get_ue_golomb
	cmp	w21, w0
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x3, x0
	ldr	w0, [x25]
	mov	x1, x22
	mov	x2, x21
	mov	x4, x23
	bl	_fprintf
	mov	w20, #1
	b	LBB0_6
LBB0_9:
	mov	w20, #2
	b	LBB0_36
LBB0_10:
	mov	w20, #0
LBB0_11:
	ldr	w2, [x26]
	add	x0, sp, #12
	mov	x1, x19
	bl	_init_put_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w21, #0
	mov	w22, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w22, #0x7
	orr	w1, w21, w8
	add	x0, sp, #12
	bl	_set_ue_golomb
	add	w22, w22, #1
	ldr	w8, [x24]
	add	w21, w21, #8
	cmp	w22, w8
	b.lt	LBB0_13
LBB0_14:
	add	x0, sp, #12
	bl	_flush_put_bits
	ldr	w8, [x26]
	lsl	w2, w8, #3
	add	x0, sp, #8
	mov	x1, x19
	bl	_init_get_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	w23, #0
	mov	w27, #0
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w27, w27, #1
	ldr	w8, [x24]
	add	w23, w23, #8
	cmp	w27, w8
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #32
	bl	_show_bits_long
	mov	x22, x0
	add	x0, sp, #8
	bl	_get_ue_golomb_long
	and	w8, w27, #0x7
	orr	w2, w23, w8
	cmp	w0, w2
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x3, x0
	ldr	w0, [x25]
	mov	x1, x21
	mov	x4, x22
	bl	_fprintf
	mov	w20, #1
	b	LBB0_16
LBB0_19:
	ldr	w2, [x26]
	add	x0, sp, #12
	mov	x1, x19
	bl	_init_put_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	w21, #0
	mov	w22, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w22, #0xf
	orr	w1, w21, w8
	add	x0, sp, #12
	bl	_set_ue_golomb_long
	add	w22, w22, #1
	ldr	w8, [x24]
	add	w21, w21, #16
	cmp	w22, w8
	b.lt	LBB0_21
LBB0_22:
	add	x0, sp, #12
	bl	_flush_put_bits
	ldr	w8, [x26]
	lsl	w2, w8, #3
	add	x0, sp, #8
	mov	x1, x19
	bl	_init_get_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.23:
	mov	w23, #0
	mov	w27, #0
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w27, w27, #1
	ldr	w8, [x24]
	add	w23, w23, #16
	cmp	w27, w8
	b.ge	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #32
	bl	_show_bits_long
	mov	x22, x0
	add	x0, sp, #8
	bl	_get_ue_golomb_long
	and	w8, w27, #0xf
	orr	w2, w23, w8
	cmp	w0, w2
	b.eq	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x3, x0
	ldr	w0, [x25]
	mov	x1, x21
	mov	x4, x22
	bl	_fprintf
	mov	w20, #1
	b	LBB0_24
LBB0_27:
	ldr	w2, [x26]
	add	x0, sp, #12
	mov	x1, x19
	bl	_init_put_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	w21, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w1, w21, w8, asr #1
	add	x0, sp, #12
	bl	_set_se_golomb
	add	w21, w21, #1
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_29
LBB0_30:
	add	x0, sp, #12
	bl	_flush_put_bits
	ldr	w8, [x26]
	lsl	w2, w8, #3
	add	x0, sp, #8
	mov	x1, x19
	bl	_init_get_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.31:
	mov	w23, #0
Lloh12:
	adrp	x21, l_.str.2@PAGE
Lloh13:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=1
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_35
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #25
	bl	_show_bits
	mov	x22, x0
	add	x0, sp, #8
	bl	_get_se_golomb
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w9, w8, lt
	sub	w2, w23, w9, asr #1
	cmp	w2, w0
	b.eq	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=1
	mov	x3, x0
	ldr	w0, [x25]
	mov	x1, x21
	mov	x4, x22
	bl	_fprintf
	ldr	w8, [x24]
	mov	w20, #1
	b	LBB0_32
LBB0_35:
	mov	x0, x19
	bl	_av_free
LBB0_36:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_COUNT,4,2                      ; @COUNT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_ue_golomb: expected %d, got %d. bits: %7x\n"

l_.str.1:                               ; @.str.1
	.asciz	"get_ue_golomb_long: expected %d, got %d. bits: %8x\n"

l_.str.2:                               ; @.str.2
	.asciz	"get_se_golomb: expected %d, got %d. bits: %7x\n"

.subsections_via_symbols
