	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_compare                    ## -- Begin function _bt_compare
	.p2align	4, 0x90
__bt_compare:                           ## @_bt_compare
	.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
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	callq	_RelationGetDescr
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_PageGetSpecialPointer
	movl	%eax, %r12d
	movq	24(%rbx), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rcx
	callq	__bt_check_natts
	movl	%eax, %edi
	callq	_Assert
	movl	(%rbx), %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_IndexRelationGetNumberOfKeyAttributes
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	setle	%dil
	callq	_Assert
	movl	$1, %edi
	cmpq	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	callq	_Assert
	movl	%r12d, %edi
	callq	_P_ISLEAF
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_4
## %bb.3:
	movl	%r12d, %edi
	callq	_P_FIRSTDATAKEY
	movl	$1, %r14d
	cmpq	%rbx, %rax
	je	LBB0_27
LBB0_4:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_PageGetItemId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_BTreeTupleGetNAtts
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_Min
	movl	%eax, %r12d
	movl	$1, %edi
	cmpq	$0, 24(%rbx)
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpl	(%rbx), %r12d
	sete	%dil
LBB0_6:
	callq	_Assert
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	addq	$12, %r15
	movq	_SK_ISNULL@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	testl	%edx, %edx
	je	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$20, %r15
	decl	%r12d
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %esi
	movq	%r13, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	leaq	-72(%rbp), %rcx
	callq	_index_getattr
	movl	-12(%r15), %ecx
	movl	-72(%rbp), %edx
	testl	%ecx, (%rbx)
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%edx, %edx
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-8(%r15), %ecx
	movl	-4(%r15), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetInt32
	movl	%eax, %r14d
	movq	_SK_BT_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -12(%r15)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%r14d, %r14d
	je	LBB0_17
	jmp	LBB0_27
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edi
	callq	_INVERT_COMPARE_RESULT
	testl	%r14d, %r14d
	je	LBB0_17
	jmp	LBB0_27
LBB0_18:
	movl	$1, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rbx)
	jg	LBB0_27
## %bb.19:
	movq	%r13, %rdi
	callq	_BTreeTupleGetHeapTID
	movq	%rax, %r15
	cmpq	$0, 8(%rbx)
	je	LBB0_20
## %bb.25:
	movl	(%rbx), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_IndexRelationGetNumberOfKeyAttributes
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_Assert
	testq	%r15, %r15
	je	LBB0_27
## %bb.26:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_IndexRelationGetNumberOfKeyAttributes
	xorl	%edi, %edi
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	setge	%dil
	callq	_Assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%r15, %rsi
	callq	_ItemPointerCompare
	movl	%eax, %r14d
	jmp	LBB0_27
LBB0_10:
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	xorl	%r14d, %r14d
	negl	%ecx
	jmp	LBB0_11
LBB0_20:
	cmpq	$0, 24(%rbx)
	je	LBB0_24
## %bb.21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 16(%rax)
	je	LBB0_22
LBB0_24:
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_13:
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	$1, %ecx
LBB0_11:
	sbbl	%r14d, %r14d
	orl	$1, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_24
## %bb.23:
	testq	%r15, %r15
	je	LBB0_27
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.comm	_SK_BT_NULLS_FIRST,4,2          ## @SK_BT_NULLS_FIRST
	.comm	_SK_BT_DESC,4,2                 ## @SK_BT_DESC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_compare                    ; -- Begin function _bt_compare
	.p2align	2
__bt_compare:                           ; @_bt_compare
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_RelationGetDescr
	mov	x21, x0
	mov	x0, x22
	bl	_PageGetSpecialPointer
	mov	x24, x0
	ldr	x1, [x19, #24]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	bl	__bt_check_natts
	bl	_Assert
	ldr	w25, [x19]
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	w25, w0
	cset	w0, le
	bl	_Assert
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
LBB0_3:
	bl	_Assert
	mov	x0, x24
	bl	_P_ISLEAF
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x24
	bl	_P_FIRSTDATAKEY
	cmp	x0, x23
	b.eq	LBB0_18
LBB0_5:
	mov	x0, x22
	mov	x1, x23
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x22
	bl	_PageGetItem
	mov	x23, x0
	mov	x1, x20
	bl	_BTreeTupleGetNAtts
	mov	x22, x0
	ldr	w1, [x19]
	bl	_Min
	mov	x24, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	cmp	w24, w8
	cset	w0, eq
LBB0_8:
	bl	_Assert
	cmp	w24, #1
	b.lt	LBB0_17
; %bb.9:
	ldr	x26, [x19, #32]
Lloh0:
	adrp	x27, _SK_ISNULL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SK_ISNULL@GOTPAGEOFF]
Lloh2:
	adrp	x28, _SK_BT_DESC@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SK_BT_DESC@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	cbz	w9, LBB0_22
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x26, #20
	subs	w24, w24, #1
	b.eq	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26, #16]
	add	x3, sp, #12
	mov	x0, x23
	mov	x2, x21
	bl	_index_getattr
	ldr	w8, [x26]
	ldr	w10, [x27]
	ldr	w9, [sp, #12]
	tst	w10, w8
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w9, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, x0
	add	x0, x26, #12
	ldp	w3, w1, [x26, #4]
	bl	_FunctionCall2Coll
	bl	_DatumGetInt32
	mov	x25, x0
	ldr	w8, [x26]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cbz	w25, LBB0_11
	b	LBB0_27
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x25
	bl	_INVERT_COMPARE_RESULT
	cbz	w25, LBB0_11
	b	LBB0_27
LBB0_17:
	ldr	w8, [x19]
	cmp	w8, w22
	b.le	LBB0_19
LBB0_18:
	mov	w25, #1
	b	LBB0_27
LBB0_19:
	mov	x0, x23
	bl	_BTreeTupleGetHeapTID
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_23
; %bb.20:
	ldr	w23, [x19]
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	w23, w0
	cset	w0, eq
	bl	_Assert
	cbz	x21, LBB0_18
; %bb.21:
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	cmp	w22, w0
	cset	w0, ge
	bl	_Assert
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_ItemPointerCompare
	mov	x25, x0
	b	LBB0_27
LBB0_22:
Lloh4:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1
	cneg	w25, w8, ne
	b	LBB0_27
LBB0_23:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_28
LBB0_25:
	mov	w25, #0
	b	LBB0_27
LBB0_26:
Lloh7:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #-1
	cneg	w25, w8, ne
LBB0_27:
	mov	x0, x25
	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_28:
	ldr	w8, [x19]
	cmp	w8, w22
	b.ne	LBB0_25
; %bb.29:
	cbz	x21, LBB0_18
	b	LBB0_25
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.comm	_SK_BT_NULLS_FIRST,4,2          ; @SK_BT_NULLS_FIRST
	.comm	_SK_BT_DESC,4,2                 ; @SK_BT_DESC
.subsections_via_symbols
