	.file	"extr_stats.c_stats_prefix_find.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't allocate space for stats structure: calloc"
	.align 8
.LC1:
	.string	"Can't allocate space for copy of prefix: malloc"
	.text
	.p2align 4
	.type	stats_prefix_find, @function
stats_prefix_find:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	setne	dil
	movzx	edi, dil
	call	assert@PLT
	test	r12, r12
	je	.L11
	movzx	edx, BYTE PTR settings[rip]
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	dl, al
	je	.L4
	add	rbx, 1
	cmp	r12, rbx
	je	.L11
.L3:
	movzx	eax, BYTE PTR 0[rbp+rbx]
	test	al, al
	jne	.L5
.L11:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	call	hash@PLT
	xor	edx, edx
	div	QWORD PTR PREFIX_HASH_SIZE[rip]
	mov	rax, QWORD PTR prefix_stats[rip]
	mov	r12, QWORD PTR [rax+rdx*8]
	lea	r13, 0[0+rdx*8]
	test	r12, r12
	je	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR [r12]
	mov	rdx, rbx
	mov	rsi, rbp
	call	strncmp@PLT
	test	rax, rax
	je	.L1
	mov	r12, QWORD PTR 16[r12]
	test	r12, r12
	jne	.L6
.L9:
	mov	esi, 1
	mov	edi, 24
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L19
	lea	rdi, 1[rbx]
	call	malloc@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L20
	mov	rdx, rbx
	mov	rsi, rbp
	call	strncpy@PLT
	mov	rax, QWORD PTR [r12]
	mov	BYTE PTR [rax+rbx], 0
	add	r13, QWORD PTR prefix_stats[rip]
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR 8[r12], rbx
	mov	QWORD PTR 16[r12], rax
	mov	rax, r12
	mov	QWORD PTR 0[r13], r12
	add	QWORD PTR total_prefix_size[rip], rbx
	add	DWORD PTR num_prefixes[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	perror@PLT
	jmp	.L1
.L20:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	stats_prefix_find, .-stats_prefix_find
	.comm	total_prefix_size,8,8
	.comm	settings,1,1
	.comm	prefix_stats,8,8
	.comm	num_prefixes,4,4
	.comm	PREFIX_HASH_SIZE,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_stats.c_stats_prefix_find.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't allocate space for stats structure: calloc\000"
	.align	2
.LC1:
	.ascii	"Can't allocate space for copy of prefix: malloc\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stats_prefix_find, %function
stats_prefix_find:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	cmp	r4, #0
	beq	.L1
	ldr	r3, .L23
	sub	r4, r4, #1
	ldrb	r0, [r3]	@ zero_extendqisi2
	add	r2, r4, r6
	sub	r3, r6, #1
	rsb	r1, r6, #1
	b	.L3
.L5:
	cmp	r0, r4
	beq	.L4
	cmp	r2, r3
	beq	.L11
.L3:
	add	r5, r1, r3
	ldrb	r4, [r3, #1]!	@ zero_extendqisi2
	cmp	r4, #0
	bne	.L5
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	hash
	ldr	r3, .L23+4
	ldr	r4, .L23+8
	ldr	r1, [r3]
	bl	__aeabi_uidivmod
	ldr	r9, [r4]
	mov	r7, r1
	ldr	r4, [r9, r1, lsl #2]
	cmp	r4, #0
	bne	.L6
	b	.L9
.L20:
	ldr	r4, [r4, #8]
	cmp	r4, #0
	beq	.L9
.L6:
	mov	r2, r5
	mov	r1, r6
	ldr	r0, [r4]
	bl	strncmp
	cmp	r0, #0
	bne	.L20
	b	.L1
.L9:
	mov	r1, #1
	mov	r0, #12
	bl	calloc
	subs	r4, r0, #0
	beq	.L21
	add	r0, r5, #1
	bl	malloc
	cmp	r0, #0
	mov	r8, r0
	str	r0, [r4]
	beq	.L22
	mov	r1, r6
	mov	r2, r5
	bl	strncpy
	mov	r3, #0
	ldr	r0, .L23+12
	ldr	r1, .L23+16
	ldr	r2, [r0]
	strb	r3, [r8, r5]
	ldr	r3, [r1]
	ldr	ip, [r9, r7, lsl #2]
	add	r2, r2, #1
	add	r3, r3, r5
	stmib	r4, {r5, ip}
	str	r4, [r9, r7, lsl #2]
	str	r2, [r0]
	str	r3, [r1]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r0, .L23+20
	bl	perror
	b	.L1
.L22:
	ldr	r0, .L23+24
	bl	perror
	mov	r0, r4
	bl	free
	mov	r4, r8
	b	.L1
.L24:
	.align	2
.L23:
	.word	settings
	.word	PREFIX_HASH_SIZE
	.word	prefix_stats
	.word	num_prefixes
	.word	total_prefix_size
	.word	.LC0
	.word	.LC1
	.size	stats_prefix_find, .-stats_prefix_find
	.comm	total_prefix_size,4,4
	.comm	settings,1,4
	.comm	prefix_stats,4,4
	.comm	num_prefixes,4,4
	.comm	PREFIX_HASH_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
