	.file	"extr_blvacuum.c_blbulkdelete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blbulkdelete
	.type	blbulkdelete, @function
blbulkdelete:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	r15d, DWORD PTR 4[rdi]
	mov	QWORD PTR 40[rsp], rdi
	mov	QWORD PTR 48[rsp], rsi
	mov	QWORD PTR 72[rsp], rdx
	mov	QWORD PTR 80[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L32
.L2:
	lea	r14, 100[rsp]
	mov	esi, r15d
	mov	rdi, r14
	call	initBloomState@PLT
	mov	edi, r15d
	call	RelationGetNumberOfBlocks@PLT
	mov	rcx, QWORD PTR BLOOM_HEAD_BLKNO[rip]
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 8[rsp], rcx
	cmp	rax, rcx
	jle	.L19
	mov	DWORD PTR 68[rsp], 0
	mov	QWORD PTR 88[rsp], 0
	mov	DWORD PTR 28[rsp], r15d
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, r12d
	call	UnlockReleaseBuffer@PLT
	mov	rdi, r13
	call	GenericXLogAbort@PLT
.L5:
	add	QWORD PTR 8[rsp], 1
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 32[rsp], rax
	je	.L33
.L16:
	xor	eax, eax
	call	vacuum_delay_point@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	ebx, DWORD PTR 28[rsp]
	mov	ecx, DWORD PTR RBM_NORMAL[rip]
	mov	rdx, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR [rax]
	mov	esi, DWORD PTR MAIN_FORKNUM[rip]
	mov	edi, ebx
	call	ReadBufferExtended@PLT
	mov	esi, DWORD PTR BUFFER_LOCK_EXCLUSIVE[rip]
	mov	edi, eax
	mov	r12d, eax
	call	LockBuffer@PLT
	mov	edi, ebx
	call	GenericXLogStart@PLT
	xor	edx, edx
	mov	esi, r12d
	mov	rdi, rax
	mov	r13, rax
	call	GenericXLogRegisterBuffer@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	PageIsNew@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, rbx
	call	BloomPageIsDeleted@PLT
	test	rax, rax
	jne	.L6
	mov	edx, DWORD PTR FirstOffsetNumber[rip]
	mov	rsi, rbx
	mov	rdi, r14
	call	BloomPageGetTuple@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	BloomPageGetMaxOffset@PLT
	mov	rdi, rax
	call	OffsetNumberNext@PLT
	mov	rsi, rbx
	mov	rdi, r14
	mov	edx, eax
	call	BloomPageGetTuple@PLT
	mov	QWORD PTR 16[rsp], rax
	cmp	rbp, rax
	jnb	.L7
	mov	DWORD PTR 64[rsp], r12d
	mov	r15, rbx
	mov	r12, rbp
	mov	rbx, QWORD PTR 80[rsp]
	mov	QWORD PTR 56[rsp], r13
	mov	r13, QWORD PTR 72[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	r12, rbp
	je	.L10
	mov	edx, DWORD PTR 100[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	memmove@PLT
.L10:
	mov	rsi, rbp
	mov	rdi, r14
	call	BloomPageGetNextTuple@PLT
	mov	rbp, rax
.L9:
	mov	rsi, r12
	mov	rdi, r14
	call	BloomPageGetNextTuple@PLT
	mov	r12, rax
	cmp	QWORD PTR 16[rsp], rax
	jbe	.L34
.L11:
	mov	rsi, rbx
	mov	rdi, r12
	call	r13
	test	rax, rax
	je	.L8
	mov	rdi, r15
	call	BloomPageGetOpaque@PLT
	sub	DWORD PTR [rax], 1
	mov	rax, QWORD PTR 48[rsp]
	add	DWORD PTR [rax], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rbx, r15
	mov	r13, QWORD PTR 56[rsp]
	mov	r12d, DWORD PTR 64[rsp]
	mov	r15, rax
	mov	rdi, rbx
	call	BloomPageGetMaxOffset@PLT
	mov	rdi, rax
	call	OffsetNumberNext@PLT
	mov	rsi, rbx
	mov	rdi, r14
	mov	edx, eax
	call	BloomPageGetTuple@PLT
	xor	edi, edi
	cmp	rbp, rax
	sete	dil
	call	Assert@PLT
	mov	rdi, rbx
	call	BloomPageGetMaxOffset@PLT
	test	rax, rax
	jne	.L35
.L12:
	cmp	rbp, r15
	je	.L13
	mov	rdi, rbx
	call	BloomPageGetMaxOffset@PLT
	test	rax, rax
	je	.L36
.L14:
	sub	rbp, rbx
	mov	rdi, r13
	mov	QWORD PTR [rbx], rbp
	call	GenericXLogFinish@PLT
.L15:
	mov	edi, r12d
	call	UnlockReleaseBuffer@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L33:
	mov	r13d, DWORD PTR 88[rsp]
	mov	r15d, DWORD PTR 28[rsp]
	sal	r13d, 3
.L3:
	mov	esi, DWORD PTR BLOOM_METAPAGE_BLKNO[rip]
	mov	edi, r15d
	call	ReadBuffer@PLT
	mov	esi, DWORD PTR BUFFER_LOCK_EXCLUSIVE[rip]
	mov	edi, eax
	mov	ebp, eax
	call	LockBuffer@PLT
	mov	edi, r15d
	call	GenericXLogStart@PLT
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, rax
	mov	r12, rax
	call	GenericXLogRegisterBuffer@PLT
	mov	rdi, rax
	call	BloomPageGetMeta@PLT
	xor	esi, esi
	mov	edx, r13d
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR 68[rsp]
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, r12
	mov	DWORD PTR [rbx], eax
	call	GenericXLogFinish@PLT
	mov	edi, ebp
	call	UnlockReleaseBuffer@PLT
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	mov	rax, QWORD PTR 48[rsp]
	add	rsp, 120
	.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
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	call	BloomPageGetMaxOffset@PLT
	mov	rdi, rax
	call	OffsetNumberNext@PLT
	mov	rsi, rbx
	mov	rdi, r14
	mov	edx, eax
	call	BloomPageGetTuple@PLT
	xor	edi, edi
	cmp	rbp, rax
	sete	dil
	call	Assert@PLT
	mov	rdi, rbx
	call	BloomPageGetMaxOffset@PLT
	test	rax, rax
	je	.L13
	mov	rsi, rbx
	mov	rdi, r14
	call	BloomPageGetFreeSpace@PLT
	cmp	DWORD PTR 100[rsp], eax
	jle	.L38
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r13
	call	GenericXLogAbort@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rsi, rbx
	mov	rdi, r14
	call	BloomPageGetFreeSpace@PLT
	cmp	eax, DWORD PTR 100[rsp]
	jl	.L12
.L17:
	mov	eax, DWORD PTR 68[rsp]
	cmp	DWORD PTR BloomMetaBlockN[rip], eax
	jle	.L12
	mov	rcx, QWORD PTR 88[rsp]
	add	eax, 1
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR 68[rsp], eax
	cdqe
	mov	QWORD PTR 0[0+rcx*8], rdx
	mov	QWORD PTR 88[rsp], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, rbx
	call	BloomPageSetDeleted@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edi, 4
	call	palloc0@PLT
	mov	QWORD PTR 48[rsp], rax
	jmp	.L2
.L19:
	mov	DWORD PTR 68[rsp], 0
	xor	r13d, r13d
	jmp	.L3
.L38:
	mov	r15, rbp
	jmp	.L17
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	blbulkdelete, .-blbulkdelete
	.comm	RBM_NORMAL,4,4
	.comm	MAIN_FORKNUM,4,4
	.comm	FirstOffsetNumber,4,4
	.comm	BloomMetaBlockN,4,4
	.comm	BUFFER_LOCK_EXCLUSIVE,4,4
	.comm	BLOOM_METAPAGE_BLKNO,4,4
	.comm	BLOOM_HEAD_BLKNO,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_blvacuum.c_blbulkdelete.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	blbulkdelete
	.syntax unified
	.arm
	.fpu softvfp
	.type	blbulkdelete, %function
blbulkdelete:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r1, #0
	sub	sp, sp, #60
	mov	fp, r3
	ldr	r3, .L39
	str	r0, [sp, #24]
	str	r1, [sp, #28]
	str	r2, [sp, #44]
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r9, [r0, #4]
	beq	.L32
.L2:
	mov	r1, r9
	add	r0, sp, #48
	bl	initBloomState
	mov	r0, r9
	bl	RelationGetNumberOfBlocks
	ldr	r3, .L39+4
	str	r0, [sp, #20]
	ldr	r7, [r3]
	cmp	r0, r7
	ble	.L19
	mov	r3, #0
	str	r3, [sp, #8]
	ldr	r3, .L39+8
	str	r3, [sp, #12]
	b	.L16
.L6:
	mov	r0, r6
	bl	UnlockReleaseBuffer
	mov	r0, r8
	bl	GenericXLogAbort
	ldr	r3, [sp, #20]
	add	r7, r7, #1
	cmp	r3, r7
	beq	.L33
.L16:
	bl	vacuum_delay_point
	ldr	r3, [sp, #24]
	ldr	r1, .L39+12
	ldr	r2, [r3]
	ldr	r3, .L39+16
	mov	r0, r9
	ldr	r3, [r3]
	str	r2, [sp]
	ldr	r1, [r1]
	mov	r2, r7
	bl	ReadBufferExtended
	ldr	r3, [sp, #12]
	mov	r6, r0
	ldr	r1, [r3]
	bl	LockBuffer
	mov	r0, r9
	bl	GenericXLogStart
	mov	r1, r6
	mov	r2, #0
	mov	r8, r0
	bl	GenericXLogRegisterBuffer
	mov	r5, r0
	bl	PageIsNew
	ldr	r3, [sp, #8]
	cmp	r0, #0
	lsl	r3, r3, #2
	str	r3, [sp, #16]
	bne	.L6
	mov	r0, r5
	bl	BloomPageIsDeleted
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L39+20
	mov	r1, r5
	ldr	r2, [r3]
	add	r0, sp, #48
	bl	BloomPageGetTuple
	mov	r4, r0
	mov	r0, r5
	bl	BloomPageGetMaxOffset
	bl	OffsetNumberNext
	mov	r1, r5
	mov	r2, r0
	add	r0, sp, #48
	bl	BloomPageGetTuple
	cmp	r4, r0
	bcs	.L7
	mov	r10, r7
	str	r9, [sp, #32]
	mov	r7, r5
	str	r6, [sp, #36]
	str	r8, [sp, #40]
	mov	r6, r0
	mov	r8, r4
	ldr	r5, [sp, #28]
	ldr	r9, [sp, #44]
	b	.L11
.L8:
	cmp	r8, r4
	beq	.L10
	mov	r1, r8
	mov	r0, r4
	ldr	r2, [sp, #48]
	bl	memmove
.L10:
	mov	r1, r4
	add	r0, sp, #48
	bl	BloomPageGetNextTuple
	mov	r4, r0
.L9:
	mov	r1, r8
	add	r0, sp, #48
	bl	BloomPageGetNextTuple
	cmp	r6, r0
	mov	r8, r0
	bls	.L34
.L11:
	mov	r1, fp
	mov	r0, r8
	blx	r9
	cmp	r0, #0
	beq	.L8
	mov	r0, r7
	bl	BloomPageGetOpaque
	ldr	r2, [r5]
	ldr	r1, [r0]
	add	r2, r2, #1
	sub	r1, r1, #1
	str	r1, [r0]
	str	r2, [r5]
	b	.L9
.L34:
	mov	r5, r7
	mov	r7, r10
	mov	r10, r0
	mov	r0, r5
	ldr	r9, [sp, #32]
	ldr	r6, [sp, #36]
	ldr	r8, [sp, #40]
	bl	BloomPageGetMaxOffset
	bl	OffsetNumberNext
	mov	r1, r5
	mov	r2, r0
	add	r0, sp, #48
	bl	BloomPageGetTuple
	sub	r0, r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r5
	bl	BloomPageGetMaxOffset
	cmp	r0, #0
	bne	.L35
.L12:
	cmp	r4, r10
	beq	.L13
	mov	r0, r5
	bl	BloomPageGetMaxOffset
	cmp	r0, #0
	beq	.L36
.L14:
	sub	r4, r4, r5
	mov	r0, r8
	str	r4, [r5]
	bl	GenericXLogFinish
.L15:
	mov	r0, r6
	bl	UnlockReleaseBuffer
	ldr	r3, [sp, #20]
	add	r7, r7, #1
	cmp	r3, r7
	bne	.L16
.L33:
	ldr	r7, [sp, #16]
.L3:
	ldr	r3, .L39+24
	mov	r0, r9
	ldr	r1, [r3]
	bl	ReadBuffer
	ldr	r3, [sp, #12]
	mov	r5, r0
	ldr	r1, [r3]
	bl	LockBuffer
	mov	r0, r9
	bl	GenericXLogStart
	mov	r1, r5
	mov	r2, #0
	mov	r6, r0
	bl	GenericXLogRegisterBuffer
	bl	BloomPageGetMeta
	mov	r1, #0
	mov	r4, r0
	mov	r2, r7
	ldr	r0, [r0, #8]
	bl	memcpy
	mov	r3, #0
	ldr	r2, [sp, #8]
	str	r3, [r4, #4]
	str	r2, [r4]
	mov	r0, r6
	bl	GenericXLogFinish
	mov	r0, r5
	bl	UnlockReleaseBuffer
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	ldr	r0, [sp, #28]
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, r5
	bl	BloomPageGetMaxOffset
	bl	OffsetNumberNext
	mov	r1, r5
	mov	r2, r0
	add	r0, sp, #48
	bl	BloomPageGetTuple
	sub	r0, r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	mov	r0, r5
	bl	BloomPageGetMaxOffset
	cmp	r0, #0
	beq	.L13
	mov	r1, r5
	add	r0, sp, #48
	bl	BloomPageGetFreeSpace
	ldr	r3, [sp, #48]
	cmp	r0, r3
	bge	.L38
.L13:
	mov	r0, r8
	bl	GenericXLogAbort
	b	.L15
.L35:
	mov	r1, r5
	add	r0, sp, #48
	bl	BloomPageGetFreeSpace
	ldr	r2, [sp, #48]
	cmp	r0, r2
	blt	.L12
.L17:
	ldr	r3, .L39+28
	ldr	r2, [r3]
	ldr	r3, [sp, #8]
	cmp	r2, r3
	ble	.L12
	ldr	r2, [sp, #16]
	add	r3, r3, #1
	str	r3, [sp, #8]
	add	r3, r2, #4
	str	r7, [r2]
	str	r3, [sp, #16]
	b	.L12
.L36:
	mov	r0, r5
	bl	BloomPageSetDeleted
	b	.L14
.L32:
	mov	r0, #4
	bl	palloc0
	str	r0, [sp, #28]
	b	.L2
.L19:
	mov	r7, #0
	ldr	r3, .L39+8
	str	r7, [sp, #8]
	str	r3, [sp, #12]
	b	.L3
.L38:
	mov	r10, r4
	b	.L17
.L37:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	BLOOM_HEAD_BLKNO
	.word	BUFFER_LOCK_EXCLUSIVE
	.word	MAIN_FORKNUM
	.word	RBM_NORMAL
	.word	FirstOffsetNumber
	.word	BLOOM_METAPAGE_BLKNO
	.word	BloomMetaBlockN
	.size	blbulkdelete, .-blbulkdelete
	.comm	RBM_NORMAL,4,4
	.comm	MAIN_FORKNUM,4,4
	.comm	FirstOffsetNumber,4,4
	.comm	BloomMetaBlockN,4,4
	.comm	BUFFER_LOCK_EXCLUSIVE,4,4
	.comm	BLOOM_METAPAGE_BLKNO,4,4
	.comm	BLOOM_HEAD_BLKNO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
