	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_golomb_max_size                ## -- Begin function golomb_max_size
	.p2align	4, 0x90
_golomb_max_size:                       ## @golomb_max_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	_LEN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.2:
	movq	_cur_bit@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %r14d
	xorl	%eax, %eax
	callq	_load_bit
	addl	$-1, %ebx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cmpq	$0, (%r15)
	movl	$0, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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_max_size                ; -- Begin function golomb_max_size
	.p2align	2
_golomb_max_size:                       ; @golomb_max_size
	.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	w19, #0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _LEN_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEN_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	tbnz	w20, #31, LBB0_4
; %bb.2:
	mov	w19, #0
Lloh3:
	adrp	x21, _cur_bit@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cur_bit@GOTPAGEOFF]
	mov	w22, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	w9, w22, w20
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	add	w19, w8, w19
	bl	_load_bit
	sub	w20, w20, #1
	cmn	w20, #1
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x19
	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 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
