	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_return_type
_compute_return_type:                   ## @compute_return_type
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	xorl	%edi, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_LookupTypeName
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_GETSTRUCT
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_SQLlanguageId@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	movq	_NOTICE@GOTPCREL(%rip), %rcx
	cmoveq	_ERROR@GOTPCREL(%rip), %rcx
	cmoveq	%rax, %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movl	(%rcx), %r14d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	cmoveq	_ERRCODE_INVALID_FUNCTION_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r13, %rdi
	callq	_TypeNameToString
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_errmsg
	movl	%r14d, %edi
	movq	%r15, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	%r12, %rdi
	callq	_typeTypeId
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ReleaseSysCache
	jmp	LBB0_12
LBB0_4:
	movq	%r13, %rdi
	callq	_TypeNameToString
	movq	%rax, %r12
	movq	_INTERNALlanguageId@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_ClanguageId@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	(%r13), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SYNTAX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	callq	_errmsg
	leaq	L_.str.5(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	12(%r13), %edi
	leaq	-56(%rbp), %rsi
	callq	_QualifiedNameGetCreationNamespace
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pg_namespace_aclcheck
	movq	%rax, %rbx
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.10:
	movq	_OBJECT_SCHEMA@GOTPCREL(%rip), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_get_namespace_name
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_aclcheck_error
LBB0_11:
	movq	-56(%rbp), %rbx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_TypeShellMake
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
LBB0_12:
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_USAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pg_type_aclcheck
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_aclcheck_error_type
LBB0_14:
	movq	%rbx, (%r15)
	movl	8(%r13), %eax
	movl	%eax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLlanguageId,8,3              ## @SQLlanguageId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_FUNCTION_DEFINITION,4,2 ## @ERRCODE_INVALID_FUNCTION_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SQL function cannot return shell type %s"

	.comm	_NOTICE,4,2                     ## @NOTICE
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"return type %s is only a shell"

	.comm	_INTERNALlanguageId,8,3         ## @INTERNALlanguageId
	.comm	_ClanguageId,8,3                ## @ClanguageId
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.2:                               ## @.str.2
	.asciz	"type \"%s\" does not exist"

	.comm	_NIL,8,3                        ## @NIL
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ## @ERRCODE_SYNTAX_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"type modifier cannot be specified for shell type \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"type \"%s\" is not yet defined"

L_.str.5:                               ## @.str.5
	.asciz	"Creating a shell type definition."

	.comm	_ACL_CREATE,4,2                 ## @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_SCHEMA,4,2              ## @OBJECT_SCHEMA
	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.no_dead_strip	_compute_return_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_return_type
_compute_return_type:                   ; @compute_return_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, #0
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	bl	_LookupTypeName
Lloh0:
	adrp	x25, _ACLCHECK_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ACLCHECK_OK@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_GETSTRUCT
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _SQLlanguageId@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLlanguageId@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str@PAGE
Lloh8:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x23
	csel	x23, x10, x9, eq
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	adrp	x9, _NOTICE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NOTICE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w24, [x8]
Lloh13:
	adrp	x8, _ERRCODE_INVALID_FUNCTION_DEFINITION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_INVALID_FUNCTION_DEFINITION@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x21
	bl	_TypeNameToString
	mov	x1, x0
	mov	x0, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_3:
	mov	x0, x22
	bl	_typeTypeId
	mov	x23, x0
	mov	x0, x22
	bl	_ReleaseSysCache
	b	LBB0_11
LBB0_4:
	mov	x0, x21
	bl	_TypeNameToString
	mov	x22, x0
Lloh17:
	adrp	x8, _INTERNALlanguageId@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INTERNALlanguageId@GOTPAGEOFF]
Lloh19:
	adrp	x9, _ClanguageId@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ClanguageId@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x23
	ccmp	x9, x23, #4, ne
Lloh23:
	adrp	x24, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh24:
	ldr	x24, [x24, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
	b.eq	LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	ldr	w0, [x24]
	bl	_errcode
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_6:
	ldr	x8, [x21]
Lloh30:
	adrp	x9, _NIL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w23, [x8]
Lloh36:
	adrp	x8, _ERRCODE_SYNTAX_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERRCODE_SYNTAX_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_errcode
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_8:
Lloh41:
	adrp	x8, _NOTICE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh43:
	ldr	w23, [x8]
	ldr	w0, [x24]
	bl	_errcode
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_errmsg
Lloh46:
	adrp	x0, l_.str.5@PAGE
Lloh47:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldr	w0, [x21, #12]
	add	x1, sp, #8
	bl	_QualifiedNameGetCreationNamespace
	mov	x22, x0
	bl	_GetUserId
	mov	x1, x0
Lloh48:
	adrp	x8, _ACL_CREATE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ACL_CREATE@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_pg_namespace_aclcheck
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	mov	x23, x0
Lloh51:
	adrp	x8, _OBJECT_SCHEMA@GOTPAGE
Lloh52:
	ldr	x8, [x8, _OBJECT_SCHEMA@GOTPAGEOFF]
Lloh53:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_get_namespace_name
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_aclcheck_error
LBB0_10:
	ldr	x23, [sp, #8]
	bl	_GetUserId
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_TypeShellMake
	mov	x23, x0
	bl	_OidIsValid
	bl	_Assert
LBB0_11:
	bl	_GetUserId
	mov	x1, x0
Lloh54:
	adrp	x8, _ACL_USAGE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ACL_USAGE@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_pg_type_aclcheck
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.12:
	mov	x1, x23
	bl	_aclcheck_error_type
LBB0_13:
	str	x23, [x20]
	ldr	w8, [x21, #8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLlanguageId,8,3              ; @SQLlanguageId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_FUNCTION_DEFINITION,4,2 ; @ERRCODE_INVALID_FUNCTION_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SQL function cannot return shell type %s"

	.comm	_NOTICE,4,2                     ; @NOTICE
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"return type %s is only a shell"

	.comm	_INTERNALlanguageId,8,3         ; @INTERNALlanguageId
	.comm	_ClanguageId,8,3                ; @ClanguageId
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.2:                               ; @.str.2
	.asciz	"type \"%s\" does not exist"

	.comm	_NIL,8,3                        ; @NIL
	.comm	_ERRCODE_SYNTAX_ERROR,4,2       ; @ERRCODE_SYNTAX_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"type modifier cannot be specified for shell type \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"type \"%s\" is not yet defined"

l_.str.5:                               ; @.str.5
	.asciz	"Creating a shell type definition."

	.comm	_ACL_CREATE,4,2                 ; @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_SCHEMA,4,2              ; @OBJECT_SCHEMA
	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.no_dead_strip	_compute_return_type
.subsections_via_symbols
