	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toast_fetch_datum_slice
_toast_fetch_datum_slice:               ## @toast_fetch_datum_slice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_VARATT_IS_EXTERNAL_ONDISK
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_2:
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_VARATT_EXTERNAL_GET_POINTER
	xorl	%edi, %edi
	callq	_VARATT_EXTERNAL_IS_COMPRESSED
	testq	%rax, %rax
	sete	%al
	testl	%r14d, %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	xorl	%edi, %edi
	callq	_VARATT_EXTERNAL_IS_COMPRESSED
	movq	_VARHDRSZ@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_palloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_VARATT_EXTERNAL_IS_COMPRESSED
	movl	(%r14), %esi
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_SET_VARSIZE_COMPRESSED
	jmp	LBB0_5
LBB0_4:
	callq	_SET_VARSIZE
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"toast_fetch_datum_slice shouldn't be called for non-ondisk datums"

	.comm	_TOAST_MAX_CHUNK_SIZE,4,2       ## @TOAST_MAX_CHUNK_SIZE
	.comm	_VARHDRSZ,4,2                   ## @VARHDRSZ
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_F_INT4EQ,4,2                   ## @F_INT4EQ
	.comm	_BTGreaterEqualStrategyNumber,4,2 ## @BTGreaterEqualStrategyNumber
	.comm	_F_INT4GE,4,2                   ## @F_INT4GE
	.comm	_BTLessEqualStrategyNumber,4,2  ## @BTLessEqualStrategyNumber
	.comm	_F_INT4LE,4,2                   ## @F_INT4LE
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_VARHDRSZ_SHORT,4,2             ## @VARHDRSZ_SHORT
	.no_dead_strip	_toast_fetch_datum_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toast_fetch_datum_slice
_toast_fetch_datum_slice:               ; @toast_fetch_datum_slice
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_VARATT_IS_EXTERNAL_ONDISK
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	mov	x0, #0
	mov	x1, #0
	mov	x2, x20
	bl	_VARATT_EXTERNAL_GET_POINTER
	mov	x0, #0
	mov	x1, #0
	bl	_VARATT_EXTERNAL_IS_COMPRESSED
	cmp	w19, #0
	ccmp	x0, #0, #4, ne
	cset	w0, eq
	bl	_Assert
	mov	x0, #0
	mov	x1, #0
	bl	_VARATT_EXTERNAL_IS_COMPRESSED
Lloh5:
	adrp	x20, _VARHDRSZ@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VARHDRSZ@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_palloc
	mov	x19, x0
	mov	x0, #0
	mov	x1, #0
	bl	_VARATT_EXTERNAL_IS_COMPRESSED
	ldr	w1, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_SET_VARSIZE_COMPRESSED
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_SET_VARSIZE
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"toast_fetch_datum_slice shouldn't be called for non-ondisk datums"

	.comm	_TOAST_MAX_CHUNK_SIZE,4,2       ; @TOAST_MAX_CHUNK_SIZE
	.comm	_VARHDRSZ,4,2                   ; @VARHDRSZ
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_F_INT4EQ,4,2                   ; @F_INT4EQ
	.comm	_BTGreaterEqualStrategyNumber,4,2 ; @BTGreaterEqualStrategyNumber
	.comm	_F_INT4GE,4,2                   ; @F_INT4GE
	.comm	_BTLessEqualStrategyNumber,4,2  ; @BTLessEqualStrategyNumber
	.comm	_F_INT4LE,4,2                   ; @F_INT4LE
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_VARHDRSZ_SHORT,4,2             ; @VARHDRSZ_SHORT
	.no_dead_strip	_toast_fetch_datum_slice
.subsections_via_symbols
