	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESdate_from_asc           ## -- Begin function PGTYPESdate_from_asc
	.p2align	4, 0x90
_PGTYPESdate_from_asc:                  ## @PGTYPESdate_from_asc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDATEFIELDS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MAXDATELEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	addl	%ebx, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	%r13, %rdi
	callq	_strlen
	cmpl	(%r12), %eax
	jg	LBB0_1
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	leaq	-112(%rbp), %r9
	cmovneq	%rax, %r9
	leaq	-52(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_ParseDateTime
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	-52(%rbp), %edx
	subq	$8, %rsp
	leaq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-100(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r15, %rsi
	pushq	$0
	callq	_DecodeDateTime
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_PGTYPES_DATE_BAD_DATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_8:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-56(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.6:
	leaq	-72(%rbp), %rdi
	callq	_GetEpochTime
	testl	%eax, %eax
	js	LBB0_1
LBB0_7:
	movl	-72(%rbp), %edi
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edx
	callq	_date2j
	movq	%rax, %rbx
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$1, %esi
	movl	$1, %edx
	callq	_date2j
	subq	%rax, %rbx
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDATEFIELDS,4,2              ## @MAXDATEFIELDS
	.comm	_MAXDATELEN,4,2                 ## @MAXDATELEN
	.comm	_errno,8,3                      ## @errno
	.comm	_PGTYPES_DATE_BAD_DATE,8,3      ## @PGTYPES_DATE_BAD_DATE
	.comm	_INT_MIN,8,3                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESdate_from_asc           ; -- Begin function PGTYPESdate_from_asc
	.p2align	2
_PGTYPESdate_from_asc:                  ; @PGTYPESdate_from_asc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #48
	mov	x21, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x12, _MAXDATEFIELDS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAXDATEFIELDS@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w12, [x12]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh9:
	adrp	x26, _MAXDATELEN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MAXDATELEN@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w9, w8, w12
	add	x8, x9, #15
	and	x8, x8, #0x1fffffff0
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
Lloh13:
	adrp	x25, _errno@GOTPAGE
Lloh14:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	str	xzr, [x25]
	bl	_strlen
	ldr	w8, [x26]
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.1:
	sub	x8, x29, #104
	cmp	x21, #0
	csel	x5, x8, x21, eq
	sub	x4, x29, #96
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	bl	_ParseDateTime
	cbnz	x0, LBB0_3
; %bb.2:
	ldur	w2, [x29, #-96]
	sub	x3, x29, #92
	sub	x4, x29, #88
	sub	x5, x29, #76
	mov	x0, x19
	mov	x1, x22
	mov	w6, #0
	bl	_DecodeDateTime
	cbz	x0, LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _PGTYPES_DATE_BAD_DATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PGTYPES_DATE_BAD_DATE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x25]
Lloh18:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
LBB0_4:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldur	w8, [x29, #-92]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.8:
	sub	x0, x29, #88
	bl	_GetEpochTime
	tbnz	w0, #31, LBB0_3
LBB0_9:
	ldp	w0, w1, [x29, #-88]
	ldur	w2, [x29, #-80]
	bl	_date2j
	mov	x19, x0
	mov	w0, #2000
	mov	w1, #1
	mov	w2, #1
	bl	_date2j
	sub	x0, x19, x0
	b	LBB0_4
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDATEFIELDS,4,2              ; @MAXDATEFIELDS
	.comm	_MAXDATELEN,4,2                 ; @MAXDATELEN
	.comm	_errno,8,3                      ; @errno
	.comm	_PGTYPES_DATE_BAD_DATE,8,3      ; @PGTYPES_DATE_BAD_DATE
	.comm	_INT_MIN,8,3                    ; @INT_MIN
.subsections_via_symbols
