	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_decode_list             ## -- Begin function golomb_decode_list
	.p2align	4, 0x90
_golomb_decode_list:                    ## @golomb_decode_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	$0, %r13d
	cmpl	$2, %esi
	jl	LBB0_8
## %bb.1:
	movl	$1, %eax
	movl	$-2, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	incl	%r12d
	cmpl	%ebx, %eax
	jl	LBB0_2
## %bb.3:
	movl	$0, %r13d
	cmpl	$-1, %r12d
	jl	LBB0_8
## %bb.4:
	incl	%r12d
	movq	_cur_bit@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%ecx, %r13d
	xorl	%eax, %eax
	callq	_load_bit
	addl	$-1, %r12d
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	cmpq	$0, (%r14)
	movl	$0, %ecx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_7
LBB0_8:
	leal	1(%r13), %r14d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	setns	%al
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_compute_golomb_parameter
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
	xorl	%r12d, %r12d
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	incl	%r12d
	cmpl	%r13d, %eax
	jle	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movl	$1, %eax
	xorl	%r12d, %r12d
LBB0_12:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.13:
	incl	%ebx
	subl	%r13d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leal	1(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_cur_bit@GOTPCREL(%rip), %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	subl	%r13d, %ebx
	xorl	%eax, %eax
	callq	_load_bit
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	cmpq	$0, (%r14)
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_load_bit
	cmpl	$2, %r12d
	jl	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	leal	(%rax,%r15,2), %r15d
	xorl	%eax, %eax
	callq	_load_bit
	decl	%r12d
	cmpl	$2, %r12d
	ja	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %r15d
	jl	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	addl	%r15d, %r15d
	movq	(%r14), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_load_bit
	subl	%r12d, %r15d
	cmpq	$1, -88(%rbp)                   ## 8-byte Folded Reload
	sbbl	$-1, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	notl	%r15d
	addl	%r15d, %ebx
	xorl	%edi, %edi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	cmpl	(%r15), %ebx
	sete	%dil
	callq	_assert
	addq	$4, %r15
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	subl	$1, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_15
LBB0_22:
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_bit,8,3                    ## @cur_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_decode_list             ; -- Begin function golomb_decode_list
	.p2align	2
_golomb_decode_list:                    ; @golomb_decode_list
	.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
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	cmp	w1, #1
	b.le	LBB0_6
; %bb.1:
	mov	w9, #1
	mov	w8, #-2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #1
	add	w8, w8, #1
	cmp	w9, w23
	b.lt	LBB0_2
; %bb.3:
	cmn	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w25, #0
	add	w19, w8, #1
Lloh0:
	adrp	x21, _cur_bit@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cur_bit@GOTPAGEOFF]
	mov	w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	w9, w22, w19
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	add	w25, w8, w25
	bl	_load_bit
	sub	w19, w19, #1
	cmn	w19, #1
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w25, #0
LBB0_7:
	add	w19, w25, #1
	cmp	w24, #0
	ccmp	w25, #0, #8, gt
	cset	w0, ge
	bl	_assert
	mov	x0, x23
	mov	x1, x19
	bl	_compute_golomb_parameter
	mov	x22, x0
	cmp	w0, #1
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	w24, #0
	mov	w8, #1
	b.lt	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	add	w24, w24, #1
	cmp	w8, w22
	b.le	LBB0_8
LBB0_9:
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	cbz	w19, LBB0_20
; %bb.10:
	add	w23, w23, #1
	sub	w26, w8, w22
	add	w21, w24, #1
Lloh2:
	adrp	x28, _cur_bit@GOTPAGE
Lloh3:
	ldr	x28, [x28, _cur_bit@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mvn	w8, w25
	ldr	w9, [x20], #4
	add	w23, w23, w8
	cmp	w23, w9
	cset	w0, eq
	bl	_assert
	sub	w25, w19, #1
	cbz	w19, LBB0_20
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	x19, x25
	ldr	x8, [x28]
	cbz	x8, LBB0_14
LBB0_13:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w23, w23, w22
	bl	_load_bit
	ldr	x8, [x28]
	cbnz	x8, LBB0_13
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_load_bit
	cmp	w24, #2
	b.lt	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #0
	mov	x27, x21
LBB0_16:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x28]
	cmp	x9, #0
	cset	w25, ne
	bfi	w25, w8, #1, #31
	bl	_load_bit
	sub	w27, w27, #1
	mov	x8, x25
	cmp	w27, #2
	b.hi	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w25, w26
	b.lt	LBB0_11
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w25, #0
	cmp	w25, w26
	b.lt	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	lsl	w25, w25, #1
	ldr	x27, [x28]
	bl	_load_bit
	sub	w8, w25, w26
	cmp	x27, #0
	cinc	w25, w8, ne
	b	LBB0_11
LBB0_20:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_bit,8,3                    ; @cur_bit
.subsections_via_symbols
