	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_baserel_partition_key_exprs
_set_baserel_partition_key_exprs:       ## @set_baserel_partition_key_exprs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_RelationGetPartitionKey
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IS_SIMPLE_REL
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_Assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_Assert
	movl	(%r15), %ebx
	leal	(,%rbx,8), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_palloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_list_head
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.4:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setg	%dil
	callq	_Assert
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %edx
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movl	(%rcx,%r13,4), %ecx
	movl	(%rax,%r13,4), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	callq	_makeVar
	movq	%rax, %r14
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_list_make1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	cmpq	%r13, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rbx
	movq	_InvalidAttrNumber@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_lfirst
	movl	%eax, %edi
	callq	_copyObject
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$1, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_ChangeVarNodes
	movl	16(%r15), %edi
	movq	%r12, %rsi
	callq	_lnext
	movq	%rax, %r12
	jmp	LBB0_10
LBB0_11:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_palloc0
	movq	%rax, 8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidAttrNumber,8,3          ## @InvalidAttrNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong number of partition key expressions"

	.no_dead_strip	_set_baserel_partition_key_exprs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_baserel_partition_key_exprs
_set_baserel_partition_key_exprs:       ; @set_baserel_partition_key_exprs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_RelationGetPartitionKey
	mov	x20, x0
	ldr	x21, [x19]
	mov	x0, x19
	bl	_IS_SIMPLE_REL
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
LBB0_2:
	bl	_Assert
	cmp	x20, #0
	cset	w0, ne
	bl	_Assert
	ldr	w27, [x20]
	lsl	w22, w27, #3
	mov	x0, x22
	bl	_palloc
	mov	x23, x0
	ldr	w0, [x20, #16]
	bl	_list_head
	cmp	w27, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x24, x0
	mov	x28, #0
Lloh0:
	adrp	x25, _InvalidAttrNumber@GOTPAGE
Lloh1:
	ldr	x25, [x25, _InvalidAttrNumber@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, #0
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x20, #40]
	lsl	x9, x28, #2
	ldr	w2, [x8, x9]
	ldp	x10, x8, [x20, #24]
	ldr	w3, [x8, x9]
	ldr	w4, [x10, x9]
	mov	x0, x21
	mov	x1, x26
	mov	w5, #0
	bl	_makeVar
	mov	x26, x0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	bl	_list_make1
	str	x0, [x23, x28, lsl #3]
	add	x28, x28, #1
	cmp	x27, x28
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x26, [x8, x28, lsl #3]
	ldr	x8, [x25]
	cmp	x26, x8
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x24, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_lfirst
	bl	_copyObject
	mov	x26, x0
	mov	w1, #1
	mov	x2, x21
	mov	w3, #0
	bl	_ChangeVarNodes
	ldr	w0, [x20, #16]
	mov	x1, x24
	bl	_lnext
	mov	x24, x0
	b	LBB0_5
LBB0_10:
	str	x23, [x19, #16]
	mov	x0, x22
	bl	_palloc0
	str	x0, [x19, #8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidAttrNumber,8,3          ; @InvalidAttrNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong number of partition key expressions"

	.no_dead_strip	_set_baserel_partition_key_exprs
.subsections_via_symbols
