	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EventTriggerTableRewrite       ## -- Begin function EventTriggerTableRewrite
	.p2align	4, 0x90
_EventTriggerTableRewrite:              ## @EventTriggerTableRewrite
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_currentEventTriggerState@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	_EVT_TableRewrite@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rcx
	callq	_EventTriggerCommonSetup
	movq	%rax, %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movl	%r15d, 4(%rax)
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	callq	_PG_TRY
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_EventTriggerInvoke
	xorl	%eax, %eax
	callq	_PG_FINALLY
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movl	$0, (%rcx)
	xorl	%eax, %eax
	callq	_PG_END_TRY
	movq	%rbx, %rdi
	callq	_list_free
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IsUnderPostmaster,4,2          ## @IsUnderPostmaster
	.comm	_currentEventTriggerState,8,3   ## @currentEventTriggerState
	.comm	_EVT_TableRewrite,4,2           ## @EVT_TableRewrite
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"table_rewrite"

	.comm	_NIL,8,3                        ## @NIL
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EventTriggerTableRewrite       ; -- Begin function EventTriggerTableRewrite
	.p2align	2
_EventTriggerTableRewrite:              ; @EventTriggerTableRewrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _currentEventTriggerState@GOTPAGE
Lloh4:
	ldr	x22, [x22, _currentEventTriggerState@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
Lloh5:
	adrp	x8, _EVT_TableRewrite@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVT_TableRewrite@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #12
	bl	_EventTriggerCommonSetup
Lloh10:
	adrp	x8, _NIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x8, [x22]
	stp	w20, w21, [x8]
	bl	_PG_TRY
	add	x1, sp, #12
	mov	x0, x19
	bl	_EventTriggerInvoke
	bl	_PG_FINALLY
Lloh13:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x22]
	stp	wzr, w8, [x9]
	bl	_PG_END_TRY
	mov	x0, x19
	bl	_list_free
	bl	_CommandCounterIncrement
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IsUnderPostmaster,4,2          ; @IsUnderPostmaster
	.comm	_currentEventTriggerState,8,3   ; @currentEventTriggerState
	.comm	_EVT_TableRewrite,4,2           ; @EVT_TableRewrite
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"table_rewrite"

	.comm	_NIL,8,3                        ; @NIL
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
