	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_cref                    ## -- Begin function output_cref
	.p2align	4, 0x90
_output_cref:                           ## @output_cref
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_fputs
	movq	%rbx, %rdi
	callq	_strlen
	movq	_FILECOL@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jge	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$32, %edi
	movq	%r14, %rsi
	callq	_putc
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_cref_initialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_cref_symcount@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	shll	$3, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, -32(%rbp)
	movq	_cref_fill_array@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_cref_table@GOTPCREL(%rip), %rdi
	leaq	-32(%rbp), %rdx
	callq	_cref_hash_traverse
	movq	-32(%rbp), %rax
	subq	%rbx, %rax
	sarq	$3, %rax
	movslq	(%r15), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	sete	%dil
	callq	_ASSERT
	movl	(%r15), %esi
	movq	_cref_sort_array@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_qsort
	movslq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:
	leaq	(%rbx,%rax,8), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_output_one_cref
	addq	$8, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nCross Reference Table\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"Symbol"

	.comm	_FILECOL,4,2                    ## @FILECOL
L_.str.3:                               ## @.str.3
	.asciz	"File\n"

	.comm	_cref_initialized,4,2           ## @cref_initialized
L_.str.4:                               ## @.str.4
	.asciz	"No symbols\n"

	.comm	_cref_symcount,4,2              ## @cref_symcount
	.comm	_cref_table,4,2                 ## @cref_table
	.comm	_cref_fill_array,4,2            ## @cref_fill_array
	.comm	_cref_sort_array,4,2            ## @cref_sort_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_output_cref                    ; -- Begin function output_cref
	.p2align	2
_output_cref:                           ; @output_cref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x1, x19
	bl	_fputs
	mov	x0, x20
	bl	_strlen
Lloh4:
	adrp	x21, _FILECOL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _FILECOL@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.1:
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #32
	mov	x1, x19
	bl	_putc
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
Lloh8:
	adrp	x8, _cref_initialized@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cref_initialized@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.4:
Lloh11:
	adrp	x21, _cref_symcount@GOTPAGE
Lloh12:
	ldr	x21, [x21, _cref_symcount@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w0, w8, #3
	bl	_xmalloc
	mov	x20, x0
	str	x0, [sp, #8]
Lloh13:
	adrp	x8, _cref_fill_array@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cref_fill_array@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x0, _cref_table@GOTPAGE
Lloh17:
	ldr	x0, [x0, _cref_table@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_cref_hash_traverse
	ldr	x8, [sp, #8]
	sub	x8, x8, x20
	ldrsw	x9, [x21]
	cmp	x9, x8, asr #3
	cset	w0, eq
	bl	_ASSERT
	ldr	w1, [x21]
Lloh18:
	adrp	x8, _cref_sort_array@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cref_sort_array@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_qsort
	ldrsw	x8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	add	x21, x20, x8, lsl #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20], #8
	mov	x0, x19
	bl	_output_one_cref
	cmp	x20, x21
	b.lo	LBB0_6
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	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
	add	sp, sp, #64
	b	_fprintf
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nCross Reference Table\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"Symbol"

	.comm	_FILECOL,4,2                    ; @FILECOL
l_.str.3:                               ; @.str.3
	.asciz	"File\n"

	.comm	_cref_initialized,4,2           ; @cref_initialized
l_.str.4:                               ; @.str.4
	.asciz	"No symbols\n"

	.comm	_cref_symcount,4,2              ; @cref_symcount
	.comm	_cref_table,4,2                 ; @cref_table
	.comm	_cref_fill_array,4,2            ; @cref_fill_array
	.comm	_cref_sort_array,4,2            ; @cref_sort_array
.subsections_via_symbols
