	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toast_decompress_datum_slice
_toast_decompress_datum_slice:          ## @toast_decompress_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	%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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_VARATT_IS_COMPRESSED
	movl	%eax, %edi
	callq	_Assert
	movq	_VARHDRSZ@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_palloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_TOAST_COMPRESS_RAWDATA
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_VARSIZE
	movq	%rax, %rbx
	movq	_TOAST_COMPRESS_HDRSZ@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_VARDATA
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_pglz_decompress
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_SET_VARSIZE
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_TOAST_COMPRESS_HDRSZ,8,3       ## @TOAST_COMPRESS_HDRSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compressed data is corrupted"

	.no_dead_strip	_toast_decompress_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_decompress_datum_slice
_toast_decompress_datum_slice:          ; @toast_decompress_datum_slice
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_VARATT_IS_COMPRESSED
	bl	_Assert
Lloh0:
	adrp	x23, _VARHDRSZ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VARHDRSZ@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x20
	bl	_palloc
	mov	x19, x0
	mov	x0, x21
	bl	_TOAST_COMPRESS_RAWDATA
	mov	x22, x0
	mov	x0, x21
	bl	_VARSIZE
Lloh2:
	adrp	x8, _TOAST_COMPRESS_HDRSZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TOAST_COMPRESS_HDRSZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x21, x0, x8
	mov	x0, x19
	bl	_VARDATA
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	mov	w4, #0
	bl	_pglz_decompress
	mov	x20, x0
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x8, [x23]
	add	x1, x8, x20
	mov	x0, x19
	bl	_SET_VARSIZE
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_TOAST_COMPRESS_HDRSZ,8,3       ; @TOAST_COMPRESS_HDRSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compressed data is corrupted"

	.no_dead_strip	_toast_decompress_datum_slice
.subsections_via_symbols
