	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _hpsort
__hpsort:                               ## @_hpsort
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testq	%r14, %r14
	je	LBB0_21
## %bb.1:
	movq	16(%r14), %r11
	cmpq	$0, 8(%r11)
	je	LBB0_21
## %bb.2:
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	je	LBB0_21
## %bb.3:
	movq	(%r11), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.4:
	movl	$1, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%dl, (%r12,%r10)
	leaq	1(%r10), %rcx
	movq	8(%r11,%r10,8), %rbx
	leal	1(%r8), %edx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
	movq	%rcx, %r10
	movl	%edx, %r8d
	movl	$0, %edx
	testl	%r9d, %r9d
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rsi
	movl	8(%r14), %edi
	addq	$4, %rsi
	xorl	%edx, %edx
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
	xorl	%ecx, %ecx
	testl	%edi, %edi
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%rsi,%rcx,4), %eax
	andl	(%rbx,%rcx,4), %eax
	cmpl	(%rsi,%rcx,4), %eax
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_13
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%edi, %ecx
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rdx
	addq	$8, %rsi
	cmpq	%r9, %rdx
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, %edx
	jmp	LBB0_15
LBB0_11:
	cmpl	$2, %ecx
	jl	LBB0_21
## %bb.12:
	movl	%r10d, %r9d
	movl	%r8d, %r10d
	xorl	%r8d, %r8d
	movq	%r12, %r13
	movq	%r11, %r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$8, %r15
	incq	%r13
	decq	%r10
	cmpq	%r9, %r8
	je	LBB0_21
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%r8, %rbx
	incq	%r8
	movl	$1, %edx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rdx
	cmpq	%rdx, %r10
	je	LBB0_16
LBB0_18:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rbx), %eax
	movzbl	(%r13,%rdx), %ecx
	cmpb	%cl, %al
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	(%r11,%rbx,8), %rsi
	movq	(%r15,%rdx,8), %rdi
	movq	%rdi, (%r11,%rbx,8)
	movq	%rsi, (%r15,%rdx,8)
	movb	%cl, (%r12,%rbx)
	movb	%al, (%r13,%rdx)
	jmp	LBB0_20
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXADDRS,4,2                   ## @MAXADDRS
	.no_dead_strip	__hpsort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _hpsort
__hpsort:                               ; @_hpsort
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _MAXADDRS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXADDRS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x8, x9, x8
	mov	sp, x8
	cbz	x0, LBB0_23
; %bb.1:
	ldr	w10, [x1]
	ldr	x9, [x0, #16]
	ldr	x11, [x9, #8]
	cmp	x11, #0
	ccmp	w10, #0, #4, ne
	b.eq	LBB0_23
; %bb.2:
	ldr	x13, [x9]
	cbz	x13, LBB0_23
; %bb.3:
	mov	x14, #0
	mov	w15, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w14, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	strb	w14, [x8, x12]
	add	x14, x12, #1
	ldr	x13, [x9, x14, lsl #3]
	add	w15, w11, #1
	cbz	x13, LBB0_16
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	mov	x12, x14
	mov	x11, x15
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x14, #0
	ldr	x15, [x1, #8]
	ldr	w16, [x0, #8]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	cmp	w16, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x17, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x2, x17, #2
	ldr	w3, [x13, x2]
	add	x2, x15, x2
	ldp	w4, w2, [x2]
	and	w3, w4, w3
	cmp	w3, w2
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	add	x17, x17, #1
	cmp	x16, x17
	b.ne	LBB0_10
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w17, #0
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w17, w16
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x14, x14, #1
	add	x15, x15, #8
	cmp	x14, x10
	b.ne	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x14, x10
	b	LBB0_5
LBB0_16:
	cmp	w14, #2
	b.lt	LBB0_23
; %bb.17:
	mov	x13, #0
	and	x10, x12, #0xffffffff
	add	x12, x9, #8
	mov	w14, #1
	mov	w11, w11
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x14, x14, #1
	add	x12, x12, #8
	cmp	x13, x10
	b.eq	LBB0_23
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	mov	x15, x13
	add	x13, x13, #1
	mov	x16, x11
	mov	x17, x8
	mov	x1, x12
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x1, x1, #8
	add	x17, x17, #1
	sub	x16, x16, #1
	cmp	x14, x16
	b.eq	LBB0_18
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w2, [x8, x15]
	ldrsb	w3, [x17, x14]
	cmp	w2, w3
	b.le	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	lsl	x4, x15, #3
	ldr	x5, [x9, x4]
	ldr	x6, [x1]
	str	x6, [x9, x4]
	str	x5, [x1]
	strb	w3, [x8, x15]
	strb	w2, [x17, x14]
	b	LBB0_20
LBB0_23:
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXADDRS,4,2                   ; @MAXADDRS
	.no_dead_strip	__hpsort
.subsections_via_symbols
