	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function date_to_string
_date_to_string:                        ## @date_to_string
	.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	$376, %rsp                      ## imm = 0x178
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_jsstr_nan
	jmp	LBB0_3
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	movq	%r13, -376(%rbp)                ## 8-byte Spill
	movq	%r15, -384(%rbp)                ## 8-byte Spill
	movq	%rbx, -408(%rbp)                ## 8-byte Spill
	movq	_LANG_ENGLISH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SUBLANG_ENGLISH_US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAKELANGID
	movq	_SORT_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MAKELCID
	movl	%eax, %ebx
	movb	$0, -112(%rbp)
	movl	%r14d, %edi
	callq	_week_day
	cltq
	leaq	_date_to_string.week_ids(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movb	$0, -176(%rbp)
	movl	%r14d, %edi
	callq	_month_from_time
	cltq
	leaq	_date_to_string.month_ids(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
	leaq	-176(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movl	%r14d, %edi
	callq	_year_from_time
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movl	$1, %eax
	subl	%r13d, %eax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -384(%rbp)                ## 8-byte Spill
	movl	%eax, %r13d
LBB0_8:
	movl	%r14d, %edi
	callq	_date_from_time
	movl	%eax, %ebx
	movl	%r12d, %r15d
	negl	%r15d
	cmovsl	%r12d, %r15d
	cmpq	$0, -376(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_9
## %bb.10:
	movl	%ebx, -376(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_hour_from_time
	movq	%rax, -392(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_min_from_time
	movq	%rax, -400(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_sec_from_time
	movq	%rax, %r11
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	notl	%r12d
	shrl	$31, %r12d
	leal	(%r12,%r12), %r10d
	addl	$43, %r10d
	movl	%r15d, %eax
	movl	$2290649225, %ebx               ## imm = 0x88888889
	imulq	%rax, %rbx
	shrq	$37, %rbx
	imull	$60, %ebx, %eax
	subl	%eax, %r15d
	cmpq	$0, -384(%rbp)                  ## 8-byte Folded Reload
	leaq	_date_to_string.BCW(%rip), %rax
	leaq	_date_to_string.ADW(%rip), %r12
	cmoveq	%rax, %r12
	subq	$8, %rsp
	leaq	_date_to_string.formatW(%rip), %rsi
	leaq	-368(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	leaq	-176(%rbp), %rcx
	movl	-376(%rbp), %r8d                ## 4-byte Reload
	movq	-392(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r13
	pushq	%r15
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	pushq	-400(%rbp)                      ## 8-byte Folded Reload
	callq	_swprintf
	addq	$64, %rsp
	jmp	LBB0_14
LBB0_9:
	movl	%r14d, %edi
	callq	_hour_from_time
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_min_from_time
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_sec_from_time
	movq	%rax, %r10
	cmpq	$0, -384(%rbp)                  ## 8-byte Folded Reload
	leaq	_date_to_string.BCW(%rip), %rax
	movl	%ebx, %r8d
	leaq	_date_to_string.ADW(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	_date_to_string.formatNoOffsetW(%rip), %rsi
	leaq	-368(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	leaq	-176(%rbp), %rcx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r13
	pushq	%r10
	pushq	%r12
	jmp	LBB0_13
LBB0_12:
	cmpq	$0, -384(%rbp)                  ## 8-byte Folded Reload
	leaq	_date_to_string.BCW(%rip), %rax
	leaq	_date_to_string.ADW(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	_date_to_string.formatUTCW(%rip), %rsi
	leaq	-368(%rbp), %rdi
	leaq	-112(%rbp), %rdx
	leaq	-176(%rbp), %rcx
	movl	-376(%rbp), %r8d                ## 4-byte Reload
	movq	-392(%rbp), %r9                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r13
	pushq	%r11
	pushq	-400(%rbp)                      ## 8-byte Folded Reload
LBB0_13:
	callq	_swprintf
	addq	$32, %rsp
LBB0_14:
	leaq	-368(%rbp), %rdi
	callq	_jsstr_alloc
	testq	%rax, %rax
	movq	-408(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_15
LBB0_3:
	movq	%rax, %rdi
	callq	_jsval_string
	movl	%eax, (%rbx)
LBB0_4:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$376, %rsp                      ## imm = 0x178
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @date_to_string.formatW
_date_to_string.formatW:
	.asciz	"%s %s %d %02d:%02d:%02d UTC%c%02d%02d %d%s"

	.p2align	4                               ## @date_to_string.formatUTCW
_date_to_string.formatUTCW:
	.asciz	"%s %s %d %02d:%02d:%02d UTC %d%s"

	.p2align	4                               ## @date_to_string.formatNoOffsetW
_date_to_string.formatNoOffsetW:
	.asciz	"%s %s %d %02d:%02d:%02d %d%s"

_date_to_string.ADW:                    ## @date_to_string.ADW
	.space	1

_date_to_string.BCW:                    ## @date_to_string.BCW
	.asciz	" B.C."

	.p2align	4                               ## @date_to_string.week_ids
_date_to_string.week_ids:
	.long	140                             ## 0x8c
	.long	146                             ## 0x92
	.long	145                             ## 0x91
	.long	144                             ## 0x90
	.long	143                             ## 0x8f
	.long	142                             ## 0x8e
	.long	141                             ## 0x8d

	.p2align	4                               ## @date_to_string.month_ids
_date_to_string.month_ids:
	.long	139                             ## 0x8b
	.long	135                             ## 0x87
	.long	134                             ## 0x86
	.long	133                             ## 0x85
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	138                             ## 0x8a
	.long	137                             ## 0x89
	.long	136                             ## 0x88

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_LANG_ENGLISH,4,2               ## @LANG_ENGLISH
	.comm	_SUBLANG_ENGLISH_US,4,2         ## @SUBLANG_ENGLISH_US
	.comm	_SORT_DEFAULT,4,2               ## @SORT_DEFAULT
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_date_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function date_to_string
_date_to_string:                        ; @date_to_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #384]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	bl	_isnan
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x19, LBB0_12
; %bb.2:
	bl	_jsstr_nan
	b	LBB0_11
LBB0_3:
	cbz	x19, LBB0_12
; %bb.4:
Lloh6:
	adrp	x8, _LANG_ENGLISH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LANG_ENGLISH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SUBLANG_ENGLISH_US@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUBLANG_ENGLISH_US@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_MAKELANGID
Lloh12:
	adrp	x8, _SORT_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SORT_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_MAKELCID
	mov	x22, x0
	sturb	wzr, [x29, #-160]
	mov	x0, x20
	bl	_week_day
	sbfiz	x8, x0, #2, #32
Lloh15:
	adrp	x9, _date_to_string.week_ids@PAGE
Lloh16:
	add	x9, x9, _date_to_string.week_ids@PAGEOFF
	ldr	w24, [x9, x8]
	sub	x0, x29, #160
	bl	_ARRAY_SIZE
	mov	x3, x0
	sub	x2, x29, #160
	mov	x0, x22
	mov	x1, x24
	bl	_GetLocaleInfoW
	sturb	wzr, [x29, #-224]
	mov	x0, x20
	bl	_month_from_time
	sbfiz	x8, x0, #2, #32
Lloh17:
	adrp	x9, _date_to_string.month_ids@PAGE
Lloh18:
	add	x9, x9, _date_to_string.month_ids@PAGEOFF
	ldr	w24, [x9, x8]
	sub	x0, x29, #224
	bl	_ARRAY_SIZE
	mov	x3, x0
	sub	x2, x29, #224
	mov	x0, x22
	mov	x1, x24
	bl	_GetLocaleInfoW
	mov	x0, x20
	bl	_year_from_time
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	mov	w9, #1
	sub	w9, w9, w0
	cmp	w0, #0
	csel	w26, w9, w0, lt
	csel	x25, x8, x25, lt
	mov	x0, x20
	bl	_date_from_time
	mov	x22, x0
	mov	w8, #45
	mov	w9, #43
	cmp	w21, #0
	csel	w27, w9, w8, lt
	cneg	w28, w21, mi
	mov	x0, x20
	cbz	x23, LBB0_7
; %bb.5:
	bl	_hour_from_time
	mov	x23, x0
	mov	x0, x20
	bl	_min_from_time
	mov	x24, x0
	mov	x0, x20
	bl	_sec_from_time
	mov	x7, x0
	cbz	w21, LBB0_8
; %bb.6:
	mov	w8, #34953
	movk	w8, #34952, lsl #16
	umull	x8, w28, w8
	lsr	x8, x8, #37
	mov	w9, #60
	msub	w9, w8, w9, w28
Lloh22:
	adrp	x10, _date_to_string.ADW@PAGE
Lloh23:
	add	x10, x10, _date_to_string.ADW@PAGEOFF
Lloh24:
	adrp	x11, _date_to_string.BCW@PAGE
Lloh25:
	add	x11, x11, _date_to_string.BCW@PAGEOFF
	cmp	x25, #0
	csel	x10, x11, x10, eq
	str	w27, [sp]
	stp	x26, x10, [sp, #24]
Lloh26:
	adrp	x1, _date_to_string.formatW@PAGE
Lloh27:
	add	x1, x1, _date_to_string.formatW@PAGEOFF
	add	x0, sp, #48
	sub	x2, x29, #160
	stp	x8, x9, [sp, #8]
	b	LBB0_9
LBB0_7:
	bl	_hour_from_time
	mov	x21, x0
	mov	x0, x20
	bl	_min_from_time
	mov	x23, x0
	mov	x0, x20
	bl	_sec_from_time
	mov	x7, x0
Lloh28:
	adrp	x8, _date_to_string.ADW@PAGE
Lloh29:
	add	x8, x8, _date_to_string.ADW@PAGEOFF
Lloh30:
	adrp	x9, _date_to_string.BCW@PAGE
Lloh31:
	add	x9, x9, _date_to_string.BCW@PAGEOFF
	cmp	x25, #0
	csel	x8, x9, x8, eq
	str	x8, [sp, #8]
	str	w26, [sp]
Lloh32:
	adrp	x1, _date_to_string.formatNoOffsetW@PAGE
Lloh33:
	add	x1, x1, _date_to_string.formatNoOffsetW@PAGEOFF
	add	x0, sp, #48
	sub	x2, x29, #160
	sub	x3, x29, #224
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	b	LBB0_10
LBB0_8:
Lloh34:
	adrp	x8, _date_to_string.ADW@PAGE
Lloh35:
	add	x8, x8, _date_to_string.ADW@PAGEOFF
Lloh36:
	adrp	x9, _date_to_string.BCW@PAGE
Lloh37:
	add	x9, x9, _date_to_string.BCW@PAGEOFF
	cmp	x25, #0
	csel	x8, x9, x8, eq
	str	w26, [sp]
	str	x8, [sp, #8]
Lloh38:
	adrp	x1, _date_to_string.formatUTCW@PAGE
Lloh39:
	add	x1, x1, _date_to_string.formatUTCW@PAGEOFF
	add	x0, sp, #48
	sub	x2, x29, #160
LBB0_9:
	sub	x3, x29, #224
	mov	x4, x22
	mov	x5, x23
	mov	x6, x24
LBB0_10:
                                        ; kill: def $w7 killed $w7 killed $x7
	bl	_swprintf
	add	x0, sp, #48
	bl	_jsstr_alloc
	cbz	x0, LBB0_15
LBB0_11:
	bl	_jsval_string
	str	w0, [x19]
LBB0_12:
Lloh40:
	adrp	x8, _S_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #400]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #384]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_15:
Lloh45:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh46:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_13
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_date_to_string.formatW:                ; @date_to_string.formatW
	.asciz	"%s %s %d %02d:%02d:%02d UTC%c%02d%02d %d%s"

_date_to_string.formatUTCW:             ; @date_to_string.formatUTCW
	.asciz	"%s %s %d %02d:%02d:%02d UTC %d%s"

_date_to_string.formatNoOffsetW:        ; @date_to_string.formatNoOffsetW
	.asciz	"%s %s %d %02d:%02d:%02d %d%s"

_date_to_string.ADW:                    ; @date_to_string.ADW
	.space	1

_date_to_string.BCW:                    ; @date_to_string.BCW
	.asciz	" B.C."

	.p2align	2                               ; @date_to_string.week_ids
_date_to_string.week_ids:
	.long	140                             ; 0x8c
	.long	146                             ; 0x92
	.long	145                             ; 0x91
	.long	144                             ; 0x90
	.long	143                             ; 0x8f
	.long	142                             ; 0x8e
	.long	141                             ; 0x8d

	.p2align	2                               ; @date_to_string.month_ids
_date_to_string.month_ids:
	.long	139                             ; 0x8b
	.long	135                             ; 0x87
	.long	134                             ; 0x86
	.long	133                             ; 0x85
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	138                             ; 0x8a
	.long	137                             ; 0x89
	.long	136                             ; 0x88

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_LANG_ENGLISH,4,2               ; @LANG_ENGLISH
	.comm	_SUBLANG_ENGLISH_US,4,2         ; @SUBLANG_ENGLISH_US
	.comm	_SORT_DEFAULT,4,2               ; @SORT_DEFAULT
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_date_to_string
.subsections_via_symbols
