	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CopyMultiInsertBufferFlush
_CopyMultiInsertBufferFlush:            ## @CopyMultiInsertBufferFlush
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	16(%rdi), %rcx
	movq	8(%rdi), %rax
	movl	(%rdi), %r12d
	movl	4(%rdi), %edx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %edx
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %r14d
	movq	32(%rsi), %r13
	movq	16(%rsi), %rbx
	movq	%r13, (%rax)
	movl	$0, (%rcx)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_GetPerTupleMemoryContext
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	16(%r13), %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %r9d
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_table_multi_insert
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.1:
	xorl	%r12d, %r12d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 4(%r13)
	movq	16(%rcx), %rax
	movq	(%rax,%r12,8), %rdi
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ExecInsertIndexTuples
	movq	%rax, %r15
	movq	(%rbx,%r12,8), %rdx
	movl	8(%r13), %r8d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rcx
	callq	_ExecARInsertTriggers
	movq	%r15, %rdi
	callq	_list_free
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r12,8), %rdi
	callq	_ExecClearTuple
	incq	%r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 4(%rsi)
	movq	(%rbx,%r12,8), %rdx
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	8(%rsi), %r8d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ExecARInsertTriggers
	jmp	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.no_dead_strip	_CopyMultiInsertBufferFlush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CopyMultiInsertBufferFlush
_CopyMultiInsertBufferFlush:            ; @CopyMultiInsertBufferFlush
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	ldp	x20, x27, [x0, #8]
	ldp	w25, w24, [x0]
	ldr	w21, [x1]
	ldr	x22, [x1, #32]
	ldr	x23, [x1, #16]
	str	x22, [x20]
	ldr	d8, [x27]
	str	wzr, [x27]
	mov	x0, x20
	bl	_GetPerTupleMemoryContext
	bl	_MemoryContextSwitchTo
	mov	x26, x0
	ldr	w0, [x22, #16]
	ldr	w5, [x19, #24]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x24
	mov	x4, x25
	bl	_table_multi_insert
	mov	x0, x26
	bl	_MemoryContextSwitchTo
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x25, #0
Lloh0:
	adrp	x26, _NIL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NIL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x9, [x19, #8]
	ldr	w8, [x8, x25, lsl #2]
	str	w8, [x27, #4]
	lsl	x28, x25, #3
	ldr	x0, [x9, x28]
	ldr	x4, [x26]
	mov	x1, x20
	mov	w2, #0
	mov	x3, #0
	bl	_ExecInsertIndexTuples
	mov	x24, x0
	ldr	x2, [x23, x28]
	ldr	w4, [x27, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x24
	bl	_ExecARInsertTriggers
	mov	x0, x24
	bl	_list_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23, x25, lsl #3]
	bl	_ExecClearTuple
	add	x25, x25, #1
	cmp	x21, x25
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x8, #1
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x25, lsl #2]
	str	w8, [x27, #4]
	ldr	x2, [x23, x25, lsl #3]
	ldr	x3, [x26]
	ldr	w4, [x27, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_ExecARInsertTriggers
	b	LBB0_3
LBB0_9:
	str	wzr, [x19]
	str	d8, [x27]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.no_dead_strip	_CopyMultiInsertBufferFlush
.subsections_via_symbols
