	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function golomb_encoder_init
_golomb_encoder_init:                   ## @golomb_encoder_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	movl	28(%rdi), %edi
	callq	_compute_golomb_parameter
	movl	$31, (%rbx)
	movl	$1, %ecx
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movl	$31, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	decl	%edx
	cmpl	%eax, %ecx
	jle	LBB0_2
## %bb.3:
	movl	%edx, (%rbx)
LBB0_4:
	subl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, 8(%rbx)
	movl	$-1, 12(%rbx)
	movq	_golomb_encode_int@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_golomb_encode_int,4,2          ## @golomb_encode_int
	.no_dead_strip	_golomb_encoder_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function golomb_encoder_init
_golomb_encoder_init:                   ; @golomb_encoder_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #28]
	ldr	w1, [x19, #24]
	bl	_compute_golomb_parameter
	mov	w8, #31
	str	w8, [x19]
	mov	w8, #1
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, #31
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	sub	w9, w9, #1
	cmp	w8, w0
	b.le	LBB0_2
; %bb.3:
	str	w9, [x19]
LBB0_4:
	sub	w8, w8, w0
	stp	w8, w0, [x19, #4]
	mov	w8, #-1
	str	w8, [x19, #12]
Lloh0:
	adrp	x8, _golomb_encode_int@GOTPAGE
Lloh1:
	ldr	x8, [x8, _golomb_encode_int@GOTPAGEOFF]
	str	x8, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_golomb_encode_int,4,2          ; @golomb_encode_int
	.no_dead_strip	_golomb_encoder_init
.subsections_via_symbols
