	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_handle_insert
_apply_handle_insert:                   ## @apply_handle_insert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_ensure_transaction
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_logicalrep_read_insert
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_logicalrep_rel_open
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_should_apply_changes_for_rel
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_create_estate_for_relation
	movq	%rax, %rbx
	movl	(%r14), %edi
	callq	_RelationGetDescr
	movq	_TTSOpsVirtual@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ExecInitExtraTupleSlot
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_GetTransactionSnapshot
	movl	%eax, %edi
	callq	_PushActiveSnapshot
	movq	%rbx, %rdi
	callq	_GetPerTupleMemoryContext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_slot_store_cstrings
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_slot_fill_defaults
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_ExecOpenIndices
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ExecSimpleRelationInsert
	movl	4(%rbx), %edi
	callq	_ExecCloseIndices
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	movq	%rbx, %rdi
	callq	_AfterTriggerEndQuery
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ExecResetTupleTable
	movq	%rbx, %rdi
	callq	_FreeExecutorState
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_logicalrep_rel_close
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_logicalrep_rel_close
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_TTSOpsVirtual,4,2              ## @TTSOpsVirtual
	.comm	_NoLock,4,2                     ## @NoLock
	.no_dead_strip	_apply_handle_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_handle_insert
_apply_handle_insert:                   ; @apply_handle_insert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_ensure_transaction
	add	x1, sp, #8
	mov	x0, x19
	bl	_logicalrep_read_insert
Lloh0:
	adrp	x20, _RowExclusiveLock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_logicalrep_rel_open
	mov	x19, x0
	bl	_should_apply_changes_for_rel
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_create_estate_for_relation
	mov	x20, x0
	ldr	w0, [x19]
	bl	_RelationGetDescr
	mov	x1, x0
Lloh2:
	adrp	x2, _TTSOpsVirtual@GOTPAGE
Lloh3:
	ldr	x2, [x2, _TTSOpsVirtual@GOTPAGEOFF]
	mov	x0, x20
	bl	_ExecInitExtraTupleSlot
	mov	x21, x0
	bl	_GetTransactionSnapshot
	bl	_PushActiveSnapshot
	mov	x0, x20
	bl	_GetPerTupleMemoryContext
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	ldr	w2, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_slot_store_cstrings
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_slot_fill_defaults
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	ldr	w0, [x20, #4]
	mov	w1, #0
	bl	_ExecOpenIndices
	mov	x0, x20
	mov	x1, x21
	bl	_ExecSimpleRelationInsert
	ldr	w0, [x20, #4]
	bl	_ExecCloseIndices
	bl	_PopActiveSnapshot
	mov	x0, x20
	bl	_AfterTriggerEndQuery
	ldr	w0, [x20]
	mov	w1, #0
	bl	_ExecResetTupleTable
	mov	x0, x20
	bl	_FreeExecutorState
Lloh4:
	adrp	x8, _NoLock@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_logicalrep_rel_close
	bl	_CommandCounterIncrement
	b	LBB0_3
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_logicalrep_rel_close
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_TTSOpsVirtual,4,2              ; @TTSOpsVirtual
	.comm	_NoLock,4,2                     ; @NoLock
	.no_dead_strip	_apply_handle_insert
.subsections_via_symbols
