	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_fresh_metadata
_create_fresh_metadata:                 ## @create_fresh_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	_SUPERBLOCK_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%rbx), %rcx
	movq	%rbx, %rdx
	callq	_dm_tm_create_with_sm
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_setup_infos
	leaq	20(%rbx), %rdi
	leaq	16(%rbx), %rsi
	callq	_dm_btree_empty
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_7
LBB0_4:
	leaq	12(%rbx), %rdi
	leaq	8(%rbx), %rsi
	callq	_dm_array_empty
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_DMERR
	movl	4(%rbx), %edi
	callq	_dm_sm_destroy
	movl	(%rbx), %edi
	callq	_dm_tm_destroy
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPERBLOCK_LOCATION,4,2        ## @SUPERBLOCK_LOCATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_tm_create_with_sm failed"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't create new writeset tree"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't create era array"

	.no_dead_strip	_create_fresh_metadata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_fresh_metadata
_create_fresh_metadata:                 ; @create_fresh_metadata
	.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
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _SUPERBLOCK_LOCATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPERBLOCK_LOCATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, x19, #4
	mov	x2, x19
	bl	_dm_tm_create_with_sm
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_setup_infos
	add	x0, x19, #20
	add	x1, x19, #16
	bl	_dm_btree_empty
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_7
LBB0_4:
	add	x0, x19, #12
	add	x1, x19, #8
	bl	_dm_array_empty
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DMERR
	ldr	w0, [x19, #4]
	bl	_dm_sm_destroy
	ldr	w0, [x19]
	bl	_dm_tm_destroy
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPERBLOCK_LOCATION,4,2        ; @SUPERBLOCK_LOCATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_tm_create_with_sm failed"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't create new writeset tree"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't create era array"

	.no_dead_strip	_create_fresh_metadata
.subsections_via_symbols
