	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_activate
_mirror_activate:                       ## @mirror_activate
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_gctl_get_int
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$1, %eax
	jg	LBB0_1
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gctl_error                     ## TAILCALL
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_gctl_get_ascii
	movq	%rax, %r15
	movl	$1, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_gctl_get_ascii
	movq	%rax, %r13
	movq	_G_MIRROR_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	leaq	-72(%rbp), %r14
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_g_metadata_read
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %edi
	callq	_strerror
	movl	%r15d, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdx
	movq	%rax, %rcx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_mirror_metadata_decode
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_gctl_error
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_2
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_G_MIRROR_DISK_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %r14
	movq	%r14, %rsi
	callq	_mirror_metadata_encode
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_g_metadata_store
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %edi
	callq	_strerror
	movl	%r15d, %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_4
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.9(%rip), %rdi
	movq	%r13, %rsi
	callq	_printf
	jmp	LBB0_15
LBB0_16:
	addq	$40, %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	"nargs"

L_.str.1:                               ## @.str.1
	.asciz	"Too few arguments."

L_.str.2:                               ## @.str.2
	.asciz	"arg0"

L_.str.3:                               ## @.str.3
	.asciz	"arg%d"

	.comm	_G_MIRROR_MAGIC,4,2             ## @G_MIRROR_MAGIC
	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"Cannot read metadata from %s: %s.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Not fully done."

L_.str.6:                               ## @.str.6
	.asciz	"MD5 hash mismatch for provider %s, skipping.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Provider %s is not the mirror %s component.\n"

	.comm	_G_MIRROR_DISK_FLAG_INACTIVE,4,2 ## @G_MIRROR_DISK_FLAG_INACTIVE
L_.str.8:                               ## @.str.8
	.asciz	"Cannot write metadata from %s: %s.\n"

	.comm	_verbose,8,3                    ## @verbose
L_.str.9:                               ## @.str.9
	.asciz	"Provider %s activated.\n"

	.no_dead_strip	_mirror_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_activate
_mirror_activate:                       ; @mirror_activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gctl_get_int
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_gctl_error
LBB0_2:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gctl_get_ascii
	mov	x24, x0
	mov	w26, #1
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh8:
	adrp	x27, _G_MIRROR_MAGIC@GOTPAGE
Lloh9:
	ldr	x27, [x27, _G_MIRROR_MAGIC@GOTPAGEOFF]
Lloh10:
	adrp	x21, _stderr@GOTPAGE
Lloh11:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
Lloh12:
	adrp	x25, l_.str.5@PAGE
Lloh13:
	add	x25, x25, l_.str.5@PAGEOFF
	mov	x28, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x26, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_gctl_get_ascii
	mov	x23, x0
	ldr	w3, [x27]
	add	x1, sp, #16
	mov	w2, #8
	bl	_g_metadata_read
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x21]
	bl	_strerror
	str	x0, [sp]
	mov	x0, x24
	mov	x24, x28
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_mirror_metadata_decode
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #28]
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x8, _G_MIRROR_DISK_FLAG_INACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _G_MIRROR_DISK_FLAG_INACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	bic	w8, w9, w8
	str	w8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_mirror_metadata_encode
	add	x1, sp, #16
	mov	x0, x23
	mov	w2, #8
	bl	_g_metadata_store
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x21]
	bl	_strerror
	str	x0, [sp]
	mov	x0, x24
	mov	x24, x28
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x23
	bl	_fprintf
	mov	x0, x19
	mov	x1, x25
	bl	_gctl_error
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	cmp	w20, w26
	b.ne	LBB0_3
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x8, _verbose@GOTPAGE
Lloh26:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x23
	bl	_printf
	b	LBB0_12
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nargs"

l_.str.1:                               ; @.str.1
	.asciz	"Too few arguments."

l_.str.2:                               ; @.str.2
	.asciz	"arg0"

l_.str.3:                               ; @.str.3
	.asciz	"arg%d"

	.comm	_G_MIRROR_MAGIC,4,2             ; @G_MIRROR_MAGIC
	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"Cannot read metadata from %s: %s.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Not fully done."

l_.str.6:                               ; @.str.6
	.asciz	"MD5 hash mismatch for provider %s, skipping.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Provider %s is not the mirror %s component.\n"

	.comm	_G_MIRROR_DISK_FLAG_INACTIVE,4,2 ; @G_MIRROR_DISK_FLAG_INACTIVE
l_.str.8:                               ; @.str.8
	.asciz	"Cannot write metadata from %s: %s.\n"

	.comm	_verbose,8,3                    ; @verbose
l_.str.9:                               ; @.str.9
	.asciz	"Provider %s activated.\n"

	.no_dead_strip	_mirror_activate
.subsections_via_symbols
