	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_ctr
_mirror_ctr:                            ## @mirror_ctr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	leaq	-44(%rbp), %rcx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_create_dirty_log
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	-44(%rbp), %r13d
	cmpl	%r15d, %r13d
	jne	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rax
LBB0_8:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_dm_dirty_log_destroy
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	(%rbx,%r13,8), %r12
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-49(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.5:
	movl	-48(%rbp), %ebx
	cmpl	$2, %ebx
	jb	LBB0_7
## %bb.6:
	movq	_MAX_NR_MIRRORS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	ja	LBB0_7
## %bb.9:
	notl	%r13d
	addl	%r15d, %r13d
	leal	(%rbx,%rbx), %eax
	cmpl	%eax, %r13d
	jae	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movq	(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_alloc_context
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	movq	%rax, %r15
	addq	$8, %r12
	cmpl	$0, -48(%rbp)
	je	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_get_mirror
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$16, %r12
	addl	$-2, %r13d
	incl	%ebx
	cmpl	-48(%rbp), %ebx
	jb	LBB0_14
LBB0_17:
	movq	%r15, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, 24(%r15)
	movl	32(%rbx), %edi
	callq	_dm_rh_get_region_size
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dm_set_target_max_io_len
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.18:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 8(%r15)
	movl	$4, 16(%r15)
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	leaq	28(%rbx), %rdi
	movq	_do_mirror@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	24(%rbx), %rdi
	movq	_delayed_wake_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	addq	$12, %rdi
	movq	_trigger_event@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_parse_features
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.21:
	cmpl	-44(%rbp), %r13d
	jne	LBB0_22
## %bb.23:
	movq	_dm_kcopyd_throttle@GOTPCREL(%rip), %rdi
	callq	_dm_kcopyd_client_create
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_25
LBB0_29:
	movq	%r14, %rdi
	callq	_dm_dirty_log_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	jmp	LBB0_27
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
	callq	_DMERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_26
LBB0_22:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_25:
	movl	4(%rbx), %edi
	callq	_destroy_workqueue
LBB0_26:
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
LBB0_27:
	callq	_free_context
	jmp	LBB0_28
LBB0_30:
	movq	%rbx, %rdi
	callq	_wakeup_mirrord
	xorl	%r14d, %r14d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u%c"

	.comm	_MAX_NR_MIRRORS,4,2             ## @MAX_NR_MIRRORS
L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of mirrors"

L_.str.2:                               ## @.str.2
	.asciz	"Too few mirror arguments"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"kmirrord"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
L_.str.4:                               ## @.str.4
	.asciz	"couldn't start kmirrord"

	.comm	_do_mirror,4,2                  ## @do_mirror
	.comm	_delayed_wake_fn,4,2            ## @delayed_wake_fn
	.comm	_trigger_event,4,2              ## @trigger_event
L_.str.5:                               ## @.str.5
	.asciz	"Too many mirror arguments"

	.comm	_dm_kcopyd_throttle,4,2         ## @dm_kcopyd_throttle
	.no_dead_strip	_mirror_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_ctr
_mirror_ctr:                            ; @mirror_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x3, sp, #8
	bl	_create_dirty_log
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w25, [sp, #8]
	cmp	w25, w20
	b.eq	LBB0_3
; %bb.2:
	add	x24, x21, x25, lsl #3
	ldr	x0, [x24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #7
	bl	_sscanf
	ldr	w23, [sp, #12]
Lloh2:
	adrp	x8, _MAX_NR_MIRRORS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_NR_MIRRORS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w23, #2, #0, eq
	ccmp	w23, w8, #2, hs
	b.ls	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_4:
	str	x8, [x19]
	mov	x0, x22
	bl	_dm_dirty_log_destroy
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mvn	w8, w25
	add	w21, w8, w20
	cmp	w21, w23, lsl #1
	b.hs	LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	mov	x1, x0
	mov	x0, x23
	mov	x2, x19
	mov	x3, x22
	bl	_alloc_context
	cbz	x0, LBB0_21
; %bb.11:
	mov	x20, x0
	add	x22, x24, #8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_15
; %bb.12:
	mov	w24, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x22
	bl	_get_mirror
	cbnz	w0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #16
	sub	w21, w21, #2
	add	w24, w24, #1
	ldr	w8, [sp, #12]
	cmp	w24, w8
	b.lo	LBB0_13
LBB0_15:
	str	x20, [x19, #24]
	ldr	w0, [x20, #32]
	bl	_dm_rh_get_region_size
	mov	x1, x0
	mov	x0, x19
	bl	_dm_set_target_max_io_len
	mov	x23, x0
	cbnz	w0, LBB0_26
; %bb.16:
	movi.2s	v0, #1
	str	d0, [x19, #8]
	mov	w8, #4
	str	w8, [x19, #16]
Lloh11:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x20, #4]
	cbz	w0, LBB0_23
; %bb.17:
	add	x0, x20, #28
Lloh16:
	adrp	x8, _do_mirror@GOTPAGE
Lloh17:
	ldr	x8, [x8, _do_mirror@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #24
Lloh19:
	adrp	x8, _delayed_wake_fn@GOTPAGE
Lloh20:
	ldr	x8, [x8, _delayed_wake_fn@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	str	xzr, [x20, #16]
	add	x0, x20, #12
Lloh22:
	adrp	x8, _trigger_event@GOTPAGE
Lloh23:
	ldr	x8, [x8, _trigger_event@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_parse_features
	mov	x23, x0
	cbnz	w0, LBB0_25
; %bb.18:
	ldr	w8, [sp, #8]
	cmp	w21, w8
	b.ne	LBB0_24
; %bb.19:
Lloh25:
	adrp	x0, _dm_kcopyd_throttle@GOTPAGE
Lloh26:
	ldr	x0, [x0, _dm_kcopyd_throttle@GOTPAGEOFF]
	bl	_dm_kcopyd_client_create
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.20:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_25
LBB0_21:
	mov	x0, x22
	bl	_dm_dirty_log_destroy
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_22:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	b	LBB0_27
LBB0_23:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DMERR
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_26
LBB0_24:
Lloh34:
	adrp	x8, l_.str.5@PAGE
Lloh35:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x19]
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_25:
	ldr	w0, [x20, #4]
	bl	_destroy_workqueue
LBB0_26:
	ldr	w2, [x20]
	mov	x0, x20
	mov	x1, x19
LBB0_27:
	bl	_free_context
	b	LBB0_7
LBB0_28:
	mov	x0, x20
	bl	_wakeup_mirrord
	mov	w23, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u%c"

	.comm	_MAX_NR_MIRRORS,4,2             ; @MAX_NR_MIRRORS
l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of mirrors"

l_.str.2:                               ; @.str.2
	.asciz	"Too few mirror arguments"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"kmirrord"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
l_.str.4:                               ; @.str.4
	.asciz	"couldn't start kmirrord"

	.comm	_do_mirror,4,2                  ; @do_mirror
	.comm	_delayed_wake_fn,4,2            ; @delayed_wake_fn
	.comm	_trigger_event,4,2              ; @trigger_event
l_.str.5:                               ; @.str.5
	.asciz	"Too many mirror arguments"

	.comm	_dm_kcopyd_throttle,4,2         ; @dm_kcopyd_throttle
	.no_dead_strip	_mirror_ctr
.subsections_via_symbols
