	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_scanopts
	xorl	%eax, %eax
	callq	_defaults
	movq	_mandirs@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_opt_m@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_2:
	movq	_bindirs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_opt_b@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_4:
	movq	_sourcedirs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_opt_s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_opt_s@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
LBB0_7:
	movq	_opt_m@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_opt_b@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rcx, %rdx
	addq	%rax, %rdx
	jne	LBB0_9
## %bb.8:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	movq	_opt_m@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	movq	(%rbx), %rdi
	callq	_colonify
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_setenv
	movq	_MANWHEREISMATCH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-108(%rbp), %rdi
	callq	_regcomp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_BUFSIZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	leaq	-108(%rbp), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_regerror
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movq	_query@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_130
## %bb.13:
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
LBB0_126:                               ##   in Loop: Header=BB0_14 Depth=1
	testq	%rbx, %rbx
	je	LBB0_129
	.p2align	4, 0x90
LBB0_127:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fputs
LBB0_128:                               ##   in Loop: Header=BB0_14 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_129:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	_query@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%rdx)
	movq	8(%rax), %r14
	testq	%r14, %r14
	je	LBB0_130
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_53 Depth 2
                                        ##     Child Loop BB0_72 Depth 2
                                        ##     Child Loop BB0_90 Depth 2
                                        ##       Child Loop BB0_98 Depth 3
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$3, %eax
	jl	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leaq	(%rbx,%rcx,2), %rbx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$3, %eax
	jb	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%eax, %r14
	leaq	(%rbx,%r14), %rdi
	addq	$-2, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	$0, -2(%r14,%rbx)
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	$3, %eax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	jb	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %r14d
	movslq	%eax, %r13
	leaq	(%rbx,%r13), %r15
	addq	$-2, %r15
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	movq	$-2, %r12
	testq	%rax, %rax
	je	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$4, %r14d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jb	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rbx,%r13), %r15
	leaq	-3(%r15), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$5, %r14d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jb	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$-4, %r15
	movq	%r15, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	$-4, %r12
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	$-3, %r12
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	%r13, %r12
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movb	$0, (%rbx,%r12)
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_opt_b@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_NO_BIN_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_bindirs@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leal	2(%rax), %r12d
	addq	$8, %r15
	xorl	%eax, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_34
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, -136(%rbp)                ## 8-byte Spill
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=2
	notl	%r13d
	andl	%r13d, %r14d
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_43
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	%rbx, %rdi
	callq	_free
	movq	(%r15), %rdi
	addq	$8, %r15
	testq	%rdi, %rdi
	je	LBB0_45
LBB0_34:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%rax, %rbx
	movq	-8(%r15), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcat
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_strcat
	movq	%rbx, %rdi
	leaq	-144(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=2
	movl	-144(%rbp), %eax
	movq	_S_IFMT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_S_IFREG@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	_S_IXGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_S_IXUSR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_S_IXOTH@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	_NO_BIN_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%rdi, %r12
	callq	_strlen
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	addq	$2, %rsi
	movq	%r12, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.41:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%rax, %rdi
	leaq	L_.str.11(%rip), %rsi
	movq	%rax, %r12
	callq	_strcat
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
LBB0_45:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_m@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.47:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_NO_MAN_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leal	6(%rax), %edi
	callq	_malloc
	testq	%rax, %rax
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_134
## %bb.48:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %rcx
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_MANWHEREISALLCMD@GOTPCREL(%rip), %rax
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_MANWHEREISCMD@GOTPCREL(%rip), %rax
LBB0_50:                                ##   in Loop: Header=BB0_14 Depth=1
	orl	%ebx, %r14d
	movq	(%rax), %rsi
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_sprintf
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_popen
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_65:                                ##   in Loop: Header=BB0_53 Depth=2
	notl	%r12d
	andl	%r12d, %r14d
	movq	%rbx, %rdi
	callq	_free
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_66
LBB0_53:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	%r15, %rdi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_66
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	_NO_MAN_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_53 Depth=2
	movb	$0, (%rax)
LBB0_56:                                ##   in Loop: Header=BB0_53 Depth=2
	leaq	-108(%rbp), %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	leaq	-80(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	testq	%rax, %rax
	je	LBB0_57
LBB0_60:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_61
	jmp	LBB0_134
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-64(%rbp), %r13
	subq	-56(%rbp), %r13
	jle	LBB0_60
## %bb.58:                              ##   in Loop: Header=BB0_53 Depth=2
	leal	1(%r13), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.59:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	%rax, %rbx
	movq	-56(%rbp), %rsi
	addq	%r15, %rsi
	movq	%rax, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	movb	$0, (%rbx,%r13)
LBB0_61:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_62
## %bb.63:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	%rdi, %r13
	callq	_strlen
	movslq	%eax, %r15
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	leaq	(%r15,%rax), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.64:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	%rax, %rdi
	leaq	L_.str.11(%rip), %rsi
	movq	%rax, %r15
	callq	_strcat
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_pclose
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	jmp	LBB0_67
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_67
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_67:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_s@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_NO_SRC_FOUND@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_sourcedirs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_70
## %bb.71:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leal	2(%rax), %r13d
	addq	$8, %r12
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_72
	.p2align	4, 0x90
LBB0_81:                                ##   in Loop: Header=BB0_72 Depth=2
	movq	%rbx, %rdi
	callq	_free
	movq	(%r12), %rdi
	addq	$8, %r12
	testq	%rdi, %rdi
	je	LBB0_82
LBB0_72:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.73:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	%rax, %rbx
	movq	-8(%r12), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcat
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_strcat
	movq	%rbx, %rdi
	leaq	-144(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_81
## %bb.74:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-144(%rbp), %eax
	movq	_S_IFDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_81
## %bb.75:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	_NO_SRC_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_76
## %bb.77:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.78:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcat
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	jmp	LBB0_79
LBB0_76:                                ##   in Loop: Header=BB0_72 Depth=2
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_79:                                ##   in Loop: Header=BB0_72 Depth=2
	notl	%r15d
	andl	%r15d, %r14d
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-168(%rbp), %r13                ## 8-byte Reload
	je	LBB0_135
## %bb.80:                              ##   in Loop: Header=BB0_72 Depth=2
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_81
	.p2align	4, 0x90
LBB0_68:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_113
	.p2align	4, 0x90
LBB0_70:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_82
LBB0_135:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_free
	movq	-104(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_82:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_x@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_84
## %bb.83:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_113
	.p2align	4, 0x90
LBB0_84:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_86
## %bb.85:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_113
LBB0_86:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	addl	$6, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.87:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r12
	movq	_LOCATECMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_sprintf
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_popen
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_113
## %bb.88:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%rbx, %rbx
	je	LBB0_90
## %bb.89:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_112
	.p2align	4, 0x90
LBB0_90:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_98 Depth 3
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	movq	%r15, %rdi
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_112
## %bb.91:                              ##   in Loop: Header=BB0_90 Depth=2
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_93
## %bb.92:                              ##   in Loop: Header=BB0_90 Depth=2
	movb	$0, (%rax)
LBB0_93:                                ##   in Loop: Header=BB0_90 Depth=2
	movq	_opt_a@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rbx
	sete	%dl
	je	LBB0_95
## %bb.94:                              ##   in Loop: Header=BB0_90 Depth=2
	testq	%rax, %rax
	je	LBB0_109
LBB0_95:                                ##   in Loop: Header=BB0_90 Depth=2
	movq	_sourcedirs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_110
## %bb.96:                              ##   in Loop: Header=BB0_90 Depth=2
	addq	$8, %r12
	jmp	LBB0_98
	.p2align	4, 0x90
LBB0_97:                                ##   in Loop: Header=BB0_98 Depth=3
	movq	(%r12), %rdi
	addq	$8, %r12
	testq	%rdi, %rdi
	je	LBB0_110
LBB0_98:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_90 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movb	%dl, -88(%rbp)                  ## 1-byte Spill
	movq	%rbx, %r15
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	9(%rax), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.99:                              ##   in Loop: Header=BB0_98 Depth=3
	movq	%rax, %rbx
	movq	%rax, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcpy
	movq	-8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	%rbx, %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcat
	movq	_REG_NOSUB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REG_EXTENDED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	-156(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_regcomp
	testl	%eax, %eax
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_101
## %bb.100:                             ##   in Loop: Header=BB0_98 Depth=3
	movq	_BUFSIZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movl	%eax, %edi
	leaq	-108(%rbp), %rsi
	movq	%r13, %rdx
	callq	_regerror
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_101:                               ##   in Loop: Header=BB0_98 Depth=3
	movq	%rbx, %rdi
	callq	_free
	leaq	-156(%rbp), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_regexec
	testq	%rax, %rax
	je	LBB0_103
## %bb.102:                             ##   in Loop: Header=BB0_98 Depth=3
	movq	%r15, %rbx
	jmp	LBB0_107
	.p2align	4, 0x90
LBB0_103:                               ##   in Loop: Header=BB0_98 Depth=3
	movq	_NO_SRC_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	testb	$1, -88(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_105
## %bb.104:                             ##   in Loop: Header=BB0_98 Depth=3
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_strdup
	movq	%rax, %rbx
	jmp	LBB0_107
LBB0_105:                               ##   in Loop: Header=BB0_98 Depth=3
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %r13
	movslq	%eax, %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	cltq
	leaq	(%rbx,%rax), %rsi
	addq	$2, %rsi
	movq	%r13, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_134
## %bb.106:                             ##   in Loop: Header=BB0_98 Depth=3
	movq	%rax, %rbx
	movq	%rax, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcat
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcat
	.p2align	4, 0x90
LBB0_107:                               ##   in Loop: Header=BB0_98 Depth=3
	leaq	-156(%rbp), %rdi
	callq	_regfree
	movq	_opt_a@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rbx, %rbx
	sete	%dl
	je	LBB0_97
## %bb.108:                             ##   in Loop: Header=BB0_98 Depth=3
	testq	%rax, %rax
	jne	LBB0_97
LBB0_109:                               ##   in Loop: Header=BB0_90 Depth=2
	xorl	%eax, %eax
LBB0_110:                               ##   in Loop: Header=BB0_90 Depth=2
	testq	%rbx, %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_90
## %bb.111:                             ##   in Loop: Header=BB0_90 Depth=2
	testq	%rax, %rax
	jne	LBB0_90
LBB0_112:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_pclose
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	.p2align	4, 0x90
LBB0_113:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	_opt_u@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_115
## %bb.114:                             ##   in Loop: Header=BB0_14 Depth=1
	testl	%r14d, %r14d
	je	LBB0_129
LBB0_115:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %r14
	movq	_opt_q@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_116
## %bb.124:                             ##   in Loop: Header=BB0_14 Depth=1
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_118
## %bb.125:                             ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	movq	%r14, %rbx
	jne	LBB0_121
	jmp	LBB0_126
LBB0_116:                               ##   in Loop: Header=BB0_14 Depth=1
	leaq	L_.str.15(%rip), %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_printf
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_119
## %bb.117:                             ##   in Loop: Header=BB0_14 Depth=1
	movl	$32, %edi
	callq	_putchar
LBB0_118:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fputs
LBB0_119:                               ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	movq	%r14, %rbx
	je	LBB0_122
## %bb.120:                             ##   in Loop: Header=BB0_14 Depth=1
	movl	$32, %edi
	callq	_putchar
LBB0_121:                               ##   in Loop: Header=BB0_14 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_fputs
LBB0_122:                               ##   in Loop: Header=BB0_14 Depth=1
	testq	%rbx, %rbx
	je	LBB0_128
## %bb.123:                             ##   in Loop: Header=BB0_14 Depth=1
	movl	$32, %edi
	callq	_putchar
	jmp	LBB0_127
LBB0_43:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_45
LBB0_130:
	movq	_opt_m@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_132
## %bb.131:
	leaq	-108(%rbp), %rdi
	callq	_regfree
LBB0_132:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_136
## %bb.133:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_134:
	xorl	%eax, %eax
	callq	_abort
LBB0_136:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_mandirs,8,3                    ## @mandirs
	.comm	_opt_m,8,3                      ## @opt_m
	.comm	_bindirs,8,3                    ## @bindirs
	.comm	_opt_b,8,3                      ## @opt_b
	.comm	_sourcedirs,8,3                 ## @sourcedirs
	.comm	_opt_s,8,3                      ## @opt_s
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.1:                               ## @.str.1
	.asciz	"no directories to search"

L_.str.2:                               ## @.str.2
	.asciz	"MANPATH"

	.comm	_MANWHEREISMATCH,8,3            ## @MANWHEREISMATCH
	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.3:                               ## @.str.3
	.asciz	"regcomp(%s) failed: %s"

	.comm	_query,8,3                      ## @query
L_.str.4:                               ## @.str.4
	.asciz	"s."

L_.str.5:                               ## @.str.5
	.asciz	",v"

L_.str.6:                               ## @.str.6
	.asciz	".z"

L_.str.7:                               ## @.str.7
	.asciz	".Z"

L_.str.8:                               ## @.str.8
	.asciz	".gz"

L_.str.9:                               ## @.str.9
	.asciz	".bz2"

	.comm	_NO_BIN_FOUND,4,2               ## @NO_BIN_FOUND
L_.str.10:                              ## @.str.10
	.asciz	"/"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
L_.str.11:                              ## @.str.11
	.asciz	" "

	.comm	_opt_a,8,3                      ## @opt_a
	.comm	_NO_MAN_FOUND,4,2               ## @NO_MAN_FOUND
	.comm	_MANWHEREISALLCMD,8,3           ## @MANWHEREISALLCMD
	.comm	_MANWHEREISCMD,8,3              ## @MANWHEREISCMD
L_.str.12:                              ## @.str.12
	.asciz	"r"

	.comm	_NO_SRC_FOUND,4,2               ## @NO_SRC_FOUND
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_opt_x,8,3                      ## @opt_x
	.comm	_LOCATECMD,8,3                  ## @LOCATECMD
L_.str.13:                              ## @.str.13
	.asciz	"^"

L_.str.14:                              ## @.str.14
	.asciz	"/[^/]+/"

	.comm	_REG_NOSUB,4,2                  ## @REG_NOSUB
	.comm	_opt_u,8,3                      ## @opt_u
	.comm	_opt_q,4,2                      ## @opt_q
L_.str.15:                              ## @.str.15
	.asciz	"%s:"

	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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, #80
	mov	x20, x1
	mov	x21, 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, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	mov	x0, x21
	mov	x1, x20
	bl	_scanopts
	bl	_defaults
Lloh13:
	adrp	x20, _mandirs@GOTPAGE
Lloh14:
	ldr	x20, [x20, _mandirs@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _opt_m@GOTPAGE
Lloh16:
	ldr	x8, [x8, _opt_m@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
LBB0_2:
Lloh18:
	adrp	x8, _bindirs@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bindirs@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _opt_b@GOTPAGE
Lloh22:
	ldr	x8, [x8, _opt_b@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
LBB0_4:
Lloh24:
	adrp	x8, _sourcedirs@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sourcedirs@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x10, _opt_s@GOTPAGE
Lloh28:
	ldr	x10, [x10, _opt_s@GOTPAGEOFF]
Lloh29:
	adrp	x21, _BUFSIZ@GOTPAGE
Lloh30:
	ldr	x21, [x21, _BUFSIZ@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [x10]
	b	LBB0_7
LBB0_6:
	mov	x9, #0
	str	xzr, [x10]
LBB0_7:
Lloh31:
	adrp	x8, _opt_m@GOTPAGE
Lloh32:
	ldr	x8, [x8, _opt_m@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x10, _opt_b@GOTPAGE
Lloh35:
	ldr	x10, [x10, _opt_b@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	add	x10, x10, x8
	cmn	x10, x9
	b.ne	LBB0_9
; %bb.8:
Lloh37:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
Lloh42:
	adrp	x8, _opt_m@GOTPAGE
Lloh43:
	ldr	x8, [x8, _opt_m@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
LBB0_9:
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x0, [x20]
	bl	_colonify
	mov	x1, x0
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_setenv
Lloh47:
	adrp	x20, _MANWHEREISMATCH@GOTPAGE
Lloh48:
	ldr	x20, [x20, _MANWHEREISMATCH@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh49:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	sub	x0, x29, #132
	bl	_regcomp
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w8, [x21]
	sub	w3, w8, #1
	sub	x1, x29, #132
	mov	x2, x19
	bl	_regerror
Lloh52:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	ldr	x8, [x20]
	stp	x8, x19, [sp, #-16]!
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	add	sp, sp, #16
LBB0_12:
Lloh57:
	adrp	x8, _query@GOTPAGE
Lloh58:
	ldr	x8, [x8, _query@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ldr	x20, [x8]
	cbz	x20, LBB0_129
; %bb.13:
Lloh60:
	adrp	x28, _S_IFREG@GOTPAGE
Lloh61:
	ldr	x28, [x28, _S_IFREG@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_18 Depth=1
	cbz	x26, LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh62:
	adrp	x8, _stdout@GOTPAGE
Lloh63:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_fputs
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh65:
	adrp	x9, _query@GOTPAGE
Lloh66:
	ldr	x9, [x9, _query@GOTPAGEOFF]
	ldr	x8, [x9]
	ldr	x20, [x8, #8]!
	str	x8, [x9]
	cbz	x20, LBB0_129
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_55 Depth 2
                                        ;     Child Loop BB0_74 Depth 2
                                        ;     Child Loop BB0_94 Depth 2
                                        ;       Child Loop BB0_102 Depth 3
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x20, x20, x0, eq
	mov	x0, x20
	bl	_strlen
	cmp	w0, #3
	b.lt	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cmp	x0, #0
	cset	w8, eq
	add	x20, x20, w8, uxtw #1
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #3
	b.lo	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	sxtw	x21, w0
	add	x8, x20, x21
	sub	x0, x8, #2
Lloh69:
	adrp	x1, l_.str.5@PAGE
Lloh70:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x21, x20
	sturb	wzr, [x8, #-2]
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #3
	b.lo	LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	sxtw	x22, w0
	add	x23, x20, x22
	sub	x21, x23, #2
	mov	x0, x21
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x21
Lloh73:
	adrp	x1, l_.str.7@PAGE
Lloh74:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_31
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w22, #4
	b.lo	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x23, #3
Lloh75:
	adrp	x1, l_.str.8@PAGE
Lloh76:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_128
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w22, #5
	b.lo	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x0, x23, #4
Lloh77:
	adrp	x1, l_.str.9@PAGE
Lloh78:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x8, #-4
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x8, #-2
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x8, x8, x22
	strb	wzr, [x20, x8]
LBB0_33:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	bl	_strlen
	stur	w0, [x29, #-152]                ; 4-byte Folded Spill
Lloh79:
	adrp	x8, _opt_b@GOTPAGE
Lloh80:
	ldr	x8, [x8, _opt_b@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
Lloh82:
	adrp	x21, _BUFSIZ@GOTPAGE
Lloh83:
	ldr	x21, [x21, _BUFSIZ@GOTPAGEOFF]
	cbz	x8, LBB0_47
; %bb.34:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh84:
	adrp	x8, _NO_BIN_FOUND@GOTPAGE
Lloh85:
	ldr	x8, [x8, _NO_BIN_FOUND@GOTPAGEOFF]
Lloh86:
	ldr	w27, [x8]
Lloh87:
	adrp	x8, _bindirs@GOTPAGE
Lloh88:
	ldr	x8, [x8, _bindirs@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	ldr	x0, [x8]
Lloh90:
	adrp	x23, l_.str.10@PAGE
Lloh91:
	add	x23, x23, l_.str.10@PAGEOFF
	mov	x26, #0
	cbz	x0, LBB0_49
; %bb.35:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	w9, [x29, #-152]                ; 4-byte Folded Reload
	add	w24, w9, #2
	add	x25, x8, #8
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	x0, x22
	bl	_free
	ldr	x0, [x25], #8
	cbz	x0, LBB0_49
LBB0_37:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_strlen
	add	w0, w24, w0
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	x22, x0
	ldur	x1, [x25, #-8]
	bl	_strcpy
	mov	x0, x22
	mov	x1, x23
	bl	_strcat
	mov	x0, x22
	mov	x1, x20
	bl	_strcat
	sub	x1, x29, #128
	mov	x0, x22
	bl	_stat
	cbnz	x0, LBB0_36
; %bb.39:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	w8, [x29, #-128]
Lloh92:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh93:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	and	w9, w9, w8
	ldr	w10, [x28]
	cmp	w9, w10
	b.ne	LBB0_36
; %bb.40:                               ;   in Loop: Header=BB0_37 Depth=2
Lloh95:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh96:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
Lloh98:
	adrp	x10, _S_IXGRP@GOTPAGE
Lloh99:
	ldr	x10, [x10, _S_IXGRP@GOTPAGEOFF]
Lloh100:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh101:
	adrp	x10, _S_IXOTH@GOTPAGE
Lloh102:
	ldr	x10, [x10, _S_IXOTH@GOTPAGEOFF]
Lloh103:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_36
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=2
Lloh104:
	adrp	x8, _NO_BIN_FOUND@GOTPAGE
Lloh105:
	ldr	x8, [x8, _NO_BIN_FOUND@GOTPAGEOFF]
Lloh106:
	ldr	w23, [x8]
	cbz	x26, LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	x0, x26
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	stur	x26, [x29, #-144]               ; 8-byte Folded Spill
	sxtw	x26, w0
	mov	x0, x22
	bl	_strlen
	add	x8, x26, w0, sxtw
	add	x1, x8, #2
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_realloc
	cbz	x0, LBB0_133
; %bb.43:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	x26, x0
Lloh107:
	adrp	x1, l_.str.11@PAGE
Lloh108:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcat
	mov	x0, x26
	mov	x1, x22
	bl	_strcat
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	x0, x22
	bl	_strdup
	mov	x26, x0
LBB0_45:                                ;   in Loop: Header=BB0_37 Depth=2
	bic	w27, w27, w23
Lloh109:
	adrp	x8, _opt_a@GOTPAGE
Lloh110:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh111:
	ldr	x8, [x8]
	cbz	x8, LBB0_127
; %bb.46:                               ;   in Loop: Header=BB0_37 Depth=2
Lloh112:
	adrp	x23, l_.str.10@PAGE
Lloh113:
	add	x23, x23, l_.str.10@PAGEOFF
	b	LBB0_36
LBB0_47:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	mov	w27, #0
LBB0_48:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh114:
	adrp	x23, l_.str.10@PAGE
Lloh115:
	add	x23, x23, l_.str.10@PAGEOFF
LBB0_49:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh116:
	adrp	x8, _opt_m@GOTPAGE
Lloh117:
	ldr	x8, [x8, _opt_m@GOTPAGEOFF]
Lloh118:
	ldr	x8, [x8]
	stur	x26, [x29, #-144]               ; 8-byte Folded Spill
	cbz	x8, LBB0_67
; %bb.50:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh119:
	adrp	x8, _NO_MAN_FOUND@GOTPAGE
Lloh120:
	ldr	x8, [x8, _NO_MAN_FOUND@GOTPAGEOFF]
Lloh121:
	ldr	w22, [x8]
	ldur	w8, [x29, #-152]                ; 4-byte Folded Reload
	add	w0, w8, #6
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.51:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, x0
	orr	w27, w22, w27
Lloh122:
	adrp	x8, _opt_a@GOTPAGE
Lloh123:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh124:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh125:
	adrp	x8, _MANWHEREISCMD@GOTPAGE
Lloh126:
	ldr	x8, [x8, _MANWHEREISCMD@GOTPAGEOFF]
Lloh127:
	adrp	x9, _MANWHEREISALLCMD@GOTPAGE
Lloh128:
	ldr	x9, [x9, _MANWHEREISALLCMD@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x1, [x8]
	mov	x2, x20
	bl	_sprintf
	mov	x0, x26
Lloh129:
	adrp	x1, l_.str.12@PAGE
Lloh130:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_popen
	cbz	x0, LBB0_68
; %bb.52:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x28, x0
	mov	x22, #0
	b	LBB0_55
LBB0_53:                                ;   in Loop: Header=BB0_55 Depth=2
	mov	x0, x25
	bl	_strdup
	mov	x22, x0
LBB0_54:                                ;   in Loop: Header=BB0_55 Depth=2
	bic	w27, w27, w23
	mov	x0, x25
	bl	_free
Lloh131:
	adrp	x8, _opt_a@GOTPAGE
Lloh132:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh133:
	ldr	x8, [x8]
Lloh134:
	adrp	x23, l_.str.10@PAGE
Lloh135:
	add	x23, x23, l_.str.10@PAGEOFF
	cbz	x8, LBB0_66
LBB0_55:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x19
	mov	x2, x28
	bl	_fgets
	cbz	x0, LBB0_66
; %bb.56:                               ;   in Loop: Header=BB0_55 Depth=2
Lloh136:
	adrp	x8, _NO_MAN_FOUND@GOTPAGE
Lloh137:
	ldr	x8, [x8, _NO_MAN_FOUND@GOTPAGEOFF]
Lloh138:
	ldr	w23, [x8]
	mov	x0, x19
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_58
; %bb.57:                               ;   in Loop: Header=BB0_55 Depth=2
	strb	wzr, [x0]
LBB0_58:                                ;   in Loop: Header=BB0_55 Depth=2
	sub	x0, x29, #132
	sub	x3, x29, #120
	mov	x1, x19
	mov	w2, #2
	mov	w4, #0
	bl	_regexec
	cbz	x0, LBB0_63
LBB0_59:                                ;   in Loop: Header=BB0_55 Depth=2
	mov	x0, x19
	bl	_strdup
	mov	x25, x0
	cbz	x0, LBB0_133
; %bb.60:                               ;   in Loop: Header=BB0_55 Depth=2
	cbz	x22, LBB0_53
LBB0_61:                                ;   in Loop: Header=BB0_55 Depth=2
	mov	x0, x22
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	mov	x0, x25
	bl	_strlen
	add	x8, x24, w0, sxtw
	add	x1, x8, #2
	mov	x0, x22
	bl	_realloc
	cbz	x0, LBB0_133
; %bb.62:                               ;   in Loop: Header=BB0_55 Depth=2
	mov	x22, x0
Lloh139:
	adrp	x1, l_.str.11@PAGE
Lloh140:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcat
	mov	x0, x22
	mov	x1, x25
	bl	_strcat
	b	LBB0_54
LBB0_63:                                ;   in Loop: Header=BB0_55 Depth=2
	ldp	x8, x9, [x29, #-104]
	sub	x24, x8, x9
	cmp	x24, #1
	b.lt	LBB0_59
; %bb.64:                               ;   in Loop: Header=BB0_55 Depth=2
	add	w0, w24, #1
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.65:                               ;   in Loop: Header=BB0_55 Depth=2
	mov	x25, x0
	ldur	x8, [x29, #-96]
	add	x1, x19, x8
	mov	x2, x24
	bl	_memcpy
	strb	wzr, [x25, x24]
	cbnz	x22, LBB0_61
	b	LBB0_53
LBB0_66:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	bl	_pclose
	mov	x0, x26
	bl	_free
	b	LBB0_69
LBB0_67:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x22, #0
	b	LBB0_70
LBB0_68:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x22, #0
LBB0_69:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh141:
	adrp	x28, _S_IFREG@GOTPAGE
Lloh142:
	ldr	x28, [x28, _S_IFREG@GOTPAGEOFF]
LBB0_70:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh143:
	adrp	x8, _opt_s@GOTPAGE
Lloh144:
	ldr	x8, [x8, _opt_s@GOTPAGEOFF]
Lloh145:
	ldr	x8, [x8]
	cbz	x8, LBB0_83
; %bb.71:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh146:
	adrp	x8, _NO_SRC_FOUND@GOTPAGE
Lloh147:
	ldr	x8, [x8, _NO_SRC_FOUND@GOTPAGEOFF]
Lloh148:
	ldr	w8, [x8]
	orr	w27, w8, w27
Lloh149:
	adrp	x8, _sourcedirs@GOTPAGE
Lloh150:
	ldr	x8, [x8, _sourcedirs@GOTPAGEOFF]
Lloh151:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_84
; %bb.72:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	ldur	w9, [x29, #-152]                ; 4-byte Folded Reload
	add	w24, w9, #2
	add	x25, x8, #8
	b	LBB0_74
LBB0_73:                                ;   in Loop: Header=BB0_74 Depth=2
	mov	x0, x28
	bl	_free
	ldr	x0, [x25], #8
	cbz	x0, LBB0_86
LBB0_74:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_strlen
	add	w0, w24, w0
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.75:                               ;   in Loop: Header=BB0_74 Depth=2
	mov	x28, x0
	ldur	x1, [x25, #-8]
	bl	_strcpy
	mov	x0, x28
	mov	x1, x23
	bl	_strcat
	mov	x0, x28
	mov	x1, x20
	bl	_strcat
	sub	x1, x29, #128
	mov	x0, x28
	bl	_stat
	cbnz	x0, LBB0_73
; %bb.76:                               ;   in Loop: Header=BB0_74 Depth=2
	ldur	w8, [x29, #-128]
Lloh152:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh153:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh154:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh155:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh156:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
Lloh157:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_73
; %bb.77:                               ;   in Loop: Header=BB0_74 Depth=2
Lloh158:
	adrp	x8, _NO_SRC_FOUND@GOTPAGE
Lloh159:
	ldr	x8, [x8, _NO_SRC_FOUND@GOTPAGEOFF]
Lloh160:
	ldr	w23, [x8]
	cbz	x26, LBB0_80
; %bb.78:                               ;   in Loop: Header=BB0_74 Depth=2
	mov	x0, x26
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x28
	bl	_strlen
	add	x8, x21, w0, sxtw
	add	x1, x8, #2
	mov	x0, x26
	bl	_realloc
	cbz	x0, LBB0_133
; %bb.79:                               ;   in Loop: Header=BB0_74 Depth=2
	mov	x26, x0
Lloh161:
	adrp	x1, l_.str.11@PAGE
Lloh162:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcat
	mov	x0, x26
	mov	x1, x28
	bl	_strcat
Lloh163:
	adrp	x21, _BUFSIZ@GOTPAGE
Lloh164:
	ldr	x21, [x21, _BUFSIZ@GOTPAGEOFF]
	b	LBB0_81
LBB0_80:                                ;   in Loop: Header=BB0_74 Depth=2
	mov	x0, x28
	bl	_strdup
	mov	x26, x0
LBB0_81:                                ;   in Loop: Header=BB0_74 Depth=2
	bic	w27, w27, w23
Lloh165:
	adrp	x8, _opt_a@GOTPAGE
Lloh166:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh167:
	ldr	x8, [x8]
	cbz	x8, LBB0_85
; %bb.82:                               ;   in Loop: Header=BB0_74 Depth=2
Lloh168:
	adrp	x23, l_.str.10@PAGE
Lloh169:
	add	x23, x23, l_.str.10@PAGEOFF
	b	LBB0_73
LBB0_83:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	b	LBB0_115
LBB0_84:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, #0
	b	LBB0_86
LBB0_85:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	bl	_free
LBB0_86:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh170:
	adrp	x8, _opt_x@GOTPAGE
Lloh171:
	ldr	x8, [x8, _opt_x@GOTPAGEOFF]
Lloh172:
	ldr	x8, [x8]
	cbz	x8, LBB0_88
; %bb.87:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh173:
	adrp	x28, _S_IFREG@GOTPAGE
Lloh174:
	ldr	x28, [x28, _S_IFREG@GOTPAGEOFF]
	b	LBB0_115
LBB0_88:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh175:
	adrp	x28, _S_IFREG@GOTPAGE
Lloh176:
	ldr	x28, [x28, _S_IFREG@GOTPAGEOFF]
	cbz	x26, LBB0_90
; %bb.89:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh177:
	adrp	x8, _opt_a@GOTPAGE
Lloh178:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh179:
	ldr	x8, [x8]
	cbz	x8, LBB0_115
LBB0_90:                                ;   in Loop: Header=BB0_18 Depth=1
	ldur	w8, [x29, #-152]                ; 4-byte Folded Reload
	add	w0, w8, #6
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.91:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x23, x0
Lloh180:
	adrp	x8, _LOCATECMD@GOTPAGE
Lloh181:
	ldr	x8, [x8, _LOCATECMD@GOTPAGEOFF]
Lloh182:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_sprintf
	stur	x23, [x29, #-152]               ; 8-byte Folded Spill
	mov	x0, x23
Lloh183:
	adrp	x1, l_.str.12@PAGE
Lloh184:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_popen
	cbz	x0, LBB0_115
; %bb.92:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x23, x0
	cbz	x26, LBB0_94
; %bb.93:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh185:
	adrp	x8, _opt_a@GOTPAGE
Lloh186:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh187:
	ldr	x8, [x8]
	cbz	x8, LBB0_114
LBB0_94:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_102 Depth 3
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x19
	mov	x2, x23
	bl	_fgets
	cbz	x0, LBB0_114
; %bb.95:                               ;   in Loop: Header=BB0_94 Depth=2
	mov	x0, x19
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_97
; %bb.96:                               ;   in Loop: Header=BB0_94 Depth=2
	strb	wzr, [x0]
LBB0_97:                                ;   in Loop: Header=BB0_94 Depth=2
	cmp	x26, #0
	cset	w28, eq
Lloh188:
	adrp	x8, _opt_a@GOTPAGE
Lloh189:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh190:
	ldr	x8, [x8]
	cbz	x26, LBB0_99
; %bb.98:                               ;   in Loop: Header=BB0_94 Depth=2
	cbz	x8, LBB0_112
LBB0_99:                                ;   in Loop: Header=BB0_94 Depth=2
Lloh191:
	adrp	x9, _sourcedirs@GOTPAGE
Lloh192:
	ldr	x9, [x9, _sourcedirs@GOTPAGEOFF]
Lloh193:
	ldr	x9, [x9]
	ldr	x0, [x9]
	cbz	x0, LBB0_112
; %bb.100:                              ;   in Loop: Header=BB0_94 Depth=2
	add	x24, x9, #8
	b	LBB0_102
LBB0_101:                               ;   in Loop: Header=BB0_102 Depth=3
	ldr	x0, [x24], #8
	cbz	x0, LBB0_112
LBB0_102:                               ;   Parent Loop BB0_18 Depth=1
                                        ;     Parent Loop BB0_94 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	bl	_strlen
	add	w0, w0, #9
	bl	_malloc
	cbz	x0, LBB0_133
; %bb.103:                              ;   in Loop: Header=BB0_102 Depth=3
	mov	x25, x0
Lloh194:
	adrp	x1, l_.str.13@PAGE
Lloh195:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcpy
	ldur	x1, [x24, #-8]
	mov	x0, x25
	bl	_strcat
	mov	x0, x25
Lloh196:
	adrp	x1, l_.str.14@PAGE
Lloh197:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcat
Lloh198:
	adrp	x8, _REG_EXTENDED@GOTPAGE
Lloh199:
	ldr	x8, [x8, _REG_EXTENDED@GOTPAGEOFF]
Lloh200:
	ldr	w8, [x8]
Lloh201:
	adrp	x9, _REG_NOSUB@GOTPAGE
Lloh202:
	ldr	x9, [x9, _REG_NOSUB@GOTPAGEOFF]
Lloh203:
	ldr	w9, [x9]
	orr	w2, w9, w8
	sub	x0, x29, #136
	mov	x1, x25
	bl	_regcomp
	cbz	w0, LBB0_105
; %bb.104:                              ;   in Loop: Header=BB0_102 Depth=3
	ldr	w8, [x21]
	sub	w3, w8, #1
	sub	x1, x29, #132
	mov	x2, x19
	bl	_regerror
Lloh204:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh205:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh206:
	ldr	w0, [x8]
	stp	x25, x19, [sp, #-16]!
Lloh207:
	adrp	x1, l_.str.3@PAGE
Lloh208:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	add	sp, sp, #16
LBB0_105:                               ;   in Loop: Header=BB0_102 Depth=3
	mov	x0, x25
	bl	_free
	sub	x0, x29, #136
	mov	x1, x19
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_regexec
	cbnz	x0, LBB0_110
; %bb.106:                              ;   in Loop: Header=BB0_102 Depth=3
Lloh209:
	adrp	x8, _NO_SRC_FOUND@GOTPAGE
Lloh210:
	ldr	x8, [x8, _NO_SRC_FOUND@GOTPAGEOFF]
Lloh211:
	ldr	w8, [x8]
	bic	w27, w27, w8
	tbz	w28, #0, LBB0_108
; %bb.107:                              ;   in Loop: Header=BB0_102 Depth=3
	mov	x0, x19
	bl	_strdup
	mov	x26, x0
	b	LBB0_110
LBB0_108:                               ;   in Loop: Header=BB0_102 Depth=3
	mov	x0, x26
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x21, w0
	mov	x0, x19
	bl	_strlen
	add	x8, x21, w0, sxtw
	add	x1, x8, #2
	mov	x0, x26
	bl	_realloc
	cbz	x0, LBB0_133
; %bb.109:                              ;   in Loop: Header=BB0_102 Depth=3
	mov	x26, x0
Lloh212:
	adrp	x1, l_.str.11@PAGE
Lloh213:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcat
	mov	x0, x26
	mov	x1, x19
	bl	_strcat
Lloh214:
	adrp	x21, _BUFSIZ@GOTPAGE
Lloh215:
	ldr	x21, [x21, _BUFSIZ@GOTPAGEOFF]
LBB0_110:                               ;   in Loop: Header=BB0_102 Depth=3
	sub	x0, x29, #136
	bl	_regfree
	cmp	x26, #0
	cset	w28, eq
Lloh216:
	adrp	x8, _opt_a@GOTPAGE
Lloh217:
	ldr	x8, [x8, _opt_a@GOTPAGEOFF]
Lloh218:
	ldr	x8, [x8]
	cbz	x26, LBB0_101
; %bb.111:                              ;   in Loop: Header=BB0_102 Depth=3
	cbnz	x8, LBB0_101
LBB0_112:                               ;   in Loop: Header=BB0_94 Depth=2
Lloh219:
	adrp	x28, _S_IFREG@GOTPAGE
Lloh220:
	ldr	x28, [x28, _S_IFREG@GOTPAGEOFF]
	cbz	x26, LBB0_94
; %bb.113:                              ;   in Loop: Header=BB0_94 Depth=2
	cbnz	x8, LBB0_94
LBB0_114:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	bl	_pclose
	ldur	x0, [x29, #-152]                ; 8-byte Folded Reload
	bl	_free
LBB0_115:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh221:
	adrp	x8, _opt_u@GOTPAGE
Lloh222:
	ldr	x8, [x8, _opt_u@GOTPAGEOFF]
Lloh223:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w27, #0, #0, ne
	b.eq	LBB0_17
; %bb.116:                              ;   in Loop: Header=BB0_18 Depth=1
Lloh224:
	adrp	x8, _opt_q@GOTPAGE
Lloh225:
	ldr	x8, [x8, _opt_q@GOTPAGEOFF]
Lloh226:
	ldr	w8, [x8]
	cbz	w8, LBB0_119
; %bb.117:                              ;   in Loop: Header=BB0_18 Depth=1
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	cbnz	x0, LBB0_121
; %bb.118:                              ;   in Loop: Header=BB0_18 Depth=1
	cbnz	x22, LBB0_123
	b	LBB0_14
LBB0_119:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh227:
	adrp	x0, l_.str.15@PAGE
Lloh228:
	add	x0, x0, l_.str.15@PAGEOFF
	mov	x1, x20
	bl	_printf
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cbz	x8, LBB0_126
; %bb.120:                              ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #32
	bl	_putchar
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
LBB0_121:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh229:
	adrp	x8, _stdout@GOTPAGE
Lloh230:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh231:
	ldr	w1, [x8]
	bl	_fputs
	cbz	x22, LBB0_124
LBB0_122:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #32
	bl	_putchar
LBB0_123:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh232:
	adrp	x8, _stdout@GOTPAGE
Lloh233:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh234:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_fputs
LBB0_124:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x26, LBB0_16
; %bb.125:                              ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #32
	bl	_putchar
	b	LBB0_15
LBB0_126:                               ;   in Loop: Header=BB0_18 Depth=1
	cbnz	x22, LBB0_122
	b	LBB0_124
LBB0_127:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_free
	b	LBB0_48
LBB0_128:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x8, #-3
	b	LBB0_32
LBB0_129:
Lloh235:
	adrp	x8, _opt_m@GOTPAGE
Lloh236:
	ldr	x8, [x8, _opt_m@GOTPAGEOFF]
Lloh237:
	ldr	x8, [x8]
	cbz	x8, LBB0_131
; %bb.130:
	sub	x0, x29, #132
	bl	_regfree
LBB0_131:
	ldur	x8, [x29, #-88]
Lloh238:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh239:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh240:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_134
; %bb.132:
	mov	w0, #0
	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_133:
	bl	_abort
LBB0_134:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGot	Lloh163, Lloh164
	.loh AdrpAdd	Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpAdd	Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGot	Lloh173, Lloh174
	.loh AdrpLdrGot	Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh179
	.loh AdrpAdd	Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh180, Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh185, Lloh186, Lloh187
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.loh AdrpLdrGotLdr	Lloh191, Lloh192, Lloh193
	.loh AdrpLdrGotLdr	Lloh201, Lloh202, Lloh203
	.loh AdrpLdrGotLdr	Lloh198, Lloh199, Lloh200
	.loh AdrpAdd	Lloh196, Lloh197
	.loh AdrpAdd	Lloh194, Lloh195
	.loh AdrpAdd	Lloh207, Lloh208
	.loh AdrpLdrGotLdr	Lloh204, Lloh205, Lloh206
	.loh AdrpLdrGotLdr	Lloh209, Lloh210, Lloh211
	.loh AdrpLdrGot	Lloh214, Lloh215
	.loh AdrpAdd	Lloh212, Lloh213
	.loh AdrpLdrGotLdr	Lloh216, Lloh217, Lloh218
	.loh AdrpLdrGot	Lloh219, Lloh220
	.loh AdrpLdrGotLdr	Lloh221, Lloh222, Lloh223
	.loh AdrpLdrGotLdr	Lloh224, Lloh225, Lloh226
	.loh AdrpAdd	Lloh227, Lloh228
	.loh AdrpLdrGotLdr	Lloh229, Lloh230, Lloh231
	.loh AdrpLdrGotLdr	Lloh232, Lloh233, Lloh234
	.loh AdrpLdrGotLdr	Lloh235, Lloh236, Lloh237
	.loh AdrpLdrGotLdr	Lloh238, Lloh239, Lloh240
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_mandirs,8,3                    ; @mandirs
	.comm	_opt_m,8,3                      ; @opt_m
	.comm	_bindirs,8,3                    ; @bindirs
	.comm	_opt_b,8,3                      ; @opt_b
	.comm	_sourcedirs,8,3                 ; @sourcedirs
	.comm	_opt_s,8,3                      ; @opt_s
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.1:                               ; @.str.1
	.asciz	"no directories to search"

l_.str.2:                               ; @.str.2
	.asciz	"MANPATH"

	.comm	_MANWHEREISMATCH,8,3            ; @MANWHEREISMATCH
	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.3:                               ; @.str.3
	.asciz	"regcomp(%s) failed: %s"

	.comm	_query,8,3                      ; @query
l_.str.4:                               ; @.str.4
	.asciz	"s."

l_.str.5:                               ; @.str.5
	.asciz	",v"

l_.str.6:                               ; @.str.6
	.asciz	".z"

l_.str.7:                               ; @.str.7
	.asciz	".Z"

l_.str.8:                               ; @.str.8
	.asciz	".gz"

l_.str.9:                               ; @.str.9
	.asciz	".bz2"

	.comm	_NO_BIN_FOUND,4,2               ; @NO_BIN_FOUND
l_.str.10:                              ; @.str.10
	.asciz	"/"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
l_.str.11:                              ; @.str.11
	.asciz	" "

	.comm	_opt_a,8,3                      ; @opt_a
	.comm	_NO_MAN_FOUND,4,2               ; @NO_MAN_FOUND
	.comm	_MANWHEREISALLCMD,8,3           ; @MANWHEREISALLCMD
	.comm	_MANWHEREISCMD,8,3              ; @MANWHEREISCMD
l_.str.12:                              ; @.str.12
	.asciz	"r"

	.comm	_NO_SRC_FOUND,4,2               ; @NO_SRC_FOUND
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_opt_x,8,3                      ; @opt_x
	.comm	_LOCATECMD,8,3                  ; @LOCATECMD
l_.str.13:                              ; @.str.13
	.asciz	"^"

l_.str.14:                              ; @.str.14
	.asciz	"/[^/]+/"

	.comm	_REG_NOSUB,4,2                  ; @REG_NOSUB
	.comm	_opt_u,8,3                      ; @opt_u
	.comm	_opt_q,4,2                      ; @opt_q
l_.str.15:                              ; @.str.15
	.asciz	"%s:"

	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
