	.file	"extr_bb-reorder.c_copy_bb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Duplicated bb %d (created bb %d)\n"
	.align 8
.LC1:
	.string	"Growing the dynamic array to %d elements.\n"
	.text
	.p2align 4
	.type	copy_bb, @function
copy_bb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	call	duplicate_block@PLT
	mov	rsi, r14
	mov	rdi, rax
	mov	r12, rax
	call	BB_COPY_PARTITION@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[r13], r12
	sete	dil
	call	gcc_assert@PLT
	mov	rax, QWORD PTR 0[r13]
	xor	edi, edi
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	sete	dil
	call	gcc_assert@PLT
	mov	rdi, QWORD PTR dump_file[rip]
	test	rdi, rdi
	jne	.L19
.L2:
	mov	rax, QWORD PTR 16[r12]
	movsx	rsi, DWORD PTR [r12]
	mov	DWORD PTR [rax], ebx
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR last_basic_block[rip]
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR array_size[rip]
	mov	QWORD PTR 8[rbp], r12
	cmp	esi, eax
	jge	.L4
	cmp	eax, edi
	jge	.L20
.L4:
	add	esi, 1
	call	MAX@PLT
	mov	edi, eax
	call	GET_ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR bbd[rip]
	lea	esi, 0[0+rax*4]
	mov	r13d, eax
	call	xrealloc@PLT
	mov	edx, DWORD PTR array_size[rip]
	mov	QWORD PTR bbd[rip], rax
	cmp	r13d, edx
	jle	.L10
	movsx	rsi, edx
	not	edx
	add	edx, r13d
	mov	rcx, rsi
	add	rdx, rsi
	sal	rcx, 5
	sal	rdx, 5
	add	rcx, rax
	lea	rsi, 32[rax+rdx]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rcx], -1
	add	rcx, 32
	mov	DWORD PTR -28[rcx], -1
	mov	DWORD PTR -24[rcx], -1
	mov	QWORD PTR -8[rcx], 0
	mov	QWORD PTR -16[rcx], 0
	cmp	rcx, rsi
	jne	.L9
.L10:
	mov	rdi, QWORD PTR dump_file[rip]
	mov	DWORD PTR array_size[rip], r13d
	test	rdi, rdi
	jne	.L21
.L17:
	movsx	rsi, DWORD PTR [r12]
.L5:
	sal	rsi, 5
	mov	DWORD PTR 4[rax+rsi], ebx
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR bbd[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	rax, QWORD PTR bbd[rip]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	ecx, DWORD PTR [r12]
	mov	edx, DWORD PTR [r14]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	copy_bb, .-copy_bb
	.comm	last_basic_block,4,4
	.comm	dump_file,8,8
	.comm	bbd,8,8
	.comm	array_size,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_bb-reorder.c_copy_bb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Duplicated bb %d (created bb %d)\012\000"
	.align	2
.LC1:
	.ascii	"Growing the dynamic array to %d elements.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_bb, %function
copy_bb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r3
	mov	r8, r1
	mov	r6, r2
	mov	r9, r0
	bl	duplicate_block
	mov	r4, r0
	mov	r1, r9
	bl	BB_COPY_PARTITION
	ldr	r0, [r8]
	ldr	r7, .L23
	sub	r0, r0, r4
	clz	r0, r0
	lsr	r0, r0, #5
	bl	gcc_assert
	ldr	r3, [r8]
	ldr	r3, [r3, #8]
	ldr	r0, [r3]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	gcc_assert
	ldr	r0, [r7]
	cmp	r0, #0
	bne	.L19
.L2:
	ldr	r3, [r4, #8]
	ldr	r9, .L23+4
	str	r5, [r3]
	ldr	r1, [r4]
	ldr	r3, [r9]
	ldr	r2, [r6, #4]
	cmp	r1, r3
	str	r2, [r4, #4]
	str	r4, [r6, #4]
	bge	.L20
	ldr	r2, .L23+8
	ldr	r0, [r2]
	cmp	r3, r0
	bge	.L21
.L4:
	add	r1, r1, #1
	bl	MAX
	bl	GET_ARRAY_SIZE
	ldr	r8, .L23+12
	lsl	r10, r0, #2
	mov	r6, r0
	mov	r1, r10
	ldr	r0, [r8]
	bl	xrealloc
	ldr	ip, [r9]
	mov	r2, r0
	cmp	r6, ip
	str	r0, [r8]
	ble	.L10
	mvn	lr, #0
	mov	r3, #0
	add	ip, ip, ip, lsl #2
	add	r1, r10, r6
	add	ip, r0, ip, lsl #2
	add	r1, r0, r1, lsl #2
.L9:
	str	lr, [ip]
	str	lr, [ip, #4]
	str	lr, [ip, #8]
	str	r3, [ip, #16]
	str	r3, [ip, #12]
	add	ip, ip, #20
	cmp	r1, ip
	bne	.L9
.L10:
	ldr	r0, [r7]
	str	r6, [r9]
	cmp	r0, #0
	bne	.L22
.L17:
	ldr	r1, [r4]
.L5:
	add	r1, r1, r1, lsl #2
	add	r1, r2, r1, lsl #2
	mov	r0, r4
	str	r5, [r1, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r3, .L23+12
	ldr	r2, [r3]
	b	.L5
.L22:
	mov	r2, r6
	ldr	r1, .L23+16
	bl	fprintf
	ldr	r2, [r8]
	b	.L17
.L20:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	b	.L4
.L19:
	ldr	r2, [r9]
	ldr	r3, [r4]
	ldr	r1, .L23+20
	bl	fprintf
	b	.L2
.L24:
	.align	2
.L23:
	.word	dump_file
	.word	array_size
	.word	last_basic_block
	.word	bbd
	.word	.LC1
	.word	.LC0
	.size	copy_bb, .-copy_bb
	.comm	last_basic_block,4,4
	.comm	dump_file,4,4
	.comm	bbd,4,4
	.comm	array_size,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
