	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_check_primary_key        ## -- Begin function index_check_primary_key
	.p2align	4, 0x90
_index_check_primary_key:               ## @index_check_primary_key
	.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	%rsi, %r15
	movq	%rdi, %rbx
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_relationHasPrimaryKey
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_TABLE_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%rbx, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_ReleaseSysCache
	movl	(%r15), %eax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	jns	LBB0_9
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_ATTNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_Int16GetDatum
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_SearchSysCache2
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	movl	%ebx, %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_elog
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %edi
	callq	_GETSTRUCT
	cmpl	$0, 4(%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INVALID_TABLE_DEFINITION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %edi
	callq	_NameStr
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_TABLE_DEFINITION,4,2 ## @ERRCODE_INVALID_TABLE_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multiple primary keys for table \"%s\" are not allowed"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"primary keys cannot be expressions"

	.comm	_ATTNUM,4,2                     ## @ATTNUM
L_.str.2:                               ## @.str.2
	.asciz	"cache lookup failed for attribute %d of relation %u"

L_.str.3:                               ## @.str.3
	.asciz	"primary key column \"%s\" is not marked NOT NULL"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_index_check_primary_key        ; -- Begin function index_check_primary_key
	.p2align	2
_index_check_primary_key:               ; @index_check_primary_key
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x27, _ERROR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
	cbnz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_relationHasPrimaryKey
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w21, [x27]
Lloh2:
	adrp	x8, _ERRCODE_INVALID_TABLE_DEFINITION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERRCODE_INVALID_TABLE_DEFINITION@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x28, #0
Lloh7:
	adrp	x22, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh11:
	adrp	x23, _ATTNUM@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ATTNUM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_ReleaseSysCache
	ldr	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x24, [x9, x28, lsl #3]
	cbz	x24, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	tbz	x24, #63, LBB0_11
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w25, [x27]
	ldr	w0, [x22]
	bl	_errcode
	mov	x0, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w25, [x23]
	mov	x0, x20
	bl	_RelationGetRelid
	bl	_ObjectIdGetDatum
	mov	x26, x0
	mov	x0, x24
	bl	_Int16GetDatum
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_SearchSysCache2
	mov	x25, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w26, [x27]
	mov	x0, x20
	bl	_RelationGetRelid
	mov	x3, x0
	mov	x0, x26
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_elog
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_GETSTRUCT
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	ldr	w26, [x27]
Lloh15:
	adrp	x8, _ERRCODE_INVALID_TABLE_DEFINITION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INVALID_TABLE_DEFINITION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x24]
	bl	_NameStr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	b	LBB0_6
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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_TABLE_DEFINITION,4,2 ; @ERRCODE_INVALID_TABLE_DEFINITION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multiple primary keys for table \"%s\" are not allowed"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"primary keys cannot be expressions"

	.comm	_ATTNUM,4,2                     ; @ATTNUM
l_.str.2:                               ; @.str.2
	.asciz	"cache lookup failed for attribute %d of relation %u"

l_.str.3:                               ; @.str.3
	.asciz	"primary key column \"%s\" is not marked NOT NULL"

.subsections_via_symbols
