	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_checkkeys                  ## -- Begin function _bt_checkkeys
	.p2align	4, 0x90
__bt_checkkeys:                         ## @_bt_checkkeys
	.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	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	%r13d, %edi
	callq	_BTreeTupleGetNAtts
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	sete	%dil
	callq	_Assert
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	$1, (%r14)
	movl	8(%rbx), %edi
	callq	_RelationGetDescr
	movl	%eax, %r14d
	movq	(%rbx), %rcx
	movl	(%rcx), %r15d
	movl	$1, %eax
	testl	%r15d, %r15d
	jle	LBB0_30
## %bb.1:
	movq	8(%rcx), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	movl	%eax, %edi
	callq	_Assert
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$20, %rbx
	decl	%r15d
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	cmpl	%r12d, %esi
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SK_ROW_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	__bt_check_rowcompare
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_29
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	%r14d, %edx
	leaq	-48(%rbp), %rcx
	callq	_index_getattr
	movl	4(%rbx), %edi
	movq	_SK_ISNULL@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SK_SEARCHNULL@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)
	jne	LBB0_6
	jmp	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)
	jne	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%rbx), %rdi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %esi
	movl	%eax, %edx
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_23
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SK_SEARCHNOTNULL@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_Assert
	cmpl	$0, -48(%rbp)
	je	LBB0_6
## %bb.12:
	movl	4(%rbx), %edi
LBB0_13:
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_16
## %bb.14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	jne	LBB0_28
## %bb.15:
	movl	4(%rbx), %edi
LBB0_16:
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_27
	jmp	LBB0_29
LBB0_7:
	movl	$1, %eax
	jmp	LBB0_30
LBB0_18:
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rcx
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rdx
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	testl	%edi, (%rcx)
	je	LBB0_20
## %bb.19:
	testl	%edi, %eax
	jne	LBB0_27
	jmp	LBB0_29
LBB0_23:
	movl	4(%rbx), %eax
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.24:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	jne	LBB0_28
## %bb.25:
	movl	4(%rbx), %eax
LBB0_26:
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_29
LBB0_27:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	je	LBB0_29
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	testl	%edi, %eax
	je	LBB0_29
## %bb.21:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_ROW_HEADER,4,2              ## @SK_ROW_HEADER
	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.comm	_SK_SEARCHNULL,4,2              ## @SK_SEARCHNULL
	.comm	_SK_SEARCHNOTNULL,4,2           ## @SK_SEARCHNOTNULL
	.comm	_SK_BT_REQFWD,4,2               ## @SK_BT_REQFWD
	.comm	_SK_BT_REQBKWD,4,2              ## @SK_BT_REQBKWD
	.comm	_SK_BT_NULLS_FIRST,4,2          ## @SK_BT_NULLS_FIRST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_checkkeys                  ; -- Begin function _bt_checkkeys
	.p2align	2
__bt_checkkeys:                         ; @_bt_checkkeys
	.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, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x25, x0
	ldr	w1, [x0, #8]
	mov	x0, x23
	bl	_BTreeTupleGetNAtts
	cmp	w0, w22
	cset	w0, eq
	bl	_Assert
	mov	w21, #1
	str	w21, [x19]
	ldr	w0, [x25, #8]
	bl	_RelationGetDescr
	ldr	x8, [x25]
	ldr	w25, [x8]
	cmp	w25, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x24, x0
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x26, _SK_ROW_HEADER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SK_ROW_HEADER@GOTPAGEOFF]
Lloh2:
	adrp	x27, _SK_ISNULL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SK_ISNULL@GOTPAGEOFF]
Lloh4:
	adrp	x28, _SK_SEARCHNULL@GOTPAGE
Lloh5:
	ldr	x28, [x28, _SK_SEARCHNULL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ScanDirectionIsForward
	bl	_Assert
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #20
	subs	w25, w25, #1
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	cmp	w1, w22
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	bl	__bt_check_rowcompare
	cbnz	x0, LBB0_3
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x3, sp, #12
	mov	x0, x23
	mov	x2, x24
	bl	_index_getattr
	ldr	w8, [x21, #4]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #12]
	cbnz	w9, LBB0_3
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #12]
	cbnz	w9, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	add	x0, x21, #16
	ldp	w3, w1, [x21, #8]
	bl	_FunctionCall2Coll
	bl	_DatumGetBool
	cbnz	w0, LBB0_3
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x9, _SK_SEARCHNOTNULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SK_SEARCHNOTNULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_Assert
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
LBB0_13:
	ldr	w8, [x21, #4]
LBB0_14:
Lloh9:
	adrp	x9, _SK_BT_REQFWD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SK_BT_REQFWD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbnz	w0, LBB0_22
; %bb.16:
	ldr	w8, [x21, #4]
LBB0_17:
Lloh12:
	adrp	x9, _SK_BT_REQBKWD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SK_BT_REQBKWD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_21
	b	LBB0_23
LBB0_18:
	mov	w21, #1
	b	LBB0_24
LBB0_19:
Lloh15:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x9]
Lloh18:
	adrp	x9, _SK_BT_REQFWD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SK_BT_REQFWD@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x11, _SK_BT_REQBKWD@GOTPAGE
Lloh22:
	ldr	x11, [x11, _SK_BT_REQBKWD@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	orr	w9, w11, w9
	and	w9, w9, w8
	tst	w10, w8
	b.eq	LBB0_25
; %bb.20:
	cbz	w9, LBB0_23
LBB0_21:
	mov	x0, x20
	bl	_ScanDirectionIsBackward
	cbz	x0, LBB0_23
LBB0_22:
	str	wzr, [x19]
LBB0_23:
	mov	w21, #0
LBB0_24:
	mov	x0, x21
	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
LBB0_25:
	cbz	w9, LBB0_23
; %bb.26:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbnz	w0, LBB0_22
	b	LBB0_23
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_ROW_HEADER,4,2              ; @SK_ROW_HEADER
	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.comm	_SK_SEARCHNULL,4,2              ; @SK_SEARCHNULL
	.comm	_SK_SEARCHNOTNULL,4,2           ; @SK_SEARCHNOTNULL
	.comm	_SK_BT_REQFWD,4,2               ; @SK_BT_REQFWD
	.comm	_SK_BT_REQBKWD,4,2              ; @SK_BT_REQBKWD
	.comm	_SK_BT_NULLS_FIRST,4,2          ; @SK_BT_NULLS_FIRST
.subsections_via_symbols
