	.file	"extr_worker.c_apply_handle_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apply_handle_insert, @function
apply_handle_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ensure_transaction@PLT
	lea	rsi, 4[rsp]
	mov	edi, ebp
	call	logicalrep_read_insert@PLT
	mov	esi, DWORD PTR RowExclusiveLock[rip]
	mov	edi, eax
	call	logicalrep_rel_open@PLT
	mov	rdi, rax
	mov	r12, rax
	call	should_apply_changes_for_rel@PLT
	test	eax, eax
	je	.L7
	mov	rdi, r12
	call	create_estate_for_relation@PLT
	mov	edi, DWORD PTR [r12]
	mov	rbp, rax
	call	RelationGetDescr@PLT
	lea	rdx, TTSOpsVirtual[rip]
	mov	rdi, rbp
	mov	esi, eax
	call	ExecInitExtraTupleSlot@PLT
	mov	r13, rax
	xor	eax, eax
	call	GetTransactionSnapshot@PLT
	mov	edi, eax
	call	PushActiveSnapshot@PLT
	mov	rdi, rbp
	call	GetPerTupleMemoryContext@PLT
	mov	edi, eax
	call	MemoryContextSwitchTo@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, r13
	mov	r14d, eax
	call	slot_store_cstrings@PLT
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	call	slot_fill_defaults@PLT
	mov	edi, r14d
	call	MemoryContextSwitchTo@PLT
	mov	edi, DWORD PTR 4[rbp]
	xor	esi, esi
	call	ExecOpenIndices@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	ExecSimpleRelationInsert@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	ExecCloseIndices@PLT
	xor	eax, eax
	call	PopActiveSnapshot@PLT
	mov	rdi, rbp
	call	AfterTriggerEndQuery@PLT
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	call	ExecResetTupleTable@PLT
	mov	rdi, rbp
	call	FreeExecutorState@PLT
	mov	esi, DWORD PTR NoLock[rip]
	mov	rdi, r12
	call	logicalrep_rel_close@PLT
	xor	eax, eax
	call	CommandCounterIncrement@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR RowExclusiveLock[rip]
	mov	rdi, r12
	call	logicalrep_rel_close@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	apply_handle_insert, .-apply_handle_insert
	.comm	TTSOpsVirtual,4,4
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,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_worker.c_apply_handle_insert.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_handle_insert, %function
apply_handle_insert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L9
	sub	sp, sp, #12
	ldr	r6, .L9+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ensure_transaction
	mov	r1, sp
	mov	r0, r4
	bl	logicalrep_read_insert
	ldr	r1, [r6]
	bl	logicalrep_rel_open
	mov	r5, r0
	bl	should_apply_changes_for_rel
	cmp	r0, #0
	beq	.L7
	mov	r0, r5
	bl	create_estate_for_relation
	mov	r4, r0
	ldr	r0, [r5]
	bl	RelationGetDescr
	ldr	r2, .L9+8
	mov	r1, r0
	mov	r0, r4
	bl	ExecInitExtraTupleSlot
	mov	r6, r0
	bl	GetTransactionSnapshot
	bl	PushActiveSnapshot
	mov	r0, r4
	bl	GetPerTupleMemoryContext
	bl	MemoryContextSwitchTo
	mov	r7, r0
	mov	r1, r5
	ldr	r2, [sp]
	mov	r0, r6
	bl	slot_store_cstrings
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	slot_fill_defaults
	mov	r0, r7
	bl	MemoryContextSwitchTo
	mov	r1, #0
	ldr	r0, [r4, #4]
	bl	ExecOpenIndices
	mov	r1, r6
	mov	r0, r4
	bl	ExecSimpleRelationInsert
	ldr	r0, [r4, #4]
	bl	ExecCloseIndices
	bl	PopActiveSnapshot
	mov	r0, r4
	bl	AfterTriggerEndQuery
	mov	r1, #0
	ldr	r0, [r4]
	bl	ExecResetTupleTable
	mov	r0, r4
	bl	FreeExecutorState
	ldr	r3, .L9+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	logicalrep_rel_close
	bl	CommandCounterIncrement
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r5
	ldr	r1, [r6]
	bl	logicalrep_rel_close
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	RowExclusiveLock
	.word	TTSOpsVirtual
	.word	NoLock
	.size	apply_handle_insert, .-apply_handle_insert
	.comm	TTSOpsVirtual,4,4
	.comm	RowExclusiveLock,4,4
	.comm	NoLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
