	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_element_copy                   ## -- Begin function element_copy
	.p2align	4, 0x90
_element_copy:                          ## @element_copy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	28(%rsi), %edi
	callq	_init_string
	movl	%eax, 28(%r14)
	movl	24(%r15), %eax
	movl	%eax, 24(%r14)
	movl	20(%r15), %eax
	movl	%eax, 20(%r14)
	movl	16(%r15), %eax
	movl	%eax, 16(%r14)
	movl	(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	movq	8(%r15), %rsi
	movq	%rax, %rdi
	callq	_component_copy
	movl	(%r15), %edi
	cmpl	$2, %edi
	jl	LBB0_5
## %bb.3:
	movl	$1, %r12d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	movq	8(%r15), %rsi
	addq	%rbx, %rsi
	callq	_component_copy
	incq	%r12
	movslq	(%r15), %rdi
	addq	$4, %rbx
	cmpq	%rdi, %r12
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	$0, 8(%r14)
LBB0_5:
	movl	%edi, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_element_copy                   ; -- Begin function element_copy
	.p2align	2
_element_copy:                          ; @element_copy
	.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	w0, [x1, #28]
	bl	_init_string
	ldr	w8, [x20, #24]
	stp	w8, w0, [x19, #24]
	ldr	d0, [x20, #16]
	str	d0, [x19, #16]
	ldr	w0, [x20]
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #8]
	ldr	x1, [x20, #8]
	bl	_component_copy
	ldr	w0, [x20]
	cmp	w0, #1
	b.le	LBB0_5
; %bb.2:
	mov	w21, #1
	mov	w22, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	ldr	x8, [x20, #8]
	add	x1, x8, x22
	bl	_component_copy
	add	x21, x21, #1
	ldrsw	x0, [x20]
	add	x22, x22, #4
	cmp	x21, x0
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #8]
LBB0_5:
	str	w0, [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
.subsections_via_symbols
