	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ursort
_ursort:                                ## @ursort
	.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
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	%edx, %esi
	jge	LBB0_11
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	_RR@GOTPCREL(%rip), %r15
	movl	%esi, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ursort
	movl	%r13d, %esi
	cmpl	%r14d, %r13d
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movq	(%r15), %r8
	leal	(%rsi,%r14), %eax
	sarl	%eax
	cltq
	movl	(%r8,%rax,4), %r9d
	movl	%r14d, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%edx, %r13d
	jg	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movslq	%r13d, %rdi
	decq	%rdi
	movl	%r13d, %r11d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	4(%r8,%rdi,4), %r10d
	incq	%rdi
	incl	%r11d
	cmpl	%r9d, %r10d
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	leal	-1(%r11), %r13d
	movslq	%edx, %rcx
	incq	%rcx
	movl	%edx, %eax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%r8,%rcx,4), %ebx
	decq	%rcx
	decl	%eax
	cmpl	%ebx, %r9d
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	leal	1(%rax), %edx
	cmpl	%edx, %r13d
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%ebx, (%r8,%rdi,4)
	movl	%r10d, (%r8,%rcx,4)
	movl	(%r12,%rdi,4), %edx
	movl	(%r12,%rcx,4), %ebx
	movl	%ebx, (%r12,%rdi,4)
	movl	%edx, (%r12,%rcx,4)
	movl	%eax, %edx
	movl	%r11d, %r13d
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RR,8,3                         ## @RR
	.no_dead_strip	_ursort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ursort
_ursort:                                ; @ursort
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w1, w2
	b.ge	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x21, _RR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ursort
	mov	x1, x22
	cmp	w22, w19
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_8 Depth 3
	ldr	x8, [x21]
	add	w9, w1, w19
	asr	w9, w9, #1
	ldr	w9, [x8, w9, sxtw #2]
	mov	x2, x19
	mov	x22, x1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	cmp	w22, w2
	b.gt	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
                                        ;       Child Loop BB0_8 Depth 3
	sbfiz	x11, x22, #2, #32
	mov	x10, x22
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w12, [x8, x11]
	add	x11, x11, #4
	add	w10, w10, #1
	cmp	w12, w9
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x14, x8, x11
	sub	w22, w10, #1
	sbfiz	x15, x2, #2, #32
	mov	x13, x2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w16, [x8, x15]
	sub	x15, x15, #4
	sub	w13, w13, #1
	cmp	w9, w16
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w2, w13, #1
	cmp	w22, w2
	b.gt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x17, x8, x15
	stur	w16, [x14, #-4]
	str	w12, [x17, #4]
	add	x11, x20, x11
	ldur	w12, [x11, #-4]
	add	x14, x20, x15
	ldr	w15, [x14, #4]
	stur	w15, [x11, #-4]
	str	w12, [x14, #4]
	mov	x2, x13
	mov	x22, x10
	b	LBB0_4
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RR,8,3                         ; @RR
	.no_dead_strip	_ursort
.subsections_via_symbols
