	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_fortfile
_is_fortfile:                           ## @is_fortfile
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	$2, %edi
	movl	%r13d, %esi
	callq	_DPRINTF
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_All_forts@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	callq	_strlen
	movq	_Offend@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movslq	%eax, %rdx
	xorl	%eax, %eax
	cmpb	$45, -2(%rdx,%r13)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpb	$111, -1(%rdx,%r13)
	sete	%al
LBB0_4:
	cmpl	%eax, %ecx
	jne	LBB0_10
LBB0_5:
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r13, %rbx
	cmpb	$46, (%rbx)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	movq	_Fortunes_only@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.8:
	leaq	L_.str.16(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.14(%rip), %rsi
LBB0_11:
	movl	$2, %edi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_12:
	callq	_DPRINTF
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_29
## %bb.16:
	movq	%rax, %r12
	incq	%r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.22:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.23:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	leaq	L_.str.12(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
LBB0_29:
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %esi
	movq	%r13, %rdi
	callq	_copy
	movq	%rax, %r12
	leaq	L_.str.19(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcat
	movq	_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_access
	testq	%rax, %rax
	js	LBB0_33
## %bb.30:
	testq	%r15, %r15
	je	LBB0_34
## %bb.31:
	movq	%r12, (%r15)
	testq	%r14, %r14
	jne	LBB0_35
	jmp	LBB0_38
LBB0_32:
	movl	$2, %edi
	movl	%r12d, %esi
	jmp	LBB0_12
LBB0_33:
	leaq	L_.str.20(%rip), %rsi
	movl	$2, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINTF
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_34:
	movq	%r12, %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_38
LBB0_35:
	movq	_WriteToDisk@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_37
## %bb.36:
	movq	%r13, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %esi
	movq	%r13, %rdi
	callq	_copy
	movq	%rax, (%r14)
	leaq	L_.str.21(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcat
	jmp	LBB0_38
LBB0_37:
	movq	$0, (%r14)
LBB0_38:
	leaq	L_.str.22(%rip), %rsi
	movl	$2, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINTF
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dat"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"h"

L_.str.4:                               ## @.str.4
	.asciz	"p"

L_.str.5:                               ## @.str.5
	.asciz	"i"

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

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

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

L_.str.9:                               ## @.str.9
	.asciz	"ins.c"

L_.str.10:                              ## @.str.10
	.asciz	"ins,pas"

L_.str.11:                              ## @.str.11
	.asciz	"ins.ftn"

L_.str.12:                              ## @.str.12
	.asciz	"sml"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_All_forts,4,2                  ## @All_forts
	.comm	_Offend,4,2                     ## @Offend
L_.str.14:                              ## @.str.14
	.asciz	"FALSE (offending file)\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.15:                              ## @.str.15
	.asciz	"FALSE (file starts with '.')\n"

	.comm	_Fortunes_only,8,3              ## @Fortunes_only
L_.str.16:                              ## @.str.16
	.asciz	"fortunes"

L_.str.17:                              ## @.str.17
	.asciz	"FALSE (check fortunes only)\n"

L_.str.19:                              ## @.str.19
	.asciz	".dat"

	.comm	_R_OK,4,2                       ## @R_OK
L_.str.20:                              ## @.str.20
	.asciz	"FALSE (no readable \".dat\" file)\n"

	.comm	_WriteToDisk,8,3                ## @WriteToDisk
L_.str.21:                              ## @.str.21
	.asciz	".pos"

L_.str.22:                              ## @.str.22
	.asciz	"TRUE\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_is_fortfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_fortfile
_is_fortfile:                           ; @is_fortfile
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #2
	mov	x1, x20
	bl	_DPRINTF
	cbz	w22, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _All_forts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _All_forts@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x8, _Offend@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Offend@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sxtw	x9, w0
	add	x9, x9, x20
	ldurb	w10, [x9, #-2]
	cmp	w10, #45
	b.ne	LBB0_5
; %bb.3:
	ldurb	w9, [x9, #-1]
	cmp	w9, #111
	cset	w9, eq
	cmp	w8, w9
	b.eq	LBB0_6
LBB0_4:
Lloh6:
	adrp	x1, l_.str.14@PAGE
Lloh7:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_11
LBB0_5:
	mov	w9, #0
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x22, x20, x0, eq
	ldrb	w8, [x22]
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x1, l_.str.15@PAGE
Lloh9:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh10:
	adrp	x8, _Fortunes_only@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Fortunes_only@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.9:
Lloh13:
	adrp	x1, l_.str.16@PAGE
Lloh14:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x22
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.10:
Lloh15:
	adrp	x1, l_.str.17@PAGE
Lloh16:
	add	x1, x1, l_.str.17@PAGEOFF
LBB0_11:
	mov	w0, #2
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_12:
	bl	_DPRINTF
LBB0_13:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	ret
LBB0_15:
	mov	x0, x22
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_29
; %bb.16:
	add	x22, x0, #1
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.17:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.18:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.19:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.20:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.21:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.22:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.23:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.24:
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.25:
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.26:
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.27:
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
; %bb.28:
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_32
LBB0_29:
	mov	x0, x20
	bl	_strlen
	add	w1, w0, #4
	mov	x0, x20
	bl	_copy
	mov	x22, x0
Lloh45:
	adrp	x1, l_.str.19@PAGE
Lloh46:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_strcat
Lloh47:
	adrp	x8, _R_OK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_access
	tbnz	x0, #63, LBB0_33
; %bb.30:
	cbz	x21, LBB0_34
; %bb.31:
	str	x22, [x21]
	cbnz	x19, LBB0_35
	b	LBB0_38
LBB0_32:
	mov	w0, #2
	mov	x1, x22
	b	LBB0_12
LBB0_33:
Lloh50:
	adrp	x1, l_.str.20@PAGE
Lloh51:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	w0, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DPRINTF
	mov	x0, x22
	bl	_free
	b	LBB0_13
LBB0_34:
	mov	x0, x22
	bl	_free
	cbz	x19, LBB0_38
LBB0_35:
Lloh52:
	adrp	x8, _WriteToDisk@GOTPAGE
Lloh53:
	ldr	x8, [x8, _WriteToDisk@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cbz	x8, LBB0_37
; %bb.36:
	mov	x0, x20
	bl	_strlen
	add	w1, w0, #4
	mov	x0, x20
	bl	_copy
	str	x0, [x19]
Lloh55:
	adrp	x1, l_.str.21@PAGE
Lloh56:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_strcat
	b	LBB0_38
LBB0_37:
	str	xzr, [x19]
LBB0_38:
Lloh57:
	adrp	x1, l_.str.22@PAGE
Lloh58:
	add	x1, x1, l_.str.22@PAGEOFF
	mov	w0, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DPRINTF
Lloh59:
	adrp	x8, _TRUE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dat"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"h"

l_.str.4:                               ; @.str.4
	.asciz	"p"

l_.str.5:                               ; @.str.5
	.asciz	"i"

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

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

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

l_.str.9:                               ; @.str.9
	.asciz	"ins.c"

l_.str.10:                              ; @.str.10
	.asciz	"ins,pas"

l_.str.11:                              ; @.str.11
	.asciz	"ins.ftn"

l_.str.12:                              ; @.str.12
	.asciz	"sml"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_All_forts,4,2                  ; @All_forts
	.comm	_Offend,4,2                     ; @Offend
l_.str.14:                              ; @.str.14
	.asciz	"FALSE (offending file)\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.15:                              ; @.str.15
	.asciz	"FALSE (file starts with '.')\n"

	.comm	_Fortunes_only,8,3              ; @Fortunes_only
l_.str.16:                              ; @.str.16
	.asciz	"fortunes"

l_.str.17:                              ; @.str.17
	.asciz	"FALSE (check fortunes only)\n"

l_.str.19:                              ; @.str.19
	.asciz	".dat"

	.comm	_R_OK,4,2                       ; @R_OK
l_.str.20:                              ; @.str.20
	.asciz	"FALSE (no readable \".dat\" file)\n"

	.comm	_WriteToDisk,8,3                ; @WriteToDisk
l_.str.21:                              ; @.str.21
	.asciz	".pos"

l_.str.22:                              ; @.str.22
	.asciz	"TRUE\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_is_fortfile
.subsections_via_symbols
