	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecIRInsertTriggers           ## -- Begin function ExecIRInsertTriggers
	.p2align	4, 0x90
_ExecIRInsertTriggers:                  ## @ExecIRInsertTriggers
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %rbx
	movq	_T_TriggerData@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_TRIGGER_EVENT_INSERT@GOTPCREL(%rip), %rax
	movq	_TRIGGER_EVENT_ROW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TRIGGER_EVENT_INSTEAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -152(%rbp)
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %eax
	movl	%eax, -88(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -120(%rbp)
	movups	%xmm0, -136(%rbp)
	cmpl	$0, (%rbx)
	jle	LBB0_16
## %bb.1:
	movq	%rdx, %r13
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jge	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	movl	(%r15,%r12,4), %edi
	movq	_TRIGGER_TYPE_ROW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TRIGGER_TYPE_INSTEAD@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_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r14, %r15
	movl	-152(%rbp), %ecx
	movq	%r13, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_TriggerEnabled
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	leaq	-52(%rbp), %rdx
	callq	_ExecFetchSlotHeapTuple
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	movq	%r13, -128(%rbp)
	movq	%rax, -136(%rbp)
	movq	%r15, -144(%rbp)
	movq	%rax, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_GetPerTupleMemoryContext
	leaq	-152(%rbp), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_ExecCallTriggerFunc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	movq	%rbx, %r13
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ExecForceStoreHeapTuple
	cmpl	$0, -52(%rbp)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_heap_freetuple
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_16:
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	$0, -52(%rbp)
	je	LBB0_17
## %bb.8:
	movq	%r15, %rdi
	callq	_heap_freetuple
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_T_TriggerData,4,2              ## @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ## @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_ROW,4,2          ## @TRIGGER_EVENT_ROW
	.comm	_TRIGGER_EVENT_INSTEAD,4,2      ## @TRIGGER_EVENT_INSTEAD
	.comm	_TRIGGER_TYPE_ROW,4,2           ## @TRIGGER_TYPE_ROW
	.comm	_TRIGGER_TYPE_INSTEAD,4,2       ## @TRIGGER_TYPE_INSTEAD
	.comm	_TRIGGER_TYPE_INSERT,4,2        ## @TRIGGER_TYPE_INSERT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecIRInsertTriggers           ; -- Begin function ExecIRInsertTriggers
	.p2align	2
_ExecIRInsertTriggers:                  ; @ExecIRInsertTriggers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	stp	x0, x2, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x8, _T_TriggerData@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T_TriggerData@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TRIGGER_EVENT_INSERT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRIGGER_EVENT_INSERT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _TRIGGER_EVENT_ROW@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TRIGGER_EVENT_ROW@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh8:
	adrp	x10, _TRIGGER_EVENT_INSTEAD@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TRIGGER_EVENT_INSTEAD@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	x26, [x1, #16]
Lloh11:
	ldr	w8, [x8]
	str	w9, [sp, #16]
	ldr	w9, [x1, #8]
	stp	w9, w8, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #64]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x1
	mov	x27, #0
	mov	x22, #0
	mov	x23, #0
Lloh12:
	adrp	x28, _TRIGGER_TYPE_ROW@GOTPAGE
Lloh13:
	ldr	x28, [x28, _TRIGGER_TYPE_ROW@GOTPAGEOFF]
Lloh14:
	adrp	x21, _TRIGGER_TYPE_INSTEAD@GOTPAGE
Lloh15:
	ldr	x21, [x21, _TRIGGER_TYPE_INSTEAD@GOTPAGEOFF]
Lloh16:
	adrp	x19, _TRIGGER_TYPE_INSERT@GOTPAGE
Lloh17:
	ldr	x19, [x19, _TRIGGER_TYPE_INSERT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x26, #8]
	ldr	w0, [x24, x22, lsl #2]
	ldr	w1, [x28]
	ldr	w2, [x21]
	ldr	w3, [x19]
	bl	_TRIGGER_TYPE_MATCHES
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, x27
	ldr	w3, [sp, #16]
	ldp	x0, x6, [sp]                    ; 16-byte Folded Reload
	mov	x1, x20
	mov	x2, x24
	mov	x4, #0
	mov	x5, #0
	bl	_TriggerEnabled
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x23, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x2, x29, #84
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	w1, #1
	bl	_ExecFetchSlotHeapTuple
	mov	x23, x0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x0, x8, [sp]                    ; 16-byte Folded Reload
	stp	x23, x8, [sp, #32]
	str	x24, [sp, #24]
	ldp	w25, w24, [x20]
	bl	_GetPerTupleMemoryContext
	mov	x4, x0
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_ExecCallTriggerFunc
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x23
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w2, #0
	bl	_ExecForceStoreHeapTuple
	ldur	w8, [x29, #-84]
	cbz	w8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_heap_freetuple
	b	LBB0_2
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_14:
	ldur	w8, [x29, #-84]
	cbz	w8, LBB0_16
; %bb.15:
	mov	x0, x23
	bl	_heap_freetuple
LBB0_16:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_T_TriggerData,4,2              ; @T_TriggerData
	.comm	_TRIGGER_EVENT_INSERT,4,2       ; @TRIGGER_EVENT_INSERT
	.comm	_TRIGGER_EVENT_ROW,4,2          ; @TRIGGER_EVENT_ROW
	.comm	_TRIGGER_EVENT_INSTEAD,4,2      ; @TRIGGER_EVENT_INSTEAD
	.comm	_TRIGGER_TYPE_ROW,4,2           ; @TRIGGER_TYPE_ROW
	.comm	_TRIGGER_TYPE_INSTEAD,4,2       ; @TRIGGER_TYPE_INSTEAD
	.comm	_TRIGGER_TYPE_INSERT,4,2        ; @TRIGGER_TYPE_INSERT
.subsections_via_symbols
