	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_xr
_check_xr:                              ## @check_xr
	.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
	cmpq	$0, _check_xr.paths(%rip)
	jne	LBB0_2
## %bb.1:
	leaq	_check_xr.paths(%rip), %rdi
	callq	_manpath_base
LBB0_2:
	xorl	%eax, %eax
	callq	_mandoc_xr_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %rbx
	leaq	_check_xr.paths(%rip), %r14
	leaq	-72(%rbp), %r15
	leaq	-80(%rbp), %r12
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_mandoc_msg
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, (%rbx)
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, -48(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_ARG_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	$1, -72(%rbp)
	leaq	12(%rbx), %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_mansearch
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_fs_search
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %eax
	movq	16(%rbx), %rdx
	incq	%rdx
	movq	_MANDOCERR_XR_BAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%rbx), %r8d
	movl	8(%rbx), %r9d
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_10
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_check_xr.paths,8,3 ## @check_xr.paths
	.comm	_ARG_NAME,4,2                   ## @ARG_NAME
	.comm	_MANDOCERR_XR_BAD,4,2           ## @MANDOCERR_XR_BAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Xr %s %s"

L_.str.1:                               ## @.str.1
	.asciz	"Xr %s %s (%d times)"

	.no_dead_strip	_check_xr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_xr
_check_xr:                              ; @check_xr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, _check_xr.paths@PAGE
Lloh1:
	ldr	x8, [x8, _check_xr.paths@PAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_mandoc_xr_get
	cbnz	x0, LBB0_3
	b	LBB0_12
LBB0_2:
Lloh2:
	adrp	x0, _check_xr.paths@PAGE
Lloh3:
	add	x0, x0, _check_xr.paths@PAGEOFF
	bl	_manpath_base
	bl	_mandoc_xr_get
	cbz	x0, LBB0_12
LBB0_3:
	mov	x19, x0
Lloh4:
	adrp	x24, _ARG_NAME@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ARG_NAME@GOTPAGEOFF]
	mov	w25, #1
Lloh6:
	adrp	x20, _check_xr.paths@PAGE
Lloh7:
	add	x20, x20, _check_xr.paths@PAGEOFF
Lloh8:
	adrp	x26, _MANDOCERR_XR_BAD@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MANDOCERR_XR_BAD@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x8, [sp]
	mov	x3, x22
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_mandoc_msg
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x19, [x19, #24]
	cbz	x19, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [sp, #40]
	ldr	w8, [x19, #8]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	ldr	w8, [x24]
	stp	w25, w8, [sp, #16]
	add	x23, x19, #12
	add	x0, sp, #16
	add	x5, sp, #8
	mov	x1, x20
	mov	w2, #1
	mov	x3, x23
	mov	x4, #0
	bl	_mansearch
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	add	x5, sp, #8
	mov	x1, x20
	mov	w2, #1
	mov	x3, x23
	mov	x4, #0
	bl	_fs_search
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	ldp	w1, w8, [x19]
	ldr	x9, [x19, #16]
	add	x2, x9, #1
	ldp	w5, w4, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x3, x21
	b	LBB0_5
LBB0_12:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_check_xr.paths,8,3 ; @check_xr.paths
	.comm	_ARG_NAME,4,2                   ; @ARG_NAME
	.comm	_MANDOCERR_XR_BAD,4,2           ; @MANDOCERR_XR_BAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Xr %s %s"

l_.str.1:                               ; @.str.1
	.asciz	"Xr %s %s (%d times)"

	.no_dead_strip	_check_xr
.subsections_via_symbols
