	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detoast_attr                   ## -- Begin function detoast_attr
	.p2align	4, 0x90
_detoast_attr:                          ## @detoast_attr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_VARATT_IS_EXTERNAL_ONDISK
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_VARATT_IS_EXTERNAL_INDIRECT
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rsi
	callq	_VARATT_EXTERNAL_GET_POINTER
	callq	_VARATT_IS_EXTERNAL_INDIRECT
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	jmp	LBB0_1
LBB0_2:
	movq	%rbx, %rdi
	callq	_toast_fetch_datum
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VARATT_IS_COMPRESSED
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rbx, %rdi
	callq	_toast_decompress_datum
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_pfree
	movq	%r14, %rax
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_VARATT_IS_EXTERNAL_EXPANDED
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_detoast_external_attr
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTENDED
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
LBB0_11:
	movq	%rbx, %rax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_VARATT_IS_COMPRESSED
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_toast_decompress_datum         ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_VARATT_IS_SHORT
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_VARSIZE_SHORT
	movq	%rax, %r14
	movq	_VARHDRSZ_SHORT@GOTPCREL(%rip), %rax
	subq	(%rax), %r14
	movq	_VARHDRSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r14, %r15
	movq	%r15, %rdi
	callq	_palloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_VARSIZE
	movq	%r12, %rdi
	callq	_VARDATA
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_VARDATA_SHORT
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r12, %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ_SHORT,8,3             ## @VARHDRSZ_SHORT
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detoast_attr                   ; -- Begin function detoast_attr
	.p2align	2
_detoast_attr:                          ; @detoast_attr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_VARATT_IS_EXTERNAL_ONDISK
	cbnz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_VARATT_IS_EXTERNAL_INDIRECT
	cbz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x19
	bl	_VARATT_EXTERNAL_GET_POINTER
	bl	_VARATT_IS_EXTERNAL_INDIRECT
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_VARATT_IS_EXTERNAL_ONDISK
	cbz	x0, LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_toast_fetch_datum
	mov	x19, x0
	bl	_VARATT_IS_COMPRESSED
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_toast_decompress_datum
	mov	x20, x0
	mov	x0, x19
	bl	_pfree
	mov	x0, x20
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_VARATT_IS_EXTERNAL_EXPANDED
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_detoast_external_attr
	mov	x19, x0
	bl	_VARATT_IS_EXTENDED
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
LBB0_7:
	mov	x0, x19
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_VARATT_IS_COMPRESSED
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_toast_decompress_datum
LBB0_11:
	mov	x0, x19
	bl	_VARATT_IS_SHORT
	cbz	x0, LBB0_7
; %bb.12:
	mov	x0, x19
	bl	_VARSIZE_SHORT
Lloh0:
	adrp	x8, _VARHDRSZ_SHORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VARHDRSZ_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VARHDRSZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VARHDRSZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x20, x0, x8
	add	x21, x20, x9
	mov	x0, x21
	bl	_palloc
	mov	x22, x0
	mov	x1, x21
	bl	_SET_VARSIZE
	mov	x0, x22
	bl	_VARDATA
	mov	x21, x0
	mov	x0, x19
	bl	_VARDATA_SHORT
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	mov	x19, x22
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ_SHORT,8,3             ; @VARHDRSZ_SHORT
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
.subsections_via_symbols
