	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tts_buffer_heap_copyslot
_tts_buffer_heap_copyslot:              ## @tts_buffer_heap_copyslot
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	(%rsi), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_TTS_SHOULDFREE
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_ExecClearTuple
	movq	_TTS_FLAG_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_ExecCopySlotHeapTuple
	movq	%rax, 8(%rbx)
	movq	_TTS_FLAG_SHOULDFREE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movl	16(%r14), %edi
	callq	_BufferIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	8(%r14), %rsi
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_tts_buffer_heap_store_tuple
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTS_FLAG_EMPTY,4,2             ## @TTS_FLAG_EMPTY
	.comm	_TTS_FLAG_SHOULDFREE,4,2        ## @TTS_FLAG_SHOULDFREE
	.no_dead_strip	_tts_buffer_heap_copyslot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tts_buffer_heap_copyslot
_tts_buffer_heap_copyslot:              ; @tts_buffer_heap_copyslot
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x1]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_TTS_SHOULDFREE
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_ExecClearTuple
Lloh0:
	adrp	x8, _TTS_FLAG_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTS_FLAG_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w0, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	x0, x20
	bl	_ExecCopySlotHeapTuple
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _TTS_FLAG_SHOULDFREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TTS_FLAG_SHOULDFREE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x19, #8]
	mov	x0, x21
	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	_MemoryContextSwitchTo
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.4:
	ldr	w0, [x20, #16]
	bl	_BufferIsValid
	bl	_Assert
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w3, #0
	bl	_tts_buffer_heap_store_tuple
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	str	x19, [x19, #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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTS_FLAG_EMPTY,4,2             ; @TTS_FLAG_EMPTY
	.comm	_TTS_FLAG_SHOULDFREE,4,2        ; @TTS_FLAG_SHOULDFREE
	.no_dead_strip	_tts_buffer_heap_copyslot
.subsections_via_symbols
