	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spl_ptr_heap_clone
_spl_ptr_heap_clone:                    ## @spl_ptr_heap_clone
	.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	%rdi, %r15
	movl	$40, %edi
	callq	_emalloc
	movq	%rax, %r14
	movl	36(%r15), %eax
	movl	%eax, 36(%r14)
	movq	16(%r15), %rax
	movq	%rax, 16(%r14)
	movl	32(%r15), %eax
	movl	%eax, 32(%r14)
	movl	(%r15), %eax
	movl	%eax, (%r14)
	movl	4(%r15), %eax
	movl	%eax, 4(%r14)
	movl	28(%r15), %eax
	movl	%eax, 28(%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %esi
	movl	8(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_safe_emalloc
	movl	%eax, 24(%r14)
	movl	(%r15), %edx
	movl	24(%r15), %esi
	imull	8(%r15), %edx
	movl	%eax, %edi
	callq	_memcpy
	cmpl	$0, 4(%r14)
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r15
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_spl_heap_elem
	movl	%eax, %edi
	callq	*%r15
	incl	%ebx
	cmpl	4(%r14), %ebx
	jl	LBB0_1
LBB0_2:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spl_ptr_heap_clone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spl_ptr_heap_clone
_spl_ptr_heap_clone:                    ; @spl_ptr_heap_clone
	.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, x0
	mov	w0, #40
	bl	_emalloc
	mov	x19, x0
	ldr	x8, [x20, #16]
	str	x8, [x0, #16]
	ldp	w9, w8, [x20, #32]
	stp	w9, w8, [x0, #32]
	ldr	d0, [x20]
	str	d0, [x0]
	ldr	w8, [x20, #28]
	str	w8, [x0, #28]
	ldr	w8, [x20, #8]
	str	w8, [x0, #8]
	ldr	w0, [x20, #8]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_safe_emalloc
	str	w0, [x19, #24]
	ldr	w1, [x20, #24]
	ldr	w8, [x20, #8]
	ldr	w9, [x20]
	mul	w2, w9, w8
	bl	_memcpy
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_spl_heap_elem
	blr	x21
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spl_ptr_heap_clone
.subsections_via_symbols
