	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __open_metadata
___open_metadata:                       ## @__open_metadata
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	movq	_THIN_SUPERBLOCK_LOCATION@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_sb_validator@GOTPCREL(%rip), %rdx
	leaq	-40(%rbp), %rcx
	callq	_dm_bm_read_lock
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	___check_incompat_features
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	16(%r14), %edi
	movl	(%r12), %esi
	movl	4(%r15), %edx
	leaq	4(%r14), %r8
	movl	$4, %ecx
	movq	%r14, %r9
	callq	_dm_tm_open_with_sm
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_dm_sm_disk_open
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_DMERR
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_10:
	movl	4(%r14), %edi
	callq	_dm_tm_destroy
	movl	(%r14), %edi
	callq	_dm_sm_destroy
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
LBB0_11:
	movq	-40(%rbp), %rdi
	callq	_dm_bm_unlock
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	4(%r14), %edi
	callq	_dm_tm_create_non_blocking_clone
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movq	%r14, %rdi
	callq	___setup_btree_details
	movq	-40(%rbp), %rdi
	callq	_dm_bm_unlock
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_DMERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	8(%r14), %edi
	callq	_dm_sm_destroy
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_THIN_SUPERBLOCK_LOCATION,4,2   ## @THIN_SUPERBLOCK_LOCATION
	.comm	_sb_validator,4,2               ## @sb_validator
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't read superblock"

L_.str.1:                               ## @.str.1
	.asciz	"tm_open_with_sm failed"

L_.str.2:                               ## @.str.2
	.asciz	"sm_disk_open failed"

L_.str.3:                               ## @.str.3
	.asciz	"could not create non-blocking clone tm"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	___open_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __open_metadata
___open_metadata:                       ; @__open_metadata
	.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
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x22, _THIN_SUPERBLOCK_LOCATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _THIN_SUPERBLOCK_LOCATION@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, _sb_validator@GOTPAGE
Lloh3:
	ldr	x2, [x2, _sb_validator@GOTPAGEOFF]
	add	x3, sp, #8
	bl	_dm_bm_read_lock
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x21, x0
	mov	x1, x19
	bl	___check_incompat_features
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	add	x4, x19, #4
	ldr	w2, [x21, #4]
	mov	w3, #4
	mov	x5, x19
	bl	_dm_tm_open_with_sm
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_dm_sm_disk_open
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_dm_tm_destroy
	ldr	w0, [x19]
	bl	_dm_sm_destroy
	b	LBB0_9
LBB0_6:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_10
LBB0_7:
	mov	x20, x0
	b	LBB0_9
LBB0_8:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
LBB0_10:
	mov	x0, x20
	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
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_dm_tm_create_non_blocking_clone
	str	w0, [x19, #12]
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	___setup_btree_details
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
	mov	x20, x0
	b	LBB0_10
LBB0_13:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DMERR
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x19, #8]
	bl	_dm_sm_destroy
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_THIN_SUPERBLOCK_LOCATION,4,2   ; @THIN_SUPERBLOCK_LOCATION
	.comm	_sb_validator,4,2               ; @sb_validator
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read superblock"

l_.str.1:                               ; @.str.1
	.asciz	"tm_open_with_sm failed"

l_.str.2:                               ; @.str.2
	.asciz	"sm_disk_open failed"

l_.str.3:                               ; @.str.3
	.asciz	"could not create non-blocking clone tm"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	___open_metadata
.subsections_via_symbols
