	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_qnode                      ## -- Begin function new_qnode
	.p2align	4, 0x90
_new_qnode:                             ## @new_qnode
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_Qfree@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	_Q@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	jb	LBB0_4
## %bb.2:
	movq	_MAX_QUERY_NODES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	cmpq	%rax, %rbx
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
LBB0_4:
	callq	_assert
	movq	16(%rbx), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_Qw@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	setns	%cl
	movq	_MAX_QUERY_NODES@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdx
	cmpq	%rdx, %rax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%r12), %rax
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_6
## %bb.7:
	movq	_Q@GOTPCREL(%rip), %rcx
	leaq	(%rax,%rax,2), %rbx
	shlq	$3, %rbx
	addq	(%rcx), %rbx
	incq	%rax
LBB0_8:
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_INFTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	%r14d, (%rbx)
	movl	%r15d, 8(%rbx)
	movl	%r15d, 4(%rbx)
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_Qfree,8,3                      ## @Qfree
	.comm	_Q,8,3                          ## @Q
	.comm	_MAX_QUERY_NODES,4,2            ## @MAX_QUERY_NODES
	.comm	_Qw,8,3                         ## @Qw
	.comm	_INFTY,4,2                      ## @INFTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_new_qnode                      ; -- Begin function new_qnode
	.p2align	2
_new_qnode:                             ; @new_qnode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _Qfree@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Qfree@GOTPAGEOFF]
	ldr	x21, [x22]
	cbz	x21, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _Q@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Q@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.lo	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, _MAX_QUERY_NODES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_QUERY_NODES@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	mov	w10, #24
	madd	x8, x9, x10, x8
	cmp	x21, x8
	b.hs	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_assert
	ldr	x8, [x21, #16]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x22, _Qw@GOTPAGE
Lloh9:
	ldr	x22, [x22, _Qw@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #0
Lloh10:
	adrp	x21, _MAX_QUERY_NODES@GOTPAGE
Lloh11:
	ldr	x21, [x21, _MAX_QUERY_NODES@GOTPAGEOFF]
	ldrsw	x9, [x21]
	ccmp	x8, x9, #0, ge
	cset	w0, le
	bl	_assert
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.7:
Lloh12:
	adrp	x9, _Q@GOTPAGE
Lloh13:
	ldr	x9, [x9, _Q@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x21, x8, x10, x9
	add	x8, x8, #1
LBB0_8:
	str	x8, [x22]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh15:
	adrp	x8, _INFTY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INFTY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w19, w8, [x21, #8]
	stp	w20, w19, [x21]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x21, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Qfree,8,3                      ; @Qfree
	.comm	_Q,8,3                          ; @Q
	.comm	_MAX_QUERY_NODES,4,2            ; @MAX_QUERY_NODES
	.comm	_Qw,8,3                         ; @Qw
	.comm	_INFTY,4,2                      ; @INFTY
.subsections_via_symbols
