	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AlterEventTriggerOwner_internal
_AlterEventTriggerOwner_internal:       ## @AlterEventTriggerOwner_internal
	.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, %r14d
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	%rsi, %rdi
	callq	_GETSTRUCT
	cmpl	%r14d, 4(%rax)
	jne	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %rbx
	movl	(%rax), %r13d
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_pg_event_trigger_ownercheck
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_OBJECT_EVENT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rbx), %edi
	callq	_NameStr
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_3:
	movl	%r14d, %edi
	callq	_superuser_arg
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%rbx), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movl	%r14d, 4(%rbx)
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_CatalogTupleUpdate
	movq	_EventTriggerRelationId@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	%r14d, %edx
	callq	_changeDependencyOnOwner
	movl	(%r15), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_InvokeObjectPostAlterHook      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EVENT_TRIGGER,4,2       ## @OBJECT_EVENT_TRIGGER
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied to change owner of event trigger \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"The owner of an event trigger must be a superuser."

	.comm	_EventTriggerRelationId,4,2     ## @EventTriggerRelationId
	.no_dead_strip	_AlterEventTriggerOwner_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AlterEventTriggerOwner_internal
_AlterEventTriggerOwner_internal:       ; @AlterEventTriggerOwner_internal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_GETSTRUCT
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
	ldr	w23, [x0]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x23
	bl	_pg_event_trigger_ownercheck
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _OBJECT_EVENT_TRIGGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJECT_EVENT_TRIGGER@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	ldr	w0, [x20, #8]
	bl	_NameStr
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_aclcheck_error
LBB0_4:
	mov	x0, x19
	bl	_superuser_arg
	cbnz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x20, #8]
	bl	_NameStr
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_6:
	str	w19, [x20, #4]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x21
	bl	_CatalogTupleUpdate
Lloh16:
	adrp	x21, _EventTriggerRelationId@GOTPAGE
Lloh17:
	ldr	x21, [x21, _EventTriggerRelationId@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	x2, x19
	bl	_changeDependencyOnOwner
	ldr	w0, [x21]
	ldr	w1, [x20]
	mov	w2, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_InvokeObjectPostAlterHook
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EVENT_TRIGGER,4,2       ; @OBJECT_EVENT_TRIGGER
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied to change owner of event trigger \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"The owner of an event trigger must be a superuser."

	.comm	_EventTriggerRelationId,4,2     ; @EventTriggerRelationId
	.no_dead_strip	_AlterEventTriggerOwner_internal
.subsections_via_symbols
