	.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, %r13
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_LEN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r12d, %r12d
	movl	$0, %r15d
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.1:
	movq	_cur_bit@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %r15d
	xorl	%eax, %eax
	callq	_load_bit
	addl	$-1, %ebx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cmpq	$0, (%r14)
	movl	$0, %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_4
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leal	(%r15,%r14), %edi
	movl	%r15d, %esi
	callq	_compute_golomb_parameter
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	incl	%r12d
	cmpl	%ebx, %eax
	jle	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movl	$1, %eax
LBB0_9:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.10:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %r15d
	incl	%r15d
	subl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_cur_bit@GOTPCREL(%rip), %r12
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	subl	%r14d, %r15d
	xorl	%edi, %edi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpl	(%r13), %r15d
	sete	%dil
	callq	_assert
	addq	$4, %r13
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	cmpq	$0, (%r12)
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subl	%ebx, %r15d
	xorl	%eax, %eax
	callq	_load_bit
	cmpq	$0, (%r12)
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_load_bit
	cmpl	$2, -80(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	cmpq	$0, (%r12)
	setne	%al
	leal	(%rax,%r14,2), %r14d
	xorl	%eax, %eax
	callq	_load_bit
	decl	%r13d
	cmpl	$2, %r13d
	ja	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	decl	-56(%rbp)                       ## 4-byte Folded Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %r14d
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%r14d, %r14d
	movq	(%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_load_bit
	subl	%r13d, %r14d
	cmpq	$1, -88(%rbp)                   ## 8-byte Folded Reload
	sbbl	$-1, %r14d
	jmp	LBB0_18
LBB0_19:
	xorl	%edi, %edi
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	sete	%dil
	callq	_assert
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %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
	.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
	str	w2, [sp, #8]                    ; 4-byte Folded Spill
	mov	x22, x1
Lloh0:
	adrp	x8, _LEN_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEN_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x24, _cur_bit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _cur_bit@GOTPAGEOFF]
	mov	w21, #0
	tbnz	w19, #31, LBB0_3
; %bb.1:
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	w9, w23, w19
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	add	w21, w8, w21
	bl	_load_bit
	sub	w19, w19, #1
	cmn	w19, #1
	b.ne	LBB0_2
LBB0_3:
	add	w23, w21, w22
	mov	x0, x23
	mov	x1, x21
	bl	_compute_golomb_parameter
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w25, #0
	mov	w8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	add	w25, w25, #1
	cmp	w8, w22
	b.le	LBB0_5
; %bb.6:
	cbnz	w21, LBB0_8
	b	LBB0_18
LBB0_7:
	mov	w25, #0
	mov	w8, #1
	cbz	w21, LBB0_18
LBB0_8:
	add	w23, w23, #1
	sub	w26, w8, w22
	add	w8, w25, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x28, x21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w23, w23, w22
	bl	_load_bit
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x24]
	cbnz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_load_bit
	cmp	w25, #2
	b.lt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w8, #0
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x24]
	cmp	x9, #0
	cset	w19, ne
	bfi	w19, w8, #1, #31
	bl	_load_bit
	sub	w27, w27, #1
	mov	x8, x19
	cmp	w27, #2
	b.hi	LBB0_13
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w19, #0
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	sub	w28, w28, #1
	cmp	w19, w26
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	w19, w19, #1
	ldr	x27, [x24]
	bl	_load_bit
	sub	w8, w19, w26
	cmp	x27, #0
	cinc	w19, w8, ne
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x20], #4
	sub	w23, w23, w19
	cmp	w23, w8
	cset	w0, eq
	bl	_assert
	cbnz	w28, LBB0_10
LBB0_18:
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LEN_BITS,4,2                   ; @LEN_BITS
	.comm	_cur_bit,8,3                    ; @cur_bit
.subsections_via_symbols
