	.file	"extr_hashinsert.c__hash_vacuum_one_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_hash_vacuum_one_page, @function
_hash_vacuum_one_page:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -72[rbp], edx
	mov	DWORD PTR -68[rbp], ecx
	mov	rcx, rsp
	mov	DWORD PTR -76[rbp], edi
	mov	DWORD PTR -80[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MaxOffsetNumber[rip]
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L27:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L27
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L28
.L4:
	mov	edi, DWORD PTR -68[rbp]
	mov	r14, rsp
	call	BufferGetPage@PLT
	mov	edi, eax
	mov	r12d, eax
	call	PageGetMaxOffsetNumber@PLT
	mov	r15, QWORD PTR FirstOffsetNumber[rip]
	mov	r13, rax
	cmp	rax, r15
	jl	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, r12d
	mov	rsi, r15
	call	PageGetItemId@PLT
	mov	edi, eax
	call	ItemIdIsDead@PLT
	test	rax, rax
	je	.L6
	movsx	rax, ebx
	add	ebx, 1
	mov	QWORD PTR [r14+rax*8], r15
.L6:
	mov	rdi, r15
	call	OffsetNumberNext@PLT
	mov	r15, rax
	cmp	r13, rax
	jge	.L7
	test	ebx, ebx
	jne	.L29
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edx, DWORD PTR -68[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	rcx, r14
	mov	r8d, ebx
	mov	edi, DWORD PTR -76[rbp]
	call	index_compute_xid_horizon_for_tuples@PLT
	mov	r15d, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR BUFFER_LOCK_EXCLUSIVE[rip]
	mov	r13d, eax
	mov	edi, r15d
	call	LockBuffer@PLT
	xor	eax, eax
	call	START_CRIT_SECTION@PLT
	mov	edx, ebx
	mov	rsi, r14
	mov	edi, r12d
	call	PageIndexMultiDelete@PLT
	mov	edi, r12d
	call	PageGetSpecialPointer@PLT
	mov	edi, r15d
	mov	r8, rax
	mov	eax, DWORD PTR LH_PAGE_HAS_DEAD_TUPLES[rip]
	not	eax
	and	DWORD PTR [r8], eax
	call	BufferGetPage@PLT
	mov	edi, eax
	call	HashPageGetMeta@PLT
	mov	edi, DWORD PTR -68[rbp]
	sub	DWORD PTR [rax], ebx
	call	MarkBufferDirty@PLT
	mov	edi, r15d
	call	MarkBufferDirty@PLT
	mov	edi, DWORD PTR -76[rbp]
	call	RelationNeedsWAL@PLT
	test	rax, rax
	jne	.L31
.L10:
	xor	eax, eax
	call	END_CRIT_SECTION@PLT
	mov	esi, DWORD PTR BUFFER_LOCK_UNLOCK[rip]
	mov	edi, DWORD PTR -72[rbp]
	call	LockBuffer@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	xor	eax, eax
	mov	DWORD PTR -64[rbp], ebx
	mov	DWORD PTR -60[rbp], r13d
	call	XLogBeginInsert@PLT
	mov	r15d, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR REGBUF_STANDARD[rip]
	xor	edi, edi
	mov	esi, r15d
	call	XLogRegisterBuffer@PLT
	mov	esi, DWORD PTR SizeOfHashVacuumOnePage[rip]
	lea	rdi, -64[rbp]
	call	XLogRegisterData@PLT
	lea	esi, 0[0+rbx*8]
	mov	rdi, r14
	call	XLogRegisterData@PLT
	mov	ebx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR REGBUF_STANDARD[rip]
	mov	edi, 1
	mov	esi, ebx
	call	XLogRegisterBuffer@PLT
	mov	esi, DWORD PTR XLOG_HASH_VACUUM_ONE_PAGE[rip]
	mov	edi, DWORD PTR RM_HASH_ID[rip]
	call	XLogInsert@PLT
	mov	edi, r15d
	mov	r12d, eax
	call	BufferGetPage@PLT
	mov	esi, r12d
	mov	edi, eax
	call	PageSetLSN@PLT
	mov	edi, ebx
	call	BufferGetPage@PLT
	mov	esi, r12d
	mov	edi, eax
	call	PageSetLSN@PLT
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_hash_vacuum_one_page, .-_hash_vacuum_one_page
	.comm	XLOG_HASH_VACUUM_ONE_PAGE,4,4
	.comm	SizeOfHashVacuumOnePage,4,4
	.comm	RM_HASH_ID,4,4
	.comm	REGBUF_STANDARD,4,4
	.comm	MaxOffsetNumber,4,4
	.comm	LH_PAGE_HAS_DEAD_TUPLES,4,4
	.comm	FirstOffsetNumber,8,8
	.comm	BUFFER_LOCK_UNLOCK,4,4
	.comm	BUFFER_LOCK_EXCLUSIVE,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_hashinsert.c__hash_vacuum_one_page.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_hash_vacuum_one_page, %function
_hash_vacuum_one_page:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	r10, r0
	mov	r8, r3
	ldr	r3, .L24
	str	r10, [fp, #-56]
	ldr	r3, [r3]
	str	r1, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L24+4
	mov	r0, r8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r9, r2
	bl	BufferGetPage
	mov	r6, r0
	bl	PageGetMaxOffsetNumber
	ldr	r3, .L24+8
	ldr	r10, [r3]
	cmp	r0, r10
	blt	.L1
	mov	r5, r0
	mov	r4, #0
	add	r7, sp, #8
.L4:
	mov	r1, r10
	mov	r0, r6
	bl	PageGetItemId
	bl	ItemIdIsDead
	cmp	r0, #0
	mov	r0, r10
	strne	r10, [r7, r4, lsl #2]
	addne	r4, r4, #1
	bl	OffsetNumberNext
	cmp	r5, r0
	mov	r10, r0
	bge	.L4
	cmp	r4, #0
	bne	.L21
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r10, [fp, #-56]
	mov	r2, r8
	mov	r3, r7
	ldr	r1, [fp, #-60]
	mov	r0, r10
	str	r4, [sp]
	bl	index_compute_xid_horizon_for_tuples
	ldr	r3, .L24+12
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r9
	bl	LockBuffer
	bl	START_CRIT_SECTION
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	PageIndexMultiDelete
	mov	r0, r6
	bl	PageGetSpecialPointer
	mov	r3, r0
	ldr	r1, .L24+16
	ldr	r2, [r0]
	ldr	r1, [r1]
	mov	r0, r9
	bic	r2, r2, r1
	str	r2, [r3]
	bl	BufferGetPage
	bl	HashPageGetMeta
	mov	r3, r0
	ldr	r2, [r0]
	mov	r0, r8
	sub	r2, r2, r4
	str	r2, [r3]
	bl	MarkBufferDirty
	mov	r0, r9
	bl	MarkBufferDirty
	mov	r0, r10
	bl	RelationNeedsWAL
	cmp	r0, #0
	bne	.L23
.L7:
	bl	END_CRIT_SECTION
	ldr	r3, .L24+20
	mov	r0, r9
	ldr	r1, [r3]
	bl	LockBuffer
	b	.L1
.L23:
	ldr	r6, .L24+24
	str	r4, [fp, #-48]
	str	r5, [fp, #-44]
	bl	XLogBeginInsert
	ldr	r2, [r6]
	mov	r1, r8
	mov	r0, #0
	bl	XLogRegisterBuffer
	ldr	r3, .L24+28
	sub	r0, fp, #48
	ldr	r1, [r3]
	bl	XLogRegisterData
	lsl	r1, r4, #2
	mov	r0, r7
	bl	XLogRegisterData
	mov	r1, r9
	ldr	r2, [r6]
	mov	r0, #1
	bl	XLogRegisterBuffer
	ldr	r2, .L24+32
	ldr	r3, .L24+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	XLogInsert
	mov	r4, r0
	mov	r0, r8
	bl	BufferGetPage
	mov	r1, r4
	bl	PageSetLSN
	mov	r0, r9
	bl	BufferGetPage
	mov	r1, r4
	bl	PageSetLSN
	b	.L7
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	MaxOffsetNumber
	.word	.LC0
	.word	FirstOffsetNumber
	.word	BUFFER_LOCK_EXCLUSIVE
	.word	LH_PAGE_HAS_DEAD_TUPLES
	.word	BUFFER_LOCK_UNLOCK
	.word	REGBUF_STANDARD
	.word	SizeOfHashVacuumOnePage
	.word	XLOG_HASH_VACUUM_ONE_PAGE
	.word	RM_HASH_ID
	.size	_hash_vacuum_one_page, .-_hash_vacuum_one_page
	.comm	XLOG_HASH_VACUUM_ONE_PAGE,4,4
	.comm	SizeOfHashVacuumOnePage,4,4
	.comm	RM_HASH_ID,4,4
	.comm	REGBUF_STANDARD,4,4
	.comm	MaxOffsetNumber,4,4
	.comm	LH_PAGE_HAS_DEAD_TUPLES,4,4
	.comm	FirstOffsetNumber,4,4
	.comm	BUFFER_LOCK_UNLOCK,4,4
	.comm	BUFFER_LOCK_EXCLUSIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
