	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_targetlist
_expand_targetlist:                     ## @expand_targetlist
	.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	%rcx, %rbx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_list_head
	movq	%rax, %r13
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RelationGetNumberOfAttributes
	testl	%eax, %eax
	jle	LBB0_1
## %bb.10:
	movl	%eax, %r14d
	leal	1(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
	xorl	%ebx, %ebx
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r14), %edi
	callq	_NameStr
	movl	%eax, %edi
	callq	_pstrdup
	movq	%rbx, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_makeTargetEntry
	movq	%rax, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_lappend
	movq	%rax, %r15
	cmpl	%r12d, %r14d
	je	LBB0_25
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %esi
	leal	1(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_TupleDescAttr
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_lfirst
	cmpl	$0, 4(%rax)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%rbx), %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_lnext
	movq	%rax, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	24(%r14), %ebx
	movl	16(%r14), %r8d
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	cmpl	$128, %edx
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$129, %edx
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 12(%r14)
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %ecx
	movl	4(%r14), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %edi
	movl	$-1, %esi
	movl	%r8d, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_makeConst
	movq	_InvalidOid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_COERCION_IMPLICIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_COERCE_IMPLICIT_CAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	$0, 8(%rsp)
	movl	$-1, (%rsp)
	movq	%rax, %rdi
	movl	$-1, %edx
	movl	%ebx, %ecx
	callq	_coerce_to_domain
	movq	%rax, %rbx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, 12(%r14)
	je	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_INT4OID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movl	$-1, %esi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_makeConst
	movq	%rax, %rbx
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%r14), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%r9d, %r9d
	callq	_makeVar
	movq	%rax, %rbx
	jmp	LBB0_23
LBB0_25:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	testq	%r13, %r13
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movl	$1, %r12d
	testq	%r13, %r13
	je	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_lappend
	movq	%rax, %r15
	incl	%r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_lnext
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_lfirst
	movq	%rax, %rbx
	cmpl	$0, 4(%rax)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%rbx), %r12d
	je	LBB0_8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_elog
	cmpl	(%rbx), %r12d
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_flatCopyTargetEntry
	movq	%rax, %rbx
	movl	%r12d, (%rax)
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rax
	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
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_COERCION_IMPLICIT,4,2          ## @COERCION_IMPLICIT
	.comm	_COERCE_IMPLICIT_CAST,4,2       ## @COERCE_IMPLICIT_CAST
	.comm	_INT4OID,4,2                    ## @INT4OID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized command_type: %d"

L_.str.1:                               ## @.str.1
	.asciz	"targetlist is not sorted correctly"

	.no_dead_strip	_expand_targetlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_targetlist
_expand_targetlist:                     ; @expand_targetlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	mov	x24, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_list_head
	mov	x21, x0
	mov	x0, x22
	bl	_RelationGetNumberOfAttributes
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x25, x0
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	mov	w26, #0
	add	w19, w0, #1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	x27, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23, #8]
	bl	_NameStr
	bl	_pstrdup
	mov	x2, x0
	mov	x0, x27
	mov	x1, x28
	mov	w3, #0
	bl	_makeTargetEntry
	mov	x27, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x27
	bl	_lappend
	mov	x20, x0
	add	w26, w26, #1
	cmp	w25, w26
	b.eq	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w28, w26, #1
	ldr	w0, [x22]
	mov	x1, x26
	bl	_TupleDescAttr
	mov	x23, x0
	cbz	x21, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_lfirst
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, x0
	ldr	w8, [x0]
	cmp	w28, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x1, x21
	bl	_lnext
	mov	x21, x0
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w27, [x23, #24]
	ldr	w4, [x23, #16]
	cmp	w24, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #129
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #12]
	cbnz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w3, w6, [x23]
	mov	x0, x27
	mov	w1, #-1
	mov	x2, x4
	mov	w4, #0
	mov	w5, #1
	bl	_makeConst
Lloh8:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _COERCION_IMPLICIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COERCION_IMPLICIT@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _COERCE_IMPLICIT_CAST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COERCE_IMPLICIT_CAST@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	mov	w2, #-1
	mov	x3, x27
	mov	w6, #-1
	mov	w7, #0
	bl	_coerce_to_domain
	mov	x27, x0
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x8, _INT4OID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INT4OID@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh21:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #-1
	mov	w3, #4
	mov	w4, #0
	mov	w5, #1
	mov	w6, #1
	bl	_makeConst
	mov	x27, x0
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x23, #20]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x28
	mov	x2, x27
	mov	w5, #0
	bl	_makeVar
	mov	x27, x0
	b	LBB0_3
LBB0_16:
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	cbnz	x21, LBB0_18
	b	LBB0_24
LBB0_17:
	mov	w19, #1
	cbz	x21, LBB0_24
LBB0_18:
Lloh23:
	adrp	x24, _ERROR@GOTPAGE
Lloh24:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
Lloh25:
	adrp	x22, l_.str.1@PAGE
Lloh26:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_lappend
	mov	x20, x0
	add	w19, w19, #1
	mov	x0, x26
	mov	x1, x21
	bl	_lnext
	mov	x21, x0
	cbz	x0, LBB0_24
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_lfirst
	mov	x23, x0
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_elog
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x23]
	cmp	w19, w8
	b.eq	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	bl	_flatCopyTargetEntry
	mov	x23, x0
	str	w19, [x0]
	b	LBB0_19
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_COERCION_IMPLICIT,4,2          ; @COERCION_IMPLICIT
	.comm	_COERCE_IMPLICIT_CAST,4,2       ; @COERCE_IMPLICIT_CAST
	.comm	_INT4OID,4,2                    ; @INT4OID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized command_type: %d"

l_.str.1:                               ; @.str.1
	.asciz	"targetlist is not sorted correctly"

	.no_dead_strip	_expand_targetlist
.subsections_via_symbols
