	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmp_ref_sorting
_cmp_ref_sorting:                       ## @cmp_ref_sorting
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_used_atom@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rsi
	movq	(%rax,%rsi,8), %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_get_ref_atom_value
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-40(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_2:
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	callq	_get_ref_atom_value
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-40(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_4:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_strcmp@GOTPCREL(%rip), %rcx
	cmpq	$0, 16(%rbx)
	je	LBB0_9
LBB0_8:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	callq	_versioncmp
	jmp	LBB0_15
LBB0_5:
	movq	_strcasecmp@GOTPCREL(%rip), %rcx
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
LBB0_9:
	movq	_FIELD_STR@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdx
	cmpq	(%rax), %r12
	jne	LBB0_11
## %bb.10:
	movq	(%rdx), %rdi
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
LBB0_14:
	callq	*%rcx
	jmp	LBB0_15
LBB0_11:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rsi
	movl	$-1, %eax
	cmpq	%rsi, 8(%rdx)
	jl	LBB0_15
## %bb.12:
	movl	$1, %eax
	jne	LBB0_15
## %bb.13:
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	jmp	LBB0_14
LBB0_15:
	movl	%eax, %ecx
	negl	%ecx
	cmpq	$0, 8(%rbx)
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_used_atom,8,3                  ## @used_atom
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_FIELD_STR,8,3                  ## @FIELD_STR
	.no_dead_strip	_cmp_ref_sorting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmp_ref_sorting
_cmp_ref_sorting:                       ; @cmp_ref_sorting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _used_atom@GOTPAGE
Lloh1:
	ldr	x8, [x8, _used_atom@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x1, [x0]
	ldr	x22, [x8, x1, lsl #3]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x21
	bl	_get_ref_atom_value
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	x1, [x19]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_get_ref_atom_value
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_release
Lloh10:
	adrp	x8, _strcasecmp@GOTPAGE
Lloh11:
	ldr	x8, [x8, _strcasecmp@GOTPAGEOFF]
Lloh12:
	adrp	x9, _strcmp@GOTPAGE
Lloh13:
	ldr	x9, [x9, _strcmp@GOTPAGEOFF]
	ldp	x11, x10, [x19, #16]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	cbz	x11, LBB0_6
; %bb.5:
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	ldr	x8, [sp, #16]
	ldr	x1, [x8]
	bl	_versioncmp
	b	LBB0_14
LBB0_6:
Lloh14:
	adrp	x9, _FIELD_STR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FIELD_STR@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x9]
	ldr	x9, [sp, #24]
	cmp	x22, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	x0, [x9]
	ldr	x9, [sp, #16]
	ldr	x1, [x9]
LBB0_8:
	blr	x8
	b	LBB0_14
LBB0_9:
	ldr	x9, [x9, #8]
	ldr	x10, [sp, #16]
	ldr	x10, [x10, #8]
	cmp	x9, x10
	b.ge	LBB0_11
; %bb.10:
	mov	w0, #-1
	b	LBB0_14
LBB0_11:
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [x21]
	ldr	x1, [x20]
	b	LBB0_8
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cneg	w0, w0, ne
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_used_atom,8,3                  ; @used_atom
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_FIELD_STR,8,3                  ; @FIELD_STR
	.no_dead_strip	_cmp_ref_sorting
.subsections_via_symbols
