	.file	"extr_compr_rubin.c_encode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encode, @function
encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	rbx, 8[rdi]
	mov	ecx, DWORD PTR [rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, DWORD PTR [r14]
	and	ecx, DWORD PTR LOWER_BITS_RUBIN[rip]
	sal	DWORD PTR 4[r14]
	add	ecx, ecx
	mov	DWORD PTR [r14], ecx
.L2:
	mov	eax, DWORD PTR UPPER_BIT_RUBIN[rip]
	cmp	eax, ecx
	jle	.L4
	mov	edi, DWORD PTR 4[r14]
	lea	edx, [rdi+rcx]
	cmp	eax, edx
	jl	.L10
.L4:
	add	DWORD PTR 12[r14], 1
	xor	esi, esi
	test	eax, ecx
	mov	rdi, rbx
	setne	sil
	xor	edx, edx
	call	pushbit@PLT
	test	eax, eax
	je	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movsx	rsi, edi
	mov	rax, rsi
	imul	rax, rbp
	add	rbp, r13
	cqo
	idiv	rbp
	mov	edx, 1
	test	rax, rax
	cmovle	rax, rdx
	cmp	rsi, rax
	jle	.L5
	sub	rsi, rax
	test	r12d, r12d
	jne	.L7
.L12:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	DWORD PTR 4[r14], eax
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	sub	edi, 1
	mov	esi, 1
	movsx	rax, edi
	test	r12d, r12d
	je	.L12
.L7:
	add	ecx, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	DWORD PTR 4[r14], esi
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR [r14], ecx
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	encode, .-encode
	.comm	UPPER_BIT_RUBIN,4,4
	.comm	LOWER_BITS_RUBIN,4,4
	.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_encode.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r0
	mov	r5, r0
	mov	r8, r1
	mov	r10, r2
	mov	r9, r3
	ldr	r4, [fp], #8
	ldr	r6, .L12
	ldr	r7, .L12+4
	sub	sp, sp, #12
	b	.L2
.L11:
	ldr	r4, [r5]
	ldr	r2, [r7]
	ldr	r3, [r5, #4]
	and	r4, r4, r2
	lsl	r4, r4, #1
	lsl	r3, r3, #1
	str	r4, [r5]
	str	r3, [r5, #4]
.L2:
	ldr	r2, [r6]
	cmp	r2, r4
	ble	.L4
	ldr	r3, [r5, #4]
	add	r1, r3, r4
	cmp	r2, r1
	blt	.L10
.L4:
	ldr	r3, [r5, #12]
	tst	r2, r4
	add	r3, r3, #1
	movne	r1, #1
	moveq	r1, #0
	mov	r2, #0
	mov	r0, fp
	str	r3, [r5, #12]
	bl	pushbit
	cmp	r0, #0
	beq	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	add	r1, r8, r10
	mul	r0, r8, r3
	str	r3, [sp, #4]
	bl	__aeabi_idiv
	cmp	r0, #1
	movge	r2, r0
	movlt	r2, #1
	ldr	r3, [sp, #4]
	cmp	r3, r2
	suble	r2, r3, #1
	movle	r1, #1
	subgt	r1, r3, r2
	cmp	r9, #0
	moveq	r0, r9
	movne	r0, #0
	addne	r4, r2, r4
	streq	r2, [r5, #4]
	strne	r4, [r5]
	strne	r1, [r5, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	UPPER_BIT_RUBIN
	.word	LOWER_BITS_RUBIN
	.size	encode, .-encode
	.comm	UPPER_BIT_RUBIN,4,4
	.comm	LOWER_BITS_RUBIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
