	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __release_metadata_snap
___release_metadata_snap:               ## @__release_metadata_snap
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	callq	_superblock_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_le64_to_cpu
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_cpu_to_le64
	movl	%eax, 8(%r12)
	movq	-48(%rbp), %rdi
	callq	_dm_bm_unlock
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	movq	_sb_validator@GOTPCREL(%rip), %rdx
	leaq	-40(%rbp), %rcx
	movl	%r14d, %esi
	callq	_dm_tm_read_lock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %rbx
	movl	4(%r15), %r12d
	movl	4(%rax), %edi
	callq	_le64_to_cpu
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_dm_sm_dec_block
	movl	4(%r15), %r12d
	movl	(%rbx), %edi
	callq	_le64_to_cpu
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_dm_sm_dec_block
	movl	4(%r15), %edi
	movl	%r14d, %esi
	callq	_dm_sm_dec_block
	movl	(%r15), %edi
	movq	-40(%rbp), %rsi
	callq	_dm_tm_unlock
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No pool metadata snapshot found: nothing to release."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sb_validator,4,2               ## @sb_validator
	.no_dead_strip	___release_metadata_snap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __release_metadata_snap
___release_metadata_snap:               ; @__release_metadata_snap
	.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_lock
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_le64_to_cpu
	mov	x20, x0
	mov	w0, #0
	bl	_cpu_to_le64
	str	w0, [x21, #8]
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
	cbz	w20, LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x2, _sb_validator@GOTPAGE
Lloh1:
	ldr	x2, [x2, _sb_validator@GOTPAGEOFF]
	mov	x3, sp
	mov	x1, x20
	bl	_dm_tm_read_lock
	cbnz	w0, LBB0_1
; %bb.4:
	ldr	x0, [sp]
	bl	_dm_block_data
	mov	x21, x0
	ldr	w22, [x19, #4]
	ldr	w0, [x0, #4]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_dm_sm_dec_block
	ldr	w22, [x19, #4]
	ldr	w0, [x21]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_dm_sm_dec_block
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_dm_sm_dec_block
	ldr	w0, [x19]
	ldr	x1, [sp]
	bl	_dm_tm_unlock
	b	LBB0_1
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No pool metadata snapshot found: nothing to release."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sb_validator,4,2               ; @sb_validator
	.no_dead_strip	___release_metadata_snap
.subsections_via_symbols
