	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_mkscankey                  ## -- Begin function _bt_mkscankey
	.p2align	4, 0x90
__bt_mkscankey:                         ## @_bt_mkscankey
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_RelationGetDescr
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_IndexRelationGetNumberOfKeyAttributes
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BTreeTupleGetNAtts
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	%rbx, %rdi
	callq	_IndexRelationGetNumberOfAttributes
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	setle	%dil
	callq	_Assert
	movq	_BTScanInsertData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scankeys@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movslq	%r12d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_palloc
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	__bt_heapkeyspace
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_6
LBB0_4:
	movl	$1, %ecx
LBB0_6:
	movl	%ecx, (%r15)
	movq	$0, 4(%r15)
	movl	$0, 12(%r15)
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_Min
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	%ecx, 32(%r15)
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	cmpl	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_BTreeTupleGetHeapTID
LBB0_9:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%r15)
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, %ecx
	movq	16(%rax), %r13
	movslq	%ecx, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$4, %r13
	movq	%r12, %r15
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%r15), %r12
	movq	_BTORDER_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_index_getprocinfo
	movq	%rax, %r14
	cmpq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	leaq	-44(%rbp), %rcx
	callq	_index_getattr
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_SK_ISNULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, -44(%rbp)
	movq	_SK_ISNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r15,4), %esi
	movq	_SK_BT_INDOPTION_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %esi
	orl	%edx, %esi
	movq	_InvalidStrategy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_InvalidOid@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	8(%rbx), %rdx
	movl	(%rdx,%r15,4), %r9d
	movq	%r13, %rdi
	movl	%r12d, %edx
	pushq	%rax
	pushq	%r14
	callq	_ScanKeyEntryInitializeWithInfo
	addq	$16, %rsp
	cmpl	$0, -44(%rbp)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	jmp	LBB0_17
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTScanInsertData,4,2           ## @BTScanInsertData
	.comm	_scankeys,4,2                   ## @scankeys
	.comm	_BTORDER_PROC,4,2               ## @BTORDER_PROC
	.comm	_SK_ISNULL,4,2                  ## @SK_ISNULL
	.comm	_SK_BT_INDOPTION_SHIFT,4,2      ## @SK_BT_INDOPTION_SHIFT
	.comm	_InvalidStrategy,4,2            ## @InvalidStrategy
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bt_mkscankey                  ; -- Begin function _bt_mkscankey
	.p2align	2
__bt_mkscankey:                         ; @_bt_mkscankey
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_RelationGetDescr
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x19, x0
	ldr	x8, [x20]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_BTreeTupleGetNAtts
	mov	x25, x0
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	mov	x0, x20
	bl	_IndexRelationGetNumberOfAttributes
	cmp	w25, w0
	cset	w0, le
	bl	_Assert
Lloh0:
	adrp	x8, _BTScanInsertData@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTScanInsertData@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _scankeys@GOTPAGE
Lloh4:
	ldr	x8, [x8, _scankeys@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_offsetof
	add	x0, x0, w19, sxtw #2
	bl	_palloc
	mov	x22, x0
	cbz	x21, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	__bt_heapkeyspace
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	stp	w8, wzr, [x22]
	str	xzr, [x22, #8]
	mov	x0, x19
	mov	x1, x25
	bl	_Min
	mov	x8, x0
	mov	x0, #0
	str	w8, [x22, #32]
	cbz	x21, LBB0_9
; %bb.7:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_BTreeTupleGetHeapTID
LBB0_9:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	str	x0, [x22, #24]
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x23, #0
	ldr	x24, [x22, #16]
	sxtw	x27, w25
	mov	w28, w19
	mov	w19, #1
Lloh6:
	adrp	x21, _InvalidOid@GOTPAGE
Lloh7:
	ldr	x21, [x21, _InvalidOid@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #4
	mov	x23, x26
	cmp	x28, x26
	b.eq	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x26, x23, #1
Lloh8:
	adrp	x8, _BTORDER_PROC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTORDER_PROC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x26
	bl	_index_getprocinfo
	mov	x25, x0
	cmp	x23, x27
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x3, sp, #28
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x26
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_index_getattr
	mov	x7, x0
	ldr	w8, [sp, #28]
Lloh11:
	adrp	x9, _SK_ISNULL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SK_ISNULL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x7, #0
	str	w19, [sp, #28]
Lloh14:
	adrp	x8, _SK_ISNULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SK_ISNULL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	lsl	x9, x23, #2
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w10, [x10, x9]
Lloh17:
	adrp	x11, _SK_BT_INDOPTION_SHIFT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SK_BT_INDOPTION_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w1, w10, w8
Lloh20:
	adrp	x8, _InvalidStrategy@GOTPAGE
Lloh21:
	ldr	x8, [x8, _InvalidStrategy@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	w4, [x21]
	ldr	x8, [x20, #8]
	ldr	w5, [x8, x9]
	mov	x0, x24
	mov	x2, x26
	mov	x6, x25
	bl	_ScanKeyEntryInitializeWithInfo
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w19, [x22, #4]
	b	LBB0_11
LBB0_17:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BTScanInsertData,4,2           ; @BTScanInsertData
	.comm	_scankeys,4,2                   ; @scankeys
	.comm	_BTORDER_PROC,4,2               ; @BTORDER_PROC
	.comm	_SK_ISNULL,4,2                  ; @SK_ISNULL
	.comm	_SK_BT_INDOPTION_SHIFT,4,2      ; @SK_BT_INDOPTION_SHIFT
	.comm	_InvalidStrategy,4,2            ; @InvalidStrategy
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
