	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __reserve_metadata_snap
___reserve_metadata_snap:               ## @__reserve_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_THIN_SUPERBLOCK_LOCATION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_dm_sm_inc_block
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movq	_sb_validator@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_dm_tm_shadow_block
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, -52(%rbp)
	sete	%dil
	callq	_BUG_ON
	movq	-48(%rbp), %rdi
	callq	_dm_block_location
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_le64_to_cpu
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_dm_tm_dec
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	callq	_dm_tm_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	16(%r12), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r12, %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r15), %r13d
	movl	8(%r12), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_dm_tm_inc
	movl	(%r15), %r13d
	movl	4(%r12), %edi
	callq	_le64_to_cpu
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_dm_tm_inc
	movl	(%r15), %edi
	movq	-48(%rbp), %rsi
	callq	_dm_tm_unlock
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_superblock_lock
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_dm_tm_dec
	movl	%r12d, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	-64(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_cpu_to_le64
	movl	%eax, (%r15)
	movq	-64(%rbp), %rdi
	callq	_dm_bm_unlock
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIN_SUPERBLOCK_LOCATION,4,2   ## @THIN_SUPERBLOCK_LOCATION
	.comm	_sb_validator,4,2               ## @sb_validator
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pool metadata snapshot already exists: release this before taking another."

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	___reserve_metadata_snap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __reserve_metadata_snap
___reserve_metadata_snap:               ; @__reserve_metadata_snap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x20, _THIN_SUPERBLOCK_LOCATION@GOTPAGE
Lloh1:
	ldr	x20, [x20, _THIN_SUPERBLOCK_LOCATION@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_dm_sm_inc_block
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, _sb_validator@GOTPAGE
Lloh3:
	ldr	x2, [x2, _sb_validator@GOTPAGEOFF]
	add	x3, sp, #16
	add	x4, sp, #28
	bl	_dm_tm_shadow_block
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [sp, #16]
	bl	_dm_block_location
	mov	x20, x0
	ldr	x0, [sp, #16]
	bl	_dm_block_data
	mov	x21, x0
	ldr	w0, [x0]
	bl	_le64_to_cpu
	cbz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dm_tm_dec
	ldr	w0, [x19]
	ldr	x1, [sp, #16]
	bl	_dm_tm_unlock
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_3:
	add	x0, x21, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x21, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w22, [x19]
	ldr	w0, [x21, #8]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_dm_tm_inc
	ldr	w22, [x19]
	ldr	w0, [x21, #4]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x22
	bl	_dm_tm_inc
	ldr	w0, [x19]
	ldr	x1, [sp, #16]
	bl	_dm_tm_unlock
	add	x1, sp, #8
	mov	x0, x19
	bl	_superblock_lock
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dm_tm_dec
	b	LBB0_6
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x19, x0
	mov	x0, x20
	bl	_cpu_to_le64
	str	w0, [x19]
	ldr	x0, [sp, #8]
	bl	_dm_bm_unlock
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_THIN_SUPERBLOCK_LOCATION,4,2   ; @THIN_SUPERBLOCK_LOCATION
	.comm	_sb_validator,4,2               ; @sb_validator
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pool metadata snapshot already exists: release this before taking another."

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	___reserve_metadata_snap
.subsections_via_symbols
