	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TypeGetTupleDesc               ## -- Begin function TypeGetTupleDesc
	.p2align	4, 0x90
_TypeGetTupleDesc:                      ## @TypeGetTupleDesc
	.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	%rsi, %r14
	movl	%edi, %r15d
	leaq	-44(%rbp), %rsi
	callq	_get_type_func_class
	movq	_TYPEFUNC_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movl	-44(%rbp), %edi
	movl	$-1, %esi
	callq	_lookup_rowtype_tupdesc_copy
	movq	%rax, %r12
	movq	_NIL@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_20
## %bb.2:
	movl	(%r12), %r13d
	movq	%r14, %rdi
	callq	_list_length
	cmpl	%r13d, %eax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_list_nth
	movl	%eax, %edi
	callq	_strVal
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_namestrcpy
	jmp	LBB0_8
LBB0_10:
	movq	_TYPEFUNC_SCALAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.11:
	movq	_NIL@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	%r14, %rdi
	callq	_list_length
	cmpl	$1, %eax
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movq	%r14, %rdi
	callq	_linitial
	movl	%eax, %edi
	callq	_strVal
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_CreateTemplateTupleDesc
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	jmp	LBB0_20
LBB0_9:
	movq	_RECORDOID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$-1, 4(%r12)
	jmp	LBB0_20
LBB0_16:
	movq	_TYPEFUNC_RECORD@GOTPCREL(%rip), %rcx
	movq	_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	callq	_elog
LBB0_19:
	xorl	%r12d, %r12d
LBB0_20:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPEFUNC_COMPOSITE,8,3         ## @TYPEFUNC_COMPOSITE
	.comm	_NIL,8,3                        ## @NIL
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"number of aliases does not match number of columns"

	.comm	_RECORDOID,4,2                  ## @RECORDOID
	.comm	_TYPEFUNC_SCALAR,8,3            ## @TYPEFUNC_SCALAR
L_.str.1:                               ## @.str.1
	.asciz	"no column alias was provided"

	.comm	_TYPEFUNC_RECORD,8,3            ## @TYPEFUNC_RECORD
L_.str.2:                               ## @.str.2
	.asciz	"could not determine row description for function returning record"

L_.str.3:                               ## @.str.3
	.asciz	"function in FROM has unsupported return type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TypeGetTupleDesc               ; -- Begin function TypeGetTupleDesc
	.p2align	2
_TypeGetTupleDesc:                      ; @TypeGetTupleDesc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	add	x1, sp, #12
	bl	_get_type_func_class
Lloh0:
	adrp	x8, _TYPEFUNC_COMPOSITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPEFUNC_COMPOSITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	ldr	w0, [sp, #12]
	mov	w1, #-1
	bl	_lookup_rowtype_tupdesc_copy
	mov	x20, x0
Lloh3:
	adrp	x8, _NIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_20
; %bb.2:
	ldr	w23, [x20]
	mov	x0, x19
	bl	_list_length
	cmp	w0, w23
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	cmp	w23, w21
	b.eq	LBB0_15
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_list_nth
	bl	_strVal
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_TupleDescAttr
	cbz	x22, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x22
	bl	_namestrcpy
	b	LBB0_6
LBB0_9:
Lloh14:
	adrp	x8, _TYPEFUNC_SCALAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TYPEFUNC_SCALAR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.10:
Lloh17:
	adrp	x8, _NIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
Lloh23:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_12:
	mov	x0, x19
	bl	_list_length
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.13:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
Lloh31:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_14:
	mov	x0, x19
	bl	_linitial
	bl	_strVal
	mov	x19, x0
	mov	w0, #1
	bl	_CreateTemplateTupleDesc
	mov	x20, x0
	mov	w1, #1
	mov	x2, x19
	mov	x3, x21
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
	b	LBB0_20
LBB0_15:
Lloh36:
	adrp	x8, _RECORDOID@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RECORDOID@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	w9, #-1
	stp	w9, w8, [x20, #4]
	b	LBB0_20
LBB0_16:
Lloh39:
	adrp	x8, _TYPEFUNC_RECORD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TYPEFUNC_RECORD@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _ERROR@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w19, [x9]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
Lloh45:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_errcode
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_19
LBB0_18:
Lloh50:
	adrp	x1, l_.str.3@PAGE
Lloh51:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_elog
LBB0_19:
	mov	x20, #0
LBB0_20:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPEFUNC_COMPOSITE,8,3         ; @TYPEFUNC_COMPOSITE
	.comm	_NIL,8,3                        ; @NIL
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"number of aliases does not match number of columns"

	.comm	_RECORDOID,4,2                  ; @RECORDOID
	.comm	_TYPEFUNC_SCALAR,8,3            ; @TYPEFUNC_SCALAR
l_.str.1:                               ; @.str.1
	.asciz	"no column alias was provided"

	.comm	_TYPEFUNC_RECORD,8,3            ; @TYPEFUNC_RECORD
l_.str.2:                               ; @.str.2
	.asciz	"could not determine row description for function returning record"

l_.str.3:                               ; @.str.3
	.asciz	"function in FROM has unsupported return type"

.subsections_via_symbols
