	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getpath
_getpath:                               ## @getpath
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r15
	movq	_Fortune_path@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	%r15, %rdi
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	_FORTDIR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	%rdi, (%rax)
LBB0_2:
	callq	_strdup
	movq	%rax, %r14
	movl	$2, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$58, %cl
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_14
## %bb.5:
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	_Fortune_path_arr@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_is_dir
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movq	%rbx, (%r13)
	addq	$8, %r13
	jmp	LBB0_9
LBB0_10:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_Fortune_path_arr@GOTPCREL(%rip), %r12
	jne	LBB0_16
LBB0_11:
	testq	%r15, %r15
	jne	LBB0_12
## %bb.15:
	movq	%r14, %rdi
	callq	_free
	movq	_FORTDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strdup
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FORTUNE_PATH"

	.comm	_Fortune_path,8,3               ## @Fortune_path
	.comm	_FORTDIR,8,3                    ## @FORTDIR
	.comm	_Fortune_path_arr,8,3           ## @Fortune_path_arr
L_.str.1:                               ## @.str.1
	.asciz	":"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"fortune: FORTUNE_PATH: None of the specified directories found.\n"

	.no_dead_strip	_getpath
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getpath
_getpath:                               ; @getpath
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x19, x0
Lloh2:
	adrp	x8, _Fortune_path@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Fortune_path@GOTPAGEOFF]
	str	x0, [x8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _FORTDIR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FORTDIR@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x9]
	str	x0, [x8]
LBB0_2:
	bl	_strdup
	mov	x20, x0
	mov	w0, #2
	mov	x8, x20
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w0, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #58
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w9, LBB0_4
; %bb.7:
	mov	w1, #8
	bl	_calloc
	mov	x21, x0
Lloh7:
	adrp	x24, _Fortune_path_arr@GOTPAGE
Lloh8:
	ldr	x24, [x24, _Fortune_path_arr@GOTPAGEOFF]
	str	x0, [x24]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strtok
	cbz	x0, LBB0_13
; %bb.8:
	mov	x23, x0
	mov	w25, #0
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, #0
	mov	x1, x22
	bl	_strtok
	mov	x23, x0
	cbz	x0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_is_dir
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w25, w25, #1
	str	x23, [x21], #8
	b	LBB0_9
LBB0_12:
	cbnz	w25, LBB0_15
LBB0_13:
	cbnz	x19, LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_free
Lloh13:
	adrp	x8, _FORTDIR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FORTDIR@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	bl	_strdup
	ldr	x8, [x24]
	str	x0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FORTUNE_PATH"

	.comm	_Fortune_path,8,3               ; @Fortune_path
	.comm	_FORTDIR,8,3                    ; @FORTDIR
	.comm	_Fortune_path_arr,8,3           ; @Fortune_path_arr
l_.str.1:                               ; @.str.1
	.asciz	":"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"fortune: FORTUNE_PATH: None of the specified directories found.\n"

	.no_dead_strip	_getpath
.subsections_via_symbols
