	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_open_metadata            ## -- Begin function sm_ll_open_metadata
	.p2align	4, 0x90
_sm_ll_open_metadata:                   ## @sm_ll_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$15, %rcx
	ja	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	movq	%rdx, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sm_ll_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_metadata_ll_load_ie@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_metadata_ll_save_ie@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_metadata_ll_init_index@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_metadata_ll_open@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	_metadata_ll_max_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_metadata_ll_commit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	-20(%rbp), %edi
	callq	_le64_to_cpu
	movq	%rax, 32(%rbx)
	movl	-24(%rbp), %edi
	callq	_le64_to_cpu
	movq	%rax, 24(%rbx)
	movl	-28(%rbp), %edi
	callq	_le64_to_cpu
	movq	%rax, 16(%rbx)
	movl	-32(%rbp), %edi
	callq	_le64_to_cpu
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	*(%rbx)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sm_metadata root too small"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_metadata_ll_load_ie,4,2        ## @metadata_ll_load_ie
	.comm	_metadata_ll_save_ie,4,2        ## @metadata_ll_save_ie
	.comm	_metadata_ll_init_index,4,2     ## @metadata_ll_init_index
	.comm	_metadata_ll_max_entries,4,2    ## @metadata_ll_max_entries
	.comm	_metadata_ll_commit,4,2         ## @metadata_ll_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_open_metadata            ; -- Begin function sm_ll_open_metadata
	.p2align	2
_sm_ll_open_metadata:                   ; @sm_ll_open_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x3, #15
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	x1, x2
	mov	w2, #16
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_sm_ll_init
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _metadata_ll_load_ie@GOTPAGE
Lloh6:
	ldr	x8, [x8, _metadata_ll_load_ie@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh8:
	adrp	x8, _metadata_ll_save_ie@GOTPAGE
Lloh9:
	ldr	x8, [x8, _metadata_ll_save_ie@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _metadata_ll_init_index@GOTPAGE
Lloh12:
	ldr	x9, [x9, _metadata_ll_init_index@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh14:
	adrp	x8, _metadata_ll_open@GOTPAGE
Lloh15:
	ldr	x8, [x8, _metadata_ll_open@GOTPAGEOFF]
	str	x8, [x19]
Lloh16:
	adrp	x8, _metadata_ll_max_entries@GOTPAGE
Lloh17:
	ldr	x8, [x8, _metadata_ll_max_entries@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _metadata_ll_commit@GOTPAGE
Lloh20:
	ldr	x9, [x9, _metadata_ll_commit@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	ldr	w0, [sp, #12]
	bl	_le64_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [sp, #8]
	bl	_le64_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [sp, #4]
	bl	_le64_to_cpu
	str	x0, [x19, #16]
	ldr	w0, [sp]
	bl	_le64_to_cpu
	str	x0, [x19, #8]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sm_metadata root too small"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_metadata_ll_load_ie,4,2        ; @metadata_ll_load_ie
	.comm	_metadata_ll_save_ie,4,2        ; @metadata_ll_save_ie
	.comm	_metadata_ll_init_index,4,2     ; @metadata_ll_init_index
	.comm	_metadata_ll_max_entries,4,2    ; @metadata_ll_max_entries
	.comm	_metadata_ll_commit,4,2         ; @metadata_ll_commit
.subsections_via_symbols
