	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_clone_metadata_open         ## -- Begin function dm_clone_metadata_open
	.p2align	4, 0x90
_dm_clone_metadata_open:                ## @dm_clone_metadata_open
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 56(%rax)
	movq	%r15, 48(%rax)
	movq	%r14, 40(%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dm_sector_div_up
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_BITS_TO_LONGS
	movl	%eax, 32(%rbx)
	leaq	28(%rbx), %rdi
	callq	_init_rwsem
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	movq	$0, 16(%rbx)
	movq	$0, (%rbx)
	movl	12(%rbx), %edi
	callq	_bitmap_size
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_kvmalloc
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	___create_persistent_data_structures
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	___load_bitset_in_core
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_11:
	movq	%rbx, %rdi
	callq	_dirty_map_init
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	callq	___destroy_persistent_data_structures
LBB0_8:
	movl	8(%rbx), %edi
	callq	_kvfree
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	callq	_bitmap_full
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$1, 4(%rbx)
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for dm-clone metadata"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate memory for region bitmap"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to load on-disk region map"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_clone_metadata_open         ; -- Begin function dm_clone_metadata_open
	.p2align	2
_dm_clone_metadata_open:                ; @dm_clone_metadata_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	stp	x21, x22, [x0, #48]
	str	x20, [x0, #40]
	mov	x0, x21
	mov	x1, x20
	bl	_dm_sector_div_up
	str	w0, [x19, #12]
	bl	_BITS_TO_LONGS
	str	w0, [x19, #32]
	add	x0, x19, #28
	bl	_init_rwsem
	add	x0, x19, #24
	bl	_spin_lock_init
	str	xzr, [x19, #16]
	str	xzr, [x19]
	ldr	w0, [x19, #12]
	bl	_bitmap_size
	ldr	w1, [x23]
	bl	_kvmalloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	___create_persistent_data_structures
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	___load_bitset_in_core
	cbz	w0, LBB0_7
; %bb.4:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_dirty_map_init
	mov	x20, x0
	cbz	w0, LBB0_12
LBB0_8:
	mov	x0, x19
	bl	___destroy_persistent_data_structures
LBB0_9:
	ldr	w0, [x19, #8]
	bl	_kvfree
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_12:
	ldp	w0, w1, [x19, #8]
	bl	_bitmap_full
	cbz	x0, LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_14:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for dm-clone metadata"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate memory for region bitmap"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to load on-disk region map"

.subsections_via_symbols
