	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TriggerEnabled
_TriggerEnabled:                        ## @TriggerEnabled
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	_SessionReplicationRole@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SESSION_REPLICATION_ROLE_REPLICA@GOTPCREL(%rip), %rsi
	movq	(%rdx), %rdx
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movq	_TRIGGER_FIRES_ON_ORIGIN@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_TRIGGER_FIRES_ON_REPLICA@GOTPCREL(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_19
## %bb.4:
	movq	_TRIGGER_DISABLED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_19
## %bb.5:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	cmpq	$0, 8(%rbx)
	jle	LBB0_12
## %bb.6:
	movl	%ecx, %edi
	callq	_TRIGGER_FIRED_BY_UPDATE
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	cmpq	$0, 8(%rbx)
	jle	LBB0_18
## %bb.8:
	xorl	%r14d, %r14d
	movq	_FirstLowInvalidHeapAttributeNumber@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	subq	(%r15), %rdi
	movq	%r13, %rsi
	callq	_bms_is_member
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	cmpq	%r14, 8(%rbx)
	jg	LBB0_9
	jmp	LBB0_18
LBB0_12:
	cmpl	$0, 16(%rbx)
	je	LBB0_16
## %bb.13:
	movq	16(%rbp), %r15
	xorl	%edi, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	setne	%dil
	callq	_Assert
	movq	(%r12), %r13
	movq	8(%r12), %rax
	movq	%rbx, %rcx
	subq	(%rax), %rcx
	shrq	$5, %rcx
	movslq	%ecx, %r12
	cmpq	$0, (%r13,%r12,8)
	jne	LBB0_15
## %bb.14:
	movl	(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	callq	_stringToNode
	movq	%rax, %rbx
	movq	_PRS2_OLD_VARNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INNER_VAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ChangeVarNodes
	movq	_PRS2_NEW_VARNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OUTER_VAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ChangeVarNodes
	movq	%rbx, %rdi
	callq	_make_ands_implicit
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_ExecPrepareQual
	movq	%rax, (%r13,%r12,8)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
LBB0_15:
	movq	%r14, %rdi
	callq	_GetPerTupleExprContext
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	%r15, (%rax)
	movq	(%r13,%r12,8), %rdi
	movq	%rax, %rsi
	callq	_ExecQual
	testl	%eax, %eax
	je	LBB0_18
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_19
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SessionReplicationRole,8,3     ## @SessionReplicationRole
	.comm	_SESSION_REPLICATION_ROLE_REPLICA,8,3 ## @SESSION_REPLICATION_ROLE_REPLICA
	.comm	_TRIGGER_FIRES_ON_ORIGIN,8,3    ## @TRIGGER_FIRES_ON_ORIGIN
	.comm	_TRIGGER_DISABLED,8,3           ## @TRIGGER_DISABLED
	.comm	_TRIGGER_FIRES_ON_REPLICA,8,3   ## @TRIGGER_FIRES_ON_REPLICA
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ## @FirstLowInvalidHeapAttributeNumber
	.comm	_PRS2_OLD_VARNO,4,2             ## @PRS2_OLD_VARNO
	.comm	_INNER_VAR,4,2                  ## @INNER_VAR
	.comm	_PRS2_NEW_VARNO,4,2             ## @PRS2_NEW_VARNO
	.comm	_OUTER_VAR,4,2                  ## @OUTER_VAR
	.no_dead_strip	_TriggerEnabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TriggerEnabled
_TriggerEnabled:                        ; @TriggerEnabled
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x6
	mov	x20, x5
	mov	x24, x4
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SessionReplicationRole@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SessionReplicationRole@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _SESSION_REPLICATION_ROLE_REPLICA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SESSION_REPLICATION_ROLE_REPLICA@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldr	x8, [x2]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _TRIGGER_FIRES_ON_ORIGIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRIGGER_FIRES_ON_ORIGIN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x9, _TRIGGER_FIRES_ON_REPLICA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TRIGGER_FIRES_ON_REPLICA@GOTPAGEOFF]
LBB0_3:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _TRIGGER_DISABLED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _TRIGGER_DISABLED@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_16
LBB0_5:
	ldr	x8, [x22, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x0, x3
	bl	_TRIGGER_FIRED_BY_UPDATE
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x22, #8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.8:
	mov	x25, #0
Lloh13:
	adrp	x26, _FirstLowInvalidHeapAttributeNumber@GOTPAGE
Lloh14:
	ldr	x26, [x26, _FirstLowInvalidHeapAttributeNumber@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x9, [x26]
	sub	x0, x8, x9
	mov	x1, x24
	bl	_bms_is_member
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldr	x8, [x22, #8]
	cmp	x8, x25
	b.gt	LBB0_9
	b	LBB0_4
LBB0_11:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_15
; %bb.12:
	cmp	x21, #0
	cset	w0, ne
	bl	_Assert
	ldp	x24, x8, [x23]
	ldr	x8, [x8]
	sub	x8, x22, x8
	sbfx	x25, x8, #5, #32
	lsr	x8, x8, #5
	ldr	x8, [x24, w8, sxtw #3]
	cbnz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x21]
	bl	_MemoryContextSwitchTo
	mov	x23, x0
	ldr	w0, [x22, #16]
	bl	_stringToNode
	mov	x22, x0
Lloh15:
	adrp	x8, _PRS2_OLD_VARNO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PRS2_OLD_VARNO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _INNER_VAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INNER_VAR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_ChangeVarNodes
Lloh21:
	adrp	x8, _PRS2_NEW_VARNO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PRS2_NEW_VARNO@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _OUTER_VAR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OUTER_VAR@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_ChangeVarNodes
	mov	x0, x22
	bl	_make_ands_implicit
	mov	x1, x21
	bl	_ExecPrepareQual
	str	x0, [x24, x25, lsl #3]
	mov	x0, x23
	bl	_MemoryContextSwitchTo
LBB0_14:
	mov	x0, x21
	bl	_GetPerTupleExprContext
	mov	x1, x0
	stp	x19, x20, [x0]
	ldr	x0, [x24, x25, lsl #3]
	bl	_ExecQual
	cbz	w0, LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SessionReplicationRole,8,3     ; @SessionReplicationRole
	.comm	_SESSION_REPLICATION_ROLE_REPLICA,8,3 ; @SESSION_REPLICATION_ROLE_REPLICA
	.comm	_TRIGGER_FIRES_ON_ORIGIN,8,3    ; @TRIGGER_FIRES_ON_ORIGIN
	.comm	_TRIGGER_DISABLED,8,3           ; @TRIGGER_DISABLED
	.comm	_TRIGGER_FIRES_ON_REPLICA,8,3   ; @TRIGGER_FIRES_ON_REPLICA
	.comm	_FirstLowInvalidHeapAttributeNumber,8,3 ; @FirstLowInvalidHeapAttributeNumber
	.comm	_PRS2_OLD_VARNO,4,2             ; @PRS2_OLD_VARNO
	.comm	_INNER_VAR,4,2                  ; @INNER_VAR
	.comm	_PRS2_NEW_VARNO,4,2             ; @PRS2_NEW_VARNO
	.comm	_OUTER_VAR,4,2                  ; @OUTER_VAR
	.no_dead_strip	_TriggerEnabled
.subsections_via_symbols
