	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_partition_qual
_generate_partition_qual:               ## @generate_partition_qual
	.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	%rdi, %r13
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%eax, %eax
	callq	_check_stack_depth
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.13:
	movq	8(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copyObject                     ## TAILCALL
LBB0_1:
	movq	%r13, %rdi
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_get_partition_parent
	movq	_AccessShareLock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_relation_open
	movq	%rax, %r14
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_RelationGetRelid
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_RelationGetRelid
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_3:
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Anum_pg_class_relpartbound@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%r12d, %esi
	callq	_SysCacheGetAttr
	cmpl	$0, -48(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	_PartitionBoundSpec@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_TextDatumGetCString
	movl	%eax, %edi
	callq	_stringToNode
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_castNode
	movq	_bound@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_get_qual_from_partbound
	movq	%rax, %r15
LBB0_5:
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_generate_partition_qual
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_list_concat
	movq	%rax, %r15
LBB0_7:
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_map_partition_varattnos
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_9:
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	sete	%dil
	callq	_Assert
	movq	8(%r13), %rax
	xorl	%edi, %edi
	movq	_NIL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_Assert
	cmpq	(%rbx), %r15
	je	LBB0_11
## %bb.10:
	movq	_CacheMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_SMALL_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, %rbx
	movq	%rax, 16(%r13)
	movq	%r13, %rdi
	callq	_RelationGetRelationName
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_MemoryContextCopyAndSetIdentifier
	movq	16(%r13), %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_copyObject
	movq	%rax, 8(%r13)
	movq	%rbx, %rdi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_12
LBB0_11:
	movq	%r15, 8(%r13)
LBB0_12:
	movl	$1, (%r13)
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_relation_close
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_RELOID,4,2                     ## @RELOID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_Anum_pg_class_relpartbound,4,2 ## @Anum_pg_class_relpartbound
	.comm	_PartitionBoundSpec,4,2         ## @PartitionBoundSpec
	.comm	_bound,4,2                      ## @bound
L_.str.1:                               ## @.str.1
	.asciz	"unexpected whole-row reference found in partition key"

	.comm	_CacheMemoryContext,4,2         ## @CacheMemoryContext
L_.str.2:                               ## @.str.2
	.asciz	"partition constraint"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ## @ALLOCSET_SMALL_SIZES
	.comm	_NoLock,4,2                     ## @NoLock
	.no_dead_strip	_generate_partition_qual
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_partition_qual
_generate_partition_qual:               ; @generate_partition_qual
	.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, x0
Lloh0:
	adrp	x24, _NIL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NIL@GOTPAGEOFF]
	ldr	x21, [x24]
	bl	_check_stack_depth
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	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
	add	sp, sp, #96
	b	_copyObject
LBB0_2:
	mov	x0, x19
	bl	_RelationGetRelid
	bl	_get_partition_parent
Lloh2:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_relation_open
	mov	x20, x0
Lloh5:
	adrp	x26, _RELOID@GOTPAGE
Lloh6:
	ldr	x26, [x26, _RELOID@GOTPAGEOFF]
	ldr	w22, [x26]
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
Lloh7:
	adrp	x25, _ERROR@GOTPAGE
Lloh8:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w23, [x25]
	mov	x0, x19
	bl	_RelationGetRelid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_elog
LBB0_4:
	ldr	w0, [x26]
Lloh11:
	adrp	x8, _Anum_pg_class_relpartbound@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Anum_pg_class_relpartbound@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x22
	bl	_SysCacheGetAttr
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _PartitionBoundSpec@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PartitionBoundSpec@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	bl	_TextDatumGetCString
	bl	_stringToNode
	mov	x1, x0
	mov	x0, x21
	bl	_castNode
	mov	x2, x0
Lloh17:
	adrp	x8, _bound@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bound@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_get_qual_from_partbound
	mov	x21, x0
LBB0_6:
	mov	x0, x22
	bl	_ReleaseSysCache
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_generate_partition_qual
	mov	x1, x21
	bl	_list_concat
	mov	x21, x0
LBB0_8:
	add	x4, sp, #8
	mov	x0, x21
	mov	w1, #1
	mov	x2, x19
	mov	x3, x20
	bl	_map_partition_varattnos
	mov	x21, x0
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x25]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_10:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x24]
	cmp	x21, x8
	b.eq	LBB0_12
; %bb.11:
Lloh22:
	adrp	x8, _CacheMemoryContext@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CacheMemoryContext@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ALLOCSET_SMALL_SIZES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALLOCSET_SMALL_SIZES@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x22, x0
	str	x0, [x19, #16]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
	mov	x0, x22
	bl	_MemoryContextCopyAndSetIdentifier
	ldr	x0, [x19, #16]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	mov	x0, x21
	bl	_copyObject
	str	x0, [x19, #8]
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	b	LBB0_13
LBB0_12:
	str	x21, [x19, #8]
LBB0_13:
	mov	w8, #1
	str	w8, [x19]
Lloh30:
	adrp	x8, _NoLock@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_relation_close
	mov	x0, x21
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_RELOID,4,2                     ; @RELOID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for relation %u"

	.comm	_Anum_pg_class_relpartbound,4,2 ; @Anum_pg_class_relpartbound
	.comm	_PartitionBoundSpec,4,2         ; @PartitionBoundSpec
	.comm	_bound,4,2                      ; @bound
l_.str.1:                               ; @.str.1
	.asciz	"unexpected whole-row reference found in partition key"

	.comm	_CacheMemoryContext,4,2         ; @CacheMemoryContext
l_.str.2:                               ; @.str.2
	.asciz	"partition constraint"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ; @ALLOCSET_SMALL_SIZES
	.comm	_NoLock,4,2                     ; @NoLock
	.no_dead_strip	_generate_partition_qual
.subsections_via_symbols
