	.file	"extr_rtl-factoring.c_recompute_gain.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	recompute_gain, @function
recompute_gain:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR pattern_seqs[rip]
	test	rdi, rdi
	je	.L12
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	rbx, pattern_seqs[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	mov	QWORD PTR [rbx], rdi
	mov	rdx, QWORD PTR pattern_seqs[rip]
	mov	ebp, eax
	mov	QWORD PTR pattern_seqs[rip], r8
	mov	QWORD PTR 8[r8], rdx
	mov	rdi, QWORD PTR [rbx]
.L6:
	test	rdi, rdi
	je	.L16
.L2:
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L17
.L3:
	mov	r8, QWORD PTR [rbx]
	mov	eax, DWORD PTR [r8]
	mov	rdi, QWORD PTR 8[r8]
	test	eax, eax
	jle	.L4
	cmp	eax, ebp
	jg	.L18
	lea	rbx, 8[r8]
	test	rdi, rdi
	jne	.L2
.L16:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	QWORD PTR [rbx], rdi
	mov	rdi, r8
	call	free_pattern_seq@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	call	recompute_gain_for_pattern_seq@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	recompute_gain, .-recompute_gain
	.comm	pattern_seqs,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_rtl-factoring.c_recompute_gain.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recompute_gain, %function
recompute_gain:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L13
	ldr	r3, [r6]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r5, #0
	mov	r4, r6
	b	.L2
.L3:
	ldr	r0, [r4]
	ldm	r0, {r2, r3}
	cmp	r2, #0
	ble	.L4
.L12:
	cmp	r2, r5
	strgt	r3, [r4]
	ldrgt	r3, [r6]
	strgt	r0, [r6]
	strgt	r3, [r0, #4]
	ldrgt	r3, [r4]
	movgt	r5, r2
	addle	r4, r0, #4
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
.L2:
	ldr	r2, [r3]
	cmp	r2, #0
	bgt	.L3
	mov	r0, r3
	bl	recompute_gain_for_pattern_seq
	ldr	r0, [r4]
	ldm	r0, {r2, r3}
	cmp	r2, #0
	bgt	.L12
.L4:
	str	r3, [r4]
	bl	free_pattern_seq
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	pattern_seqs
	.size	recompute_gain, .-recompute_gain
	.comm	pattern_seqs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
