	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_prereleases
_swap_prereleases:                      ## @swap_prereleases
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, -72(%rbp)
	movl	%edx, -68(%rbp)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, -64(%rbp)
	movl	$-1, -56(%rbp)
	movl	%edx, -52(%rbp)
	movq	%rax, -48(%rbp)
	movq	_prereleases@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %r14
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	%r12d, %ebx
	subl	%eax, %ebx
	movl	$0, %eax
	cmovlel	%eax, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	leaq	-72(%rbp), %r9
	callq	_find_better_matching_suffix
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	leaq	-56(%rbp), %r9
	callq	_find_better_matching_suffix
	movq	_prereleases@GOTPCREL(%rip), %rax
	incq	%r13
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_3
## %bb.4:
	movl	-60(%rbp), %ecx
	movl	-44(%rbp), %edx
	movl	%ecx, %esi
	andl	%edx, %esi
	xorl	%eax, %eax
	cmpl	$-1, %esi
	je	LBB0_7
## %bb.5:
	movl	%ecx, %esi
	subl	%edx, %esi
	je	LBB0_7
## %bb.6:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%eax, %eax
	decl	%eax
	orl	%ecx, %edx
	cmovnsl	%esi, %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_prereleases,8,3                ## @prereleases
	.no_dead_strip	_swap_prereleases
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_prereleases
_swap_prereleases:                      ; @swap_prereleases
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w8, #-1
	stp	w8, w2, [sp, #16]
	movi	d0, #0x000000ffffffff
	str	d0, [sp, #24]
	stp	w8, w2, [sp]
	str	d0, [sp, #8]
Lloh0:
	adrp	x27, _prereleases@GOTPAGE
Lloh1:
	ldr	x27, [x27, _prereleases@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x24, [x8, x23, lsl #3]
	mov	x0, x24
	bl	_strlen
	mov	x25, x0
	subs	w8, w20, w0
	csel	w26, w8, wzr, gt
	add	x5, sp, #16
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x23
	bl	_find_better_matching_suffix
	mov	x5, sp
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x23
	bl	_find_better_matching_suffix
	add	x23, x23, #1
	ldr	x8, [x27]
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.lt	LBB0_2
; %bb.3:
	ldr	w8, [sp, #28]
	ldr	w9, [sp, #12]
	and	w10, w8, w9
	cmn	w10, #1
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	orr	w10, w8, w9
	sub	w9, w8, w9
	cmp	w8, #0
	mov	w8, #-1
	cneg	w8, w8, lt
	cmp	w10, #0
	csel	w8, w9, w8, ge
	str	w8, [x19]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_prereleases,8,3                ; @prereleases
	.no_dead_strip	_swap_prereleases
.subsections_via_symbols
