	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DateConstr_value
_DateConstr_value:                      ## @DateConstr_value
	.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	%r8, %r12
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	cmpl	$128, %ebx
	je	LBB0_16
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_17
## %bb.2:
	cmpl	$1, %r13d
	je	LBB0_6
## %bb.3:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.4:
	xorl	%eax, %eax
	callq	_date_now
LBB0_5:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_create_date
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_15
LBB0_16:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_GetSystemTimeAsFileTime
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_FileTimeToLocalFileTime
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_date_to_string
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %esi
	movq	_NO_HINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_to_primitive
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_is_string
	movl	-44(%rbp), %esi
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%esi, %edi
	callq	_get_string
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_date_parse
	jmp	LBB0_10
LBB0_12:
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_date_utc
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_create_date
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	-64(%rbp), %rdi
	callq	_date_from_jsdisp
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	%rax, %rsi
	callq	_utc
	movl	%eax, (%rbx)
LBB0_15:
	movq	-64(%rbp), %rdi
	callq	_jsval_obj
	movl	%eax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_to_number
LBB0_10:
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_jsval_release
	movl	%ebx, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_19
## %bb.11:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_time_clip
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_NO_HINT,4,2                    ## @NO_HINT
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_TIME_EPOCH,4,2                 ## @TIME_EPOCH
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"unimplemented flags %x\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.no_dead_strip	_DateConstr_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DateConstr_value
_DateConstr_value:                      ; @DateConstr_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cmp	w23, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w23, #129
	b.ne	LBB0_7
; %bb.2:
	cmp	w22, #1
	b.eq	LBB0_10
; %bb.3:
	cbnz	w22, LBB0_13
; %bb.4:
	bl	_date_now
LBB0_5:
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, #0
	bl	_create_date
	mov	x21, x0
	bl	_FAILED
	cbnz	w0, LBB0_9
	b	LBB0_16
LBB0_6:
	add	x0, sp, #24
	bl	_GetSystemTimeAsFileTime
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_FileTimeToLocalFileTime
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, x19
	bl	_date_to_string
	mov	x21, x0
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_FIXME
Lloh7:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _NO_HINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_HINT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x2, sp, #20
	mov	x0, x20
	bl	_to_primitive
	mov	x21, x0
	bl	_FAILED
	cbnz	w0, LBB0_9
; %bb.11:
	ldr	w0, [sp, #20]
	bl	_is_string
	ldr	w1, [sp, #20]
	cbz	w0, LBB0_17
; %bb.12:
	mov	x0, x1
	bl	_get_string
	add	x1, sp, #8
	bl	_date_parse
	b	LBB0_18
LBB0_13:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_date_utc
	mov	x21, x0
	bl	_FAILED
	cbnz	w0, LBB0_9
; %bb.14:
	ldr	d0, [sp, #8]
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, #0
	bl	_create_date
	mov	x21, x0
	bl	_FAILED
	cbnz	w0, LBB0_9
; %bb.15:
	ldr	x0, [sp, #24]
	bl	_date_from_jsdisp
	mov	x20, x0
	ldr	w0, [x0]
	mov	x1, x20
	bl	_utc
	str	w0, [x20]
LBB0_16:
	ldr	x0, [sp, #24]
	bl	_jsval_obj
	str	w0, [x19]
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_17:
	add	x2, sp, #8
	mov	x0, x20
	bl	_to_number
LBB0_18:
	mov	x21, x0
	ldr	w0, [sp, #20]
	bl	_jsval_release
	mov	x0, x21
	bl	_FAILED
	cbnz	w0, LBB0_9
; %bb.19:
	ldr	d0, [sp, #8]
	bl	_time_clip
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_NO_HINT,4,2                    ; @NO_HINT
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_TIME_EPOCH,4,2                 ; @TIME_EPOCH
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"unimplemented flags %x\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.no_dead_strip	_DateConstr_value
.subsections_via_symbols
