	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function QueuePartitionConstraintValidation
_QueuePartitionConstraintValidation:    ## @QueuePartitionConstraintValidation
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_PartConstraintImpliedByRelConstraint
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_RelationGetRelationName
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ATGetQueueEntry
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_linitial
	movq	%rax, 8(%r14)
	movl	%ebx, (%r14)
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_7:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetPartitionDesc
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.9:
	xorl	%r15d, %r15d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_QueuePartitionConstraintValidation
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_table_close
	incq	%r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	cmpq	%rcx, %r15
	movq	%r13, %r12
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %edi
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r14
	movq	%r12, %r13
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %r8
	callq	_map_partition_varattnos
	movq	%rax, %r12
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
	jmp	LBB0_12
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"partition constraint for table \"%s\" is implied by existing constraints"

L_.str.1:                               ## @.str.1
	.asciz	"updated partition constraint for default partition \"%s\" is implied by existing constraints"

	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"unexpected whole-row reference found in partition constraint"

	.comm	_NoLock,4,2                     ## @NoLock
	.no_dead_strip	_QueuePartitionConstraintValidation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function QueuePartitionConstraintValidation
_QueuePartitionConstraintValidation:    ; @QueuePartitionConstraintValidation
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	bl	_PartConstraintImpliedByRelConstraint
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_RelationGetRelationName
	mov	x1, x0
	cbz	w19, LBB0_5
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _RELKIND_RELATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RELKIND_RELATION@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_ATGetQueueEntry
	mov	x21, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	bl	_linitial
	str	x0, [x21, #8]
	str	w19, [x21]
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	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_7:
Lloh10:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x21
	bl	_RelationGetPartitionDesc
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x23, x0
	mov	x27, #0
Lloh13:
	adrp	x28, _AccessExclusiveLock@GOTPAGE
Lloh14:
	ldr	x28, [x28, _AccessExclusiveLock@GOTPAGEOFF]
Lloh15:
	adrp	x24, _NoLock@GOTPAGE
Lloh16:
	ldr	x24, [x24, _NoLock@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	x1, x25
	mov	x2, x26
	mov	x3, x19
	bl	_QueuePartitionConstraintValidation
	ldr	w1, [x24]
	mov	x0, x25
	bl	_table_close
	add	x27, x27, #1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x27, lsl #2]
	ldr	w1, [x28]
	bl	_table_open
	mov	x25, x0
	add	x4, sp, #12
	mov	x0, x20
	mov	w1, #1
	mov	x2, x25
	mov	x3, x21
	bl	_map_partition_varattnos
	mov	x26, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
	b	LBB0_10
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partition constraint for table \"%s\" is implied by existing constraints"

l_.str.1:                               ; @.str.1
	.asciz	"updated partition constraint for default partition \"%s\" is implied by existing constraints"

	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"unexpected whole-row reference found in partition constraint"

	.comm	_NoLock,4,2                     ; @NoLock
	.no_dead_strip	_QueuePartitionConstraintValidation
.subsections_via_symbols
