	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_encode_list             ## -- Begin function golomb_encode_list
	.p2align	4, 0x90
_golomb_encode_list:                    ## @golomb_encode_list
	.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
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	movq	_LEN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movb	$0, (%rcx)
	testl	%edi, %edi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_1
## %bb.2:
	leal	1(%rdi), %r8d
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:
	movl	%r8d, %ebx
	andl	$-2, %ebx
	movl	$128, %r15d
	xorl	%eax, %eax
	movq	%rcx, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	sarl	%r15d
	decl	%edi
	addl	$-2, %ebx
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ecx
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	btl	%ecx, %esi
	jae	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addb	%r15b, %al
	movb	%al, (%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %r15d
	ja	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, 1(%r14)
	incq	%r14
	movl	$128, %r15d
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	sarl	%r15d
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	-1(%rcx), %edi
	btl	%edi, %esi
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	addb	%r15b, %al
	movb	%al, (%r14)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, 1(%r14)
	incq	%r14
	movl	$128, %r15d
	xorl	%eax, %eax
	btl	%ecx, %esi
	jb	LBB0_8
	jmp	LBB0_9
LBB0_15:
	addl	$-2, %ecx
	movl	%ecx, %edi
	testb	$1, %r8b
	jne	LBB0_17
	jmp	LBB0_22
LBB0_1:
	movl	$128, %r15d
	movq	%rcx, %r14
	jmp	LBB0_22
LBB0_3:
	movl	$128, %r15d
	xorl	%eax, %eax
	movq	%rcx, %r14
	testb	$1, %r8b
	je	LBB0_22
LBB0_17:
	testl	%r15d, %r15d
	jne	LBB0_19
## %bb.18:
	movb	$0, 1(%r14)
	incq	%r14
	movl	$128, %r15d
	xorl	%eax, %eax
LBB0_19:
	btl	%edi, %esi
	jae	LBB0_21
## %bb.20:
	addb	%r15b, %al
	movb	%al, (%r14)
LBB0_21:
	sarl	%r15d
LBB0_22:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%rsi), %r13d
	movl	%r13d, %edi
	movq	%rsi, %rbx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_compute_golomb_parameter
	testl	%eax, %eax
	jle	LBB0_23
## %bb.24:
	movl	$31, %ecx
	movl	$1, %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %r8
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	addl	%edx, %edx
	decl	%ecx
	cmpl	%eax, %edx
	jle	LBB0_25
## %bb.26:
	testl	%r8d, %r8d
	jg	LBB0_27
	jmp	LBB0_48
LBB0_23:
	movl	$1, %edx
	movl	$31, %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %r8
	testl	%r8d, %r8d
	jle	LBB0_48
LBB0_27:
	subl	%eax, %edx
	incl	%r13d
	movl	%r8d, %ebx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	leal	-1(%rbx), %edi
	addq	$4, %r12
	cmpl	$2, %ebx
	movl	%edi, %ebx
	jl	LBB0_48
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_42 Depth 2
	movl	%r13d, %edi
	movl	(%r12), %r13d
	subl	%r13d, %edi
	cmpl	%eax, %edi
	jge	LBB0_31
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_31 Depth=2
	movb	$-128, 1(%r14)
	incq	%r14
	movl	$64, %r15d
	subl	%eax, %edi
	cmpl	%eax, %edi
	jl	LBB0_35
LBB0_31:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r15d, %r15d
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	addb	%r15b, (%r14)
	sarl	%r15d
	subl	%eax, %edi
	cmpl	%eax, %edi
	jge	LBB0_31
LBB0_35:                                ##   in Loop: Header=BB0_29 Depth=1
	testl	%r15d, %r15d
	je	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_29 Depth=1
	sarl	%r15d
	cmpl	%edx, %edi
	jge	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_29 Depth=1
	leal	2(,%rdi,4), %edi
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_29 Depth=1
	movb	$0, 1(%r14)
	incq	%r14
	movl	$64, %r15d
	cmpl	%edx, %edi
	jl	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=1
	addl	%edx, %edi
	addl	%edi, %edi
	incl	%edi
LBB0_41:                                ##   in Loop: Header=BB0_29 Depth=1
	shll	%cl, %edi
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_42 Depth=2
	addl	%edi, %edi
	sarl	%r15d
LBB0_42:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$-2147483648, %edi              ## imm = 0x80000000
	je	LBB0_28
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=2
	testl	%r15d, %r15d
	je	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=2
	testl	%edi, %edi
	jns	LBB0_47
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=2
	movb	$0, 1(%r14)
	incq	%r14
	movl	$128, %r15d
	testl	%edi, %edi
	jns	LBB0_47
LBB0_46:                                ##   in Loop: Header=BB0_42 Depth=2
	addb	%r15b, (%r14)
	jmp	LBB0_47
LBB0_48:
	xorl	%r13d, %r13d
	cmpl	$128, %r15d
	setne	%r13b
	addl	%r14d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subl	%edi, %r13d
	movslq	%r8d, %rax
	shlq	$2, %rax
	subq	%rax, %r12
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	__golomb_decode_list
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEN_BITS,4,2                   ## @LEN_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_encode_list             ; -- Begin function golomb_encode_list
	.p2align	2
_golomb_encode_list:                    ; @golomb_encode_list
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _LEN_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEN_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	strb	wzr, [x3]
	tbnz	w8, #31, LBB0_7
; %bb.1:
	mov	w9, #0
	mov	w25, #128
	mov	x24, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w25, w25, #1
	sub	w10, w8, #1
	cmp	w8, #0
	mov	x8, x10
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w25, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w10, w21, w8
	tbnz	w10, #0, LBB0_6
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w9, #0
	strb	wzr, [x24, #1]!
	mov	w25, #128
	lsr	w10, w21, w8
	tbz	w10, #0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, w25
	strb	w9, [x24]
	b	LBB0_2
LBB0_7:
	mov	w25, #128
	mov	x24, x20
LBB0_8:
	add	w23, w19, w21
	mov	x0, x23
	mov	x1, x21
	bl	_compute_golomb_parameter
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.9:
	mov	w8, #31
	mov	w9, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #1
	sub	w8, w8, #1
	cmp	w9, w0
	b.le	LBB0_10
; %bb.11:
	subs	w10, w21, #1
	b.ge	LBB0_13
	b	LBB0_30
LBB0_12:
	mov	w9, #1
	mov	w8, #31
	subs	w10, w21, #1
	b.lt	LBB0_30
LBB0_13:
	sub	w9, w9, w0
	add	w11, w23, #1
	add	x10, x10, #1
	mov	w12, #-2147483648
	mov	w13, #128
	mov	x14, x22
	mov	x15, x21
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w15, #2
	mov	x15, x17
	b.lt	LBB0_29
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	mov	x16, x11
	ldr	w11, [x14], #4
	sub	w16, w16, w11
	cmp	w16, w0
	b.ge	LBB0_17
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=2
	ldrb	w17, [x24]
	add	w17, w17, w25
	strb	w17, [x24]
	asr	w25, w25, #1
	sub	w16, w16, w0
	cmp	w16, w0
	b.lt	LBB0_19
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w25, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	strb	w13, [x24, #1]!
	mov	w25, #64
	sub	w16, w16, w0
	cmp	w16, w0
	b.ge	LBB0_17
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	cbz	w25, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	asr	w25, w25, #1
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	strb	wzr, [x24, #1]!
	mov	w25, #64
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	w17, w15, #1
	add	w1, w16, w9
	mov	w2, #1
	bfi	w2, w1, #1, #31
	mov	w1, #2
	bfi	w1, w16, #2, #30
	cmp	w16, w9
	csel	w16, w2, w1, ge
	lsl	w16, w16, w8
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	lsl	w16, w16, #1
	asr	w25, w25, #1
LBB0_24:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w16, w12
	b.eq	LBB0_14
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	cbz	w25, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	tbz	w16, #31, LBB0_23
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=2
	strb	wzr, [x24, #1]!
	mov	w25, #128
	tbz	w16, #31, LBB0_23
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=2
	ldrb	w1, [x24]
	add	w1, w1, w25
	strb	w1, [x24]
	b	LBB0_23
LBB0_29:
	add	x22, x22, x10, lsl #2
LBB0_30:
	cmp	w25, #128
	cinc	w8, w24, ne
	sub	w23, w8, w20
	sub	x3, x22, w21, sxtw #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	__golomb_decode_list
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LEN_BITS,4,2                   ; @LEN_BITS
.subsections_via_symbols
