	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partial_score_val_sort         ## -- Begin function partial_score_val_sort
	.p2align	4, 0x90
_partial_score_val_sort:                ## @partial_score_val_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -304(%rbp)
	movslq	%edx, %rax
	leaq	-8(%rdi,%rax,8), %r12
	movq	%r12, -560(%rbp)
	movslq	%esi, %rax
	leaq	(%rdi,%rax,8), %rax
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$-8, %rbx
	movq	%rbx, %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_8 Depth 3
	cmpq	%r12, %r14
	jae	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rax
	subq	%r14, %rax
	shrq	$4, %rax
	cltq
	movq	(%r14), %rdi
	movq	(%r14,%rax,8), %rsi
	callq	_dl_swap
	movq	%r14, %r13
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_8 Depth 3
	addq	$8, %r13
	movq	%r13, %rax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rax, %r13
	cmpq	%rbx, %rax
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=3
	movq	(%r14), %rcx
	leaq	8(%r13), %rax
	cmpq	(%r13), %rcx
	jl	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%r13, %rbx
	jb	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r14), %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rax, (%rbx)
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	addq	$-8, %rbx
	cmpq	%r13, %rbx
	jae	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%rbx, %r13
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r13), %rdi
	movq	(%rbx), %rsi
	callq	_dl_swap
	addq	$-8, %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	movq	(%rbx), %rsi
	callq	_dl_swap
	movq	%rbx, %rax
	subq	%r14, %rax
	movq	%r12, %rcx
	subq	%rbx, %rcx
	cmpq	%rcx, %rax
	jle	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	-8(%rbx), %rax
	cmpq	%r14, %rax
	jbe	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rcx
	movq	%r14, -304(%rbp,%rcx,8)
	incl	%r15d
	movq	%rax, -560(%rbp,%rcx,8)
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %rbx
	movq	%rbx, %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	8(%rbx), %rax
	cmpq	%r12, %rax
	jae	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	-568(%rbp), %rax                ## 8-byte Folded Reload
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rcx
	movq	%rax, -304(%rbp,%rcx,8)
	leal	1(%rcx), %r15d
	movq	%r12, -560(%rbp,%rcx,8)
	jmp	LBB0_16
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	decl	%r15d
	movq	-304(%rbp,%r15,8), %r14
	movq	-560(%rbp,%r15,8), %r12
	jmp	LBB0_1
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partial_score_val_sort         ; -- Begin function partial_score_val_sort
	.p2align	2
_partial_score_val_sort:                ; @partial_score_val_sort
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #528
	mov	x19, x0
	mov	w23, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	x0, [sp, #264]
	add	x8, x0, w2, sxtw #3
	sub	x24, x8, #8
	str	x24, [sp, #8]
	add	x20, x0, w1, sxtw #3
	add	x21, sp, #264
	add	x22, sp, #8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x24, x25, #8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	cmp	x19, x24
	b.hs	LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x24, x19
	lsr	x8, x8, #4
	ldr	x0, [x19]
	ldr	x1, [x19, w8, sxtw #3]
	bl	_dl_swap
	mov	x26, x19
	mov	x25, x24
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	add	x8, x26, #8
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x26, x8
	cmp	x8, x25
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	x9, [x19]
	mov	x8, x26
	ldr	x10, [x8], #8
	cmp	x9, x10
	b.lt	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	x25, x26
	b.lo	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x19]
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x25]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	sub	x25, x25, #8
	cmp	x25, x26
	b.hs	LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	x26, x25
	b.hs	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	x0, [x26]
	ldr	x1, [x25], #-8
	bl	_dl_swap
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	ldr	x1, [x25]
	bl	_dl_swap
	sub	x8, x25, x19
	sub	x9, x24, x25
	cmp	x8, x9
	b.le	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x25, #8
	cmp	x8, x19
	b.ls	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x23
	sbfiz	x9, x9, #3, #32
	str	x19, [x21, x9]
	add	w23, w23, #1
	str	x8, [x22, x9]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x25, #8
	b	LBB0_2
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x25, #8
	cmp	x8, x24
	b.hs	LBB0_1
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x8, x20
	b.hs	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	sbfiz	x9, x23, #3, #32
	str	x8, [x21, x9]
	add	w23, w23, #1
	str	x24, [x22, x9]
	b	LBB0_1
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w23, w23, #1
	b.lt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	lsl	x8, x23, #3
	ldr	x19, [x21, x8]
	ldr	x24, [x22, x8]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_2
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
