	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_bb
_copy_bb:                               ## @copy_bb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_duplicate_block
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_BB_COPY_PARTITION
	xorl	%edi, %edi
	cmpq	%r12, (%rbx)
	sete	%dil
	callq	_gcc_assert
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_gcc_assert
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	(%r13), %edx
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	16(%r12), %rax
	movl	%r14d, (%rax)
	movq	8(%r15), %rax
	movq	%rax, 8(%r12)
	movq	%r12, 8(%r15)
	movl	(%r12), %esi
	movq	_array_size@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_last_basic_block@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%eax, %esi
	jge	LBB0_4
## %bb.3:
	cmpl	%eax, %edi
	jle	LBB0_10
LBB0_4:
	incl	%esi
	callq	_MAX
	movl	%eax, %edi
	callq	_GET_ARRAY_SIZE
	movl	%eax, %r15d
	movq	_bbd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leal	(,%r15,4), %esi
	callq	_xrealloc
	movq	%rax, (%rbx)
	movslq	(%r13), %rcx
	cmpl	%r15d, %ecx
	jge	LBB0_8
## %bb.5:
	movslq	%r15d, %rsi
	movq	%rcx, %rdx
	shlq	$5, %rdx
	notq	%rcx
	addq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$-1, (%rax,%rdx)
	movl	$-1, 8(%rax,%rdx)
	movq	$0, 24(%rax,%rdx)
	movq	(%rbx), %rax
	movq	$0, 16(%rax,%rdx)
	subq	$1, %rcx
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	addq	$32, %rdx
	jmp	LBB0_6
LBB0_8:
	movl	%r15d, (%r13)
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	_bbd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r12), %rcx
	shlq	$5, %rcx
	movl	%r14d, 4(%rax,%rcx)
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dump_file,8,3                  ## @dump_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Duplicated bb %d (created bb %d)\n"

	.comm	_array_size,4,2                 ## @array_size
	.comm	_last_basic_block,4,2           ## @last_basic_block
	.comm	_bbd,8,3                        ## @bbd
L_.str.1:                               ## @.str.1
	.asciz	"Growing the dynamic array to %d elements.\n"

	.no_dead_strip	_copy_bb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_bb
_copy_bb:                               ; @copy_bb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_duplicate_block
	mov	x20, x0
	mov	x1, x22
	bl	_BB_COPY_PARTITION
	ldr	x8, [x23]
	cmp	x8, x20
	cset	w0, eq
	bl	_gcc_assert
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_gcc_assert
Lloh0:
	adrp	x23, _dump_file@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dump_file@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x22]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x8, [x20, #16]
	str	w19, [x8]
	ldr	x8, [x21, #8]
	str	x8, [x20, #8]
	str	x20, [x21, #8]
	ldr	w8, [x20]
Lloh4:
	adrp	x24, _array_size@GOTPAGE
Lloh5:
	ldr	x24, [x24, _array_size@GOTPAGEOFF]
Lloh6:
	adrp	x9, _last_basic_block@GOTPAGE
Lloh7:
	ldr	x9, [x9, _last_basic_block@GOTPAGEOFF]
	ldr	w10, [x24]
Lloh8:
	ldr	w0, [x9]
	cmp	w8, w10
	ccmp	w0, w10, #0, lt
Lloh9:
	adrp	x22, _bbd@GOTPAGE
Lloh10:
	ldr	x22, [x22, _bbd@GOTPAGEOFF]
	b.le	LBB0_9
; %bb.3:
	add	w1, w8, #1
	bl	_MAX
	bl	_GET_ARRAY_SIZE
	mov	x21, x0
	ldr	x0, [x22]
	lsl	w1, w21, #2
	bl	_xrealloc
	str	x0, [x22]
	ldrsw	x10, [x24]
	cmp	w10, w21
	b.ge	LBB0_7
; %bb.4:
	sxtw	x11, w21
	lsl	x8, x10, #5
	add	x12, x0, x8
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x12]
	mov	w9, #-1
	str	w9, [x12, #8]
	str	xzr, [x12, #24]
	ldr	x12, [x22]
	add	x12, x12, x8
	str	xzr, [x12, #16]
	add	x12, x10, #1
	cmp	x12, x11
	b.eq	LBB0_7
; %bb.5:
	mvn	x10, x10
	add	x10, x10, x11
	movi.2d	v0, #0xffffffffffffffff
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x22]
	add	x11, x11, x8
	str	d0, [x11, #32]
	str	w9, [x11, #40]
	str	xzr, [x11, #56]
	ldr	x11, [x22]
	add	x11, x11, x8
	str	xzr, [x11, #48]
	add	x8, x8, #32
	subs	x10, x10, #1
	b.ne	LBB0_6
LBB0_7:
	str	w21, [x24]
	ldr	x0, [x23]
	cbz	x0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_9:
	ldr	x8, [x22]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #5
	str	w19, [x8, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dump_file,8,3                  ; @dump_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Duplicated bb %d (created bb %d)\n"

	.comm	_array_size,4,2                 ; @array_size
	.comm	_last_basic_block,4,2           ; @last_basic_block
	.comm	_bbd,8,3                        ; @bbd
l_.str.1:                               ; @.str.1
	.asciz	"Growing the dynamic array to %d elements.\n"

	.no_dead_strip	_copy_bb
.subsections_via_symbols
