	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aux_heap_insert
_aux_heap_insert:                       ## @aux_heap_insert
	.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
	movq	%rdi, %r14
	movl	(%rdi), %r12d
	movq	_HN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_R_max@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_11
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_19
## %bb.2:
	movq	_H@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movq	8(%rdx), %rax
	cmpl	%r12d, (%rax)
	jge	LBB0_19
## %bb.3:
	movl	$1, %eax
	cmpl	$2, %r15d
	jl	LBB0_18
## %bb.4:
	movl	$1, %esi
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rdx
	cmpl	%r15d, %edi
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, %eax
	orl	$1, %eax
	movslq	%eax, %rbx
	movq	(%rdx,%rbx,8), %rbx
	movl	(%rbx), %ebx
	movslq	%edi, %rcx
	movq	(%rdx,%rcx,8), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edi, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%eax, %rcx
	movq	(%rdx,%rcx,8), %rdi
	cmpl	%r12d, (%rdi)
	jge	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%esi, %rcx
	movq	%rdi, (%rdx,%rcx,8)
	leal	(%rax,%rax), %edi
	movl	%eax, %esi
	cmpl	%r15d, %edi
	jle	LBB0_5
## %bb.10:
	movq	(%r8), %rdx
	jmp	LBB0_18
LBB0_11:
	leal	1(%r15), %ebx
	movl	%ebx, (%rax)
	movq	_AUX_HEAP_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setl	%dil
	callq	_assert
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.12:
	movq	_H@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	shrl	%eax
	movq	(%rcx), %rdx
	movq	(%rdx,%rax,8), %rsi
	cmpl	%r12d, (%rsi)
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ebx, %edi
	movq	%rsi, (%rdx,%rdi,8)
	cmpl	$3, %ebx
	movl	%eax, %ebx
	ja	LBB0_13
	jmp	LBB0_17
LBB0_16:
	movl	%ebx, %eax
LBB0_17:
	movq	_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_18:
	cltq
	movq	%r14, (%rdx,%rax,8)
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%esi, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_HN,4,2                         ## @HN
	.comm	_R_max,4,2                      ## @R_max
	.comm	_H,8,3                          ## @H
	.comm	_AUX_HEAP_SIZE,4,2              ## @AUX_HEAP_SIZE
	.no_dead_strip	_aux_heap_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aux_heap_insert
_aux_heap_insert:                       ; @aux_heap_insert
	.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, x0
Lloh0:
	adrp	x8, _HN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HN@GOTPAGEOFF]
	ldr	w20, [x0]
	ldr	w21, [x8]
Lloh2:
	adrp	x9, _R_max@GOTPAGE
Lloh3:
	ldr	x9, [x9, _R_max@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w21, w9
	b.ne	LBB0_5
; %bb.1:
	cbz	w21, LBB0_11
; %bb.2:
Lloh5:
	adrp	x10, _H@GOTPAGE
Lloh6:
	ldr	x10, [x10, _H@GOTPAGEOFF]
	ldr	x9, [x10]
	ldr	x8, [x9, #8]
	ldr	w8, [x8]
	cmp	w8, w20
	b.ge	LBB0_11
; %bb.3:
	cmp	w21, #2
	b.ge	LBB0_12
; %bb.4:
	mov	w8, #1
	b	LBB0_10
LBB0_5:
	add	w22, w21, #1
	str	w22, [x8]
Lloh7:
	adrp	x8, _AUX_HEAP_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AUX_HEAP_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, lt
	bl	_assert
Lloh10:
	adrp	x9, _H@GOTPAGE
Lloh11:
	ldr	x9, [x9, _H@GOTPAGEOFF]
	cmp	w21, #1
	b.lt	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w22, #1
	ldr	x10, [x9]
	ldr	x11, [x10, w8, uxtw #3]
	ldr	w12, [x11]
	cmp	w12, w20
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x11, [x10, w22, uxtw #3]
	cmp	w22, #3
	mov	x22, x8
	b.hi	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	x8, x22
LBB0_9:
	ldr	x9, [x9]
LBB0_10:
	str	x19, [x9, w8, sxtw #3]
LBB0_11:
	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_12:
	mov	w11, #1
	mov	w12, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10]
	cmp	w12, w21
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sxtw	x8, w12
	orr	x8, x8, #0x1
	ldr	x13, [x9, x8, lsl #3]
	ldr	w13, [x13]
	ldr	x14, [x9, w12, sxtw #3]
	ldr	w14, [x14]
	cmp	w13, w14
	csel	w8, w8, w12, lt
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x8, x12
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x12, [x9, w8, sxtw #3]
	ldr	w13, [x12]
	cmp	w13, w20
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	str	x12, [x9, w11, sxtw #3]
	lsl	w12, w8, #1
	mov	x11, x8
	cmp	w12, w21
	b.le	LBB0_13
; %bb.18:
	ldr	x9, [x10]
	b	LBB0_10
LBB0_19:
	mov	x8, x11
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HN,4,2                         ; @HN
	.comm	_R_max,4,2                      ; @R_max
	.comm	_H,8,3                          ; @H
	.comm	_AUX_HEAP_SIZE,4,2              ; @AUX_HEAP_SIZE
	.no_dead_strip	_aux_heap_insert
.subsections_via_symbols
