	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcm_reserve_1d
_tcm_reserve_1d:                        ## @tcm_reserve_1d
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	testl	%esi, %esi
	je	LBB0_6
## %bb.3:
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %eax
	imull	16(%rbx), %eax
	cmpl	%esi, %eax
	jge	LBB0_8
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	negq	%rax
	jmp	LBB0_9
LBB0_8:
	movl	$0, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	*8(%rbx)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	movq	%rcx, 8(%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_tcm_reserve_1d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcm_reserve_1d
_tcm_reserve_1d:                        ; @tcm_reserve_1d
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	cbz	w1, LBB0_5
; %bb.2:
	cbz	x19, LBB0_5
; %bb.3:
	ldr	w8, [x20]
	ldr	w9, [x20, #16]
	mul	w8, w8, w9
	cmp	w8, w1
	b.ge	LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_6:
	neg	x0, x8
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
LBB0_8:
	str	wzr, [x19]
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	cmp	x0, #0
	csel	x8, x20, xzr, eq
	str	x8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_tcm_reserve_1d
.subsections_via_symbols
