	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecOnConflictUpdate
_ExecOnConflictUpdate:                  ## @ExecOnConflictUpdate
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	16(%rsi), %r14d
	movq	8(%rsi), %rax
	movq	8(%rax), %r13
	movq	16(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r9, %rdi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	callq	_ExecUpdateLockMode
	movl	(%r12), %r8d
	movl	4(%r12), %edx
	movq	_LockWaitBlock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	leaq	-48(%rbp), %r10
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	movl	%eax, %r9d
	pushq	%r10
	pushq	$0
	pushq	%rbx
	callq	_table_tuple_lock
	addq	$32, %rsp
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_14
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_MinTransactionIdAttributeNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_slot_getsysattr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -68(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_DatumGetTransactionId
	movl	%eax, %edi
	callq	_TransactionIdIsCurrentTransactionId
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_CARDINALITY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_elog
LBB0_14:
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_ExecCheckTupleVisible
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, 16(%rsi)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 8(%rsi)
	movq	$0, (%rsi)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_ExecQual
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	24(%rbp), %r12
	movl	16(%rbp), %r15d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movq	_WCO_RLS_CONFLICT_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_ExecWithCheckOptions
LBB0_18:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ExecProject
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	16(%r14), %r9
	movl	(%r14), %eax
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	pushq	%r15
	pushq	%rax
	callq	_ExecUpdate
	addq	$16, %rsp
	movq	%rax, (%r12)
	movq	%r13, %rdi
	callq	_ExecClearTuple
	movl	$1, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	%r13, %rdi
	callq	_ExecClearTuple
	movl	$1, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_InstrCountFiltered1
	jmp	LBB0_19
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
LBB0_9:
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_ItemPointerIndicatesMovedPartitions
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ExecClearTuple
LBB0_19:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_LockWaitBlock,4,2              ## @LockWaitBlock
	.comm	_MinTransactionIdAttributeNumber,4,2 ## @MinTransactionIdAttributeNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ## @ERRCODE_CARDINALITY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ON CONFLICT DO UPDATE command cannot affect row a second time"

L_.str.1:                               ## @.str.1
	.asciz	"Ensure that no rows proposed for insertion within the same command have duplicate constrained values."

L_.str.2:                               ## @.str.2
	.asciz	"attempted to lock invisible tuple"

L_.str.3:                               ## @.str.3
	.asciz	"unexpected self-updated tuple"

	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ## @ERRCODE_T_R_SERIALIZATION_FAILURE
L_.str.4:                               ## @.str.4
	.asciz	"could not serialize access due to concurrent update"

L_.str.5:                               ## @.str.5
	.asciz	"could not serialize access due to concurrent delete"

L_.str.6:                               ## @.str.6
	.asciz	"unrecognized table_tuple_lock status: %u"

	.comm	_NIL,8,3                        ## @NIL
	.comm	_WCO_RLS_CONFLICT_CHECK,4,2     ## @WCO_RLS_CONFLICT_CHECK
	.no_dead_strip	_ExecOnConflictUpdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecOnConflictUpdate
_ExecOnConflictUpdate:                  ; @ExecOnConflictUpdate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x7
	str	w6, [sp, #32]                   ; 4-byte Folded Spill
	mov	x20, x5
	mov	x26, x4
	str	x3, [sp, #24]                   ; 8-byte Folded Spill
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
	ldr	x27, [x0, #8]
	ldr	w21, [x1, #16]
	ldr	x8, [x1, #8]
	ldp	x19, x28, [x8, #8]
	mov	x0, x5
	bl	_ExecUpdateLockMode
	mov	x5, x0
	ldp	w4, w2, [x20]
Lloh0:
	adrp	x8, _LockWaitBlock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LockWaitBlock@GOTPAGEOFF]
Lloh2:
	ldr	w6, [x8]
	add	x8, sp, #40
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x24
	mov	x3, x19
	mov	w7, #0
	bl	_table_tuple_lock
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_IsolationUsesXactSnapshot
	cbz	w0, LBB0_18
; %bb.3:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_4:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	bl	_elog
	b	LBB0_10
LBB0_7:
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
Lloh23:
	adrp	x8, _MinTransactionIdAttributeNumber@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MinTransactionIdAttributeNumber@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #36
	mov	x0, x19
	bl	_slot_getsysattr
	mov	x23, x0
	ldr	w8, [sp, #36]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x23
	bl	_DatumGetTransactionId
	bl	_TransactionIdIsCurrentTransactionId
	cbz	w0, LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w23, [x8]
Lloh29:
	adrp	x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERRCODE_CARDINALITY_VIOLATION@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_errcode
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_9:
Lloh36:
	adrp	x8, _ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_ExecCheckTupleVisible
	stp	x26, x19, [x27, #8]
	str	xzr, [x27]
	mov	x0, x28
	mov	x1, x27
	bl	_ExecQual
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x8, [x25]
Lloh41:
	adrp	x9, _NIL@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
Lloh44:
	adrp	x8, _WCO_RLS_CONFLICT_CHECK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WCO_RLS_CONFLICT_CHECK@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	w3, [x22]
	mov	x1, x25
	mov	x2, x19
	bl	_ExecWithCheckOptions
LBB0_13:
	ldr	x8, [x25, #8]
	ldr	w0, [x8, #4]
	bl	_ExecProject
	ldr	x8, [x25, #8]
	ldr	w3, [x8]
	mov	x5, x22
	ldr	w6, [x5], #16
	mov	x0, x22
	mov	x1, x24
	mov	x2, #0
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w7, [sp, #32]                   ; 4-byte Folded Reload
	bl	_ExecUpdate
	str	x0, [x23]
	mov	x0, x19
	bl	_ExecClearTuple
	mov	w19, #1
	b	LBB0_19
LBB0_14:
	mov	x0, x19
	bl	_ExecClearTuple
	mov	w19, #1
	mov	x0, x22
	mov	w1, #1
	bl	_InstrCountFiltered1
	b	LBB0_19
LBB0_15:
	bl	_IsolationUsesXactSnapshot
	cbz	w0, LBB0_18
; %bb.16:
Lloh47:
	adrp	x8, _ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w20, [x8]
Lloh50:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_errcode
Lloh53:
	adrp	x0, l_.str.5@PAGE
Lloh54:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_17:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_18:
	add	x0, sp, #40
	bl	_ItemPointerIndicatesMovedPartitions
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_ExecClearTuple
	mov	w19, #0
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_LockWaitBlock,4,2              ; @LockWaitBlock
	.comm	_MinTransactionIdAttributeNumber,4,2 ; @MinTransactionIdAttributeNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_CARDINALITY_VIOLATION,4,2 ; @ERRCODE_CARDINALITY_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ON CONFLICT DO UPDATE command cannot affect row a second time"

l_.str.1:                               ; @.str.1
	.asciz	"Ensure that no rows proposed for insertion within the same command have duplicate constrained values."

l_.str.2:                               ; @.str.2
	.asciz	"attempted to lock invisible tuple"

l_.str.3:                               ; @.str.3
	.asciz	"unexpected self-updated tuple"

	.comm	_ERRCODE_T_R_SERIALIZATION_FAILURE,4,2 ; @ERRCODE_T_R_SERIALIZATION_FAILURE
l_.str.4:                               ; @.str.4
	.asciz	"could not serialize access due to concurrent update"

l_.str.5:                               ; @.str.5
	.asciz	"could not serialize access due to concurrent delete"

l_.str.6:                               ; @.str.6
	.asciz	"unrecognized table_tuple_lock status: %u"

	.comm	_NIL,8,3                        ; @NIL
	.comm	_WCO_RLS_CONFLICT_CHECK,4,2     ; @WCO_RLS_CONFLICT_CHECK
	.no_dead_strip	_ExecOnConflictUpdate
.subsections_via_symbols
