	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_normalize_tuple
_bt_normalize_tuple:                    ## @bt_normalize_tuple
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	callq	_RelationGetDescr
	movq	%rax, %r15
	movq	_INDEX_MAX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IndexTupleHasVarwidths
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.2:
	movq	%r15, %rbx
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_INDEX_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %r13d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_errmsg
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movslq	(%rbx), %rax
	addq	$4, %r14
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_TupleDescAttr
	movq	%rax, %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r14)
	movl	16(%r13), %esi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_index_getattr
	movl	%eax, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r14)
	cmpq	$0, 8(%r13)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, (%r13)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_IS_EXTERNAL
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_VARATT_IS_COMPRESSED
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_PG_DETOAST_DATUM
	movl	%eax, %edi
	callq	_PointerGetDatum
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax,%r14)
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_11:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.12:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_index_form_tuple
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %edi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	movl	(%rbx), %eax
	jmp	LBB0_16
LBB0_17:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ## @INDEX_MAX_KEYS
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ## @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external varlena datum in tuple that references heap row (%u,%u) in index \"%s\""

	.no_dead_strip	_bt_normalize_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_normalize_tuple
_bt_normalize_tuple:                    ; @bt_normalize_tuple
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w0, [x0]
	bl	_RelationGetDescr
	mov	x19, x0
Lloh3:
	adrp	x8, _INDEX_MAX_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDEX_MAX_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	mov	x0, x21
	bl	_IndexTupleHasVarwidths
	cbz	w0, LBB0_18
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.2:
	stur	x22, [x29, #-104]               ; 8-byte Folded Spill
	mov	x22, #0
	mov	x24, #0
	stur	wzr, [x29, #-92]                ; 4-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w26, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INDEX_CORRUPTED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x21
	bl	_ItemPointerGetBlockNumber
	mov	x27, x0
	mov	x0, x21
	bl	_ItemPointerGetOffsetNumber
	mov	x28, x0
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_RelationGetRelationName
	mov	x3, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	mov	x2, x28
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	cmp	x24, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_TupleDescAttr
	mov	x28, x0
	str	wzr, [x25, x22]
	ldr	w1, [x0, #16]
	add	x27, x23, x22
	mov	x0, x21
	mov	x2, x19
	mov	x3, x27
	bl	_index_getattr
	str	w0, [x20, x22]
	ldr	x8, [x28, #8]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	cmn	w8, #1
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cbnz	w8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_DatumGetPointer
	bl	_VARATT_IS_COMPRESSED
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_PG_DETOAST_DATUM
	bl	_PointerGetDatum
	str	w0, [x20, x22]
	mov	w9, #1
	mov	w8, #1
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	str	w9, [x25, x22]
	b	LBB0_4
LBB0_11:
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_18
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_index_form_tuple
	mov	x22, x0
	ldr	w8, [x21]
	str	w8, [x0]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	mov	x21, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x25, x21, lsl #2]
	cbz	w9, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x20, x21, lsl #2]
	bl	_DatumGetPointer
	bl	_pfree
	ldr	w8, [x19]
	b	LBB0_14
LBB0_17:
	mov	x21, x22
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_INDEX_MAX_KEYS,4,2             ; @INDEX_MAX_KEYS
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INDEX_CORRUPTED,4,2    ; @ERRCODE_INDEX_CORRUPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external varlena datum in tuple that references heap row (%u,%u) in index \"%s\""

	.no_dead_strip	_bt_normalize_tuple
.subsections_via_symbols
