	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqInsert                       ## -- Begin function pqInsert
	.p2align	4, 0x90
_pqInsert:                              ## @pqInsert
	.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	%edx, %r14d
	movq	%rsi, %rbx
	cmpq	$0, 24(%rsi)
	je	LBB0_1
## %bb.8:
	movl	16(%rbx), %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pqHeapInsert                   ## TAILCALL
LBB0_1:
	movslq	(%rbx), %r15
	leal	1(%r15), %eax
	movl	%eax, (%rbx)
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_6
## %bb.2:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %r12
	addl	%ecx, %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rdi), %edi
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	movq	%r12, %rsi
	callq	*%rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_INV_HANDLE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setne	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movl	%r14d, (%rax,%r15,4)
	notl	%r15d
	jmp	LBB0_7
LBB0_5:
	movq	%r12, 8(%rbx)
LBB0_3:
	movq	_INV_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INV_HANDLE,4,2                 ## @INV_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqInsert                       ; -- Begin function pqInsert
	.p2align	2
_pqInsert:                              ; @pqInsert
	.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, x2
	mov	x20, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #16]
	mov	x2, x19
	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
	b	_pqHeapInsert
LBB0_2:
	ldp	w22, w9, [x20]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	add	w8, w22, #1
	str	w8, [x20]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x21, [x20, #8]
	lsl	w9, w9, #1
	str	w9, [x20, #4]
	ldr	w0, [x0]
	sbfiz	x2, x9, #2, #32
	mov	x1, x21
	blr	x8
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _INV_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INV_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #8]
	str	w19, [x8, x22, lsl #2]
	mvn	w0, w22
	b	LBB0_8
LBB0_6:
	str	x21, [x20, #8]
LBB0_7:
Lloh3:
	adrp	x8, _INV_HANDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INV_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INV_HANDLE,4,2                 ; @INV_HANDLE
.subsections_via_symbols
