	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_dirty_log
_create_dirty_log:                      ## @create_dirty_log
	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %r13
	cmpl	$2, %esi
	jb	LBB0_6
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	8(%rdx), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movl	-48(%rbp), %ecx
	leal	2(%rcx), %eax
	movl	%eax, (%r15)
	cmpl	%ebx, %eax
	ja	LBB0_6
## %bb.4:
	movq	(%r12), %rdi
	movq	_mirror_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$16, %r12
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r12, %r8
	callq	_dm_dirty_log_create
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %r13
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.2(%rip), %r13
LBB0_6:
	movq	%r13, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %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	"Insufficient mirror log arguments"

L_.str.1:                               ## @.str.1
	.asciz	"%u%c"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid mirror log argument count"

	.comm	_mirror_flush,4,2               ## @mirror_flush
L_.str.3:                               ## @.str.3
	.asciz	"Error creating mirror dirty log"

	.no_dead_strip	_create_dirty_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_dirty_log
_create_dirty_log:                      ; @create_dirty_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cmp	w1, #2
	b.hs	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x0, [x2, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #11
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	w3, [sp, #12]
	add	w8, w3, #2
	str	w8, [x21]
	cmp	w8, w22
	b.hi	LBB0_1
; %bb.4:
	ldr	x0, [x20], #16
Lloh4:
	adrp	x8, _mirror_flush@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mirror_flush@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x4, x20
	bl	_dm_dirty_log_create
	cbnz	x0, LBB0_8
; %bb.5:
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, #0
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient mirror log arguments"

l_.str.1:                               ; @.str.1
	.asciz	"%u%c"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid mirror log argument count"

	.comm	_mirror_flush,4,2               ; @mirror_flush
l_.str.3:                               ; @.str.3
	.asciz	"Error creating mirror dirty log"

	.no_dead_strip	_create_dirty_log
.subsections_via_symbols
