	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_data_block
_alloc_data_block:                      ## @alloc_data_block
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_get_pool_mode
	movq	_PM_WRITE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_3:
	movl	(%r14), %edi
	leaq	-28(%rbp), %rsi
	callq	_dm_pool_get_free_block_count
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_metadata_operation_failed
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-28(%rbp), %esi
	movq	%r14, %rdi
	callq	_check_low_water_mark
	cmpl	$0, -28(%rbp)
	je	LBB0_6
LBB0_10:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_dm_pool_alloc_data_block
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %ebx
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_13
## %bb.12:
	movq	_PM_OUT_OF_DATA_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_pool_mode
	jmp	LBB0_20
LBB0_6:
	movq	%r14, %rdi
	callq	_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.7:
	movl	(%r14), %edi
	leaq	-28(%rbp), %rsi
	callq	_dm_pool_get_free_block_count
	testl	%eax, %eax
	jne	LBB0_4
## %bb.8:
	cmpl	$0, -28(%rbp)
	jne	LBB0_10
## %bb.9:
	movq	_PM_OUT_OF_DATA_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_pool_mode
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movl	(%r14), %edi
	leaq	-28(%rbp), %rsi
	callq	_dm_pool_get_free_metadata_block_count
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	cmpl	$0, -28(%rbp)
	je	LBB0_18
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_18:
	movq	%r14, %rdi
	callq	_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_WRITE,8,3                   ## @PM_WRITE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_pool_get_free_block_count"

	.comm	_PM_OUT_OF_DATA_SPACE,4,2       ## @PM_OUT_OF_DATA_SPACE
	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.1:                               ## @.str.1
	.asciz	"dm_pool_alloc_data_block"

L_.str.2:                               ## @.str.2
	.asciz	"dm_pool_get_free_metadata_block_count"

	.no_dead_strip	_alloc_data_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_data_block
_alloc_data_block:                      ; @alloc_data_block
	.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	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_get_pool_mode
Lloh0:
	adrp	x8, _PM_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dm_pool_get_free_block_count
	cbz	w0, LBB0_7
LBB0_4:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x2, x20
	bl	_metadata_operation_failed
LBB0_6:
	mov	x0, x20
	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_7:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_check_low_water_mark
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
LBB0_8:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_dm_pool_alloc_data_block
	cbz	w0, LBB0_15
; %bb.9:
	mov	x20, x0
Lloh7:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_17
; %bb.10:
Lloh10:
	adrp	x8, _PM_OUT_OF_DATA_SPACE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PM_OUT_OF_DATA_SPACE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pool_mode
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_commit
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.12:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dm_pool_get_free_block_count
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_8
; %bb.14:
Lloh13:
	adrp	x8, _PM_OUT_OF_DATA_SPACE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PM_OUT_OF_DATA_SPACE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pool_mode
Lloh16:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dm_pool_get_free_metadata_block_count
	cbz	w0, LBB0_18
; %bb.16:
	mov	x20, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_17:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_18:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_20
LBB0_19:
	mov	w20, #0
	b	LBB0_6
LBB0_20:
	mov	x0, x19
	bl	_commit
	mov	x20, x0
	cbnz	w0, LBB0_6
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_WRITE,8,3                   ; @PM_WRITE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_pool_get_free_block_count"

	.comm	_PM_OUT_OF_DATA_SPACE,4,2       ; @PM_OUT_OF_DATA_SPACE
	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.1:                               ; @.str.1
	.asciz	"dm_pool_alloc_data_block"

l_.str.2:                               ; @.str.2
	.asciz	"dm_pool_get_free_metadata_block_count"

	.no_dead_strip	_alloc_data_block
.subsections_via_symbols
