	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_check_natts                ## -- Begin function _bt_check_natts
	.p2align	4, 0x90
__bt_check_natts:                       ## @_bt_check_natts
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	callq	_IndexRelationGetNumberOfAttributes
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_PageGetSpecialPointer
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_P_IGNORE
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, (%rax)
	jg	LBB0_3
## %bb.2:
	movl	%r12d, %edi
	callq	_PageGetMaxOffsetNumber
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	setge	%dil
LBB0_3:
	callq	_Assert
	movq	_BT_N_KEYS_OFFSET_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_INDEX_MAX_KEYS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_StaticAssertStmt
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_BTreeTupleGetNAtts
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_P_ISLEAF
	movq	%rax, %r13
	movl	%r15d, %edi
	callq	_P_FIRSTDATAKEY
	testq	%r13, %r13
	je	LBB0_11
## %bb.4:
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_16
## %bb.5:
	movl	%r15d, %edi
	callq	_P_RIGHTMOST
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	jmp	LBB0_6
LBB0_11:
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.12:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	sete	%al
	testl	%r12d, %r12d
	sete	%cl
	orb	%al, %cl
	testl	%r15d, %r15d
	jne	LBB0_20
## %bb.13:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.14:
	movq	_INDEX_ALT_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_15
## %bb.18:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_ItemPointerGetOffsetNumber
	movq	_P_HIKEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jmp	LBB0_19
LBB0_6:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_17
## %bb.7:
	callq	_Assert
	movq	_INDEX_ALT_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.8:
	movq	%r14, %rdi
	callq	_BTreeTupleGetHeapTID
	testq	%rax, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	cmpl	%ecx, %r12d
	je	LBB0_10
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_16:
	movq	_INDEX_ALT_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	xorl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%eax, %r12d
	jmp	LBB0_19
LBB0_17:
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
LBB0_19:
	sete	%cl
LBB0_20:
	movzbl	%cl, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r12d, %r12d
	setg	%al
	cmpl	%ecx, %r12d
	setle	%cl
	andb	%al, %cl
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_BT_N_KEYS_OFFSET_MASK,8,3      ## @BT_N_KEYS_OFFSET_MASK
	.comm	_INDEX_MAX_KEYS,8,3             ## @INDEX_MAX_KEYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BT_N_KEYS_OFFSET_MASK can't fit INDEX_MAX_KEYS"

	.comm	_INDEX_ALT_TID_MASK,4,2         ## @INDEX_ALT_TID_MASK
	.comm	_P_HIKEY,8,3                    ## @P_HIKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_check_natts                ; -- Begin function _bt_check_natts
	.p2align	2
__bt_check_natts:                       ; @_bt_check_natts
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x25, x2
	mov	x20, x1
	mov	x24, x0
	bl	_IndexRelationGetNumberOfAttributes
	mov	x22, x0
	mov	x0, x24
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x19, x0
	mov	x0, x25
	bl	_PageGetSpecialPointer
	mov	x23, x0
	bl	_P_IGNORE
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.le	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x25
	bl	_PageGetMaxOffsetNumber
	cmp	x0, x21
	cset	w0, ge
LBB0_6:
	bl	_Assert
Lloh3:
	adrp	x8, _BT_N_KEYS_OFFSET_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_N_KEYS_OFFSET_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _INDEX_MAX_KEYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INDEX_MAX_KEYS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_StaticAssertStmt
	mov	x0, x25
	mov	x1, x21
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x25
	bl	_PageGetItem
	mov	x25, x0
	mov	x1, x24
	bl	_BTreeTupleGetNAtts
	mov	x24, x0
	mov	x0, x23
	bl	_P_ISLEAF
	mov	x26, x0
	mov	x0, x23
	bl	_P_FIRSTDATAKEY
	cmp	x0, x21
	cbz	x26, LBB0_13
; %bb.7:
	b.le	LBB0_18
; %bb.8:
	mov	x0, x23
	bl	_P_RIGHTMOST
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	cbz	w20, LBB0_20
LBB0_9:
	mov	x0, x20
	bl	_Assert
	ldr	w8, [x25]
Lloh11:
	adrp	x9, _INDEX_ALT_TID_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INDEX_ALT_TID_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.10:
	mov	x0, x25
	bl	_BTreeTupleGetHeapTID
	cbz	x0, LBB0_12
; %bb.11:
	cmp	w24, w19
	b.ne	LBB0_17
LBB0_12:
	cmp	w24, #0
	ccmp	w24, w19, #0, gt
	cset	w0, le
	b	LBB0_2
LBB0_13:
	b.ne	LBB0_19
; %bb.14:
	cmp	w20, #0
	ccmp	w24, #0, #4, ne
	cset	w0, eq
	cbnz	w20, LBB0_2
; %bb.15:
	cbz	w24, LBB0_2
; %bb.16:
	ldr	w8, [x25]
Lloh14:
	adrp	x9, _INDEX_ALT_TID_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INDEX_ALT_TID_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
LBB0_17:
	mov	w0, #0
	b	LBB0_2
LBB0_18:
	ldr	w8, [x25]
Lloh17:
	adrp	x9, _INDEX_ALT_TID_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INDEX_ALT_TID_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	ccmp	w24, w22, #0, eq
	cset	w0, eq
	b	LBB0_2
LBB0_19:
	cbnz	w20, LBB0_9
LBB0_20:
	cmp	w24, w19
	cset	w0, eq
	b	LBB0_2
LBB0_21:
	add	x0, x25, #4
	bl	_ItemPointerGetOffsetNumber
Lloh20:
	adrp	x8, _P_HIKEY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _P_HIKEY@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_BT_N_KEYS_OFFSET_MASK,8,3      ; @BT_N_KEYS_OFFSET_MASK
	.comm	_INDEX_MAX_KEYS,8,3             ; @INDEX_MAX_KEYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BT_N_KEYS_OFFSET_MASK can't fit INDEX_MAX_KEYS"

	.comm	_INDEX_ALT_TID_MASK,4,2         ; @INDEX_ALT_TID_MASK
	.comm	_P_HIKEY,8,3                    ; @P_HIKEY
.subsections_via_symbols
