	.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
	movq	%rdi, %r12
	movq	%rsi, 24(%rdi)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movl	%edx, %r15d
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, 8(%r12)
	cmpl	$2, %edx
	jl	LBB0_17
## %bb.3:
	movl	$1, %ecx
	movl	$-2, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	incl	%eax
	cmpl	%r15d, %ecx
	jl	LBB0_4
## %bb.5:
	movl	%ecx, 12(%r12)
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r12)
	leaq	4(%rsi), %rdx
	movq	%rdx, 24(%r12)
	movl	(%rsi), %edx
	shll	$24, %edx
	orl	$8388608, %edx                  ## imm = 0x800000
	movl	%edx, 16(%r12)
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	jl	LBB0_10
## %bb.6:
	movq	_cur_bit@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	addl	%ecx, %ebx
	xorl	%eax, %eax
	callq	_load_bit
	movl	8(%r12), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, 8(%r12)
	testl	%eax, %eax
	jle	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	cmpq	$0, (%r13)
	movl	$0, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_9
LBB0_1:
	movq	$0, (%r12)
	jmp	LBB0_16
LBB0_17:
	leaq	4(%rsi), %rax
	movq	%rax, 24(%r12)
	movl	(%rsi), %eax
	shll	$24, %eax
	orl	$8388608, %eax                  ## imm = 0x800000
	movl	%eax, 16(%r12)
	xorl	%ebx, %ebx
LBB0_10:
	leal	1(%rbx), %eax
	movl	%eax, 4(%r12)
	notl	%ebx
	shrl	$31, %ebx
	movl	%ebx, %edi
	callq	_assert
	leal	1(%r15), %eax
	movl	%eax, (%r12)
	movl	4(%r12), %esi
	movl	%r15d, %edi
	callq	_compute_golomb_parameter
	movl	%eax, 20(%r12)
	movl	$0, 8(%r12)
	movl	$1, %ecx
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	incl	%edx
	cmpl	%eax, %ecx
	jle	LBB0_12
## %bb.13:
	movl	%edx, 8(%r12)
LBB0_14:
	subl	%eax, %ecx
	movl	%ecx, 12(%r12)
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_golomb_iter_next
	cmpl	%r14d, (%r12)
	jg	LBB0_15
LBB0_16:
	addq	$8, %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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function golomb_iter_init
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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_7
; %bb.1:
	mov	x20, x4
	mov	x21, x2
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	cmp	w2, #2
	b.lt	LBB0_8
; %bb.2:
	mov	w10, #1
	mov	w9, #-2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w10, w10, #1
	add	w9, w9, #1
	cmp	w10, w21
	b.lt	LBB0_3
; %bb.4:
	add	w8, w9, #1
	stp	w8, w10, [x19, #8]
	ldr	w10, [x1], #4
	str	x1, [x19, #24]
	mov	w11, #8388608
	bfi	w11, w10, #24, #8
	str	w11, [x19, #16]
	cmn	w9, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w22, #0
Lloh2:
	adrp	x23, _cur_bit@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cur_bit@GOTPAGEOFF]
	mov	w24, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	lsl	w8, w24, w8
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	add	w22, w8, w22
	bl	_load_bit
	ldr	w9, [x19, #8]
	sub	w8, w9, #1
	str	w8, [x19, #8]
	cmp	w9, #0
	b.gt	LBB0_6
	b	LBB0_10
LBB0_7:
	str	xzr, [x19]
	b	LBB0_17
LBB0_8:
	mov	w22, #0
	ldr	w8, [x1], #4
	str	x1, [x19, #24]
	mov	w9, #8388608
	bfi	w9, w8, #24, #8
	str	w9, [x19, #16]
	b	LBB0_10
LBB0_9:
	mov	w22, #0
LBB0_10:
	add	w8, w22, #1
	str	w8, [x19, #4]
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	add	w8, w21, #1
	str	w8, [x19]
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_compute_golomb_parameter
	str	w0, [x19, #20]
	str	wzr, [x19, #8]
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.11:
	mov	w9, #0
	mov	w8, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	add	w9, w9, #1
	cmp	w8, w0
	b.le	LBB0_12
; %bb.13:
	str	w9, [x19, #8]
	b	LBB0_15
LBB0_14:
	mov	w8, #1
LBB0_15:
	sub	w8, w8, w0
	str	w8, [x19, #12]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_golomb_iter_next
	ldr	w8, [x19]
	cmp	w8, w20
	b.gt	LBB0_16
LBB0_17:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_bit,8,3                    ; @cur_bit
.subsections_via_symbols
