	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_metadata_space
_check_for_metadata_space:              ## @check_for_metadata_space
	.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
	movl	(%rdi), %edi
	leaq	-20(%rbp), %rsi
	callq	_dm_pool_get_free_metadata_block_count
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r14
LBB0_4:
	movq	%rbx, %rdi
	callq	_is_read_only
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_DMERR
	movq	_PM_OUT_OF_METADATA_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_pool_mode
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, -20(%rbp)
	je	LBB0_3
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get free metadata blocks"

L_.str.1:                               ## @.str.1
	.asciz	"No free metadata blocks"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_PM_OUT_OF_METADATA_SPACE,4,2   ## @PM_OUT_OF_METADATA_SPACE
	.no_dead_strip	_check_for_metadata_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_metadata_space
_check_for_metadata_space:              ; @check_for_metadata_space
	.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
	ldr	w0, [x0]
	add	x1, sp, #12
	bl	_dm_pool_get_free_metadata_block_count
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_is_read_only
	cbnz	w0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DMERR
Lloh4:
	adrp	x8, _PM_OUT_OF_METADATA_SPACE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PM_OUT_OF_METADATA_SPACE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pool_mode
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get free metadata blocks"

l_.str.1:                               ; @.str.1
	.asciz	"No free metadata blocks"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_PM_OUT_OF_METADATA_SPACE,4,2   ; @PM_OUT_OF_METADATA_SPACE
	.no_dead_strip	_check_for_metadata_space
.subsections_via_symbols
