	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_golomb_parameter       ## -- Begin function compute_golomb_parameter
	.p2align	4, 0x90
_compute_golomb_parameter:              ## @compute_golomb_parameter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	testl	%esi, %esi
	setg	%al
	cmpl	%edi, %esi
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movslq	%r14d, %rax
	imulq	$10557376, %rax, %rax           ## imm = 0xA117C0
	movslq	%ebx, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	leaq	2336849(%rax), %rcx
	cmpq	$165137325, %rax                ## imm = 0x9D7CBAD
	jg	LBB0_14
## %bb.4:
	movq	_golomb_crit@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$1, %eax
	cmpl	%ecx, (%rdx)
	jge	LBB0_15
## %bb.5:
	movl	$2, %eax
	cmpl	%ecx, 4(%rdx)
	jge	LBB0_15
## %bb.6:
	movl	$3, %eax
	cmpl	%ecx, 8(%rdx)
	jge	LBB0_15
## %bb.7:
	movl	$4, %eax
	cmpl	%ecx, 12(%rdx)
	jge	LBB0_15
## %bb.8:
	movl	$5, %eax
	cmpl	%ecx, 16(%rdx)
	jge	LBB0_15
## %bb.9:
	movl	$6, %eax
	cmpl	%ecx, 20(%rdx)
	jge	LBB0_15
## %bb.10:
	movl	$7, %eax
	cmpl	%ecx, 24(%rdx)
	jge	LBB0_15
## %bb.11:
	movl	$8, %eax
	cmpl	%ecx, 28(%rdx)
	jge	LBB0_15
## %bb.12:
	movl	$9, %eax
	cmpl	%ecx, 32(%rdx)
	jge	LBB0_15
## %bb.13:
	movl	$10, %eax
	cmpl	%ecx, 36(%rdx)
	jge	LBB0_15
LBB0_14:
	movabsq	$-8287085935966111175, %rdx     ## imm = 0x8CFE5B3F839ABA39
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$23, %rax
	addl	%ecx, %eax
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_golomb_crit,8,3                ## @golomb_crit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compute_golomb_parameter       ; -- Begin function compute_golomb_parameter
	.p2align	2
_compute_golomb_parameter:              ; @compute_golomb_parameter
	.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, x1
	mov	x20, x0
	cmp	w1, #0
	ccmp	w1, w0, #0, gt
	cset	w0, le
	bl	_assert
	mov	w8, #6080
	movk	w8, #161, lsl #16
	smull	x8, w20, w8
	sxtw	x9, w19
	sdiv	x9, x8, x9
	add	x8, x9, #570, lsl #12           ; =2334720
	add	x8, x8, #2129
	mov	w10, #52141
	movk	w10, #2519, lsl #16
	cmp	x9, x10
	b.gt	LBB0_11
; %bb.1:
Lloh0:
	adrp	x9, _golomb_crit@GOTPAGE
Lloh1:
	ldr	x9, [x9, _golomb_crit@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w10, [x9]
	cmp	w10, w8
	b.ge	LBB0_12
; %bb.2:
	ldr	w10, [x9, #4]
	cmp	w10, w8
	b.ge	LBB0_13
; %bb.3:
	ldr	w10, [x9, #8]
	cmp	w10, w8
	b.ge	LBB0_14
; %bb.4:
	ldr	w10, [x9, #12]
	cmp	w10, w8
	b.ge	LBB0_15
; %bb.5:
	ldr	w10, [x9, #16]
	cmp	w10, w8
	b.ge	LBB0_16
; %bb.6:
	ldr	w10, [x9, #20]
	cmp	w10, w8
	b.ge	LBB0_17
; %bb.7:
	ldr	w10, [x9, #24]
	cmp	w10, w8
	b.ge	LBB0_18
; %bb.8:
	ldr	w10, [x9, #28]
	cmp	w10, w8
	b.ge	LBB0_19
; %bb.9:
	ldr	w10, [x9, #32]
	cmp	w10, w8
	b.ge	LBB0_20
; %bb.10:
	ldr	w9, [x9, #36]
	cmp	w9, w8
	b.ge	LBB0_21
LBB0_11:
	mov	x9, #47673
	movk	x9, #33690, lsl #16
	movk	x9, #23359, lsl #32
	movk	x9, #36094, lsl #48
	smulh	x9, x8, x9
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #23
	add	w0, w8, w9
	b	LBB0_22
LBB0_12:
	mov	w0, #1
	b	LBB0_22
LBB0_13:
	mov	w0, #2
	b	LBB0_22
LBB0_14:
	mov	w0, #3
	b	LBB0_22
LBB0_15:
	mov	w0, #4
	b	LBB0_22
LBB0_16:
	mov	w0, #5
	b	LBB0_22
LBB0_17:
	mov	w0, #6
	b	LBB0_22
LBB0_18:
	mov	w0, #7
	b	LBB0_22
LBB0_19:
	mov	w0, #8
	b	LBB0_22
LBB0_20:
	mov	w0, #9
	b	LBB0_22
LBB0_21:
	mov	w0, #10
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_golomb_crit,8,3                ; @golomb_crit
.subsections_via_symbols
