	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ri_CheckTrigger
_ri_CheckTrigger:                       ## @ri_CheckTrigger
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	(%rdi), %r13
	callq	_CALLED_AS_TRIGGER
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	(%r13), %edi
	callq	_TRIGGER_FIRED_AFTER
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %edi
	callq	_TRIGGER_FIRED_FOR_ROW
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	cmpl	$128, %r12d
	je	LBB0_10
## %bb.6:
	cmpl	$130, %r12d
	je	LBB0_12
## %bb.7:
	cmpl	$129, %r12d
	jne	LBB0_15
## %bb.8:
	movl	(%r13), %edi
	callq	_TRIGGER_FIRED_BY_INSERT
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_14
LBB0_10:
	movl	(%r13), %edi
	callq	_TRIGGER_FIRED_BY_UPDATE
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_14
LBB0_12:
	movl	(%r13), %edi
	callq	_TRIGGER_FIRED_BY_DELETE
	testl	%eax, %eax
	je	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %r15
LBB0_14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED,4,2 ## @ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function \"%s\" was not called by trigger manager"

L_.str.1:                               ## @.str.1
	.asciz	"function \"%s\" must be fired AFTER ROW"

L_.str.2:                               ## @.str.2
	.asciz	"function \"%s\" must be fired for INSERT"

L_.str.3:                               ## @.str.3
	.asciz	"function \"%s\" must be fired for UPDATE"

L_.str.4:                               ## @.str.4
	.asciz	"function \"%s\" must be fired for DELETE"

	.no_dead_strip	_ri_CheckTrigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ri_CheckTrigger
_ri_CheckTrigger:                       ; @ri_CheckTrigger
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	ldr	x22, [x0]
	bl	_CALLED_AS_TRIGGER
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	ldr	w0, [x22]
	bl	_TRIGGER_FIRED_AFTER
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
	bl	_TRIGGER_FIRED_FOR_ROW
	cbnz	w0, LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
Lloh11:
	adrp	x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_5:
	cmp	w20, #128
	b.eq	LBB0_10
; %bb.6:
	cmp	w20, #130
	b.eq	LBB0_12
; %bb.7:
	cmp	w20, #129
	b.ne	LBB0_13
; %bb.8:
	ldr	w0, [x22]
	bl	_TRIGGER_FIRED_BY_INSERT
	cbnz	w0, LBB0_13
; %bb.9:
Lloh16:
	adrp	x20, l_.str.2@PAGE
Lloh17:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_10:
	ldr	w0, [x22]
	bl	_TRIGGER_FIRED_BY_UPDATE
	cbnz	w0, LBB0_13
; %bb.11:
Lloh18:
	adrp	x20, l_.str.3@PAGE
Lloh19:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_12:
	ldr	w0, [x22]
	bl	_TRIGGER_FIRED_BY_DELETE
	cbz	w0, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh20:
	adrp	x20, l_.str.4@PAGE
Lloh21:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_15:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
Lloh25:
	adrp	x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED,4,2 ; @ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function \"%s\" was not called by trigger manager"

l_.str.1:                               ; @.str.1
	.asciz	"function \"%s\" must be fired AFTER ROW"

l_.str.2:                               ; @.str.2
	.asciz	"function \"%s\" must be fired for INSERT"

l_.str.3:                               ; @.str.3
	.asciz	"function \"%s\" must be fired for UPDATE"

l_.str.4:                               ; @.str.4
	.asciz	"function \"%s\" must be fired for DELETE"

	.no_dead_strip	_ri_CheckTrigger
.subsections_via_symbols
