	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tts_minimal_materialize
_tts_minimal_materialize:               ## @tts_minimal_materialize
	.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
	movq	%rdi, %rbx
	callq	_TTS_EMPTY
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_TTS_SHOULDFREE
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	24(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	$0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rdx, %rdi
	callq	_heap_copy_minimal_tuple
	jmp	LBB0_4
LBB0_2:
	shrq	$32, %rdx
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_heap_form_minimal_tuple
LBB0_4:
	movq	%rax, (%rbx)
	movq	_TTS_FLAG_SHOULDFREE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%rax, 24(%rbx)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movslq	(%rax), %rcx
	movq	_MINIMAL_TUPLE_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rdx, %rcx
	movq	%rcx, 8(%rbx)
	subq	%rdx, %rax
	movq	%rax, 16(%rbx)
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TTS_FLAG_SHOULDFREE,4,2        ## @TTS_FLAG_SHOULDFREE
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ## @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_tts_minimal_materialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tts_minimal_materialize
_tts_minimal_materialize:               ; @tts_minimal_materialize
	.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, x0
	bl	_TTS_EMPTY
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_TTS_SHOULDFREE
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	str	xzr, [x19, #16]
	str	xzr, [x19, #32]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_heap_copy_minimal_tuple
	b	LBB0_5
LBB0_4:
	lsr	x2, x0, #32
	ldp	w1, w0, [x19, #8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_heap_form_minimal_tuple
LBB0_5:
	str	x0, [x19]
Lloh0:
	adrp	x8, _TTS_FLAG_SHOULDFREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTS_FLAG_SHOULDFREE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	x8, [x19, #24]
	add	x9, x19, #8
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	ldrsw	x9, [x8]
Lloh3:
	adrp	x10, _MINIMAL_TUPLE_OFFSET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MINIMAL_TUPLE_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x10, x9
	sub	x8, x8, x10
	stp	x9, x8, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MemoryContextSwitchTo
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTS_FLAG_SHOULDFREE,4,2        ; @TTS_FLAG_SHOULDFREE
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ; @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_tts_minimal_materialize
.subsections_via_symbols
