	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __metadata_commit
___metadata_commit:                     ## @__metadata_commit
	.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
	movq	%rdi, %rbx
	addq	$20, %rdi
	leaq	16(%rbx), %rdx
	movl	16(%rbx), %esi
	callq	_dm_bitset_flush
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_2:
	movl	12(%rbx), %edi
	callq	_dm_tm_pre_commit
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	callq	___copy_sm_root
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_6:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_superblock_write_lock_zero
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_8:
	movq	-24(%rbp), %rdi
	callq	_dm_block_data
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	___prepare_superblock
	movl	12(%rbx), %edi
	movq	-24(%rbp), %rsi
	callq	_dm_tm_commit
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
	callq	_DMERR
	jmp	LBB0_12
LBB0_10:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_bitmap_full
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$1, (%rbx)
LBB0_12:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_bitset_flush failed"

L_.str.1:                               ## @.str.1
	.asciz	"dm_tm_pre_commit failed"

L_.str.2:                               ## @.str.2
	.asciz	"__copy_sm_root failed"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to write_lock superblock"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to commit superblock"

	.no_dead_strip	___metadata_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __metadata_commit
___metadata_commit:                     ; @__metadata_commit
	.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
	mov	x19, x0
	mov	x2, x0
	ldr	w1, [x2, #16]!
	add	x0, x2, #4
	bl	_dm_bitset_flush
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_dm_tm_pre_commit
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	___copy_sm_root
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_superblock_write_lock_zero
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x1, x0
	mov	x0, x19
	bl	___prepare_superblock
	ldr	w0, [x19, #12]
	ldr	x1, [sp, #8]
	bl	_dm_tm_commit
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DMERR
	b	LBB0_12
LBB0_10:
	ldp	w1, w0, [x19, #4]
	bl	_bitmap_full
	mov	w20, #0
	cbz	x0, LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_bitset_flush failed"

l_.str.1:                               ; @.str.1
	.asciz	"dm_tm_pre_commit failed"

l_.str.2:                               ; @.str.2
	.asciz	"__copy_sm_root failed"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to write_lock superblock"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to commit superblock"

	.no_dead_strip	___metadata_commit
.subsections_via_symbols
