	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rankSort
_rankSort:                              ## @rankSort
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	leal	(,%rbx,8), %edi
	callq	_pg_malloc
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r15d
	xorl	%r14d, %r14d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_atoi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%r12,%r14,8)
	movl	%r14d, 4(%r12,%r14,8)
	incq	%r14
	addq	$16, %r13
	cmpq	%r14, %r15
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	movl	$0, %eax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$45, (%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %r15
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strspn
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_strlen
	cmpq	%rax, %r12
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strspn
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rcx
	movl	$0, %eax
	cmpq	%rcx, %r15
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	_rankCompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_qsort
	cmpl	$1, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	movq	_rankCompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_qsort
	jmp	LBB0_15
LBB0_11:
	movl	%r15d, %ecx
	andl	$-2, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	4(%r12,%rax,8), %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rdi,%rdx)
	movslq	12(%r12,%rax,8), %rdx
	shlq	$4, %rdx
	leal	1(%rax), %esi
	movl	%esi, 8(%rdi,%rdx)
	addq	$2, %rax
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_13:
	testb	$1, %r15b
	je	LBB0_15
## %bb.14:
	movslq	4(%r12,%rax,8), %rcx
	shlq	$4, %rcx
	movl	%eax, 8(%rdi,%rcx)
LBB0_15:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pg_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789"

	.comm	_rankCompare,4,2                ## @rankCompare
	.no_dead_strip	_rankSort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rankSort
_rankSort:                              ; @rankSort
	.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
	mov	x20, x1
	mov	x21, x0
	lsl	w0, w0, #3
	bl	_pg_malloc
	mov	x19, x0
	cmp	w21, #0
	b.le	LBB0_11
; %bb.1:
	mov	x26, #0
	mov	w21, w21
	add	x27, x19, #4
	mov	x28, x20
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	w0, w26, [x27, #-4]
	add	x26, x26, #1
	add	x27, x27, #8
	add	x28, x28, #16
	cmp	x21, x26
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x28]
	cbz	x23, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x23]
	cmp	w8, #45
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x23, #1
	mov	x0, x24
	mov	x1, x22
	bl	_strspn
	mov	x25, x0
	mov	x0, x24
	bl	_strlen
	cmp	x25, x0
	b.eq	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_strspn
	mov	x24, x0
	mov	x0, x23
	bl	_strlen
	cmp	x24, x0
	b.ne	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_atoi
	b	LBB0_3
LBB0_9:
Lloh2:
	adrp	x8, _rankCompare@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rankCompare@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
	mov	x8, #0
	add	x9, x19, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x9], #8
	add	x10, x20, x10, lsl #4
	str	w8, [x10, #8]
	add	x8, x8, #1
	cmp	x21, x8
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _rankCompare@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rankCompare@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #8
	bl	_qsort
LBB0_12:
	mov	x0, x19
	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
	b	_pg_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789"

	.comm	_rankCompare,4,2                ; @rankCompare
	.no_dead_strip	_rankSort
.subsections_via_symbols
