	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_new_node                   ## -- Begin function get_new_node
	.p2align	4, 0x90
_get_new_node:                          ## @get_new_node
	.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	_free_nodes_cnt@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_allocated_nodes_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$11, %eax
	movl	$10, %ecx
	cmovgel	%eax, %ecx
	cmpl	$10000, %ecx                    ## imm = 0x2710
	movl	$10000, %edi                    ## imm = 0x2710
	cmovll	%ecx, %edi
	callq	_treap_init_mem
LBB0_2:
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	_free_nodes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_free_nodes_cnt,8,3             ## @free_nodes_cnt
	.comm	_allocated_nodes_cnt,4,2        ## @allocated_nodes_cnt
	.comm	_free_nodes,8,3                 ## @free_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_new_node                   ; -- Begin function get_new_node
	.p2align	2
_get_new_node:                          ; @get_new_node
	.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
Lloh0:
	adrp	x19, _free_nodes_cnt@GOTPAGE
Lloh1:
	ldr	x19, [x19, _free_nodes_cnt@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _allocated_nodes_cnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _allocated_nodes_cnt@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #10
	cmp	w8, #10
	csel	w8, w8, w9, gt
	mov	w9, #10000
	cmp	w8, w9
	csel	w0, w8, w9, lt
	bl	_treap_init_mem
LBB0_2:
	ldr	x8, [x19]
	sub	x9, x8, #1
	str	x9, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
Lloh5:
	adrp	x8, _free_nodes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _free_nodes@GOTPAGEOFF]
	ldr	x0, [x8]
	ldr	x9, [x0]
	str	x9, [x8]
	str	xzr, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_free_nodes_cnt,8,3             ; @free_nodes_cnt
	.comm	_allocated_nodes_cnt,4,2        ; @allocated_nodes_cnt
	.comm	_free_nodes,8,3                 ; @free_nodes
.subsections_via_symbols
