	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parsemsg_rfc3164
_parsemsg_rfc3164:                      ## @parsemsg_rfc3164
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -80(%rbp)
	movq	_MAXLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_RFC3164_DATEFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-152(%rbp), %rdx
	movq	%r14, %rdi
	callq	_strptime
	movq	_RFC3164_DATELEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leaq	(%r14,%rdx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpb	$32, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	%r13d, -108(%rbp)               ## 4-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r14,%r12), %rbx
	incq	%rbx
	movq	%rbx, -80(%rbp)
	movq	_RemoteAddDate@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
LBB0_22:
	leaq	-80(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_parsemsg_rfc3164_app_name_procid
	movq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_parsemsg_remove_unsafe_characters
	movq	-72(%rbp), %rcx
	movq	-56(%rbp), %r8
	subq	$8, %rsp
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	$0
	callq	_logmsg
	addq	$32, %rsp
LBB0_23:
	movq	-144(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	xorl	%edi, %edi
	callq	_time
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_localtime_r
	movl	-72(%rbp), %ebx
	leal	1(%rbx), %r12d
	movl	$1, %edi
	callq	_assert
	movl	%r12d, -104(%rbp)
	movl	$-1, -100(%rbp)
	movq	$0, -96(%rbp)
	leaq	-104(%rbp), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_mktime
	movl	$604800, %r12d                  ## imm = 0x93A80
	movq	-56(%rbp), %rcx
	addq	%r12, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_9
## %bb.7:
	leaq	-104(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %eax
	xorl	%edi, %edi
	cmpl	-72(%rbp), %eax
	setge	%dil
	callq	_assert
	movl	%ebx, -104(%rbp)
	movl	$-1, -100(%rbp)
	movq	$0, -96(%rbp)
	movq	%r13, %rdi
	callq	_mktime
	movq	-56(%rbp), %rcx
	addq	%r12, %rcx
	decl	%ebx
	cmpq	%rcx, %rax
	jge	LBB0_8
LBB0_9:
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_10:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r13
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_MIN
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	incq	%r12
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r12), %eax
	cmpb	$58, %al
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpb	$32, %al
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_MIN
	cmpq	%rax, %r12
	jb	LBB0_12
	jmp	LBB0_19
LBB0_15:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_16:
	movq	_RemoteHostname@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movb	$0, (%rbx,%r12)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	leaq	(%r12,%rax), %rbx
	incq	%rbx
	movq	%rbx, -80(%rbp)
LBB0_19:
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_MIN
	cmpq	%rax, %r12
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_21
## %bb.20:
	leaq	L_.str(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dprintf
	jmp	LBB0_23
LBB0_21:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-108(%rbp), %r13d               ## 4-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_22
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLINE,4,2                    ## @MAXLINE
	.comm	_RFC3164_DATEFMT,4,2            ## @RFC3164_DATEFMT
	.comm	_RFC3164_DATELEN,4,2            ## @RFC3164_DATELEN
	.comm	_RemoteAddDate,4,2              ## @RemoteAddDate
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_RemoteHostname,8,3             ## @RemoteHostname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid HOSTNAME from %s: %s\n"

	.no_dead_strip	_parsemsg_rfc3164
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parsemsg_rfc3164
_parsemsg_rfc3164:                      ; @parsemsg_rfc3164
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #64
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	x2, [x29, #-96]
Lloh3:
	adrp	x8, _MAXLINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXLINE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _RFC3164_DATEFMT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFC3164_DATEFMT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x2, x29, #104
	mov	x0, x23
	bl	_strptime
Lloh11:
	adrp	x8, _RFC3164_DATELEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFC3164_DATELEN@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	add	x9, x23, x8
	cmp	x0, x9
	b.ne	LBB0_4
; %bb.1:
	ldrb	w9, [x0]
	cmp	w9, #32
	b.ne	LBB0_4
; %bb.2:
	add	x8, x8, x23
	add	x23, x8, #1
	stur	x23, [x29, #-96]
Lloh14:
	adrp	x8, _RemoteAddDate@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RemoteAddDate@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.3:
	mov	x24, #0
	b	LBB0_12
LBB0_4:
	mov	x24, #0
LBB0_5:
	sub	x0, x29, #96
	sub	x1, x29, #128
	sub	x2, x29, #136
	bl	_parsemsg_rfc3164_app_name_procid
	ldur	x0, [x29, #-96]
	mov	x1, x21
	mov	x2, x22
	bl	_parsemsg_remove_unsafe_characters
	ldp	x4, x3, [x29, #-136]
	str	wzr, [sp, #-16]!
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x5, #0
	mov	x6, #0
	mov	x7, x21
	bl	_logmsg
	add	sp, sp, #16
LBB0_6:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.7:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w24, #14976
	movk	w24, #9, lsl #16
	mov	x0, #0
	bl	_time
	stur	x0, [x29, #-136]
	sub	x0, x29, #136
	sub	x1, x29, #128
	bl	_localtime_r
	ldur	w25, [x29, #-128]
	add	w28, w25, #1
	mov	w0, #1
	bl	_assert
	mov	w27, #-1
	stp	w28, w27, [x29, #-120]
	stur	xzr, [x29, #-112]
	sub	x0, x29, #120
	bl	_mktime
	ldur	x8, [x29, #-136]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	cmp	x0, x8
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w8, w25, #1
	ldur	w9, [x29, #-128]
	cmp	w8, w9
	cset	w0, ge
	bl	_assert
	stp	w25, w27, [x29, #-120]
	stur	xzr, [x29, #-112]
	sub	x0, x29, #120
	bl	_mktime
	ldur	x8, [x29, #-136]
	sub	w25, w25, #1
	b	LBB0_9
LBB0_11:
	sub	x24, x29, #120
LBB0_12:
	mov	x0, x23
	bl	_strlen
	mov	x25, x0
Lloh20:
	adrp	x27, _MAXHOSTNAMELEN@GOTPAGE
Lloh21:
	ldr	x27, [x27, _MAXHOSTNAMELEN@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x25
	bl	_MIN
	mov	x28, #0
	cbz	x0, LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23, x28]
	cmp	w8, #58
	b.eq	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #32
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x28, x28, #1
	ldr	w0, [x27]
	mov	x1, x25
	bl	_MIN
	cmp	x28, x0
	b.lo	LBB0_13
	b	LBB0_19
LBB0_16:
Lloh22:
	adrp	x8, _RemoteHostname@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RemoteHostname@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	strb	wzr, [x23, x28]
	mov	x19, x23
LBB0_18:
	add	x8, x23, x28
	add	x23, x8, #1
	stur	x23, [x29, #-96]
LBB0_19:
	ldr	w0, [x27]
	mov	x1, x25
	bl	_MIN
	cmp	x28, x0
	b.ne	LBB0_5
; %bb.20:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x23
	bl	_dprintf
	b	LBB0_6
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLINE,4,2                    ; @MAXLINE
	.comm	_RFC3164_DATEFMT,4,2            ; @RFC3164_DATEFMT
	.comm	_RFC3164_DATELEN,4,2            ; @RFC3164_DATELEN
	.comm	_RemoteAddDate,4,2              ; @RemoteAddDate
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_RemoteHostname,8,3             ; @RemoteHostname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid HOSTNAME from %s: %s\n"

	.no_dead_strip	_parsemsg_rfc3164
.subsections_via_symbols
