	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copytup_heap
_copytup_heap:                          ## @copytup_heap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	24(%rdi), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_ExecCopySlotMinimalTuple
	movq	%rax, %rbx
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_GetMemoryChunkSpace
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_USEMEM
	movslq	(%rbx), %rax
	movq	_MINIMAL_TUPLE_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)
	subq	%rcx, %rbx
	movq	%rbx, -48(%rbp)
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	leaq	-56(%rbp), %rdi
	movq	%r14, %rcx
	callq	_heap_getattr
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movq	8(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_2
LBB0_4:
	movq	%r12, 8(%r14)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %rdi
	callq	_consider_abort_common
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r12, 8(%r14)
	cmpl	$0, (%r13)
	movq	_MINIMAL_TUPLE_OFFSET@GOTPCREL(%rip), %r14
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r12
	leaq	(%r12,%rbx), %rcx
	movq	16(%r12,%rbx), %rax
	movslq	(%rax), %rdx
	movq	(%r14), %rsi
	addq	%rsi, %rdx
	movq	%rdx, -56(%rbp)
	subq	%rsi, %rax
	movq	%rax, -48(%rbp)
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	leaq	-56(%rbp), %rdi
	callq	_heap_getattr
	movq	%rax, 8(%r12,%rbx)
	incq	%r15
	movslq	(%r13), %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jl	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	*8(%rsi)
	movq	%rax, %r12
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ## @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_copytup_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copytup_heap
_copytup_heap:                          ; @copytup_heap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	mov	x0, x21
	bl	_ExecCopySlotMinimalTuple
	mov	x21, x0
	str	x0, [x20, #16]
	bl	_GetMemoryChunkSpace
	mov	x1, x0
	mov	x0, x19
	bl	_USEMEM
	ldrsw	x8, [x21]
Lloh0:
	adrp	x23, _MINIMAL_TUPLE_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MINIMAL_TUPLE_OFFSET@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x8, x9, x8
	sub	x9, x21, x9
	stp	x8, x9, [sp]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, sp
	mov	x3, x20
	bl	_heap_getattr
	mov	x21, x0
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
LBB0_2:
	str	x21, [x20, #8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x19
	bl	_consider_abort_common
	cbz	w0, LBB0_8
; %bb.5:
	str	x21, [x20, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:
	mov	x21, #0
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	add	x20, x8, x21
	ldr	x8, [x20, #16]
	ldrsw	x10, [x8]
	ldr	x11, [x23]
	add	x10, x11, x10
	sub	x8, x8, x11
	stp	x10, x8, [sp]
	ldr	w1, [x9]
	ldr	w2, [x19, #4]
	mov	x0, sp
	mov	x3, x20
	bl	_heap_getattr
	str	x0, [x20, #8]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #24
	cmp	x22, x8
	b.lt	LBB0_7
	b	LBB0_3
LBB0_8:
	ldr	x1, [x19, #8]
	ldr	x8, [x1, #8]
	mov	x0, x21
	blr	x8
	mov	x21, x0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ; @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_copytup_heap
.subsections_via_symbols
