	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mangle_defs
_mangle_defs:                           ## @mangle_defs
	.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	_d_nfuncs@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	shll	$3, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_inform
	movq	_d_exports@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx)
	movq	8(%rax), %rax
	addq	$8, %rcx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_process_duplicates
	movq	%rbx, %rdi
	callq	_fill_ordinals
	movq	$0, (%r15)
	movl	(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.4:
	leaq	-1(%r9), %r8
	movq	%r9, %rdi
	xorl	%edx, %edx
	movq	%r9, %rcx
	andq	$3, %rdi
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rcx
	movl	%ecx, %esi
	movq	(%rbx,%rsi,8), %rax
	movq	%rdx, 8(%rax)
	movq	(%rbx,%rsi,8), %rdx
	movq	%rdx, (%r15)
	decq	%rdi
	jne	LBB0_5
LBB0_6:
	cmpq	$3, %r8
	jb	LBB0_9
## %bb.7:
	movl	$4294967294, %r8d               ## imm = 0xFFFFFFFE
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%r8), %eax
	incl	%eax
	movq	(%rbx,%rax,8), %rdi
	movq	%rdx, 8(%rdi)
	movq	(%rbx,%rax,8), %rax
	movq	%rax, (%r15)
	leal	(%rcx,%r8), %edx
	movq	(%rbx,%rdx,8), %rdi
	movq	%rax, 8(%rdi)
	movq	(%rbx,%rdx,8), %rax
	movq	%rax, (%r15)
	leaq	-3(%rcx), %rdi
	movl	%edi, %edx
	movq	(%rbx,%rdx,8), %rsi
	movq	%rax, 8(%rsi)
	movq	(%rbx,%rdx,8), %rax
	movq	%rax, (%r15)
	addq	$-4, %rcx
	movl	%ecx, %edx
	movq	(%rbx,%rdx,8), %rsi
	movq	%rax, 8(%rsi)
	movq	(%rbx,%rdx,8), %rdx
	movq	%rdx, (%r15)
	cmpq	$1, %rdi
	ja	LBB0_8
LBB0_9:
	leal	8(,%r9,8), %edi
	callq	_xmalloc
	movq	_d_exports_lexically@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.11:
	movq	%rcx, (%rax)
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%rsi,8)
	incq	%rsi
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
LBB0_10:
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_12:
	movl	$1, %esi
LBB0_15:
	movq	(%rbx), %rax
LBB0_16:
	movl	%esi, %ecx
	movq	$0, (%rax,%rcx,8)
	movq	(%rbx), %rdi
	movq	_nfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	callq	_qsort
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.17:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	movq	_show_allnames@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%edi, (%rbx)
	incl	%edi
	movl	(%r14), %eax
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdx
	movslq	%eax, %rbx
	cmpq	%rbx, %rdx
	jge	LBB0_22
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rbx
	cmpl	$0, 4(%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_21
	jmp	LBB0_20
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inform                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_d_nfuncs,4,2                   ## @d_nfuncs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing definitions"

	.comm	_d_exports,8,3                  ## @d_exports
	.comm	_d_exports_lexically,8,3        ## @d_exports_lexically
	.comm	_nfunc,4,2                      ## @nfunc
	.comm	_show_allnames,8,3              ## @show_allnames
L_.str.1:                               ## @.str.1
	.asciz	"Processed definitions"

	.no_dead_strip	_mangle_defs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mangle_defs
_mangle_defs:                           ; @mangle_defs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _d_nfuncs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _d_nfuncs@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w0, w8, #3
	bl	_xmalloc
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_inform
Lloh4:
	adrp	x21, _d_exports@GOTPAGE
Lloh5:
	ldr	x21, [x21, _d_exports@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x9, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x8, [x9], #8
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_process_duplicates
	mov	x0, x19
	bl	_fill_ordinals
	str	xzr, [x21]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x10, #0
	add	x9, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w9, #2
	lsl	x11, x11, #3
	ldr	x12, [x19, x11]
	str	x10, [x12, #8]
	ldr	x10, [x19, x11]
	str	x10, [x21]
	sub	x9, x9, #1
	cmp	x9, #1
	b.hi	LBB0_5
LBB0_6:
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	_xmalloc
Lloh6:
	adrp	x19, _d_exports_lexically@GOTPAGE
Lloh7:
	ldr	x19, [x19, _d_exports_lexically@GOTPAGEOFF]
	str	x0, [x19]
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.7:
	str	x8, [x0]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	w1, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	str	x8, [x9, x1, lsl #3]
	add	x1, x1, #1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_9
	b	LBB0_12
LBB0_10:
	mov	w1, #0
	b	LBB0_13
LBB0_11:
	mov	w1, #1
LBB0_12:
	ldr	x0, [x19]
LBB0_13:
	str	xzr, [x0, w1, uxtw #3]
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _nfunc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nfunc@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #8
	bl	_qsort
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.14:
	mov	x8, #0
	mov	w11, #0
	ldr	x10, [x19]
Lloh11:
	adrp	x12, _show_allnames@GOTPAGE
Lloh12:
	ldr	x12, [x12, _show_allnames@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, #1
	cmp	x8, w9, sxtw
	b.ge	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x8, lsl #3]
	ldr	w14, [x13, #4]
	ldr	x15, [x12]
	cmp	w14, #0
	ccmp	x15, #0, #0, ne
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w11, [x13]
	add	w11, w11, #1
	ldr	w9, [x20]
	b	LBB0_15
LBB0_18:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_inform
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_d_nfuncs,4,2                   ; @d_nfuncs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing definitions"

	.comm	_d_exports,8,3                  ; @d_exports
	.comm	_d_exports_lexically,8,3        ; @d_exports_lexically
	.comm	_nfunc,4,2                      ; @nfunc
	.comm	_show_allnames,8,3              ; @show_allnames
l_.str.1:                               ; @.str.1
	.asciz	"Processed definitions"

	.no_dead_strip	_mangle_defs
.subsections_via_symbols
