	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_iter_next               ## -- Begin function golomb_iter_next
	.p2align	4, 0x90
_golomb_iter_next:                      ## @golomb_iter_next
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	decq	%rax
	movq	%rax, (%r15)
	movq	_cur_bit@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	subq	%rax, 16(%r15)
	xorl	%eax, %eax
	callq	_load_bit
	cmpq	$0, (%r14)
	jne	LBB0_3
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_load_bit
	movl	8(%r15), %ebx
	cmpl	$2, %ebx
	jl	LBB0_8
## %bb.6:
	incl	%ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	leal	(%rax,%r12,2), %r12d
	xorl	%eax, %eax
	callq	_load_bit
	decl	%ebx
	cmpl	$2, %ebx
	ja	LBB0_7
LBB0_8:
	cmpl	12(%r15), %r12d
	jl	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	leal	(%rax,%r12,2), %r12d
	xorl	%eax, %eax
	callq	_load_bit
	subl	12(%r15), %r12d
LBB0_10:
	incl	%r12d
	movslq	%r12d, %rax
	subq	%rax, 16(%r15)
	jmp	LBB0_11
LBB0_1:
	movq	$0, 16(%r15)
LBB0_11:
	popq	%rbx
	popq	%r12
	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_iter_next               ; -- Begin function golomb_iter_next
	.p2align	2
_golomb_iter_next:                      ; @golomb_iter_next
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	b.le	LBB0_6
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x19]
Lloh0:
	adrp	x20, _cur_bit@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cur_bit@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #16]
	sub	x8, x9, x8
	str	x8, [x19, #16]
	bl	_load_bit
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
LBB0_3:
	bl	_load_bit
	ldr	w9, [x19, #8]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.4:
	mov	w8, #0
	add	w22, w9, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x9, #0
	cset	w21, ne
	bfi	w21, w8, #1, #31
	bl	_load_bit
	sub	w22, w22, #1
	mov	x8, x21
	cmp	w22, #2
	b.hi	LBB0_5
	b	LBB0_8
LBB0_6:
	str	xzr, [x19, #16]
	b	LBB0_11
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	w8, [x19, #12]
	cmp	w21, w8
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w20, ne
	bfi	w20, w21, #1, #31
	bl	_load_bit
	ldr	w8, [x19, #12]
	sub	w21, w20, w8
LBB0_10:
	add	w8, w21, #1
	ldr	x9, [x19, #16]
	sub	x8, x9, w8, sxtw
	str	x8, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_bit,8,3                    ; @cur_bit
.subsections_via_symbols
