	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buildRelationAliases
_buildRelationAliases:                  ## @buildRelationAliases
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	_NIL@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_Assert
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%r15), %r12
	movq	%r12, %rdi
	callq	_list_head
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_list_length
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	%rax, (%r15)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_4
LBB0_5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	movq	%r12, %rsi
	callq	_lappend
	movq	%rax, (%r13)
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_TupleDescAttr
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pstrdup
	movl	%eax, %edi
	callq	_makeString
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %r13
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_lappend
	movq	%rax, (%r15)
	movq	%r13, %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_lfirst
	movq	%rax, %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_lnext
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_lappend
	movq	%rax, (%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edi
	callq	_NameStr
	movq	%rax, %rdi
	callq	_pstrdup
	movl	%eax, %edi
	callq	_makeString
	movq	%rax, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_2:
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	testq	%r15, %r15
	je	LBB0_15
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_COLUMN_REFERENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	subl	%ebx, %edx
	leaq	L_.str.1(%rip), %rdi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_COLUMN_REFERENCE,4,2 ## @ERRCODE_INVALID_COLUMN_REFERENCE
L_.str.1:                               ## @.str.1
	.asciz	"table \"%s\" has %d columns available but %d columns specified"

	.no_dead_strip	_buildRelationAliases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buildRelationAliases
_buildRelationAliases:                  ; @buildRelationAliases
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w28, [x0]
	ldr	x8, [x2]
Lloh0:
	adrp	x21, _NIL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NIL@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	cbz	x20, LBB0_11
; %bb.1:
	ldr	x23, [x20]
	mov	x0, x23
	bl	_list_head
	mov	x24, x0
	mov	x0, x23
	bl	_list_length
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x21]
	str	x8, [x20]
	cmp	w28, #1
	b.lt	LBB0_12
LBB0_2:
	mov	w21, #0
	mov	w25, #0
Lloh2:
	adrp	x26, l_.str@PAGE
Lloh3:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19]
	mov	x1, x27
	bl	_lappend
	str	x0, [x19]
	add	w25, w25, #1
	cmp	w28, w25
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_TupleDescAttr
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_pstrdup
	bl	_makeString
	mov	x27, x0
	cbz	x24, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	mov	x1, x27
	bl	_lappend
	str	x0, [x20]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_lfirst
	mov	x27, x0
	mov	x0, x23
	mov	x1, x24
	bl	_lnext
	mov	x24, x0
	ldr	x0, [x20]
	mov	x1, x27
	bl	_lappend
	str	x0, [x20]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x0]
	bl	_NameStr
	bl	_pstrdup
	bl	_makeString
	mov	x27, x0
	b	LBB0_4
LBB0_11:
	mov	x24, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ldr	x23, [x21]
	cmp	w28, #1
	b.ge	LBB0_2
LBB0_12:
	mov	w21, #0
LBB0_13:
	cbz	x24, LBB0_15
; %bb.14:
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
Lloh7:
	adrp	x8, _ERRCODE_INVALID_COLUMN_REFERENCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_INVALID_COLUMN_REFERENCE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x19, #8]
	sub	w2, w28, w21
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	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
	b	_ereport
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_COLUMN_REFERENCE,4,2 ; @ERRCODE_INVALID_COLUMN_REFERENCE
l_.str.1:                               ; @.str.1
	.asciz	"table \"%s\" has %d columns available but %d columns specified"

	.no_dead_strip	_buildRelationAliases
.subsections_via_symbols
