	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nroot
_nroot:                                 ## @nroot
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 8(%rax)
	jne	LBB0_10
## %bb.3:
	movq	16(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
LBB0_10:
	movl	(%r12), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
LBB0_9:
	callq	_mpool_put
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r12), %edi
	movq	_MPOOL_PAGE_NEXT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-40(%rbp), %rsi
	callq	_mpool_new
	movq	_RET_ERROR@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	(%r15), %edx
	leaq	-40(%rbp), %rsi
	callq	_mpool_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r15
	movq	-40(%rbp), %rax
	movq	_P_ROOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movq	%rax, 8(%r15)
	movq	_P_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	%eax, 36(%r15)
	movq	_BTDATAOFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	4(%r12), %edx
	movl	%edx, 28(%r15)
	movq	_P_BLEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %edi
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_mpool_put
	movl	(%r12), %edi
	movl	(%rbx), %edx
	movq	%r15, %rsi
	jmp	LBB0_9
LBB0_12:
	movq	_RET_ERROR@GOTPCREL(%rip), %rbx
LBB0_13:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_mpool_delete
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_MPOOL_PAGE_NEXT,4,2            ## @MPOOL_PAGE_NEXT
	.comm	_P_ROOT,8,3                     ## @P_ROOT
	.comm	_P_INVALID,4,2                  ## @P_INVALID
	.comm	_BTDATAOFF,8,3                  ## @BTDATAOFF
	.comm	_P_BLEAF,4,2                    ## @P_BLEAF
	.comm	_MPOOL_DIRTY,4,2                ## @MPOOL_DIRTY
	.no_dead_strip	_nroot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nroot
_nroot:                                 ; @nroot
	.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	x19, x0
	ldr	w0, [x0]
	mov	w1, #1
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x1, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_4:
	ldr	w0, [x19]
	mov	w2, #0
LBB0_5:
	bl	_mpool_put
Lloh0:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _EINVAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
	ldr	w0, [x19]
Lloh11:
	adrp	x21, _MPOOL_PAGE_NEXT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _MPOOL_PAGE_NEXT@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #8
	bl	_mpool_new
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	ldr	w0, [x19]
	ldr	w2, [x21]
	add	x1, sp, #8
	bl	_mpool_new
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [sp, #8]
Lloh13:
	adrp	x9, _P_ROOT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _P_ROOT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	x21, x0
Lloh16:
	adrp	x9, _P_INVALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _P_INVALID@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w9, [x0, #32]
Lloh19:
	adrp	x9, _BTDATAOFF@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BTDATAOFF@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	stp	x9, x8, [x0]
	ldr	w2, [x19, #4]
Lloh22:
	adrp	x8, _P_BLEAF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _P_BLEAF@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	stp	w8, w2, [x0, #24]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19]
Lloh25:
	adrp	x22, _MPOOL_DIRTY@GOTPAGE
Lloh26:
	ldr	x22, [x22, _MPOOL_DIRTY@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_mpool_put
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x21
	b	LBB0_5
LBB0_11:
Lloh27:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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_13:
	ldr	w0, [x19]
	bl	_mpool_delete
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_MPOOL_PAGE_NEXT,4,2            ; @MPOOL_PAGE_NEXT
	.comm	_P_ROOT,8,3                     ; @P_ROOT
	.comm	_P_INVALID,4,2                  ; @P_INVALID
	.comm	_BTDATAOFF,8,3                  ; @BTDATAOFF
	.comm	_P_BLEAF,4,2                    ; @P_BLEAF
	.comm	_MPOOL_DIRTY,4,2                ; @MPOOL_DIRTY
	.no_dead_strip	_nroot
.subsections_via_symbols
