	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESdate_fmt_asc            ## -- Begin function PGTYPESdate_fmt_asc
	.p2align	4, 0x90
_PGTYPESdate_fmt_asc:                   ## @PGTYPESdate_fmt_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	%rdi, %rbx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_strcpy
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$1, %esi
	movl	$1, %edx
	callq	_date2j
	leaq	(%rax,%rbx), %rdi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %rsi
	callq	_j2date
	movq	%rbx, %rdi
	callq	_PGTYPESdate_dayofweek
	cltq
	leaq	_PGTYPESdate_fmt_asc.mapping(%rip), %rcx
	xorl	%edx, %edx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_PGTYPES_DATE_NUM_MAX_DIGITS@GOTPCREL(%rip), %r13
	shlq	$3, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rax
	shlq	$4, %rax
	leaq	_PGTYPESdate_fmt_asc.mapping(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rcx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmpq	$6, %rdx
	je	LBB0_21
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	leaq	_PGTYPESdate_fmt_asc.mapping(%rip), %rcx
	movl	8(%rax,%rcx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_4:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	_pgtypes_date_weekdays_short@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	-88(%rbp), %rax                 ## 8-byte Folded Reload
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	(%rax), %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_strstr
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	$-133, %eax
	leaq	L_.str.6(%rip), %rbx
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	-56(%rbp), %r15
	imulq	$1374389535, %r15, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	imull	$100, %eax, %eax
	subl	%eax, %r15d
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-56(%rbp), %r14d
	movl	(%r13), %edi
	callq	_pgtypes_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, %r15
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, %rcx
	orq	%r14, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	%r15, %rdi
	leaq	L_.str.9(%rip), %rdx
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r15, %rdi
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	_months@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-52(%rbp), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$-8, %rax
	jmp	LBB0_5
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-52(%rbp), %r15d
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-48(%rbp), %r15d
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r13), %edi
	callq	_pgtypes_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, %r14
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andq	%rax, %rcx
	movl	%r15d, %eax
	orq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	%r14, %rdi
	leaq	L_.str.8(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r14, %rdi
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=2
	callq	_free
	jmp	LBB0_7
LBB0_20:
	movl	$-1, %eax
LBB0_22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_4
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @PGTYPESdate_fmt_asc.mapping
_PGTYPESdate_fmt_asc.mapping:
	.quad	L_.str
	.long	137                             ## 0x89
	.space	4
	.quad	L_.str.1
	.long	138                             ## 0x8a
	.space	4
	.quad	L_.str.2
	.long	135                             ## 0x87
	.space	4
	.quad	L_.str.3
	.long	136                             ## 0x88
	.space	4
	.quad	L_.str.4
	.long	134                             ## 0x86
	.space	4
	.quad	L_.str.5
	.long	133                             ## 0x85
	.space	4
	.space	16

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ddd"

L_.str.1:                               ## @.str.1
	.asciz	"dd"

L_.str.2:                               ## @.str.2
	.asciz	"mmm"

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

L_.str.4:                               ## @.str.4
	.asciz	"yyyy"

L_.str.5:                               ## @.str.5
	.asciz	"yy"

	.comm	_pgtypes_date_weekdays_short,8,3 ## @pgtypes_date_weekdays_short
	.comm	_months,8,3                     ## @months
L_.str.6:                               ## @.str.6
	.asciz	" "

	.comm	_PGTYPES_DATE_NUM_MAX_DIGITS,4,2 ## @PGTYPES_DATE_NUM_MAX_DIGITS
L_.str.8:                               ## @.str.8
	.asciz	"%02u"

L_.str.9:                               ## @.str.9
	.asciz	"%04u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PGTYPESdate_fmt_asc            ; -- Begin function PGTYPESdate_fmt_asc
	.p2align	2
_PGTYPESdate_fmt_asc:                   ; @PGTYPESdate_fmt_asc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x2
	bl	_strcpy
	mov	w0, #2000
	mov	w1, #1
	mov	w2, #1
	bl	_date2j
	add	x0, x0, x20
	add	x8, sp, #16
	orr	x2, x8, #0x4
	add	x3, x8, #8
	add	x1, sp, #16
	bl	_j2date
	mov	x0, x20
	bl	_PGTYPESdate_dayofweek
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x27, #0
Lloh0:
	adrp	x8, _PGTYPESdate_fmt_asc.mapping@PAGE
Lloh1:
	add	x8, x8, _PGTYPESdate_fmt_asc.mapping@PAGEOFF
	sxtw	x9, w0
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh2:
	adrp	x21, lJTI0_0@PAGE
Lloh3:
	add	x21, x21, lJTI0_0@PAGEOFF
Lloh4:
	adrp	x28, _PGTYPES_DATE_NUM_MAX_DIGITS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PGTYPES_DATE_NUM_MAX_DIGITS@GOTPAGEOFF]
                                        ; implicit-def: $x23
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
Lloh6:
	adrp	x8, _PGTYPESdate_fmt_asc.mapping@PAGE
Lloh7:
	add	x8, x8, _PGTYPESdate_fmt_asc.mapping@PAGEOFF
	add	x8, x8, x27, lsl #4
	cmp	x27, #6
	b.eq	LBB0_22
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x22, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_strstr
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
Lloh8:
	adrp	x8, _PGTYPESdate_fmt_asc.mapping@PAGE
Lloh9:
	add	x8, x8, _PGTYPESdate_fmt_asc.mapping@PAGEOFF
	add	x8, x8, x27, lsl #4
	ldr	w20, [x8, #8]
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=2
Lloh10:
	adrp	x8, _pgtypes_date_weekdays_short@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pgtypes_date_weekdays_short@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x23, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_memcpy
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_strstr
	mov	x24, x0
	cbz	x0, LBB0_1
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w8, w20, #133
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	adr	x9, LBB0_4
	ldrb	w10, [x21, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [sp, #16]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	mov	w10, #100
	msub	w25, w9, w10, w8
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh13:
	adrp	x23, l_.str.6@PAGE
Lloh14:
	add	x23, x23, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w26, [sp, #16]
	ldr	w0, [x28]
	bl	_pgtypes_alloc
	cbz	x0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x25, x0
	and	x8, x23, #0xffffffff00000000
	orr	x23, x8, x26
	ldr	w1, [x28]
Lloh15:
	adrp	x2, l_.str.9@PAGE
Lloh16:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x3, x26
	bl	_snprintf
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	mov	x0, x25
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh17:
	adrp	x8, _months@GOTPAGE
Lloh18:
	ldr	x8, [x8, _months@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldrsw	x9, [sp, #20]
	add	x8, x8, x9, lsl #3
	sub	x8, x8, #8
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w25, [sp, #20]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w25, [sp, #24]
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x28]
	bl	_pgtypes_alloc
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x26, x0
	and	x8, x23, #0xffffffff00000000
	mov	w9, w25
	orr	x23, x8, x9
	ldr	w1, [x28]
Lloh20:
	adrp	x2, l_.str.8@PAGE
Lloh21:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x25
	bl	_snprintf
	mov	x0, x26
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_memcpy
	mov	x0, x26
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_free
	b	LBB0_7
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @PGTYPESdate_fmt_asc.mapping
_PGTYPESdate_fmt_asc.mapping:
	.quad	l_.str
	.long	137                             ; 0x89
	.space	4
	.quad	l_.str.1
	.long	138                             ; 0x8a
	.space	4
	.quad	l_.str.2
	.long	135                             ; 0x87
	.space	4
	.quad	l_.str.3
	.long	136                             ; 0x88
	.space	4
	.quad	l_.str.4
	.long	134                             ; 0x86
	.space	4
	.quad	l_.str.5
	.long	133                             ; 0x85
	.space	4
	.space	16

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ddd"

l_.str.1:                               ; @.str.1
	.asciz	"dd"

l_.str.2:                               ; @.str.2
	.asciz	"mmm"

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

l_.str.4:                               ; @.str.4
	.asciz	"yyyy"

l_.str.5:                               ; @.str.5
	.asciz	"yy"

	.comm	_pgtypes_date_weekdays_short,8,3 ; @pgtypes_date_weekdays_short
	.comm	_months,8,3                     ; @months
l_.str.6:                               ; @.str.6
	.asciz	" "

	.comm	_PGTYPES_DATE_NUM_MAX_DIGITS,4,2 ; @PGTYPES_DATE_NUM_MAX_DIGITS
l_.str.8:                               ; @.str.8
	.asciz	"%02u"

l_.str.9:                               ; @.str.9
	.asciz	"%04u"

.subsections_via_symbols
