	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EventTriggerSQLDropAddObject   ## -- Begin function EventTriggerSQLDropAddObject
	.p2align	4, 0x90
_EventTriggerSQLDropAddObject:          ## @EventTriggerSQLDropAddObject
	.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	_currentEventTriggerState@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_25
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_getObjectClass
	movl	%eax, %edi
	callq	_EventTriggerSupportsObjectClass
	movl	%eax, %edi
	callq	_Assert
	movq	(%rbx), %rax
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	16(%rbx), %edi
	callq	_isAnyTempNamespace
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	callq	_isTempNamespace
	testq	%rax, %rax
	je	LBB0_25
LBB0_4:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$72, %edi
	callq	_palloc0
	movq	%rax, %r14
	leaq	24(%rax), %r15
	movups	(%rbx), %xmm0
	movups	%xmm0, 24(%rax)
	movq	16(%rbx), %rax
	movq	%rax, 40(%r14)
	movl	%r13d, (%r14)
	movl	%r12d, 4(%r14)
	movq	(%rbx), %rdi
	callq	_is_objectclass_supported
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	24(%r14), %rdi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	callq	_get_object_attnum_oid
	movl	40(%r14), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_get_catalog_object_by_oid
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	%rax, %r13
	movq	(%r15), %rdi
	callq	_get_object_attnum_namespace
	movq	%rax, %rbx
	movq	_InvalidAttrNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_14
## %bb.7:
	movl	%r12d, %edi
	callq	_RelationGetDescr
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -44(%rbp)
	jne	LBB0_14
## %bb.8:
	movl	%eax, %edi
	callq	_DatumGetObjectId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_isTempNamespace
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, %ecx
	leaq	L_.str(%rip), %rax
LBB0_13:
	movq	%rax, 8(%r14)
	movl	%ecx, 16(%r14)
LBB0_14:
	movq	(%r15), %rdi
	callq	_get_object_namensp_unique
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	cmpq	$0, 32(%r14)
	jne	LBB0_19
## %bb.16:
	movq	(%r15), %rdi
	callq	_get_object_attnum_name
	movq	%rax, %rbx
	movq	_InvalidAttrNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_19
## %bb.17:
	movl	%r12d, %edi
	callq	_RelationGetDescr
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_heap_getattr
	cmpl	$0, -44(%rbp)
	jne	LBB0_19
## %bb.18:
	movl	%eax, %edi
	callq	_DatumGetName
	movl	(%rax), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movl	%eax, 64(%r14)
LBB0_19:
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_table_close
	jmp	LBB0_23
LBB0_20:
	movq	(%rbx), %rax
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	movl	16(%rbx), %edi
	callq	_isTempNamespace
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	$1, 16(%r14)
LBB0_23:
	leaq	56(%r14), %rsi
	leaq	52(%r14), %rdx
	movq	%r15, %rdi
	callq	_getObjectIdentityParts
	movl	%eax, 60(%r14)
	movq	%r15, %rdi
	callq	_getObjectTypeDescription
	movl	%eax, 48(%r14)
	movq	_currentEventTriggerState@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$20, %r14
	movq	%r14, %rsi
	callq	_slist_push_head
LBB0_24:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ebx, %edi
	callq	_isAnyTempNamespace
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_pfree
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_table_close
	jmp	LBB0_24
LBB0_12:
	movl	%ebx, %edi
	callq	_get_namespace_name
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_currentEventTriggerState,8,3   ## @currentEventTriggerState
	.comm	_NamespaceRelationId,8,3        ## @NamespaceRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_InvalidAttrNumber,8,3          ## @InvalidAttrNumber
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_temp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EventTriggerSQLDropAddObject   ; -- Begin function EventTriggerSQLDropAddObject
	.p2align	2
_EventTriggerSQLDropAddObject:          ; @EventTriggerSQLDropAddObject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x25, _currentEventTriggerState@GOTPAGE
Lloh1:
	ldr	x25, [x25, _currentEventTriggerState@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_22
; %bb.1:
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	bl	_getObjectClass
	bl	_EventTriggerSupportsObjectClass
	bl	_Assert
	ldr	x8, [x23]
Lloh2:
	adrp	x26, _NamespaceRelationId@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NamespaceRelationId@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x23, #16]
	bl	_isAnyTempNamespace
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x23, #16]
	bl	_isTempNamespace
	cbz	x0, LBB0_22
LBB0_4:
	ldr	x8, [x25]
	ldr	w0, [x8, #4]
	bl	_MemoryContextSwitchTo
	mov	x19, x0
	mov	w0, #72
	bl	_palloc0
	mov	x20, x0
	add	x21, x0, #24
	ldr	x8, [x23, #16]
	ldr	q0, [x23]
	stur	q0, [x0, #24]
	str	x8, [x0, #40]
	stp	w24, w22, [x0]
	ldr	x0, [x23]
	bl	_is_objectclass_supported
	cbz	x0, LBB0_17
; %bb.5:
	ldr	x0, [x20, #24]
Lloh4:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x22, x0
	ldr	x0, [x23]
	bl	_get_object_attnum_oid
	mov	x1, x0
	ldr	w2, [x20, #40]
	mov	x0, x22
	bl	_get_catalog_object_by_oid
	cbz	x0, LBB0_16
; %bb.6:
	mov	x23, x0
	ldr	x0, [x21]
	bl	_get_object_attnum_namespace
Lloh6:
	adrp	x27, _InvalidAttrNumber@GOTPAGE
Lloh7:
	ldr	x27, [x27, _InvalidAttrNumber@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.7:
	mov	x24, x0
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x24
	bl	_heap_getattr
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_11
; %bb.8:
	bl	_DatumGetObjectId
	mov	x24, x0
	bl	_isTempNamespace
	cbz	x0, LBB0_23
; %bb.9:
	mov	w8, #1
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	str	x0, [x20, #8]
	str	w8, [x20, #16]
LBB0_11:
	ldr	x0, [x21]
	bl	_get_object_namensp_unique
	cbz	x0, LBB0_16
; %bb.12:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_16
; %bb.13:
	ldr	x0, [x21]
	bl	_get_object_attnum_name
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.14:
	mov	x24, x0
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x24
	bl	_heap_getattr
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_16
; %bb.15:
	bl	_DatumGetName
	ldr	w0, [x0]
	bl	_NameStr
	bl	_pstrdup
	str	w0, [x20, #64]
LBB0_16:
	ldr	w1, [x26]
	mov	x0, x22
	bl	_table_close
	b	LBB0_20
LBB0_17:
	ldr	x8, [x23]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
	ldr	w0, [x23, #16]
	bl	_isTempNamespace
	cbz	x0, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_20:
	add	x1, x20, #56
	add	x2, x20, #52
	mov	x0, x21
	bl	_getObjectIdentityParts
	str	w0, [x20, #60]
	mov	x0, x21
	bl	_getObjectTypeDescription
	str	w0, [x20, #48]
	ldr	x0, [x25]
	add	x1, x20, #20
	bl	_slist_push_head
LBB0_21:
	mov	x0, x19
	bl	_MemoryContextSwitchTo
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	mov	x0, x24
	bl	_isAnyTempNamespace
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_pfree
	ldr	w1, [x26]
	mov	x0, x22
	bl	_table_close
	b	LBB0_21
LBB0_25:
	mov	x0, x24
	bl	_get_namespace_name
	mov	w8, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_currentEventTriggerState,8,3   ; @currentEventTriggerState
	.comm	_NamespaceRelationId,8,3        ; @NamespaceRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_InvalidAttrNumber,8,3          ; @InvalidAttrNumber
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_temp"

.subsections_via_symbols
