	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_check_rowcompare
__bt_check_rowcompare:                  ## @_bt_check_rowcompare
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_DatumGetPointer
	movq	%rax, %rbx
	movl	(%rax), %eax
	xorl	%edi, %edi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpl	(%r14), %eax
	sete	%dil
	callq	_Assert
	movq	_SK_ROW_MEMBER@GOTPCREL(%rip), %r12
	movq	_SK_ROW_END@GOTPCREL(%rip), %r14
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	movl	%eax, %edi
	callq	_Assert
	movl	(%r14), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_10
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	andl	4(%rbx), %edi
	callq	_Assert
	movl	(%rbx), %esi
	cmpl	%r13d, %esi
	jg	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	leaq	-68(%rbp), %rcx
	callq	_index_getattr
	cmpl	$0, -68(%rbp)
	movl	4(%rbx), %ecx
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SK_ISNULL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	20(%rbx), %rdi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %esi
	movl	%eax, %edx
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetInt32
	movq	%rax, %r15
	movq	_SK_BT_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_INVERT_COMPARE_RESULT
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	testl	%eax, 4(%rbx)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_2
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movl	8(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_22
## %bb.12:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	testq	%r15, %r15
	jns	LBB0_27
	jmp	LBB0_24
LBB0_15:
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rdx
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rsi
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rsi), %eax
	testl	%ecx, (%rdx)
	je	LBB0_30
## %bb.16:
	testl	%ecx, %eax
	jne	LBB0_21
	jmp	LBB0_33
LBB0_17:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_DatumGetPointer
	xorl	%ecx, %ecx
	cmpq	%rax, %rbx
	setne	%cl
	negq	%rcx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r14
	movl	4(%rbx,%r14), %eax
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.18:
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	jne	LBB0_32
## %bb.19:
	movl	4(%rbx,%r14), %eax
LBB0_20:
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
LBB0_21:
	movl	%r15d, %edi
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	jne	LBB0_32
	jmp	LBB0_33
LBB0_22:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elog
	jmp	LBB0_27
LBB0_23:
	testq	%r15, %r15
	jg	LBB0_27
LBB0_24:
	movl	$1, %r14d
	jmp	LBB0_38
LBB0_25:
	movl	$1, %r14d
	testq	%r15, %r15
	jg	LBB0_38
	jmp	LBB0_27
LBB0_26:
	movl	$1, %r14d
	testq	%r15, %r15
	jns	LBB0_38
LBB0_27:
	movl	4(%rbx), %eax
	movq	_SK_BT_REQFWD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_35
## %bb.28:
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	je	LBB0_34
LBB0_32:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_33:
	xorl	%r14d, %r14d
LBB0_38:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	testl	%ecx, %eax
	je	LBB0_33
## %bb.31:
	movl	%r15d, %edi
	callq	_ScanDirectionIsForward
	testl	%eax, %eax
	jne	LBB0_32
	jmp	LBB0_33
LBB0_34:
	movl	4(%rbx), %eax
LBB0_35:
	movq	_SK_BT_REQBKWD@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_38
## %bb.36:
	movl	%r15d, %edi
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_SK_ROW_MEMBER,4,2              ## @SK_ROW_MEMBER
	.comm	_SK_ROW_END,4,2                 ## @SK_ROW_END
	.comm	_SK_BT_NULLS_FIRST,4,2          ## @SK_BT_NULLS_FIRST
	.comm	_SK_BT_REQFWD,4,2               ## @SK_BT_REQFWD
	.comm	_SK_BT_REQBKWD,4,2              ## @SK_BT_REQBKWD
	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.comm	_SK_BT_DESC,4,2                 ## @SK_BT_DESC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unrecognized RowCompareType: %d"

	.no_dead_strip	__bt_check_rowcompare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_check_rowcompare
__bt_check_rowcompare:                  ; @_bt_check_rowcompare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x5, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_DatumGetPointer
	mov	x21, x0
	ldr	w8, [x0]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w9, [x19]
	cmp	w8, w9
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x27, _SK_ROW_MEMBER@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SK_ROW_MEMBER@GOTPAGEOFF]
Lloh2:
	adrp	x28, _SK_ROW_END@GOTPAGE
Lloh3:
	ldr	x28, [x28, _SK_ROW_END@GOTPAGEOFF]
Lloh4:
	adrp	x19, _SK_ISNULL@GOTPAGE
Lloh5:
	ldr	x19, [x19, _SK_ISNULL@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SK_BT_DESC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SK_BT_DESC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x27]
	and	w0, w9, w8
	bl	_Assert
	ldr	w1, [x21]
	cmp	w1, w23
	b.le	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_ScanDirectionIsForward
	bl	_Assert
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x3, sp, #28
	mov	x0, x25
	mov	x2, x22
	bl	_index_getattr
	ldr	w9, [sp, #28]
	ldr	w8, [x21, #4]
	cbnz	w9, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
	add	x0, x21, #20
	ldp	w3, w1, [x21, #12]
	bl	_FunctionCall2Coll
	bl	_DatumGetInt32
	mov	x26, x0
	ldr	w8, [x21, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	bl	_INVERT_COMPARE_RESULT
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x26, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #24
	b	LBB0_1
LBB0_10:
	mov	x26, #0
LBB0_11:
	ldr	w2, [x21, #8]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_21
; %bb.12:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	tbz	x26, #63, LBB0_23
	b	LBB0_30
LBB0_14:
Lloh10:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x9]
Lloh13:
	adrp	x9, _SK_BT_REQFWD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SK_BT_REQFWD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x11, _SK_BT_REQBKWD@GOTPAGE
Lloh17:
	ldr	x11, [x11, _SK_BT_REQBKWD@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w9, w11, w9
	and	w9, w9, w8
	tst	w10, w8
	b.eq	LBB0_32
; %bb.15:
	cbnz	w9, LBB0_20
	b	LBB0_35
LBB0_16:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8, #12]
	bl	_DatumGetPointer
	mov	x8, #-24
	cmp	x21, x0
	csel	x8, x8, xzr, ne
	add	x19, x21, x8
	ldr	w8, [x19, #4]
Lloh19:
	adrp	x9, _SK_BT_REQFWD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SK_BT_REQFWD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.17:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbnz	w0, LBB0_34
; %bb.18:
	ldr	w8, [x19, #4]
LBB0_19:
Lloh22:
	adrp	x9, _SK_BT_REQBKWD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SK_BT_REQBKWD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
LBB0_20:
	mov	x0, x20
	bl	_ScanDirectionIsBackward
	cbnz	x0, LBB0_34
	b	LBB0_35
LBB0_21:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_23
LBB0_22:
	cmp	x26, #1
	b.lt	LBB0_30
LBB0_23:
	ldr	w8, [x21, #4]
Lloh30:
	adrp	x9, _SK_BT_REQFWD@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SK_BT_REQFWD@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.24:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbnz	w0, LBB0_28
; %bb.25:
	ldr	w8, [x21, #4]
LBB0_26:
Lloh33:
	adrp	x9, _SK_BT_REQBKWD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SK_BT_REQBKWD@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
; %bb.27:
	mov	x0, x20
	bl	_ScanDirectionIsBackward
	cbz	x0, LBB0_36
LBB0_28:
	mov	w0, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	wzr, [x8]
	b	LBB0_36
LBB0_29:
	cmp	x26, #0
	b.le	LBB0_23
LBB0_30:
	mov	w0, #1
	b	LBB0_36
LBB0_31:
	tbz	x26, #63, LBB0_30
	b	LBB0_23
LBB0_32:
	cbz	w9, LBB0_35
; %bb.33:
	mov	x0, x20
	bl	_ScanDirectionIsForward
	cbz	w0, LBB0_35
LBB0_34:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	wzr, [x8]
LBB0_35:
	mov	w0, #0
LBB0_36:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_22-LBB0_13)>>2
	.byte	(LBB0_29-LBB0_13)>>2
	.byte	(LBB0_31-LBB0_13)>>2
                                        ; -- End function
	.comm	_SK_ROW_MEMBER,4,2              ; @SK_ROW_MEMBER
	.comm	_SK_ROW_END,4,2                 ; @SK_ROW_END
	.comm	_SK_BT_NULLS_FIRST,4,2          ; @SK_BT_NULLS_FIRST
	.comm	_SK_BT_REQFWD,4,2               ; @SK_BT_REQFWD
	.comm	_SK_BT_REQBKWD,4,2              ; @SK_BT_REQBKWD
	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.comm	_SK_BT_DESC,4,2                 ; @SK_BT_DESC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unrecognized RowCompareType: %d"

	.no_dead_strip	__bt_check_rowcompare
.subsections_via_symbols
