	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_open_disk                ## -- Begin function sm_ll_open_disk
	.p2align	4, 0x90
_sm_ll_open_disk:                       ## @sm_ll_open_disk
	.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
	.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_3
LBB0_2:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_sm_ll_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_disk_ll_load_ie@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_disk_ll_save_ie@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_disk_ll_init_index@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_disk_ll_open@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	_disk_ll_max_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_disk_ll_commit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movl	12(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, 32(%r14)
	movl	8(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, 24(%r14)
	movl	4(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, 16(%r14)
	movl	(%rbx), %edi
	callq	_le64_to_cpu
	movq	%r14, %rdi
	movq	%rax, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rdi)                         ## TAILCALL
LBB0_3:
	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	_disk_ll_load_ie,4,2            ## @disk_ll_load_ie
	.comm	_disk_ll_save_ie,4,2            ## @disk_ll_save_ie
	.comm	_disk_ll_init_index,4,2         ## @disk_ll_init_index
	.comm	_disk_ll_max_entries,4,2        ## @disk_ll_max_entries
	.comm	_disk_ll_commit,4,2             ## @disk_ll_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_open_disk                ; -- Begin function sm_ll_open_disk
	.p2align	2
_sm_ll_open_disk:                       ; @sm_ll_open_disk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, x2
	mov	x19, x0
	bl	_sm_ll_init
	tbnz	w0, #31, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _disk_ll_load_ie@GOTPAGE
Lloh6:
	ldr	x8, [x8, _disk_ll_load_ie@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh8:
	adrp	x8, _disk_ll_save_ie@GOTPAGE
Lloh9:
	ldr	x8, [x8, _disk_ll_save_ie@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _disk_ll_init_index@GOTPAGE
Lloh12:
	ldr	x9, [x9, _disk_ll_init_index@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh14:
	adrp	x8, _disk_ll_open@GOTPAGE
Lloh15:
	ldr	x8, [x8, _disk_ll_open@GOTPAGEOFF]
	str	x8, [x19]
Lloh16:
	adrp	x8, _disk_ll_max_entries@GOTPAGE
Lloh17:
	ldr	x8, [x8, _disk_ll_max_entries@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _disk_ll_commit@GOTPAGE
Lloh20:
	ldr	x9, [x9, _disk_ll_commit@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	ldr	w0, [x20, #12]
	bl	_le64_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]
	ldr	x1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	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	_disk_ll_load_ie,4,2            ; @disk_ll_load_ie
	.comm	_disk_ll_save_ie,4,2            ; @disk_ll_save_ie
	.comm	_disk_ll_init_index,4,2         ; @disk_ll_init_index
	.comm	_disk_ll_max_entries,4,2        ; @disk_ll_max_entries
	.comm	_disk_ll_commit,4,2             ; @disk_ll_commit
.subsections_via_symbols
