	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transfer_all_new_dbs           ## -- Begin function transfer_all_new_dbs
	.p2align	4, 0x90
_transfer_all_new_dbs:                  ## @transfer_all_new_dbs
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_14
## %bb.1:
	movq	%rcx, %r12
	movq	%rsi, %rbx
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_pg_free
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	incl	%r13d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rax
	cmpq	%rax, %rcx
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	(,%rcx,4), %r14
	addq	8(%rdi), %r14
	movl	(%rbx), %eax
	cmpl	%eax, %r13d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %r13
	leaq	(,%r13,4), %rcx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r12
	movq	8(%rbx), %r15
	movl	(%r14), %edi
	movl	(%r15,%rcx), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	movslq	(%rbx), %rax
	leaq	4(%r12), %rcx
	cmpq	%rax, %r13
	jl	LBB0_5
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	cmpl	%eax, %r13d
	jge	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpl	%eax, %r13d
	jl	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pg_fatal
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-44(%rbp), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r8
	callq	_gen_db_file_maps
	movq	%rax, %r14
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_print_maps
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_transfer_single_new_db
	jmp	LBB0_13
LBB0_14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"old database \"%s\" not found in the new cluster\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_transfer_all_new_dbs           ; -- Begin function transfer_all_new_dbs
	.p2align	2
_transfer_all_new_dbs:                  ; @transfer_all_new_dbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x27, #0
	mov	w28, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_pg_free
	add	x27, x27, #1
	add	w28, w28, #1
	ldrsw	x8, [x23]
	cmp	x27, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x23, #8]
	add	x25, x8, x27, lsl #2
	ldr	w8, [x22]
	cmp	w28, w8
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sbfiz	x9, x28, #2, #32
	sxtw	x28, w28
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x9
	ldr	x24, [x22, #8]
	ldr	w0, [x25]
	ldr	w1, [x24, x9]
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x22]
	add	x9, x26, #4
	cmp	x28, x8
	b.lt	LBB0_5
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	cmp	w28, w8
	b.ge	LBB0_10
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x24, x26
	cmp	w28, w8
	b.lt	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #12
	mov	x0, x25
	mov	x1, x26
	mov	x3, x21
	mov	x4, x20
	bl	_gen_db_file_maps
	mov	x25, x0
	ldr	w1, [sp, #12]
	cbz	w1, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x26]
	mov	x0, x25
	bl	_print_maps
	ldr	w1, [sp, #12]
	mov	x0, x25
	mov	x2, x19
	bl	_transfer_single_new_db
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"old database \"%s\" not found in the new cluster\n"

.subsections_via_symbols
