	.file	"extr_bloomfilter.c_bloom_add_element.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bloom_add_element
	.type	bloom_add_element, @function
bloom_add_element:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_HASH_FUNCS[rip]
	mov	rdi, rsp
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rcx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L15
.L4:
	mov	r12, rsp
	mov	rcx, rdx
	mov	rdi, rbx
	mov	rdx, rsi
	mov	rsi, r12
	call	k_hashes@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L1
	mov	rsi, QWORD PTR 8[rbx]
	xor	edx, edx
	mov	edi, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR [r12+rdx*4]
	mov	r8d, edi
	add	rdx, 1
	mov	eax, ecx
	and	ecx, 7
	sar	eax, 3
	sal	r8d, cl
	cdqe
	or	DWORD PTR [rsi+rax*4], r8d
	cmp	DWORD PTR [rbx], edx
	jg	.L6
.L1:
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bloom_add_element, .-bloom_add_element
	.comm	MAX_HASH_FUNCS,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_bloomfilter.c_bloom_add_element.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bloom_add_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	bloom_add_element, %function
bloom_add_element:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r3, .L9
	mov	r4, r0
	ldr	ip, [r3]
	mov	r3, r2
	lsl	ip, ip, #2
	add	ip, ip, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r5, sp
	ldr	ip, .L9+4
	mov	r2, r1
	mov	r1, r5
	ldr	ip, [ip]
	str	ip, [fp, #-24]
	mov	ip,#0
	bl	k_hashes
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L1
	mov	ip, #0
	mov	r6, #1
	ldr	r0, [r4, #4]
	sub	r1, r5, #4
.L3:
	ldr	r3, [r1, #4]!
	add	ip, ip, #1
	asr	lr, r3, #3
	ldr	r2, [r0, lr, lsl #2]
	and	r3, r3, #7
	orr	r3, r2, r6, lsl r3
	str	r3, [r0, lr, lsl #2]
	ldr	r3, [r4]
	cmp	r3, ip
	bgt	.L3
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_HASH_FUNCS
	.word	.LC0
	.size	bloom_add_element, .-bloom_add_element
	.comm	MAX_HASH_FUNCS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
