	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pairingheap_remove             ## -- Begin function pairingheap_remove
	.p2align	4, 0x90
_pairingheap_remove:                    ## @pairingheap_remove
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	%rsi, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	16(%rsi), %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %r12
	leaq	16(%rax), %rcx
	xorl	%edx, %edx
	cmpq	%rsi, 16(%rax)
	leaq	8(%rax), %r13
	sete	%dl
	cmoveq	%rcx, %r13
	xorl	%edi, %edi
	cmpq	%rsi, 8(%rax,%rdx,8)
	sete	%dil
	callq	_Assert
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_merge_children
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax)
	movq	%rax, (%r13)
	testq	%r12, %r12
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pairingheap_remove_first       ## TAILCALL
LBB0_3:
	movq	%r12, (%r13)
	testq	%r12, %r12
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
LBB0_5:
	movq	%rax, (%r12)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pairingheap_remove             ; -- Begin function pairingheap_remove
	.p2align	2
_pairingheap_remove:                    ; @pairingheap_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	ldp	x22, x21, [x1, #8]
	ldr	x8, [x1]
	mov	x9, x8
	ldr	x10, [x9, #16]!
	add	x11, x8, #8
	mov	w12, #8
	mov	w13, #16
	cmp	x10, x1
	csel	x10, x13, x12, eq
	csel	x23, x9, x11, eq
	ldr	x8, [x8, x10]
	cmp	x8, x1
	cset	w0, eq
	bl	_Assert
	cbz	x21, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_merge_children
	ldp	x8, x9, [x19]
	stp	x8, x9, [x0]
	str	x0, [x23]
	cbz	x22, LBB0_7
; %bb.3:
	str	x0, [x22]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pairingheap_remove_first
LBB0_5:
	str	x22, [x23]
	cbz	x22, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	str	x8, [x22]
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
