	.file	"extr_search-engine.c_increment_rate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"p = %d, *key=%c\n"
.LC1:
	.string	"incr: item_id=%lld\n"
.LC2:
	.string	"ate%d_%d"
.LC3:
	.string	"ate%d"
.LC4:
	.string	"%d\r\n"
.LC5:
	.string	"NOT_FOUND\r\n"
	.text
	.p2align 4
	.type	increment_rate, @function
increment_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	movsx	edi, BYTE PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	get_sorting_mode@PLT
	movsx	ecx, BYTE PTR 0[rbp]
	mov	edi, 4
	lea	rsi, .LC0[rip]
	movsx	rdx, eax
	xor	eax, eax
	mov	r12, rdx
	call	vkprintf@PLT
	test	r12d, r12d
	js	.L4
	cmp	DWORD PTR MAX_RATES[rip], r12d
	jg	.L23
.L4:
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	edi, 3
	xor	eax, eax
	call	vkprintf@PLT
.L3:
	mov	edx, 11
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	call	write_out@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	add	rbp, 1
	lea	r15, 20[rsp]
	lea	rdx, 16[rsp]
	xor	eax, eax
	mov	rcx, r15
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	sscanf@PLT
	cmp	eax, 2
	jne	.L5
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	je	.L4
	mov	ebp, DWORD PTR 20[rsp]
	test	ebp, ebp
	jle	.L4
	sal	rbp, 32
	lea	ebx, 1[r12]
	add	rbp, rax
.L6:
	xor	eax, eax
	mov	rdx, rbp
	mov	edi, 3
	lea	rsi, .LC1[rip]
	call	vkprintf@PLT
	cmp	ebx, 1
	je	.L9
	cmp	ebx, 2
	jne	.L25
	mov	rsi, r14
	mov	rdi, rbp
	call	do_incr_rate2@PLT
.L7:
	test	eax, eax
	je	.L3
	lea	rdi, 12[rsp]
	mov	edx, r12d
	mov	rsi, rbp
	call	get_single_rate@PLT
	test	eax, eax
	je	.L13
	mov	edx, DWORD PTR 12[rsp]
	lea	rsi, .LC4[rip]
	lea	rdi, value.1962[rip]
	call	sprintf@PLT
	lea	rsi, value.1962[rip]
	mov	rdi, r13
	mov	edx, eax
	call	write_out@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	mov	rdx, r15
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	sscanf@PLT
	cmp	eax, 1
	jne	.L4
	movsx	rbp, DWORD PTR 20[rsp]
	lea	ebx, 1[r12]
	test	ebp, ebp
	jg	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdx, r14
	mov	esi, r12d
	mov	rdi, rbp
	call	do_incr_rate_new@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r14
	mov	rdi, rbp
	call	do_incr_rate@PLT
	jmp	.L7
.L13:
	mov	eax, -1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	increment_rate, .-increment_rate
	.local	value.1962
	.comm	value.1962,32,32
	.comm	MAX_RATES,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_search-engine.c_increment_rate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"p = %d, *key=%c\012\000"
	.align	2
.LC1:
	.ascii	"incr: item_id=%lld\012\000"
	.align	2
.LC2:
	.ascii	"ate%d_%d\000"
	.align	2
.LC3:
	.ascii	"ate%d\000"
	.align	2
.LC4:
	.ascii	"%d\015\012\000"
	.align	2
.LC5:
	.ascii	"NOT_FOUND\015\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	increment_rate, %function
increment_rate:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r8, r9, lr}
	ldr	r3, .L25
	sub	sp, sp, #24
	mov	r6, r0
	ldrb	r0, [r1]	@ zero_extendqisi2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	get_sorting_mode
	mov	r4, r0
	ldrb	r1, [r5]	@ zero_extendqisi2
	mov	r2, r0
	asr	r3, r0, #31
	str	r1, [sp]
	mov	r0, #4
	ldr	r1, .L25+4
	bl	vkprintf
	cmp	r4, #0
	blt	.L4
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L23
.L4:
	mov	r2, #0
	mov	r3, #0
	mov	r0, #3
	ldr	r1, .L25+12
	bl	vkprintf
.L3:
	mov	r0, r6
	mov	r2, #11
	ldr	r1, .L25+16
	bl	write_out
	mov	r0, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r8, r9, pc}
.L23:
	add	r5, r5, #1
	mov	r0, r5
	ldr	r1, .L25+20
	add	r3, sp, #16
	add	r2, sp, #12
	bl	sscanf
	cmp	r0, #2
	bne	.L5
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L4
	ldr	r2, [sp, #16]
	cmp	r2, #0
	ble	.L4
	mov	r8, #0
	adds	r8, r8, r3
	add	r5, r4, #1
	adc	r9, r2, #0
.L6:
	mov	r2, r8
	mov	r3, r9
	mov	r0, #3
	ldr	r1, .L25+12
	bl	vkprintf
	cmp	r5, #1
	beq	.L9
	cmp	r5, #2
	beq	.L10
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	mov	r0, r8
	stm	sp, {r2-r3}
	mov	r1, r9
	mov	r2, r4
	bl	do_incr_rate_new
.L7:
	cmp	r0, #0
	beq	.L3
	mov	r2, r8
	mov	r3, r9
	str	r4, [sp]
	add	r0, sp, #8
	bl	get_single_rate
	cmp	r0, #0
	beq	.L13
	ldr	r2, [sp, #8]
	ldr	r1, .L25+24
	ldr	r0, .L25+28
	bl	sprintf
	ldr	r1, .L25+28
	mov	r2, r0
	mov	r0, r6
	bl	write_out
	mov	r0, #0
	b	.L1
.L5:
	mov	r0, r5
	ldr	r1, .L25+32
	add	r2, sp, #16
	bl	sscanf
	cmp	r0, #1
	bne	.L4
	ldr	r8, [sp, #16]
	cmp	r8, #0
	asrgt	r9, r8, #31
	addgt	r5, r4, #1
	bgt	.L6
	b	.L4
.L10:
	mov	r0, r8
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	mov	r1, r9
	bl	do_incr_rate2
	b	.L7
.L9:
	mov	r0, r8
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	mov	r1, r9
	bl	do_incr_rate
	b	.L7
.L13:
	mvn	r0, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC6
	.word	.LC0
	.word	MAX_RATES
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.word	.LC4
	.word	.LANCHOR0
	.word	.LC3
	.size	increment_rate, .-increment_rate
	.comm	MAX_RATES,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	value.4246, %object
	.size	value.4246, 32
value.4246:
	.space	32
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
