	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mandoc_normdate                ## -- Begin function mandoc_normdate
	.p2align	4, 0x90
_mandoc_normdate:                       ## @mandoc_normdate
	.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
	movq	%rsi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.24:
	testq	%rbx, %rbx
	leaq	L_.str(%rip), %rdi
	cmovneq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mandoc_strdup                  ## TAILCALL
LBB0_1:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r12
	cmpb	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_MANDOCERR_DATE_MISSING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_mandoc_msg
	cmpb	$0, (%rbx)
	je	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_a2time
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_a2time
	testq	%rax, %rax
	je	LBB0_15
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_time2a
	movq	%rax, %r12
	movq	-48(%rbp), %r13
	xorl	%edi, %edi
	callq	_time
	addq	$86400, %rax                    ## imm = 0x15180
	cmpq	%rax, %r13
	jle	LBB0_12
## %bb.10:
	movq	_MANDOCERR_DATE_FUTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_MANDOCERR_DATE_MISSING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_mandoc_msg
LBB0_3:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_time2a                         ## TAILCALL
LBB0_12:
	cmpb	$36, (%rbx)
	je	LBB0_23
## %bb.13:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:
	movq	_MANDOCERR_DATE_NORM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_mandoc_msg
LBB0_23:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_a2time
	leaq	L_.str.4(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	-48(%rbp), %r13
	xorl	%edi, %edi
	callq	_time
	addq	$86400, %rax                    ## imm = 0x15180
	cmpq	%rax, %r13
	jle	LBB0_19
## %bb.18:
	movq	_MANDOCERR_DATE_FUTURE@GOTPCREL(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_21
LBB0_16:
	movq	_MANDOCERR_DATE_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	(%r12), %rax
	movq	_MACROSET_MDOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	leaq	L_.str.6(%rip), %rcx
	movq	_MANDOCERR_DATE_LEGACY@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_mandoc_msg
LBB0_22:
	movq	%rbx, %rdi
	callq	_mandoc_strdup
	movq	%rax, %r12
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MANDOCERR_DATE_MISSING,4,2     ## @MANDOCERR_DATE_MISSING
L_.str.1:                               ## @.str.1
	.asciz	"$Mdocdate$"

L_.str.2:                               ## @.str.2
	.asciz	"$Mdocdate: %b %d %Y $"

L_.str.3:                               ## @.str.3
	.asciz	"%b %d, %Y"

	.comm	_MANDOCERR_DATE_FUTURE,4,2      ## @MANDOCERR_DATE_FUTURE
L_.str.4:                               ## @.str.4
	.asciz	"%s"

	.comm	_MANDOCERR_DATE_NORM,4,2        ## @MANDOCERR_DATE_NORM
L_.str.5:                               ## @.str.5
	.asciz	"%Y-%m-%d"

	.comm	_MANDOCERR_DATE_BAD,4,2         ## @MANDOCERR_DATE_BAD
	.comm	_MACROSET_MDOC,8,3              ## @MACROSET_MDOC
	.comm	_MANDOCERR_DATE_LEGACY,4,2      ## @MANDOCERR_DATE_LEGACY
L_.str.6:                               ## @.str.6
	.asciz	"Dd %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mandoc_normdate                ; -- Begin function mandoc_normdate
	.p2align	2
_mandoc_normdate:                       ; @mandoc_normdate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x21, #0
	csel	x0, x8, x21, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mandoc_strdup
LBB0_2:
	mov	x19, x3
	mov	x20, x2
	cbz	x21, LBB0_10
; %bb.3:
	mov	x22, x0
	ldrb	w8, [x21]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _MANDOCERR_DATE_MISSING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MANDOCERR_DATE_MISSING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_mandoc_msg
	ldrb	w8, [x21]
	cbz	w8, LBB0_11
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	bl	_a2time
	cbnz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	bl	_a2time
	cbz	x0, LBB0_17
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_time2a
	mov	x22, x0
	ldr	x23, [sp, #8]
	mov	x0, #0
	bl	_time
	add	x8, x0, #21, lsl #12            ; =86016
	add	x8, x8, #384
	cmp	x23, x8
	b.le	LBB0_12
; %bb.9:
Lloh11:
	adrp	x8, _MANDOCERR_DATE_FUTURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MANDOCERR_DATE_FUTURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh13:
	adrp	x8, _MANDOCERR_DATE_MISSING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MANDOCERR_DATE_MISSING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_mandoc_msg
LBB0_11:
	mov	x0, #0
	bl	_time
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_time2a
LBB0_12:
	ldrb	w8, [x21]
	cmp	w8, #36
	b.eq	LBB0_16
; %bb.13:
	mov	x0, x21
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.14:
Lloh16:
	adrp	x8, _MANDOCERR_DATE_NORM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MANDOCERR_DATE_NORM@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh18:
	adrp	x3, l_.str.4@PAGE
Lloh19:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_mandoc_msg
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	mov	x2, x21
	bl	_a2time
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x23, [sp, #8]
	mov	x0, #0
	bl	_time
	add	x8, x0, #21, lsl #12            ; =86016
	add	x8, x8, #384
	cmp	x23, x8
	b.le	LBB0_21
; %bb.19:
Lloh22:
	adrp	x3, l_.str.4@PAGE
Lloh23:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh24:
	adrp	x8, _MANDOCERR_DATE_FUTURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MANDOCERR_DATE_FUTURE@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh26:
	adrp	x3, l_.str.4@PAGE
Lloh27:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh28:
	adrp	x8, _MANDOCERR_DATE_BAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MANDOCERR_DATE_BAD@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	ldr	x8, [x22]
Lloh30:
	adrp	x9, _MACROSET_MDOC@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MACROSET_MDOC@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
Lloh33:
	adrp	x3, l_.str.6@PAGE
Lloh34:
	add	x3, x3, l_.str.6@PAGEOFF
Lloh35:
	adrp	x8, _MANDOCERR_DATE_LEGACY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MANDOCERR_DATE_LEGACY@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	str	x21, [sp]
	mov	x1, x20
	mov	x2, x19
	bl	_mandoc_msg
LBB0_24:
	mov	x0, x21
	bl	_mandoc_strdup
	mov	x22, x0
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MANDOCERR_DATE_MISSING,4,2     ; @MANDOCERR_DATE_MISSING
l_.str.1:                               ; @.str.1
	.asciz	"$Mdocdate$"

l_.str.2:                               ; @.str.2
	.asciz	"$Mdocdate: %b %d %Y $"

l_.str.3:                               ; @.str.3
	.asciz	"%b %d, %Y"

	.comm	_MANDOCERR_DATE_FUTURE,4,2      ; @MANDOCERR_DATE_FUTURE
l_.str.4:                               ; @.str.4
	.asciz	"%s"

	.comm	_MANDOCERR_DATE_NORM,4,2        ; @MANDOCERR_DATE_NORM
l_.str.5:                               ; @.str.5
	.asciz	"%Y-%m-%d"

	.comm	_MANDOCERR_DATE_BAD,4,2         ; @MANDOCERR_DATE_BAD
	.comm	_MACROSET_MDOC,8,3              ; @MACROSET_MDOC
	.comm	_MANDOCERR_DATE_LEGACY,4,2      ; @MANDOCERR_DATE_LEGACY
l_.str.6:                               ; @.str.6
	.asciz	"Dd %s"

.subsections_via_symbols
