	.file	"extr_compr_rubin.c_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode, @function
decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR UPPER_BIT_RUBIN[rip]
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r8, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	rsi, QWORD PTR [rdi]
	cmp	rax, r8
	jbe	.L2
	lea	rdx, [rsi+r8]
	cmp	rax, rdx
	jnb	.L2
.L3:
	mov	rax, rbp
	xor	edx, edx
	add	rbp, r12
	imul	rax, rsi
	div	rbp
	mov	edx, 1
	test	rax, rax
	cmovle	rax, rdx
	lea	rdx, -1[rsi]
	cmp	rax, rsi
	cmovnb	rax, rdx
	mov	rdx, QWORD PTR 16[rbx]
	xor	r9d, r9d
	add	r8, rax
	cmp	rdx, r8
	setge	r9b
	jl	.L5
	mov	QWORD PTR 8[rbx], r8
	sub	rsi, rax
	mov	rax, rsi
.L5:
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r9d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, r8
	mov	rdi, rbx
	call	__do_decode@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	r8, QWORD PTR 8[rbx]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	decode, .-decode
	.comm	UPPER_BIT_RUBIN,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_compr_rubin.c_decode.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode, %function
decode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r5, [r0, #4]
	mov	r4, r0
	cmp	r3, r5
	mov	r7, r1
	mov	r8, r2
	ldr	r6, [r0]
	bls	.L2
	add	r2, r6, r5
	cmp	r3, r2
	bcc	.L3
.L2:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	__do_decode
	ldr	r6, [r4]
	ldr	r5, [r4, #4]
.L3:
	mul	r0, r6, r7
	add	r1, r7, r8
	bl	__aeabi_uidiv
	cmp	r0, #1
	movge	r3, r0
	movlt	r3, #1
	cmp	r3, r6
	subcs	r3, r6, #1
	ldr	r2, [r4, #8]
	add	r5, r5, r3
	cmp	r2, r5
	subge	r3, r6, r3
	movge	r0, #1
	movlt	r0, #0
	strge	r5, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	UPPER_BIT_RUBIN
	.size	decode, .-decode
	.comm	UPPER_BIT_RUBIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
