	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_reps
_sort_reps:                             ## @sort_reps
	.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
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_12
## %bb.1:
	movq	_compare_path_order@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_svn_sort__array
	movq	16(%r13), %rdi
	movq	_compare_references@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_svn_sort__array
	movl	8(%r13), %edi
	callq	_svn_pool_create
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	(%rax), %rbx
	leal	(,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_apr_pcalloc
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	8(%rax), %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_classify_nodes
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_sort_reps_range
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.2:
	movl	%ebx, %eax
	xorl	%ecx, %ecx
	cmpq	$4, %rax
	jb	LBB0_7
## %bb.3:
	movq	%r12, %rdx
	subq	%r15, %rdx
	cmpq	$32, %rdx
	jb	LBB0_7
## %bb.4:
	movl	%ebx, %edx
	andl	$3, %edx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%r15,%rsi,8), %xmm0
	movups	16(%r15,%rsi,8), %xmm1
	movups	%xmm0, (%r12,%rsi,8)
	movups	%xmm1, 16(%r12,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_5
## %bb.6:
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_7:
	subl	%ecx, %ebx
	movq	%rcx, %rdx
	notq	%rdx
	addq	%rax, %rdx
	andq	$3, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rsi
	movq	%rsi, (%r12,%rcx,8)
	incq	%rcx
	decq	%rbx
	jne	LBB0_8
LBB0_9:
	cmpq	$3, %rdx
	jb	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rcx,8), %rdx
	movq	%rdx, (%r12,%rcx,8)
	movq	8(%r15,%rcx,8), %rdx
	movq	%rdx, 8(%r12,%rcx,8)
	movq	16(%r15,%rcx,8), %rdx
	movq	%rdx, 16(%r12,%rcx,8)
	movq	24(%r15,%rcx,8), %rdx
	movq	%rdx, 24(%r12,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_pool_destroy               ## TAILCALL
LBB0_12:
	movq	16(%r13), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_compare_path_order,8,3         ## @compare_path_order
	.comm	_compare_references,8,3         ## @compare_references
	.no_dead_strip	_sort_reps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_reps
_sort_reps:                             ; @sort_reps
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _compare_path_order@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compare_path_order@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_svn_sort__array
	ldr	x0, [x22, #16]
Lloh3:
	adrp	x8, _compare_references@GOTPAGE
Lloh4:
	ldr	x8, [x8, _compare_references@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_svn_sort__array
	ldr	w0, [x22, #8]
	bl	_svn_pool_create
	mov	x19, x0
	ldr	x8, [x22]
	ldr	x23, [x8]
	lsl	w1, w23, #3
	bl	_apr_pcalloc
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x21, [x8, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_classify_nodes
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x23
	bl	_sort_reps_range
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	and	x8, x23, #0xffffffff
	cmp	x8, #8
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x21, x20
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	and	x10, x8, #0x7
	and	x9, x8, #0xfffffff8
	add	x11, x21, #32
	add	x12, x20, #32
	mov	x13, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	cbz	x10, LBB0_9
LBB0_7:
	lsl	x11, x9, #3
	add	x10, x21, x11
	add	x11, x20, x11
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x11], #8
	str	x9, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_svn_pool_destroy
LBB0_10:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_compare_path_order,8,3         ; @compare_path_order
	.comm	_compare_references,8,3         ; @compare_references
	.no_dead_strip	_sort_reps
.subsections_via_symbols
