	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_llpair_sort                    ## -- Begin function llpair_sort
	.p2align	4, 0x90
_llpair_sort:                           ## @llpair_sort
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	jle	LBB0_10
## %bb.1:
	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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, %eax
	shrl	%eax
	movl	(%rdi,%rax,4), %eax
	movl	%eax, -48(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r12d
	cmpl	%ecx, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_5 Depth 2
	movslq	%eax, %rcx
	leaq	(%r14,%rcx,4), %rbx
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_llpair_cmp
	incl	%r15d
	addq	$4, %rbx
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %r14
                                        ## kill: def $r12d killed $r12d def $r12
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_llpair_cmp
	decl	%r12d
	addq	$-4, %r14
	testq	%rax, %rax
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r15), %eax
	leal	1(%r12), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rbx), %eax
	movl	4(%r14), %ecx
	movl	%ecx, -4(%rbx)
	movl	%eax, 4(%r14)
	movl	%r12d, %ecx
	movl	%r15d, %eax
	jmp	LBB0_8
LBB0_9:
	movslq	%eax, %rcx
	leaq	(%r14,%rcx,4), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%eax, %esi
	callq	_llpair_sort
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_llpair_sort
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_llpair_sort                    ; -- Begin function llpair_sort
	.p2align	2
_llpair_sort:                           ; @llpair_sort
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.1:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w24, #0
	lsr	w8, w1, #1
	ldr	w8, [x0, w8, uxtw #2]
	str	w8, [sp, #12]
	mov	x21, x1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x22, #-4]
	ldr	w9, [x23, #4]
	stur	w9, [x22, #-4]
	str	w8, [x23, #4]
	cmp	w24, w21
	b.gt	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	add	x22, x19, w24, sxtw #2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #12
	mov	x0, x22
	bl	_llpair_cmp
	add	w24, w24, #1
	add	x22, x22, #4
	tbnz	x0, #63, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x19, w21, sxtw #2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #12
	mov	x0, x23
	bl	_llpair_cmp
	sub	w21, w21, #1
	sub	x23, x23, #4
	cmp	x0, #0
	b.gt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w24, #1
	add	w9, w21, #1
	cmp	w8, w9
	b.le	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x9
	mov	x24, x8
	cmp	w24, w21
	b.le	LBB0_3
LBB0_9:
	add	x0, x19, w24, sxtw #2
	sub	w1, w20, w24
	bl	_llpair_sort
	mov	x0, x19
	mov	x1, x21
	bl	_llpair_sort
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
