	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aux_heap_sort
_aux_heap_sort:                         ## @aux_heap_sort
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_21
## %bb.1:
	cmpl	$2, %r8d
	jl	LBB0_11
## %bb.2:
	movq	_H@GOTPCREL(%rip), %r10
	movq	%r8, %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r10), %rax
	movslq	%ecx, %rcx
	movq	%r9, (%rax,%rcx,8)
	cmpq	$2, %r15
	movq	%r11, %r15
	jbe	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r10), %rax
	movq	(%rax,%r15,8), %r9
	movq	8(%rax), %rcx
	movq	%rcx, (%rax,%r15,8)
	cmpq	$3, %r15
	jb	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%r15), %r11
	movl	(%r9), %r14d
	movl	$1, %esi
	movl	$2, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10), %rbx
	cmpl	%r11d, %edi
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%edi, %ecx
	orl	$1, %ecx
	movslq	%ecx, %rax
	movq	(%rbx,%rax,8), %rax
	movl	(%rax), %eax
	movslq	%edi, %rdx
	movq	(%rbx,%rdx,8), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%edi, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movslq	%ecx, %rax
	movq	(%rbx,%rax,8), %rdi
	cmpl	(%rdi), %r14d
	jle	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	movslq	%esi, %rax
	movq	%rdi, (%rbx,%rax,8)
	leal	(%rcx,%rcx), %edi
	movslq	%edi, %rax
	movl	%ecx, %esi
	cmpq	%rax, %r15
	jg	LBB0_5
	jmp	LBB0_15
LBB0_10:
	movq	(%r10), %rax
	movq	%r9, 8(%rax)
LBB0_11:
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.12:
	leaq	-1(%r8), %rax
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_16
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_16:
	andl	$-4, %r8d
	xorl	%esi, %esi
	movq	_H@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rax
	movq	8(%rax,%rsi,8), %rdi
	movq	%rdi, (%rax,%rsi,8)
	movq	(%rdx), %rax
	movq	16(%rax,%rsi,8), %rdi
	movq	%rdi, 8(%rax,%rsi,8)
	movq	(%rdx), %rax
	movq	24(%rax,%rsi,8), %rdi
	movq	%rdi, 16(%rax,%rsi,8)
	movq	(%rdx), %rdi
	leaq	4(%rsi), %rax
	movq	32(%rdi,%rsi,8), %rbx
	movq	%rbx, 24(%rdi,%rsi,8)
	movq	%rax, %rsi
	cmpq	%rax, %r8
	jne	LBB0_17
LBB0_18:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:
	incq	%rax
	movq	_H@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	(%rsi,%rax,8), %rdi
	movq	%rdi, -8(%rsi,%rax,8)
	incq	%rax
	decq	%rcx
	jne	LBB0_20
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HN,4,2                         ## @HN
	.comm	_H,8,3                          ## @H
	.no_dead_strip	_aux_heap_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aux_heap_sort
_aux_heap_sort:                         ; @aux_heap_sort
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.1:
	cmp	w8, #1
	b.le	LBB0_13
; %bb.2:
Lloh3:
	adrp	x9, _H@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H@GOTPAGEOFF]
	mov	x10, x8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x17, x14
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x9]
	str	x11, [x13, w17, sxtw #3]
	cmp	x10, #2
	mov	x10, x12
	b.ls	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x12, [x9]
	lsl	x13, x10, #3
	ldr	x11, [x12, x13]
	ldr	x14, [x12, #8]
	str	x14, [x12, x13]
	cmp	x10, #3
	b.lo	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x12, x10, #1
	ldr	w13, [x11]
	mov	w14, #1
	mov	w15, #2
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x9]
	cmp	w15, w12
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	sxtw	x17, w15
	orr	x17, x17, #0x1
	ldr	x0, [x16, x17, lsl #3]
	ldr	w0, [x0]
	ldr	x1, [x16, w15, sxtw #3]
	ldr	w1, [x1]
	cmp	w0, w1
	csel	w17, w17, w15, lt
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x17, x15
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x15, [x16, w17, sxtw #3]
	ldr	w0, [x15]
	cmp	w13, w0
	b.le	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	str	x15, [x16, w14, sxtw #3]
	lsl	w15, w17, #1
	cmp	x10, w15, sxtw
	mov	x14, x17
	b.gt	LBB0_7
	b	LBB0_4
LBB0_12:
	ldr	x9, [x9]
	str	x11, [x9, #8]
LBB0_13:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x9, #0
	lsl	x8, x8, #3
Lloh5:
	adrp	x10, _H@GOTPAGE
Lloh6:
	ldr	x10, [x10, _H@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	add	x11, x11, x9
	ldr	x12, [x11, #8]
	str	x12, [x11]
	add	x9, x9, #8
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_16:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HN,4,2                         ; @HN
	.comm	_H,8,3                          ; @H
	.no_dead_strip	_aux_heap_sort
.subsections_via_symbols
