	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_iter_init               ## -- Begin function golomb_iter_init
	.p2align	4, 0x90
_golomb_iter_init:                      ## @golomb_iter_init
	.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
	pushq	%rax
	.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
	movq	%rdi, %r12
	movq	%rsi, 24(%rdi)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_LEN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	leal	1(%rax), %ecx
	movl	$1, %r13d
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, 12(%r12)
	leaq	4(%rsi), %rcx
	movq	%rcx, 24(%r12)
	movl	(%rsi), %ecx
	shll	$24, %ecx
	orl	$8388608, %ecx                  ## imm = 0x800000
	movl	%ecx, 16(%r12)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_cur_bit@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addl	%eax, %ebx
	xorl	%eax, %eax
	callq	_load_bit
	movl	8(%r12), %ecx
	leal	-1(%rcx), %eax
	movl	%eax, 8(%r12)
	testl	%ecx, %ecx
	jle	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	cmpq	$0, (%r15)
	movl	$0, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	jmp	LBB0_7
LBB0_1:
	movq	$0, (%r12)
	jmp	LBB0_14
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, 4(%r12)
	notl	%ebx
	shrl	$31, %ebx
	movl	%ebx, %edi
	callq	_assert
	movl	4(%r12), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rsi,%rax), %edi
	addl	%esi, %eax
	incl	%eax
	movl	%eax, (%r12)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_compute_golomb_parameter
	movl	%eax, 20(%r12)
	movl	$0, 8(%r12)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:
	movl	$1, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	%r13d, %r13d
	incl	%ecx
	cmpl	%eax, %r13d
	jle	LBB0_10
## %bb.11:
	movl	%ecx, 8(%r12)
LBB0_12:
	subl	%eax, %r13d
	movl	%r13d, 12(%r12)
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_golomb_iter_next
	cmpl	%r14d, (%r12)
	jg	LBB0_13
LBB0_14:
	addq	$8, %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_iter_init               ; -- Begin function golomb_iter_init
	.p2align	2
_golomb_iter_init:                      ; @golomb_iter_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	x1, [x0, #24]
	cbz	x1, LBB0_8
; %bb.1:
	mov	x20, x4
	mov	x21, x2
Lloh0:
	adrp	x8, _LEN_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEN_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #1
	mov	w22, #1
	lsl	w9, w22, w9
	stp	w8, w9, [x19, #8]
	ldr	w9, [x1], #4
	str	x1, [x19, #24]
	mov	w10, #8388608
	bfi	w10, w9, #24, #8
	str	w10, [x19, #16]
	mov	w23, #0
	tbnz	w8, #31, LBB0_4
; %bb.2:
Lloh3:
	adrp	x24, _cur_bit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _cur_bit@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	lsl	w8, w22, w8
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	add	w23, w8, w23
	bl	_load_bit
	ldr	w9, [x19, #8]
	sub	w8, w9, #1
	str	w8, [x19, #8]
	cmp	w9, #0
	b.gt	LBB0_3
LBB0_4:
	str	w23, [x19, #4]
	mvn	w8, w23
	lsr	w0, w8, #31
	bl	_assert
	ldr	w1, [x19, #4]
	add	w0, w1, w21
	add	w8, w0, #1
	str	w8, [x19]
	bl	_compute_golomb_parameter
	str	w0, [x19, #20]
	str	wzr, [x19, #8]
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w9, #0
	mov	w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	add	w9, w9, #1
	cmp	w8, w0
	b.le	LBB0_6
; %bb.7:
	str	w9, [x19, #8]
	b	LBB0_10
LBB0_8:
	str	xzr, [x19]
	b	LBB0_12
LBB0_9:
	mov	w8, #1
LBB0_10:
	sub	w8, w8, w0
	str	w8, [x19, #12]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_golomb_iter_next
	ldr	w8, [x19]
	cmp	w8, w20
	b.gt	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LEN_BITS,4,2                   ; @LEN_BITS
	.comm	_cur_bit,8,3                    ; @cur_bit
.subsections_via_symbols
