	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_data_space
_check_for_data_space:                  ## @check_for_data_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_get_pool_mode
	movq	_PM_OUT_OF_DATA_SPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	leaq	-16(%rbp), %rsi
	callq	_dm_pool_get_free_block_count
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	cmpq	$0, -16(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_PM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_pool_mode
	movq	%rbx, %rdi
	callq	_requeue_bios
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_OUT_OF_DATA_SPACE,8,3       ## @PM_OUT_OF_DATA_SPACE
	.comm	_PM_WRITE,4,2                   ## @PM_WRITE
	.no_dead_strip	_check_for_data_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_data_space
_check_for_data_space:                  ; @check_for_data_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
	bl	_get_pool_mode
Lloh0:
	adrp	x8, _PM_OUT_OF_DATA_SPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_OUT_OF_DATA_SPACE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_dm_pool_get_free_block_count
	ldr	x8, [sp, #8]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PM_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pool_mode
	mov	x0, x19
	bl	_requeue_bios
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_OUT_OF_DATA_SPACE,8,3       ; @PM_OUT_OF_DATA_SPACE
	.comm	_PM_WRITE,4,2                   ; @PM_WRITE
	.no_dead_strip	_check_for_data_space
.subsections_via_symbols
