	.file	"extr_fts3_hash.c_fts3RemoveElementByHash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fts3RemoveElementByHash, @function
fts3RemoveElementByHash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movsx	rax, edx
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rcx, QWORD PTR 16[rsi]
	mov	rdx, QWORD PTR 8[rsi]
	test	rcx, rcx
	je	.L2
	mov	QWORD PTR [rcx], rdx
.L3:
	test	rdx, rdx
	je	.L4
	mov	QWORD PTR 16[rdx], rcx
.L4:
	sal	rax, 4
	add	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 8[rax], r12
	je	.L17
.L5:
	mov	rsi, QWORD PTR [rax]
	lea	rdx, -1[rsi]
	mov	QWORD PTR [rax], rdx
	test	rdx, rdx
	jg	.L6
	mov	QWORD PTR 8[rax], 0
.L6:
	cmp	QWORD PTR 16[rbp], 0
	je	.L7
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L7
	call	fts3HashFree@PLT
.L7:
	mov	rdi, r12
	call	fts3HashFree@PLT
	mov	rax, QWORD PTR 0[rbp]
	sub	rax, 1
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	jle	.L18
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	QWORD PTR 8[rax], rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	QWORD PTR 8[rdi], rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], 0
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	sete	dil
	call	assert@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fts3HashClear@PLT
	.cfi_endproc
.LFE0:
	.size	fts3RemoveElementByHash, .-fts3RemoveElementByHash
	.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_fts3_hash.c_fts3RemoveElementByHash.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fts3RemoveElementByHash, %function
fts3RemoveElementByHash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, [r1, #8]
	ldr	r3, [r5, #4]
	cmp	r1, #0
	streq	r3, [r0, #4]
	strne	r3, [r1]
	cmp	r3, #0
	strne	r1, [r3, #8]
	ldr	r1, [r0, #12]
	mov	r4, r0
	add	r0, r1, r2, lsl #3
	ldr	ip, [r0, #4]
	cmp	ip, r5
	streq	r3, [r0, #4]
	ldr	r3, [r1, r2, lsl #3]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r1, r2, lsl #3]
	movle	r3, #0
	strle	r3, [r0, #4]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L7
	bl	fts3HashFree
.L7:
	mov	r0, r5
	bl	fts3HashFree
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	popgt	{r4, r5, r6, pc}
	ldr	r0, [r4, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	fts3HashClear
	.size	fts3RemoveElementByHash, .-fts3RemoveElementByHash
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
