	.file	"extr_region.c_clone_element.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clone_element, @function
clone_element:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	test	rax, rax
	je	.L13
.L2:
	mov	edx, DWORD PTR 0[rbp]
	mov	DWORD PTR [rax], edx
	cmp	edx, 129
	je	.L4
	jg	.L5
	cmp	edx, 128
	jne	.L7
	mov	edx, DWORD PTR 28[rbp]
	mov	r12d, DWORD PTR Ok[rip]
	mov	DWORD PTR 28[rax], edx
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	sub	edx, 130
	mov	r12d, DWORD PTR Ok[rip]
	cmp	edx, 1
	ja	.L7
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbp]
	lea	rsi, 24[rax]
	call	GdipClonePath@PLT
	cmp	DWORD PTR Ok[rip], eax
	mov	r12d, eax
	je	.L1
.L9:
	mov	rdi, QWORD PTR [rbx]
	call	delete_element@PLT
	mov	eax, r12d
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 16[rax]
	call	clone_element
	cmp	DWORD PTR Ok[rip], eax
	mov	r12d, eax
	jne	.L9
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, 8[rax]
	call	clone_element
	cmp	DWORD PTR Ok[rip], eax
	mov	r12d, eax
	jne	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 32
	call	heap_alloc_zero@PLT
	mov	r12d, DWORD PTR OutOfMemory[rip]
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	jne	.L2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	clone_element, .-clone_element
	.comm	OutOfMemory,4,4
	.comm	Ok,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_region.c_clone_element.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clone_element, %function
clone_element:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1]
	mov	r5, r0
	cmp	r1, #0
	beq	.L13
.L2:
	ldr	r3, [r5]
	cmp	r3, #129
	str	r3, [r1]
	beq	.L4
	bgt	.L5
	cmp	r3, #128
	bne	.L7
	ldr	r2, [r5, #16]
	ldr	r3, .L14
	str	r2, [r1, #16]
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	sub	r3, r3, #130
	cmp	r3, #1
	bhi	.L7
	ldr	r3, .L14
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r0, [r5, #12]
	add	r1, r1, #12
	bl	GdipClonePath
	ldr	r3, .L14
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
.L9:
	ldr	r0, [r4]
	bl	delete_element
	mov	r3, #0
	mov	r0, r6
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r3, #0
	str	r3, [r1, #8]
	ldr	r2, [r4]
	ldr	r0, [r5, #8]
	str	r3, [r2, #4]
	ldr	r1, [r4]
	ldr	r7, .L14
	add	r1, r1, #8
	bl	clone_element
	ldr	r3, [r7]
	mov	r6, r0
	cmp	r3, r0
	bne	.L9
	ldr	r1, [r4]
	ldr	r0, [r5, #4]
	add	r1, r1, #4
	bl	clone_element
	ldr	r3, [r7]
	mov	r6, r0
	cmp	r3, r0
	bne	.L9
	b	.L1
.L13:
	mov	r0, #20
	bl	heap_alloc_zero
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4]
	bne	.L2
	ldr	r3, .L14+4
	ldr	r6, [r3]
	b	.L1
.L15:
	.align	2
.L14:
	.word	Ok
	.word	OutOfMemory
	.size	clone_element, .-clone_element
	.comm	OutOfMemory,4,4
	.comm	Ok,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
