	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	callq	_superblock_read_lock
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	cmpq	(%r14), %rax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___check_incompat_features
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	28(%r14), %edi
	movq	_CACHE_SUPERBLOCK_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	16(%r14), %r8
	leaq	24(%r14), %r9
	movl	$4, %ecx
	callq	_dm_tm_open_with_sm
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movq	%r14, %rdi
	callq	___setup_mapping_info
	movl	16(%r14), %edi
	leaq	20(%r14), %rsi
	callq	_dm_disk_bitset_init
	movl	16(%r14), %edi
	leaq	12(%r14), %rsi
	callq	_dm_disk_bitset_init
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, -40(%rbp)
	movq	_CLEAN_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_test_bit
	movl	%eax, 8(%r14)
	movq	-32(%rbp), %rdi
	callq	_dm_bm_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DMERR
	jmp	LBB0_9
LBB0_3:
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DMERR
LBB0_8:
	movq	-32(%rbp), %rdi
	callq	_dm_bm_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't read lock superblock"

L_.str.1:                               ## @.str.1
	.asciz	"changing the data block size (from %u to %llu) is not supported"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CACHE_SUPERBLOCK_LOCATION,4,2  ## @CACHE_SUPERBLOCK_LOCATION
L_.str.2:                               ## @.str.2
	.asciz	"tm_open_with_sm failed"

	.comm	_CLEAN_SHUTDOWN,4,2             ## @CLEAN_SHUTDOWN
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x1, sp, #24
	bl	_superblock_read_lock
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x0, [sp, #24]
	bl	_dm_block_data
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_le32_to_cpu
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	___check_incompat_features
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x19, #28]
Lloh0:
	adrp	x8, _CACHE_SUPERBLOCK_LOCATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CACHE_SUPERBLOCK_LOCATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	add	x4, x19, #16
	add	x5, x19, #24
	mov	w3, #4
	bl	_dm_tm_open_with_sm
	tbnz	w0, #31, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	___setup_mapping_info
	ldr	w0, [x19, #16]
	add	x1, x19, #20
	bl	_dm_disk_bitset_init
	ldr	w0, [x19, #16]
	add	x1, x19, #12
	bl	_dm_disk_bitset_init
	ldr	w0, [x20]
	bl	_le32_to_cpu
	str	x0, [sp, #16]
Lloh3:
	adrp	x8, _CLEAN_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLEAN_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_test_bit
	str	w0, [x19, #8]
	ldr	x0, [sp, #24]
	bl	_dm_bm_unlock
	mov	w21, #0
	b	LBB0_10
LBB0_5:
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_10
LBB0_6:
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	ldr	x8, [x19]
	stp	x0, x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
	mov	x21, x0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_dm_bm_unlock
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read lock superblock"

l_.str.1:                               ; @.str.1
	.asciz	"changing the data block size (from %u to %llu) is not supported"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CACHE_SUPERBLOCK_LOCATION,4,2  ; @CACHE_SUPERBLOCK_LOCATION
l_.str.2:                               ; @.str.2
	.asciz	"tm_open_with_sm failed"

	.comm	_CLEAN_SHUTDOWN,4,2             ; @CLEAN_SHUTDOWN
	.no_dead_strip	___open_metadata
.subsections_via_symbols
