	.file	"extr_rpc-proxy-merge-news-r.c_set_rlen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_rlen, @function
set_rlen:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR CC[rip]
	mov	esi, DWORD PTR [rdi]
	test	esi, esi
	jle	.L2
	mov	rcx, QWORD PTR Rlen[rip]
	mov	rdx, QWORD PTR Rfirst[rip]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rcx+rax*8], 0
	mov	DWORD PTR [rdx+rax*4], -1
	mov	esi, DWORD PTR [rdi]
	add	rax, 1
	cmp	esi, eax
	jg	.L3
.L2:
	mov	ecx, DWORD PTR Q_size[rip]
	mov	QWORD PTR R_common_len[rip], 0
	sub	ecx, 1
	js	.L10
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	r9, QWORD PTR Q[rip]
	movsx	rcx, ecx
	mov	r11, QWORD PTR Rfirst[rip]
	mov	r10, QWORD PTR QN[rip]
	mov	r8, QWORD PTR Rlen[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, rcx
	sal	rax, 4
	mov	rax, QWORD PTR [r9+rax]
	cdq
	xor	eax, edx
	sub	eax, edx
	cdq
	idiv	esi
	cmp	edx, DWORD PTR [rdi]
	jge	.L5
	movsx	rax, edx
	lea	rdx, [r11+rax*4]
	mov	ebx, DWORD PTR [rdx]
	mov	DWORD PTR [r10+rcx*4], ebx
	mov	DWORD PTR [rdx], ecx
	add	QWORD PTR [r8+rax*8], 1
.L5:
	sub	rcx, 1
	test	ecx, ecx
	jns	.L6
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	ret
	.cfi_endproc
.LFE0:
	.size	set_rlen, .-set_rlen
	.comm	Rlen,8,8
	.comm	Rfirst,8,8
	.comm	R_common_len,8,8
	.comm	R,8,8
	.comm	Q_size,4,4
	.comm	QN,8,8
	.comm	Q,8,8
	.comm	CC,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_rpc-proxy-merge-news-r.c_set_rlen.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_rlen, %function
set_rlen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L12
	ldr	r6, [r3]
	ldr	r5, [r6]
	cmp	r5, #0
	ble	.L9
	mov	r3, #0
	mvn	ip, #0
	mov	r0, r3
	ldr	r1, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	sub	r1, r1, #4
	sub	r2, r2, #4
.L3:
	str	r0, [r1, #4]!
	str	ip, [r2, #4]!
	ldr	r5, [r6]
	add	r3, r3, #1
	cmp	r5, r3
	mov	r10, r5
	bgt	.L3
.L2:
	mov	r2, #0
	ldr	r1, .L12+12
	ldr	r3, .L12+16
	ldr	r4, [r1]
	str	r2, [r3]
	subs	r4, r4, #1
	popmi	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r0, .L12+20
	ldr	r1, .L12+8
	ldr	r2, .L12+24
	ldr	r3, .L12+4
	ldr	fp, [r0]
	ldr	r8, [r1]
	ldr	r9, [r2]
	ldr	r7, [r3]
.L6:
	ldr	r0, [fp, r4, lsl #3]
	mov	r1, r10
	cmp	r0, #0
	rsblt	r0, r0, #0
	bl	__aeabi_idivmod
	cmp	r1, r5
	bge	.L5
	ldr	r3, [r7, r1, lsl #2]
	ldr	r2, [r8, r1, lsl #2]
	add	r3, r3, #1
	str	r2, [r9, r4, lsl #2]
	str	r4, [r8, r1, lsl #2]
	str	r3, [r7, r1, lsl #2]
.L5:
	subs	r4, r4, #1
	popcc	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r5, [r6]
	b	.L6
.L9:
	mov	r10, r5
	b	.L2
.L13:
	.align	2
.L12:
	.word	CC
	.word	Rlen
	.word	Rfirst
	.word	Q_size
	.word	R_common_len
	.word	Q
	.word	QN
	.size	set_rlen, .-set_rlen
	.comm	Rlen,4,4
	.comm	Rfirst,4,4
	.comm	R_common_len,4,4
	.comm	R,4,4
	.comm	Q_size,4,4
	.comm	QN,4,4
	.comm	Q,4,4
	.comm	CC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
