	.file	"extr_nbtpage.c__bt_delitems_delete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_bt_delitems_delete
	.type	_bt_delitems_delete, @function
_bt_delitems_delete:
.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
	mov	r14d, edi
	mov	edi, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	BufferGetPage@PLT
	xor	edi, edi
	test	ebx, ebx
	mov	r15d, DWORD PTR InvalidTransactionId[rip]
	setg	dil
	mov	r12d, eax
	call	Assert@PLT
	xor	eax, eax
	call	XLogStandbyInfoActive@PLT
	test	rax, rax
	jne	.L16
.L2:
	xor	eax, eax
	call	START_CRIT_SECTION@PLT
	mov	edx, ebx
	mov	rsi, r13
	mov	edi, r12d
	call	PageIndexMultiDelete@PLT
	mov	edi, r12d
	call	PageGetSpecialPointer@PLT
	mov	edi, ebp
	mov	r8, rax
	mov	eax, DWORD PTR BTP_HAS_GARBAGE[rip]
	not	eax
	and	DWORD PTR [r8], eax
	call	MarkBufferDirty@PLT
	mov	edi, r14d
	call	RelationNeedsWAL@PLT
	test	rax, rax
	jne	.L17
.L3:
	xor	eax, eax
	call	END_CRIT_SECTION@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.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
.L16:
	.cfi_restore_state
	mov	edi, r14d
	call	RelationNeedsWAL@PLT
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR 12[rsp]
	mov	r8d, ebx
	mov	rcx, r13
	mov	edx, ebp
	mov	edi, r14d
	call	index_compute_xid_horizon_for_tuples@PLT
	mov	r15d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	xor	eax, eax
	mov	DWORD PTR 20[rsp], r15d
	mov	DWORD PTR 16[rsp], ebx
	call	XLogBeginInsert@PLT
	mov	edx, DWORD PTR REGBUF_STANDARD[rip]
	mov	esi, ebp
	xor	edi, edi
	call	XLogRegisterBuffer@PLT
	mov	esi, DWORD PTR SizeOfBtreeDelete[rip]
	lea	rdi, 16[rsp]
	call	XLogRegisterData@PLT
	lea	esi, 0[0+rbx*4]
	mov	rdi, r13
	call	XLogRegisterData@PLT
	mov	esi, DWORD PTR XLOG_BTREE_DELETE[rip]
	mov	edi, DWORD PTR RM_BTREE_ID[rip]
	call	XLogInsert@PLT
	mov	edi, r12d
	mov	esi, eax
	call	PageSetLSN@PLT
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_bt_delitems_delete, .-_bt_delitems_delete
	.comm	XLOG_BTREE_DELETE,4,4
	.comm	SizeOfBtreeDelete,4,4
	.comm	RM_BTREE_ID,4,4
	.comm	REGBUF_STANDARD,4,4
	.comm	InvalidTransactionId,4,4
	.comm	BTP_HAS_GARBAGE,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_nbtpage.c__bt_delitems_delete.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_bt_delitems_delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	_bt_delitems_delete, %function
_bt_delitems_delete:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r3
	ldr	r3, .L19
	sub	sp, sp, #28
	mov	r8, r0
	mov	r0, r1
	mov	r5, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	BufferGetPage
	cmp	r4, #0
	ldr	r3, .L19+4
	mov	r6, r0
	movle	r0, #0
	movgt	r0, #1
	ldr	r9, [r3]
	bl	Assert
	bl	XLogStandbyInfoActive
	cmp	r0, #0
	bne	.L16
.L2:
	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, .L19+8
	ldr	r2, [r0]
	ldr	r1, [r1]
	mov	r0, r5
	bic	r2, r2, r1
	str	r2, [r3]
	bl	MarkBufferDirty
	mov	r0, r8
	bl	RelationNeedsWAL
	cmp	r0, #0
	bne	.L17
.L3:
	bl	END_CRIT_SECTION
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	mov	r0, r8
	bl	RelationNeedsWAL
	cmp	r0, #0
	beq	.L2
	mov	r3, r7
	mov	r2, r5
	mov	r0, r8
	ldr	r1, [sp, #56]
	str	r4, [sp]
	bl	index_compute_xid_horizon_for_tuples
	mov	r9, r0
	b	.L2
.L17:
	str	r9, [sp, #16]
	str	r4, [sp, #12]
	bl	XLogBeginInsert
	ldr	r3, .L19+12
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, #0
	bl	XLogRegisterBuffer
	ldr	r3, .L19+16
	add	r0, sp, #12
	ldr	r1, [r3]
	bl	XLogRegisterData
	lsl	r1, r4, #2
	mov	r0, r7
	bl	XLogRegisterData
	ldr	r2, .L19+20
	ldr	r3, .L19+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	XLogInsert
	mov	r1, r0
	mov	r0, r6
	bl	PageSetLSN
	b	.L3
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	InvalidTransactionId
	.word	BTP_HAS_GARBAGE
	.word	REGBUF_STANDARD
	.word	SizeOfBtreeDelete
	.word	XLOG_BTREE_DELETE
	.word	RM_BTREE_ID
	.size	_bt_delitems_delete, .-_bt_delitems_delete
	.comm	XLOG_BTREE_DELETE,4,4
	.comm	SizeOfBtreeDelete,4,4
	.comm	RM_BTREE_ID,4,4
	.comm	REGBUF_STANDARD,4,4
	.comm	InvalidTransactionId,4,4
	.comm	BTP_HAS_GARBAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
