	.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, %r14
	movq	(%rdi), %r15
	movq	%r15, %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_14
LBB0_3:
	movl	(%r15), %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_13:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_metadata_operation_failed
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-28(%rbp), %esi
	movq	%r15, %rdi
	callq	_check_low_water_mark
	cmpl	$0, -28(%rbp)
	je	LBB0_6
LBB0_10:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_dm_pool_alloc_data_block
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_commit
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movl	(%r15), %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	%r15, %rdi
	callq	_set_pool_mode
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.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"

	.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	x20, 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	w21, 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	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x2, x21
	bl	_metadata_operation_failed
LBB0_6:
	mov	x0, x21
	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_10
LBB0_8:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dm_pool_alloc_data_block
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.9:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_commit
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.11:
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_dm_pool_get_free_block_count
	cbnz	w0, LBB0_4
; %bb.12:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_8
; %bb.13:
Lloh9:
	adrp	x8, _PM_OUT_OF_DATA_SPACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PM_OUT_OF_DATA_SPACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pool_mode
Lloh12:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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"

	.no_dead_strip	_alloc_data_block
.subsections_via_symbols
