	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-32(%rbp), %rsi
	callq	_superblock_read_lock
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_5
LBB0_2:
	movq	-32(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r14
	movl	64(%r15), %edi
	movq	_SUPERBLOCK_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	leaq	60(%r15), %r8
	leaq	56(%r15), %r9
	movl	$4, %ecx
	callq	_dm_tm_open_with_sm
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
	movq	-32(%rbp), %rdi
	callq	_dm_bm_unlock
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_setup_infos
	movl	20(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 48(%r15)
	movl	16(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 40(%r15)
	movl	12(%r14), %edi
	callq	_le32_to_cpu
	movq	%rax, 32(%r15)
	movl	8(%r14), %edi
	callq	_le64_to_cpu
	movq	%rax, 24(%r15)
	movl	4(%r14), %edi
	callq	_le64_to_cpu
	movq	%rax, 16(%r15)
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movq	%rax, 8(%r15)
	movl	$1, (%r15)
	movq	-32(%rbp), %rdi
	callq	_dm_bm_unlock
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %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"

	.comm	_SUPERBLOCK_LOCATION,4,2        ## @SUPERBLOCK_LOCATION
L_.str.1:                               ## @.str.1
	.asciz	"dm_tm_open_with_sm failed"

	.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
	add	x1, sp, #8
	bl	_superblock_read_lock
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x20, x0
	ldr	w0, [x19, #64]
Lloh2:
	adrp	x8, _SUPERBLOCK_LOCATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUPERBLOCK_LOCATION@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	add	x4, x19, #60
	add	x5, x19, #56
	mov	w3, #4
	bl	_dm_tm_open_with_sm
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_setup_infos
	ldr	w0, [x20, #20]
	bl	_le32_to_cpu
	str	x0, [x19, #48]
	ldr	w0, [x20, #16]
	bl	_le32_to_cpu
	str	x0, [x19, #40]
	ldr	w0, [x20, #12]
	bl	_le32_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [x20, #8]
	bl	_le64_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x20, #4]
	bl	_le64_to_cpu
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_le64_to_cpu
	str	x0, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read_lock superblock"

	.comm	_SUPERBLOCK_LOCATION,4,2        ; @SUPERBLOCK_LOCATION
l_.str.1:                               ; @.str.1
	.asciz	"dm_tm_open_with_sm failed"

	.no_dead_strip	_open_metadata
.subsections_via_symbols
