	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlinks_undupe
_mlinks_undupe:                         ## @mlinks_undupe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_FORM_CAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %r14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_FORM_CAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	16(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movb	$0, 1(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	20(%r12), %esi
	movq	%r15, %rdi
	movq	%rbx, %r13
	movl	%ebx, %edx
	callq	_strlcat
	movq	_mlinks@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ohash_qlookup
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ohash_find
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_warnings@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	16(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_say
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_use_all@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r12), %rax
	movq	%rax, (%r14)
	movq	%r12, %rdi
	callq	_mlink_free
	movq	(%r14), %r12
	testq	%r12, %r12
	movq	%r13, %rbx
	jne	LBB0_3
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %r12
	movq	%r13, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_FORM_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	addq	$8, %r12
	movq	%r12, %r14
	testq	%rax, %rax
	jne	LBB0_2
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_FORM_CAT,8,3                   ## @FORM_CAT
	.comm	_FORM_NONE,8,3                  ## @FORM_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cat"

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

	.comm	_mlinks,4,2                     ## @mlinks
	.comm	_warnings,8,3                   ## @warnings
L_.str.2:                               ## @.str.2
	.asciz	"Man source exists: %s"

	.comm	_use_all,8,3                    ## @use_all
	.no_dead_strip	_mlinks_undupe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlinks_undupe
_mlinks_undupe:                         ; @mlinks_undupe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x28, _FORM_CAT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _FORM_CAT@GOTPAGEOFF]
	ldr	x8, [x28]
	str	x8, [x0]
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_14
; %bb.1:
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
Lloh12:
	adrp	x23, _mlinks@GOTPAGE
Lloh13:
	ldr	x23, [x23, _mlinks@GOTPAGEOFF]
Lloh14:
	adrp	x24, l_.str.1@PAGE
Lloh15:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh16:
	adrp	x25, _use_all@GOTPAGE
Lloh17:
	ldr	x25, [x25, _use_all@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x26, x8
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w1, [x26, #16]
	mov	x0, x21
	mov	x2, x20
	bl	_strlcpy
	mov	x0, x21
	mov	x1, x22
	bl	_strstr
	mov	x27, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x27
	mov	x1, x24
	mov	w2, #3
	bl	_memcpy
	mov	x0, x21
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	strb	wzr, [x0, #1]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	w1, [x26, #20]
	mov	x0, x21
	mov	x2, x20
	bl	_strlcat
	mov	x0, x23
	mov	x1, x21
	bl	_ohash_qlookup
	mov	x1, x0
	mov	x0, x23
	bl	_ohash_find
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=2
Lloh18:
	adrp	x8, _warnings@GOTPAGE
Lloh19:
	ldr	x8, [x8, _warnings@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	w0, [x26, #16]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_say
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x25]
	cbnz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x26, #8]
	str	x8, [x19]
	mov	x0, x26
	bl	_mlink_free
	ldr	x26, [x19]
	cbnz	x26, LBB0_3
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x19]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x8, _FORM_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FORM_NONE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26, #8]!
	mov	x19, x26
	cbnz	x8, LBB0_2
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_FORM_CAT,8,3                   ; @FORM_CAT
	.comm	_FORM_NONE,8,3                  ; @FORM_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cat"

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

	.comm	_mlinks,4,2                     ; @mlinks
	.comm	_warnings,8,3                   ; @warnings
l_.str.2:                               ; @.str.2
	.asciz	"Man source exists: %s"

	.comm	_use_all,8,3                    ; @use_all
	.no_dead_strip	_mlinks_undupe
.subsections_via_symbols
