	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resort_revlist                 ## -- Begin function resort_revlist
	.p2align	4, 0x90
_resort_revlist:                        ## @resort_revlist
	.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	_revlist_metafile_mode@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$1, (%rax)
	sbbl	%r14d, %r14d
	movq	_tot_revlist_metafiles@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_10
## %bb.1:
	movq	_revlist_iterator@GOTPCREL(%rip), %r13
	movq	_CUR_REVLIST_OBJECT_ID@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	_tot_revlist_metafiles@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_init_revlist_iterator
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r13), %edx
	movl	8(%r13), %edi
	decl	%edx
	movq	%r15, %rsi
	callq	_sort_revlist_part
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	cmpl	$0, 12(%r13)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r12), %ebx
	movq	(%r13), %r15
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%eax, %eax
	callq	_advance_revlist_iterator
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_object_id_equal
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$0, 12(%r13)
	je	LBB0_5
	jmp	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_revlist_metafile_mode,8,3      ## @revlist_metafile_mode
	.comm	_tot_revlist_metafiles,4,2      ## @tot_revlist_metafiles
	.comm	_revlist_iterator,16,3          ## @revlist_iterator
	.comm	_CUR_REVLIST_OBJECT_ID,4,2      ## @CUR_REVLIST_OBJECT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resort_revlist                 ; -- Begin function resort_revlist
	.p2align	2
_resort_revlist:                        ; @resort_revlist
	.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
Lloh0:
	adrp	x8, _revlist_metafile_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _revlist_metafile_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	csetm	w19, eq
Lloh3:
	adrp	x22, _tot_revlist_metafiles@GOTPAGE
Lloh4:
	ldr	x22, [x22, _tot_revlist_metafiles@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w19
	b.le	LBB0_9
; %bb.1:
Lloh5:
	adrp	x23, _revlist_iterator@GOTPAGE
Lloh6:
	ldr	x23, [x23, _revlist_iterator@GOTPAGEOFF]
Lloh7:
	adrp	x24, _CUR_REVLIST_OBJECT_ID@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CUR_REVLIST_OBJECT_ID@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	mov	x0, x19
	mov	w1, #0
	bl	_init_revlist_iterator
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x23, #8]
	ldr	w8, [x23]
	sub	w2, w8, #1
	mov	x1, x20
	bl	_sort_revlist_part
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	w8, [x23, #12]
	cbnz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w21, [x24]
	ldr	x20, [x23]
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	bl	_advance_revlist_iterator
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	ldr	w1, [x24]
	mov	x0, x21
	bl	_object_id_equal
	ldr	w8, [x23, #12]
	cmp	w0, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_7
	b	LBB0_4
LBB0_9:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_revlist_metafile_mode,8,3      ; @revlist_metafile_mode
	.comm	_tot_revlist_metafiles,4,2      ; @tot_revlist_metafiles
	.comm	_revlist_iterator,16,3          ; @revlist_iterator
	.comm	_CUR_REVLIST_OBJECT_ID,4,2      ; @CUR_REVLIST_OBJECT_ID
.subsections_via_symbols
