	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mailchk
_mailchk:                               ## @mailchk
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRmail@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adrof
	testq	%rax, %rax
	je	LBB0_42
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_42
## %bb.2:
	leaq	-64(%rbp), %rdi
	callq	_time
	movq	(%rbx), %r14
	movq	%r14, %rdi
	callq	_blklen
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	callq	_number
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	decl	%ebx
	movl	(%r14), %edi
	addq	$8, %r14
	callq	_getn
	jmp	LBB0_6
LBB0_5:
	movq	_MAILINTVL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movq	_chktim@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rcx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rcx
	jg	LBB0_42
## %bb.7:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.8:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	-96(%rbp), %r13
	jmp	LBB0_9
LBB0_43:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_closedir
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rdi
	addq	$8, %r14
	testq	%rdi, %rdi
	je	LBB0_40
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	callq	_short2str
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_stat
	testl	%eax, %eax
	js	LBB0_39
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %r12
	movq	_seconds0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %r12
	setg	%r15b
	movl	-72(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_xasprintf
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	-128(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-104(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm1, -80(%rbp)
	movq	-96(%rbp), %r12
	movq	_seconds0@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	setg	%r15b
	movq	%r13, %rbx
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_chktim@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	cmpq	%rax, %r12
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_loginsh@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	sete	%al
	orb	%r15b, %al
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_opendir
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_xfree
	testq	%r15, %r15
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	leaq	-96(%rbp), %r13
	je	LBB0_43
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_43
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_readdir
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_closedir
	testl	%ebx, %ebx
	je	LBB0_39
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$11, %edi
	movl	$3, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_CGETS
	movq	%rax, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_xprintf
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_xfree
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-96(%rbp), %r13
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_39
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rax
	cmpq	%r12, %rax
	jge	LBB0_39
## %bb.29:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_chktim@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rcx, %r12
	jle	LBB0_39
LBB0_31:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_loginsh@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rbx, %r12
	jle	LBB0_39
LBB0_33:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.4(%rip), %rdi
	cmpq	%rbx, %r12
	jle	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$11, %edi
	movl	$6, %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_CGETS
	movq	%rax, %rdi
LBB0_35:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_strsave
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	_xfree@GOTPCREL(%rip), %rsi
	callq	_cleanup_push
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$11, %edi
	movl	$5, %esi
	leaq	L_.str.5(%rip), %rdx
	callq	_CGETS
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_xprintf
	jmp	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$11, %edi
	movl	$7, %esi
	leaq	L_.str.6(%rip), %rdx
	callq	_CGETS
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_xprintf
LBB0_38:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_cleanup_until
	jmp	LBB0_39
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$11, %edi
	movl	$4, %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_CGETS
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_xprintf
	jmp	LBB0_39
LBB0_40:
	movq	-64(%rbp), %rax
	movq	_chktim@GOTPCREL(%rip), %rdx
LBB0_41:
	movq	%rax, (%rdx)
LBB0_42:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRmail,4,2                    ## @STRmail
	.comm	_MAILINTVL,4,2                  ## @MAILINTVL
	.comm	_chktim,8,3                     ## @chktim
	.comm	_seconds0,8,3                   ## @seconds0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/new"

	.comm	_loginsh,8,3                    ## @loginsh
L_.str.1:                               ## @.str.1
	.asciz	"You have %d mail messages.\n"

L_.str.2:                               ## @.str.2
	.asciz	"You have %d mail messages in %s.\n"

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

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"You have %smail.\n"

L_.str.6:                               ## @.str.6
	.asciz	"You have %smail in %s.\n"

	.comm	_time0,8,3                      ## @time0
	.no_dead_strip	_mailchk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mailchk
_mailchk:                               ; @mailchk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, _STRmail@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRmail@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_adrof
	cbz	x0, LBB0_42
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_42
; %bb.2:
	add	x0, sp, #88
	bl	_time
	ldr	x19, [x19]
	mov	x0, x19
	bl	_blklen
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_number
	cbz	x0, LBB0_5
; %bb.4:
	sub	w20, w20, #1
	ldr	w0, [x19], #8
	bl	_getn
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _MAILINTVL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAILINTVL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_6:
	cmp	w0, #1
	csinc	w9, w0, wzr, gt
Lloh6:
	adrp	x21, _chktim@GOTPAGE
Lloh7:
	ldr	x21, [x21, _chktim@GOTPAGEOFF]
	ldr	x10, [x21]
	ldr	x8, [sp, #88]
	add	x9, x10, x9
	cmp	x9, x8
	b.gt	LBB0_42
; %bb.7:
	ldr	x0, [x19]
	cbz	x0, LBB0_41
; %bb.8:
Lloh8:
	adrp	x23, _seconds0@GOTPAGE
Lloh9:
	ldr	x23, [x23, _seconds0@GOTPAGEOFF]
Lloh10:
	adrp	x24, _loginsh@GOTPAGE
Lloh11:
	ldr	x24, [x24, _loginsh@GOTPAGEOFF]
Lloh12:
	adrp	x25, l_.str@PAGE
Lloh13:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x26
	bl	_xfree
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19, #8]!
	cbz	x0, LBB0_40
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
	bl	_short2str
	mov	x28, x0
	add	x1, sp, #48
	bl	_stat
	tbnz	w0, #31, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x27, [sp, #48]
	ldr	x26, [x23]
	cmp	x27, x26
	cset	w22, gt
	ldr	w0, [sp, #72]
	bl	_S_ISDIR
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	mov	x1, x28
	bl	_xasprintf
	mov	x26, x0
	add	x1, sp, #16
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [sp, #40]
	bl	_S_ISDIR
	mov	x8, x0
	mov	x0, x28
	cbz	x8, LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	q0, q1, [sp, #16]
	stp	q0, q1, [sp, #48]
	ldr	x27, [sp, #48]
	ldr	x8, [x23]
	cmp	x27, x8
	cset	w22, gt
	mov	x0, x26
	b	LBB0_25
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #64]
	cmp	x8, x27
	b.ge	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x21]
	cmp	x8, x9
	ccmp	x27, x9, #0, le
	b.le	LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24]
	cmp	x8, #0
	ccmp	x27, x26, #0, ne
	b.le	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	cmp	x27, x26
	b.le	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #11
	mov	w1, #6
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_CGETS
LBB0_22:                                ;   in Loop: Header=BB0_11 Depth=1
	bl	_strsave
	mov	x26, x0
Lloh18:
	adrp	x1, _xfree@GOTPAGE
Lloh19:
	ldr	x1, [x1, _xfree@GOTPAGEOFF]
	bl	_cleanup_push
	mov	w0, #11
	cmp	w20, #1
	b.ne	LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #5
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_CGETS
	b	LBB0_37
LBB0_24:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x28
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x21]
	add	x8, x8, #1
	cmp	x27, x8
	b.le	LBB0_9
; %bb.26:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w8, eq
	orr	w8, w8, w22
	tbz	w8, #0, LBB0_9
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_opendir
	mov	x27, x0
	mov	x0, x26
	bl	_xfree
	cbz	x27, LBB0_10
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x27
	bl	_readdir
	cbz	x0, LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x27
	bl	_readdir
	cbz	x0, LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w22, #-1
LBB0_31:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	bl	_readdir
	add	w22, w22, #1
	cbnz	x0, LBB0_31
; %bb.32:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x27
	bl	_closedir
	cbz	w22, LBB0_10
; %bb.33:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #11
	cmp	w20, #1
	b.ne	LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #3
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_CGETS
	b	LBB0_39
LBB0_35:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x27
	bl	_closedir
	b	LBB0_10
LBB0_36:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #7
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_CGETS
	str	x28, [sp, #8]
LBB0_37:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x26, [sp]
	bl	_xprintf
	mov	x0, x26
	bl	_cleanup_until
	b	LBB0_10
LBB0_38:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w1, #4
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_CGETS
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x28, [sp, #8]
LBB0_39:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x22, [sp]
	bl	_xprintf
	b	LBB0_10
LBB0_40:
	ldr	x8, [sp, #88]
LBB0_41:
	str	x8, [x21]
LBB0_42:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_STRmail,4,2                    ; @STRmail
	.comm	_MAILINTVL,4,2                  ; @MAILINTVL
	.comm	_chktim,8,3                     ; @chktim
	.comm	_seconds0,8,3                   ; @seconds0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/new"

	.comm	_loginsh,8,3                    ; @loginsh
l_.str.1:                               ; @.str.1
	.asciz	"You have %d mail messages.\n"

l_.str.2:                               ; @.str.2
	.asciz	"You have %d mail messages in %s.\n"

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

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"You have %smail.\n"

l_.str.6:                               ; @.str.6
	.asciz	"You have %smail in %s.\n"

	.comm	_time0,8,3                      ; @time0
	.no_dead_strip	_mailchk
.subsections_via_symbols
