	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort
_sort:                                  ## @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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	testl	%esi, %esi
	jle	LBB0_16
## %bb.1:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r14d, %r14d
	cmpl	%esi, %r14d
	jle	LBB0_2
## %bb.3:
	cmpl	$3, %r14d
	jae	LBB0_4
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	decl	%r14d
	leal	1(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r10), %eax
	movl	%r10d, %r14d
	cmpl	$2, %eax
	jbe	LBB0_16
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	%r14d, %r10d
	shrl	$31, %r10d
	addl	%r14d, %r10d
	sarl	%r10d
	cmpl	%esi, %r10d
	jge	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r10d, %rdx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r11d
	subl	%r10d, %r11d
	shlq	$4, %rdx
	movq	%rdx, %r15
	negq	%r15
	movl	$1, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	addq	$16, %r12
	cmpq	%r11, %r13
	je	LBB0_15
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	cmpl	$-1, %r14d
	jl	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%rax), %r8
	movq	8(%rax,%rdx), %r9
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%rcx, (%rax)
	movq	%rbx, (%rax,%rdx)
	movq	%r9, 8(%rax)
	movq	%r8, 8(%rax,%rdx)
	addq	%r15, %rax
	cmpq	%rdi, %rax
	jbe	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rax,%rdx), %rcx
	movq	(%rax), %rbx
	cmpq	%rbx, %rcx
	jg	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%rax,%rdx), %r9
	movq	8(%rax), %r8
	cmpq	%r8, %r9
	jle	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort
_sort:                                  ; @sort
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w8, #1
	cmp	w8, w1
	b.le	LBB0_2
; %bb.3:
	cmp	w8, #3
	b.hs	LBB0_5
LBB0_4:
	ret
LBB0_5:
	sub	w10, w8, #1
	add	w8, w1, #1
	add	x9, x0, #16
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w12, w11, #1
	mov	x10, x11
	cmp	w12, #2
	b.ls	LBB0_4
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	cmp	w10, #0
	cinc	w11, w10, lt
	asr	w11, w11, #1
	cmp	w11, w1
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w12, w8, w11
	sbfiz	x13, x11, #4, #32
	neg	x14, x13
	mov	x15, x9
	mov	w16, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x16, x16, #1
	add	x15, x15, #16
	cmp	x16, x12
	b.eq	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	cmn	w10, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x17, x15
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=3
	ldr	x4, [x17, #8]
	add	x5, x17, x13
	ldr	x5, [x5, #8]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x6, x17, x13
	stp	x3, x5, [x17]
	stp	x2, x4, [x6]
	add	x17, x17, x14
	cmp	x17, x0
	b.ls	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x3, [x17, x13]
	ldr	x2, [x17]
	cmp	x3, x2
	b.gt	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=3
	add	x4, x17, x13
	ldr	x5, [x4, #8]
	ldr	x4, [x17, #8]
	cmp	x5, x4
	b.le	LBB0_13
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sort
.subsections_via_symbols
