	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_fix_scankey_strategy
__bt_fix_scankey_strategy:              ## @_bt_fix_scankey_strategy
	.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	%rdi, %r14
	movslq	(%rdi), %rax
	movl	-4(%rsi,%rax,4), %r15d
	movq	_SK_BT_INDOPTION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movl	4(%rdi), %edx
	movq	_SK_ISNULL@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.1:
	movq	_SK_ROW_HEADER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %edx
	sete	%dil
	callq	_Assert
	orl	4(%r14), %r15d
	movl	%r15d, 4(%r14)
	movq	_SK_SEARCHNULL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	%rax, 24(%r14)
LBB0_18:
	movl	$1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rsi, %r13
	movq	_SK_BT_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r15d, %ecx
	je	LBB0_12
## %bb.10:
	andl	%edx, %ecx
	jne	LBB0_12
## %bb.11:
	movq	8(%r14), %rdi
	callq	_BTCommuteStrategyNumber
	movq	%rax, 8(%r14)
	movl	4(%r14), %edx
LBB0_12:
	orl	%r15d, %edx
	movl	%edx, 4(%r14)
	movq	_SK_ROW_HEADER@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	testl	%edx, (%rcx)
	je	LBB0_19
## %bb.13:
	movl	16(%r14), %edi
	callq	_DatumGetPointer
	movslq	%eax, %rbx
	addq	$8, %rbx
	movq	_SK_ROW_MEMBER@GOTPCREL(%rip), %r14
	movq	_SK_ROW_END@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	-4(%rbx), %r12d
	movl	%r12d, -4(%rbx)
	addq	$40, %rbx
	testl	%r12d, (%r15)
	jne	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	andl	-4(%rbx), %edi
	callq	_Assert
	movslq	-8(%rbx), %rax
	movl	-4(%r13,%rax,4), %r12d
	movq	_SK_BT_INDOPTION_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shll	%cl, %r12d
	movq	_SK_BT_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %r12d
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%eax, -4(%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rdi
	callq	_BTCommuteStrategyNumber
	movq	%rax, (%rbx)
	jmp	LBB0_17
LBB0_4:
	movq	_SK_SEARCHNOTNULL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.6:
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_BTLessStrategyNumber@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_7:
	movq	_BTGreaterStrategyNumber@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_SK_BT_INDOPTION_SHIFT,4,2      ## @SK_BT_INDOPTION_SHIFT
	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.comm	_SK_ROW_HEADER,4,2              ## @SK_ROW_HEADER
	.comm	_SK_SEARCHNULL,4,2              ## @SK_SEARCHNULL
	.comm	_BTEqualStrategyNumber,8,3      ## @BTEqualStrategyNumber
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_SK_SEARCHNOTNULL,4,2           ## @SK_SEARCHNOTNULL
	.comm	_SK_BT_NULLS_FIRST,4,2          ## @SK_BT_NULLS_FIRST
	.comm	_BTGreaterStrategyNumber,8,3    ## @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,8,3       ## @BTLessStrategyNumber
	.comm	_SK_BT_DESC,4,2                 ## @SK_BT_DESC
	.comm	_SK_ROW_MEMBER,4,2              ## @SK_ROW_MEMBER
	.comm	_SK_ROW_END,4,2                 ## @SK_ROW_END
	.no_dead_strip	__bt_fix_scankey_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_fix_scankey_strategy
__bt_fix_scankey_strategy:              ; @_bt_fix_scankey_strategy
	.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	x20, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x9, x1, x9, lsl #2
	ldur	w9, [x9, #-4]
Lloh0:
	adrp	x21, _SK_BT_INDOPTION_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SK_BT_INDOPTION_SHIFT@GOTPAGEOFF]
	ldr	w10, [x21]
	lsl	w23, w9, w10
Lloh2:
	adrp	x9, _SK_ISNULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SK_ISNULL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _SK_ROW_HEADER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SK_ROW_HEADER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x20, #4]
	orr	w8, w8, w23
	str	w8, [x20, #4]
Lloh8:
	adrp	x9, _SK_SEARCHNULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SK_SEARCHNULL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
Lloh11:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	mov	x19, x1
Lloh13:
	adrp	x22, _SK_BT_DESC@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SK_BT_DESC@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w10, w9, w23
	and	w9, w9, w8
	cmp	w10, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x20, #8]
	bl	_BTCommuteStrategyNumber
	str	x0, [x20, #8]
	ldr	w8, [x20, #4]
LBB0_5:
	orr	w8, w8, w23
	str	w8, [x20, #4]
Lloh15:
	adrp	x9, _SK_ROW_HEADER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SK_ROW_HEADER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.6:
	ldr	w0, [x20, #16]
	bl	_DatumGetPointer
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x20, x8, #4
Lloh18:
	adrp	x23, _SK_ROW_MEMBER@GOTPAGE
Lloh19:
	ldr	x23, [x23, _SK_ROW_MEMBER@GOTPAGEOFF]
Lloh20:
	adrp	x24, _SK_ROW_END@GOTPAGE
Lloh21:
	ldr	x24, [x24, _SK_ROW_END@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	orr	w8, w8, w25
	str	w8, [x20], #40
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x23]
	and	w0, w9, w8
	bl	_Assert
	ldursw	x8, [x20, #-4]
	add	x8, x19, x8, lsl #2
	ldur	w8, [x8, #-4]
	ldr	w9, [x21]
	lsl	w25, w8, w9
	ldr	w8, [x22]
	tst	w25, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldur	x0, [x20, #4]
	bl	_BTCommuteStrategyNumber
	stur	x0, [x20, #4]
	b	LBB0_7
LBB0_11:
Lloh22:
	adrp	x9, _SK_SEARCHNOTNULL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SK_SEARCHNOTNULL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.12:
Lloh25:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _BTGreaterStrategyNumber@GOTPAGE
Lloh29:
	ldr	x10, [x10, _BTGreaterStrategyNumber@GOTPAGEOFF]
Lloh30:
	adrp	x11, _BTLessStrategyNumber@GOTPAGE
Lloh31:
	ldr	x11, [x11, _BTLessStrategyNumber@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x20, #8]
Lloh32:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh33:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #24]
LBB0_14:
	mov	w0, #1
LBB0_15:
	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_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SK_BT_INDOPTION_SHIFT,4,2      ; @SK_BT_INDOPTION_SHIFT
	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.comm	_SK_ROW_HEADER,4,2              ; @SK_ROW_HEADER
	.comm	_SK_SEARCHNULL,4,2              ; @SK_SEARCHNULL
	.comm	_BTEqualStrategyNumber,8,3      ; @BTEqualStrategyNumber
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_SK_SEARCHNOTNULL,4,2           ; @SK_SEARCHNOTNULL
	.comm	_SK_BT_NULLS_FIRST,4,2          ; @SK_BT_NULLS_FIRST
	.comm	_BTGreaterStrategyNumber,8,3    ; @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,8,3       ; @BTLessStrategyNumber
	.comm	_SK_BT_DESC,4,2                 ; @SK_BT_DESC
	.comm	_SK_ROW_MEMBER,4,2              ; @SK_ROW_MEMBER
	.comm	_SK_ROW_END,4,2                 ; @SK_ROW_END
	.no_dead_strip	__bt_fix_scankey_strategy
.subsections_via_symbols
