	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Date_toLocaleDateString
_Date_toLocaleDateString:               ## @Date_toLocaleDateString
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_date_this
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	callq	_jsstr_nan
	movq	%rax, %rdi
LBB0_9:
	callq	_jsval_string
	movl	%eax, (%r14)
LBB0_10:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_JS_E_DATE_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_4:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_local_time
	movl	%eax, %edi
	callq	_create_systemtime
	movl	%eax, -48(%rbp)
	addl	$-10000, %eax                   ## imm = 0xD8F0
	cmpl	$-8400, %eax                    ## imm = 0xDF30
	ja	LBB0_5
## %bb.13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dateobj_to_date_string         ## TAILCALL
LBB0_5:
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	movl	(%r15), %edi
	movq	_DATE_LONGDATE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_GetDateFormatW
	movl	%eax, %r12d
	leal	-1(%r12), %edi
	leaq	-56(%rbp), %rsi
	callq	_jsstr_alloc_buf
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movl	(%r15), %edi
	movl	(%r13), %esi
	movq	-56(%rbp), %r8
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r9d
	callq	_GetDateFormatW
	movq	%rbx, %rdi
	jmp	LBB0_9
LBB0_7:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JS_E_DATE_EXPECTED,4,2         ## @JS_E_DATE_EXPECTED
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_DATE_LONGDATE,4,2              ## @DATE_LONGDATE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_Date_toLocaleDateString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Date_toLocaleDateString
_Date_toLocaleDateString:               ; @Date_toLocaleDateString
	.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	x19, x5
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x21
	bl	_date_this
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_isnan
	cbz	x0, LBB0_8
; %bb.2:
	cbz	x19, LBB0_5
; %bb.3:
	bl	_jsstr_nan
LBB0_4:
	bl	_jsval_string
	str	w0, [x19]
LBB0_5:
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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_7:
Lloh4:
	adrp	x8, _JS_E_DATE_EXPECTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _JS_E_DATE_EXPECTED@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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	_throw_type_error
LBB0_8:
	ldr	w0, [x21]
	mov	x1, x21
	bl	_local_time
	bl	_create_systemtime
	str	w0, [sp, #8]
	mov	w8, #-10000
	mov	w9, #-8400
	add	w8, w0, w8
	cmp	w8, w9
	b.hi	LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x19
	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	_dateobj_to_date_string
LBB0_10:
	cbz	x19, LBB0_5
; %bb.11:
	ldr	w0, [x20]
Lloh7:
	adrp	x23, _DATE_LONGDATE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DATE_LONGDATE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_GetDateFormatW
	mov	x21, x0
	sub	w0, w0, #1
	mov	x1, sp
	bl	_jsstr_alloc_buf
	cbz	x0, LBB0_13
; %bb.12:
	mov	x22, x0
	ldr	w0, [x20]
	ldr	w1, [x23]
	ldr	x4, [sp]
	add	x2, sp, #8
	mov	x3, #0
	mov	x5, x21
	bl	_GetDateFormatW
	mov	x0, x22
	b	LBB0_4
LBB0_13:
Lloh9:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JS_E_DATE_EXPECTED,4,2         ; @JS_E_DATE_EXPECTED
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_DATE_LONGDATE,4,2              ; @DATE_LONGDATE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_Date_toLocaleDateString
.subsections_via_symbols
