	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chkmail                        ## -- Begin function chkmail
	.p2align	4, 0x90
_chkmail:                               ## @chkmail
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_nmboxes@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movl	$10, (%rax)
	jmp	LBB0_3
LBB0_2:
	cmpl	$0, (%rax)
	je	LBB0_24
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_setstackmark
	xorl	%eax, %eax
	callq	_mpathset
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_mpathval
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_mailval
LBB0_6:
	movl	%eax, %edi
	callq	_stsavestr
	movq	%rax, %rbx
	movq	_nmboxes@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, (%rcx,%r14,8)
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movq	_nmboxes@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%r12, %rbx
	cmpq	%rax, %r14
	jge	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchrnul
	movq	%rax, %r12
	cmpb	$0, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, (%r12)
	leaq	1(%r12), %rax
	cmpq	%r12, %rbx
	movq	%rax, %r12
	je	LBB0_22
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r13d, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_mailtime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r15d, %r15d
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	(%rcx,%r14,8), %rax
	jle	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r13, %r13
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r13
	movq	%r13, %rdi
	callq	_out2str
	movl	$10, %edi
	callq	_out2c
	movq	-56(%rbp), %rax
	movq	_mailtime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_21
LBB0_7:
	xorl	%r14d, %r14d
LBB0_23:
	movq	_nmboxes@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	leaq	-48(%rbp), %rdi
	callq	_popstackmark
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nmboxes,4,2                    ## @nmboxes
	.comm	_mailtime,8,3                   ## @mailtime
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"you have mail"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chkmail                        ; -- Begin function chkmail
	.p2align	2
_chkmail:                               ; @chkmail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _nmboxes@GOTPAGE
Lloh1:
	ldr	x23, [x23, _nmboxes@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #10
	str	w8, [x23]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x23]
	cbz	w8, LBB0_22
LBB0_3:
	add	x0, sp, #24
	bl	_setstackmark
	bl	_mpathset
	cbz	x0, LBB0_5
; %bb.4:
	bl	_mpathval
	b	LBB0_6
LBB0_5:
	bl	_mailval
LBB0_6:
	bl	_stsavestr
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.7:
	mov	x21, x0
	mov	x24, #0
Lloh2:
	adrp	x25, _mailtime@GOTPAGE
Lloh3:
	ldr	x25, [x25, _mailtime@GOTPAGEOFF]
Lloh4:
	adrp	x26, l_.str@PAGE
Lloh5:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [x9, x24, lsl #3]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	mov	x21, x20
	cmp	x24, x8
	b.ge	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	w1, #58
	bl	_strchrnul
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, x20
	strb	wzr, [x8], #1
	cmp	x21, x20
	mov	x20, x8
	b.eq	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	w1, #37
	bl	_strchr
	mov	x22, x0
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	strb	wzr, [x22], #1
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	tbnz	x0, #63, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cbz	w19, LBB0_18
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, #0
	str	xzr, [sp, #16]
	ldr	x9, [x25]
	cbnz	w19, LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x9, x24, lsl #3]
	cmp	x8, x10
	b.le	LBB0_8
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x22, #0
	csel	x0, x26, x22, eq
	bl	_out2str
	mov	w0, #10
	bl	_out2c
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	b	LBB0_8
LBB0_20:
	mov	w24, #0
LBB0_21:
	str	w24, [x23]
	add	x0, sp, #24
	bl	_popstackmark
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_nmboxes,4,2                    ; @nmboxes
	.comm	_mailtime,8,3                   ; @mailtime
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"you have mail"

.subsections_via_symbols
