	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function migrate_paths
_migrate_paths:                         ## @migrate_paths
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	(%rsi), %r12
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	8(%rdi), %esi
	leaq	-64(%rbp), %rdi
	callq	_read_dir_paths
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_pack_copy_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_string_list_sort
	cmpl	$0, -64(%rbp)
	jle	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r15,8), %r12
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_strbuf_addf
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	callq	_strbuf_addf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_migrate_one
	orl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_strbuf_setlen
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	incq	%r15
	movslq	-64(%rbp), %rax
	cmpq	%rax, %r15
	jl	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movl	%ebx, %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,24,3      ## @STRING_LIST_INIT_DUP
	.comm	_pack_copy_cmp,4,2              ## @pack_copy_cmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%s"

	.no_dead_strip	_migrate_paths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function migrate_paths
_migrate_paths:                         ; @migrate_paths
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
	ldr	x22, [x1]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	ldr	w1, [x0, #8]
	mov	x0, sp
	bl	_read_dir_paths
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _pack_copy_cmp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pack_copy_cmp@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	mov	x0, sp
	bl	_string_list_sort
	ldr	w8, [sp]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x26, #0
	mov	w23, #0
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	x25, [x8, x26, lsl #3]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_strbuf_addf
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_strbuf_addf
	mov	x0, x20
	mov	x1, x19
	bl	_migrate_one
	orr	w23, w0, w23
	mov	x0, x20
	mov	x1, x21
	bl	_strbuf_setlen
	mov	x0, x19
	mov	x1, x22
	bl	_strbuf_setlen
	add	x26, x26, #1
	ldrsw	x8, [sp]
	cmp	x26, x8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
	mov	w23, #-1
	b	LBB0_7
LBB0_5:
	mov	w23, #0
LBB0_6:
	mov	x0, sp
	mov	w1, #0
	bl	_string_list_clear
LBB0_7:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,24,3      ; @STRING_LIST_INIT_DUP
	.comm	_pack_copy_cmp,4,2              ; @pack_copy_cmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%s"

	.no_dead_strip	_migrate_paths
.subsections_via_symbols
