	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clone_element
_clone_element:                         ## @clone_element
	.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, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$32, %edi
	callq	_heap_alloc_zero
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	(%rbx), %ecx
	leal	-130(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_6
## %bb.3:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.4:
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.5:
	movl	28(%rbx), %ecx
	movl	%ecx, 28(%rax)
LBB0_6:
	movq	_Ok@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movl	24(%rbx), %edi
	addq	$24, %rax
	movq	%rax, %rsi
	callq	_GdipClonePath
	movl	%eax, %r15d
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_10
	jmp	LBB0_13
LBB0_8:
	movq	$0, 16(%rax)
	movq	(%r14), %rax
	movq	$0, 8(%rax)
	movq	16(%rbx), %rdi
	movq	(%r14), %rsi
	addq	$16, %rsi
	callq	_clone_element
	movl	%eax, %r15d
	movq	_Ok@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rdi
	movq	(%r14), %rsi
	addq	$8, %rsi
	callq	_clone_element
	movl	%eax, %r15d
	cmpl	(%r12), %eax
	je	LBB0_13
LBB0_10:
	movq	(%r14), %rdi
	callq	_delete_element
	movq	$0, (%r14)
	jmp	LBB0_13
LBB0_11:
	movq	_OutOfMemory@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OutOfMemory,4,2                ## @OutOfMemory
	.comm	_Ok,4,2                         ## @Ok
	.no_dead_strip	_clone_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clone_element
_clone_element:                         ; @clone_element
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x1]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_heap_alloc_zero
	str	x0, [x19]
	cbz	x0, LBB0_11
LBB0_2:
	ldr	w8, [x20]
	str	w8, [x0]
	ldr	w8, [x20]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20, #28]
	str	w8, [x0, #28]
LBB0_6:
Lloh0:
	adrp	x8, _Ok@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	ldr	w8, [x20, #24]
	add	x1, x0, #24
	mov	x0, x8
	bl	_GdipClonePath
	mov	x21, x0
Lloh2:
	adrp	x8, _Ok@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
	b	LBB0_13
LBB0_8:
	str	xzr, [x0, #16]
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	ldr	x0, [x20, #16]
	ldr	x8, [x19]
	add	x1, x8, #16
	bl	_clone_element
	mov	x21, x0
Lloh5:
	adrp	x22, _Ok@GOTPAGE
Lloh6:
	ldr	x22, [x22, _Ok@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x20, #8]
	ldr	x8, [x19]
	add	x1, x8, #8
	bl	_clone_element
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_13
LBB0_10:
	ldr	x0, [x19]
	bl	_delete_element
	str	xzr, [x19]
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _OutOfMemory@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OutOfMemory@GOTPAGEOFF]
LBB0_12:
	ldr	w21, [x8]
LBB0_13:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OutOfMemory,4,2                ; @OutOfMemory
	.comm	_Ok,4,2                         ; @Ok
	.no_dead_strip	_clone_element
.subsections_via_symbols
