	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterEventTrigger              ## -- Begin function AlterEventTrigger
	.p2align	4, 0x90
_AlterEventTrigger:                     ## @AlterEventTrigger
	.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
	movq	%rdi, %r15
	movb	(%rdi), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	_EventTriggerRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r14d
	movq	_EVENTTRIGGERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r15), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	%rbx, %rdi
	callq	_GETSTRUCT
	movq	%rax, %r13
	movl	4(%rax), %r12d
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_pg_event_trigger_ownercheck
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_EVENT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	callq	_aclcheck_error
LBB0_4:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, (%r13)
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_CatalogTupleUpdate
	movq	_EventTriggerRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	%rbx, %rdi
	callq	_heap_freetuple
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_table_close
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EventTriggerRelationId,4,2     ## @EventTriggerRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_EVENTTRIGGERNAME,4,2           ## @EVENTTRIGGERNAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event trigger \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EVENT_TRIGGER,4,2       ## @OBJECT_EVENT_TRIGGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterEventTrigger              ; -- Begin function AlterEventTrigger
	.p2align	2
_AlterEventTrigger:                     ; @AlterEventTrigger
	.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	x20, x0
	ldrb	w26, [x0]
Lloh0:
	adrp	x25, _EventTriggerRelationId@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EventTriggerRelationId@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x24, _RowExclusiveLock@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_table_open
	mov	x19, x0
Lloh4:
	adrp	x8, _EVENTTRIGGERNAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVENTTRIGGERNAME@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCacheCopy1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
Lloh10:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #4]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x21
	bl	_GETSTRUCT
	mov	x23, x0
	ldr	w22, [x0, #4]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x22
	bl	_pg_event_trigger_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _OBJECT_EVENT_TRIGGER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OBJECT_EVENT_TRIGGER@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_aclcheck_error
LBB0_4:
	strb	w26, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_CatalogTupleUpdate
	ldr	w0, [x25]
	mov	x1, x22
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	mov	x0, x21
	bl	_heap_freetuple
	ldr	w1, [x24]
	mov	x0, x19
	bl	_table_close
	mov	x0, x22
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EventTriggerRelationId,4,2     ; @EventTriggerRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_EVENTTRIGGERNAME,4,2           ; @EVENTTRIGGERNAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event trigger \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EVENT_TRIGGER,4,2       ; @OBJECT_EVENT_TRIGGER
.subsections_via_symbols
