	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecBSInsertTriggers           ## -- Begin function ExecBSInsertTriggers
	.p2align	4, 0x90
_ExecBSInsertTriggers:                  ## @ExecBSInsertTriggers
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	cmpl	$0, 16(%rbx)
	je	LBB0_10
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_RelationGetRelid
	movq	_CMD_INSERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_before_stmt_triggers_fired
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_T_TriggerData@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_TRIGGER_EVENT_INSERT@GOTPCREL(%rip), %rax
	movq	_TRIGGER_EVENT_BEFORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -136(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -120(%rbp)
	cmpl	$0, (%rbx)
	jle	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	movq	_TRIGGER_TYPE_STATEMENT@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r12
	movl	(%r12,%r14,4), %edi
	movl	(%r15), %esi
	movq	_TRIGGER_TYPE_BEFORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TRIGGER_TYPE_INSERT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_TRIGGER_TYPE_MATCHES
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %r12
	movl	-136(%rbp), %ecx
	movq	$0, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_TriggerEnabled
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -128(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	movl	4(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_GetPerTupleMemoryContext
	leaq	-136(%rbp), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ExecCallTriggerFunc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	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(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_INSERT,4,2                 ## @CMD_INSERT
	.comm	_T_TriggerData,4,2              ## @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ## @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_BEFORE,4,2       ## @TRIGGER_EVENT_BEFORE
	.comm	_TRIGGER_TYPE_STATEMENT,4,2     ## @TRIGGER_TYPE_STATEMENT
	.comm	_TRIGGER_TYPE_BEFORE,4,2        ## @TRIGGER_TYPE_BEFORE
	.comm	_TRIGGER_TYPE_INSERT,4,2        ## @TRIGGER_TYPE_INSERT
	.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	"BEFORE STATEMENT trigger cannot return a value"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecBSInsertTriggers           ; -- Begin function ExecBSInsertTriggers
	.p2align	2
_ExecBSInsertTriggers:                  ; @ExecBSInsertTriggers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	ldr	x25, [x1, #16]
	cbz	x25, LBB0_3
; %bb.1:
	ldr	w8, [x25, #16]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_RelationGetRelid
Lloh0:
	adrp	x8, _CMD_INSERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_INSERT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_before_stmt_triggers_fired
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
Lloh3:
	adrp	x8, _T_TriggerData@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T_TriggerData@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TRIGGER_EVENT_INSERT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRIGGER_EVENT_INSERT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _TRIGGER_EVENT_BEFORE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TRIGGER_EVENT_BEFORE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	ldr	w8, [x8]
	str	w9, [sp, #8]
	ldr	w9, [x19, #8]
	stp	w9, w8, [sp, #72]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #24]
	stur	q0, [sp, #40]
	stur	q0, [sp, #56]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:
	mov	x26, #0
	mov	x21, #0
Lloh12:
	adrp	x27, _TRIGGER_TYPE_STATEMENT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _TRIGGER_TYPE_STATEMENT@GOTPAGEOFF]
Lloh14:
	adrp	x28, _TRIGGER_TYPE_BEFORE@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TRIGGER_TYPE_BEFORE@GOTPAGEOFF]
Lloh16:
	adrp	x22, _TRIGGER_TYPE_INSERT@GOTPAGE
Lloh17:
	ldr	x22, [x22, _TRIGGER_TYPE_INSERT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x25]
	add	x26, x26, #4
	cmp	x21, x8
	b.ge	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x25, #8]
	ldr	w0, [x23, x21, lsl #2]
	ldr	w1, [x27]
	ldr	w2, [x28]
	ldr	w3, [x22]
	bl	_TRIGGER_TYPE_MATCHES
	cbz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, x26
	ldr	w3, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_TriggerEnabled
	cbz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x23, [sp, #16]
	ldp	w24, w23, [x19]
	mov	x0, x20
	bl	_GetPerTupleMemoryContext
	mov	x4, x0
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	bl	_ExecCallTriggerFunc
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
Lloh21:
	adrp	x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_INSERT,4,2                 ; @CMD_INSERT
	.comm	_T_TriggerData,4,2              ; @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ; @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_BEFORE,4,2       ; @TRIGGER_EVENT_BEFORE
	.comm	_TRIGGER_TYPE_STATEMENT,4,2     ; @TRIGGER_TYPE_STATEMENT
	.comm	_TRIGGER_TYPE_BEFORE,4,2        ; @TRIGGER_TYPE_BEFORE
	.comm	_TRIGGER_TYPE_INSERT,4,2        ; @TRIGGER_TYPE_INSERT
	.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	"BEFORE STATEMENT trigger cannot return a value"

.subsections_via_symbols
