	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fortlen
_fortlen:                               ## @fortlen
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_Fortfile@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_STR_RANDOM@GOTPCREL(%rip), %rax
	movq	_STR_ORDERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_1
## %bb.4:
	callq	_open_fp
	movq	(%r12), %rax
	movl	4(%rax), %edi
	movq	_Seekpts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fseeko
	movq	(%r12), %rax
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fgets
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STR_ENDSTRING
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	addl	%eax, %ebx
	movq	(%r12), %rax
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_2
LBB0_1:
	movq	_Seekpts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ebx
	subl	(%rax), %ebx
LBB0_2:
	movq	_Fort_len@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_Fortfile,8,3                   ## @Fortfile
	.comm	_STR_RANDOM,4,2                 ## @STR_RANDOM
	.comm	_STR_ORDERED,4,2                ## @STR_ORDERED
	.comm	_Seekpts,8,3                    ## @Seekpts
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_Fort_len,4,2                   ## @Fort_len
	.no_dead_strip	_fortlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fortlen
_fortlen:                               ; @fortlen
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x22, _Fortfile@GOTPAGE
Lloh9:
	ldr	x22, [x22, _Fortfile@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _STR_RANDOM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STR_RANDOM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _STR_ORDERED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _STR_ORDERED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	bl	_open_fp
	ldr	x8, [x22]
Lloh16:
	adrp	x9, _Seekpts@GOTPAGE
Lloh17:
	ldr	x9, [x9, _Seekpts@GOTPAGEOFF]
	ldr	w0, [x8, #4]
Lloh18:
	ldr	x8, [x9]
	ldr	x1, [x8]
Lloh19:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_fseeko
	ldr	x8, [x22]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_fgets
	mov	w21, #0
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STR_ENDSTRING
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_strlen
	add	w21, w21, w0
	ldr	x8, [x22]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_fgets
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x8, _Seekpts@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Seekpts@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	ldr	w8, [x8]
	sub	w21, w9, w8
LBB0_5:
Lloh25:
	adrp	x8, _Fort_len@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Fort_len@GOTPAGEOFF]
Lloh27:
	str	w21, [x8]
	ldur	x8, [x29, #-40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	sub	sp, x29, #32
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_Fortfile,8,3                   ; @Fortfile
	.comm	_STR_RANDOM,4,2                 ; @STR_RANDOM
	.comm	_STR_ORDERED,4,2                ; @STR_ORDERED
	.comm	_Seekpts,8,3                    ; @Seekpts
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_Fort_len,4,2                   ; @Fort_len
	.no_dead_strip	_fortlen
.subsections_via_symbols
