	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetTupleForTrigger
_GetTupleForTrigger:                    ## @GetTupleForTrigger
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movq	16(%rbp), %rax
	movl	4(%rdx), %edi
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movl	%r8d, %r14d
	movq	%rdx, %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	$0, (%rax)
	xorl	%edi, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	setne	%dil
	callq	_Assert
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	movq	_LockWaitBlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-64(%rbp), %r10
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r9d
	pushq	%r10
	pushq	%r12
	pushq	%rax
	callq	_table_tuple_lock
	addq	$32, %rsp
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_16
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$128, %edx
	xorl	%eax, %eax
	callq	_elog
	movl	$1, %ebx
	jmp	LBB0_21
LBB0_19:
	movq	_SnapshotAny@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	movq	%r9, %rcx
	callq	_table_tuple_fetch_row_version
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_21
LBB0_16:
	movq	_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_21
LBB0_5:
	movl	-60(%rbp), %eax
	cmpl	(%rbx), %eax
	je	LBB0_10
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_TRIGGERED_DATA_CHANGE_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
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_7:
	cmpl	$0, -64(%rbp)
	movq	16(%rbp), %rbx
	je	LBB0_18
## %bb.8:
	movl	(%r13), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_EvalPlanQual
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_TupIsNull
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	$0, (%rbx)
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_17:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_18:
	movl	$1, %ebx
	jmp	LBB0_21
LBB0_14:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IsolationUsesXactSnapshot
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	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
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_21:
	movl	%ebx, %eax
	addq	$40, %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_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION,4,2 ## @TUPLE_LOCK_FLAG_FIND_LAST_VERSION
	.comm	_LockWaitBlock,4,2              ## @LockWaitBlock
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION,4,2 ## @ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuple to be updated was already modified by an operation triggered by the current command"

L_.str.1:                               ## @.str.1
	.asciz	"Consider using an AFTER trigger instead of a BEFORE trigger to propagate changes to other rows."

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

L_.str.3:                               ## @.str.3
	.asciz	"unexpected table_tuple_lock status: %u"

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

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

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

	.comm	_SnapshotAny,4,2                ## @SnapshotAny
L_.str.7:                               ## @.str.7
	.asciz	"failed to fetch tuple for trigger"

	.no_dead_strip	_GetTupleForTrigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetTupleForTrigger
_GetTupleForTrigger:                    ; @GetTupleForTrigger
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x5
	mov	x25, x3
	ldr	w21, [x2, #4]
	cbz	x6, LBB0_6
; %bb.1:
	mov	x19, x6
	mov	x26, x4
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	str	xzr, [x6]
	cmp	x1, #0
	cset	w0, ne
	bl	_Assert
	bl	_IsolationUsesXactSnapshot
Lloh0:
	adrp	x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUPLE_LOCK_FLAG_FIND_LAST_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w7, w8, wzr, eq
	ldp	w4, w2, [x24]
Lloh3:
	adrp	x8, _LockWaitBlock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LockWaitBlock@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	add	x8, sp, #8
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x20
	mov	x5, x26
	bl	_table_tuple_lock
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.2:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	bl	_IsolationUsesXactSnapshot
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_5:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w8, #128
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh21:
	adrp	x8, _SnapshotAny@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SnapshotAny@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x20
	bl	_table_tuple_fetch_row_version
	cbnz	w0, LBB0_16
; %bb.7:
Lloh24:
	adrp	x8, _ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_elog
	mov	w0, #1
	b	LBB0_21
LBB0_8:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x8
	bl	_elog
	b	LBB0_20
LBB0_9:
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.10:
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
Lloh37:
	adrp	x8, _ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_errcode
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	b	LBB0_19
LBB0_11:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_16
; %bb.12:
	ldr	w2, [x23]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_EvalPlanQual
	str	x0, [x19]
	bl	_TupIsNull
	cbz	w0, LBB0_16
; %bb.13:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_21
LBB0_14:
Lloh44:
	adrp	x8, _ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.5@PAGE
Lloh48:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	bl	_elog
LBB0_16:
	mov	w0, #1
	b	LBB0_21
LBB0_17:
	bl	_IsolationUsesXactSnapshot
	cbz	x0, LBB0_21
; %bb.18:
Lloh49:
	adrp	x8, _ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w19, [x8]
Lloh52:
	adrp	x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ERRCODE_T_R_SERIALIZATION_FAILURE@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_errcode
Lloh55:
	adrp	x0, l_.str.4@PAGE
Lloh56:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
LBB0_19:
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_TUPLE_LOCK_FLAG_FIND_LAST_VERSION,4,2 ; @TUPLE_LOCK_FLAG_FIND_LAST_VERSION
	.comm	_LockWaitBlock,4,2              ; @LockWaitBlock
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION,4,2 ; @ERRCODE_TRIGGERED_DATA_CHANGE_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuple to be updated was already modified by an operation triggered by the current command"

l_.str.1:                               ; @.str.1
	.asciz	"Consider using an AFTER trigger instead of a BEFORE trigger to propagate changes to other rows."

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

l_.str.3:                               ; @.str.3
	.asciz	"unexpected table_tuple_lock status: %u"

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

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

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

	.comm	_SnapshotAny,4,2                ; @SnapshotAny
l_.str.7:                               ; @.str.7
	.asciz	"failed to fetch tuple for trigger"

	.no_dead_strip	_GetTupleForTrigger
.subsections_via_symbols
