	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dateobj_to_date_string
_dateobj_to_date_string:                ## @dateobj_to_date_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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%rdi), %edi
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_jsstr_nan
	jmp	LBB0_3
LBB0_5:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_local_time
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:
	movl	%eax, %r14d
	movq	%r12, -376(%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, %r13d
	movb	$0, -112(%rbp)
	movl	%r14d, %edi
	callq	_week_day
	cltq
	leaq	_dateobj_to_date_string.week_ids(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movb	$0, -176(%rbp)
	movl	%r14d, %edi
	callq	_month_from_time
	cltq
	leaq	_dateobj_to_date_string.month_ids(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movq	%r12, %r13
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movl	%r14d, %edi
	callq	_year_from_time
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.8:
	movl	$1, %eax
	subl	%ebx, %eax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	-376(%rbp), %r12                ## 8-byte Reload
LBB0_9:
	movl	%r14d, %edi
	callq	_date_from_time
	testq	%r12, %r12
	leaq	_dateobj_to_date_string.formatBCW(%rip), %rcx
	leaq	_dateobj_to_date_string.formatADW(%rip), %rsi
	cmoveq	%rcx, %rsi
	leaq	-368(%rbp), %r14
	movq	%r14, %rdi
	leaq	-112(%rbp), %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	movl	%ebx, %r9d
	callq	_swprintf
	movq	%r14, %rdi
	callq	_jsstr_alloc
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	%rax, %rdi
	callq	_jsval_string
	movl	%eax, (%r15)
LBB0_4:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_dateobj_to_date_string.formatADW:      ## @dateobj_to_date_string.formatADW
	.asciz	"%s %s %d %d"

	.p2align	4                               ## @dateobj_to_date_string.formatBCW
_dateobj_to_date_string.formatBCW:
	.asciz	"%s %s %d %d B.C."

	.p2align	4                               ## @dateobj_to_date_string.week_ids
_dateobj_to_date_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                               ## @dateobj_to_date_string.month_ids
_dateobj_to_date_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	_dateobj_to_date_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dateobj_to_date_string
_dateobj_to_date_string:                ; @dateobj_to_date_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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	x19, 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, #-56]
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	ldr	w0, [x0]
	bl	_isnan
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	bl	_jsstr_nan
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_local_time
	cbz	x19, LBB0_6
; %bb.4:
	mov	x20, x0
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	x21, x0
	sturb	wzr, [x29, #-120]
	mov	x0, x20
	bl	_week_day
	sbfiz	x8, x0, #2, #32
Lloh15:
	adrp	x9, _dateobj_to_date_string.week_ids@PAGE
Lloh16:
	add	x9, x9, _dateobj_to_date_string.week_ids@PAGEOFF
	ldr	w22, [x9, x8]
	sub	x0, x29, #120
	bl	_ARRAY_SIZE
	mov	x3, x0
	sub	x2, x29, #120
	mov	x0, x21
	mov	x1, x22
	bl	_GetLocaleInfoW
	sturb	wzr, [x29, #-184]
	mov	x0, x20
	bl	_month_from_time
	sbfiz	x8, x0, #2, #32
Lloh17:
	adrp	x9, _dateobj_to_date_string.month_ids@PAGE
Lloh18:
	add	x9, x9, _dateobj_to_date_string.month_ids@PAGEOFF
	ldr	w22, [x9, x8]
	sub	x0, x29, #184
	bl	_ARRAY_SIZE
	mov	x3, x0
	sub	x2, x29, #184
	mov	x0, x21
	mov	x1, x22
	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	w21, w9, w0, lt
	csel	x22, x8, x23, lt
	mov	x0, x20
	bl	_date_from_time
	mov	x4, x0
Lloh22:
	adrp	x8, _dateobj_to_date_string.formatADW@PAGE
Lloh23:
	add	x8, x8, _dateobj_to_date_string.formatADW@PAGEOFF
Lloh24:
	adrp	x9, _dateobj_to_date_string.formatBCW@PAGE
Lloh25:
	add	x9, x9, _dateobj_to_date_string.formatBCW@PAGEOFF
	cmp	x22, #0
	csel	x1, x9, x8, eq
	add	x0, sp, #8
	sub	x2, x29, #120
	sub	x3, x29, #184
	mov	x5, x21
	bl	_swprintf
	add	x0, sp, #8
	bl	_jsstr_alloc
	cbz	x0, LBB0_9
LBB0_5:
	bl	_jsval_string
	str	w0, [x19]
LBB0_6:
Lloh26:
	adrp	x8, _S_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_9:
Lloh31:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.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 AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_dateobj_to_date_string.formatADW:      ; @dateobj_to_date_string.formatADW
	.asciz	"%s %s %d %d"

_dateobj_to_date_string.formatBCW:      ; @dateobj_to_date_string.formatBCW
	.asciz	"%s %s %d %d B.C."

	.p2align	2                               ; @dateobj_to_date_string.week_ids
_dateobj_to_date_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                               ; @dateobj_to_date_string.month_ids
_dateobj_to_date_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	_dateobj_to_date_string
.subsections_via_symbols
