	.file	"extr_maccub.c_compute_golomb_parameter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	compute_golomb_parameter
	.type	compute_golomb_parameter, @function
compute_golomb_parameter:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	ebp, ebp
	setg	al
	cmp	ebp, edi
	setle	dil
	movzx	edi, dil
	and	edi, eax
	call	assert@PLT
	movsx	rax, ebx
	imul	rax, rax, 10557376
	cqo
	idiv	rbp
	lea	rcx, 2336849[rax]
	cmp	rcx, 167474174
	jg	.L2
	mov	rdi, QWORD PTR golomb_crit[rip]
	mov	edx, ecx
	mov	esi, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, esi
	cmp	DWORD PTR -4[rdi+rsi*4], edx
	jge	.L1
	add	rsi, 1
	cmp	rsi, 11
	jne	.L4
.L2:
	movabs	rdx, -8287085935966111175
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rcx, 63
	sar	rax, 23
	sub	eax, ecx
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	compute_golomb_parameter, .-compute_golomb_parameter
	.comm	golomb_crit,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_maccub.c_compute_golomb_parameter.c"
	.text
	.global	__aeabi_ldivmod
	.align	2
	.global	compute_golomb_parameter
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_golomb_parameter, %function
compute_golomb_parameter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	subs	r6, r1, #0
	movgt	r0, #1
	movle	r0, #0
	cmp	r1, r7
	movgt	r0, #0
	bl	assert
	ldr	r0, .L8+16
	mov	r2, r6
	mov	ip, r0
	asr	r3, r6, #31
	smull	r0, r1, r7, ip
	adr	r7, .L8
	ldmia	r7, {r6-r7}
	bl	__aeabi_ldivmod
	mov	r2, #0
	ldr	r3, .L8+20
	adds	r4, r0, r3
	adc	r5, r1, r2
	cmp	r6, r4
	sbcs	r3, r7, r5
	blt	.L2
	mov	r1, r4
	mov	r0, #1
	ldr	r3, .L8+24
	ldr	r3, [r3]
	sub	r3, r3, #4
.L4:
	ldr	r2, [r3, #4]!
	cmp	r2, r1
	popge	{r4, r5, r6, r7, r8, pc}
	add	r0, r0, #1
	cmp	r0, #11
	bne	.L4
.L2:
	adr	r3, .L8+8
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	3
.L8:
	.word	167474174
	.word	0
	.word	15231074
	.word	0
	.word	10557376
	.word	2336849
	.word	golomb_crit
	.size	compute_golomb_parameter, .-compute_golomb_parameter
	.comm	golomb_crit,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
