	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_timestamp_internal
_make_timestamp_internal:               ## @make_timestamp_internal
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	%edi, -64(%rbp)
	movl	%esi, -60(%rbp)
	movl	%edx, -56(%rbp)
	movq	_DTK_DATE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ValidateDate
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	callq	_IS_VALID_JULIAN
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	callq	_date2j
	movq	%rax, %r15
	movq	_POSTGRES_EPOCH_JDATE@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movl	%r13d, %eax
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %eax
	movq	_MINS_PER_HOUR@GOTPCREL(%rip), %r12
	js	LBB0_13
## %bb.5:
	cmpl	%r13d, (%r12)
	jle	LBB0_13
## %bb.6:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_isnan
	xorpd	%xmm0, %xmm0
	ucomisd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	ja	LBB0_13
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	_SECS_PER_MINUTE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_13
## %bb.9:
	movq	_HOURS_PER_DAY@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_10
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	cvttsd2si	-48(%rbp), %ecx         ## 8-byte Folded Reload
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_SECS_PER_MINUTE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
LBB0_14:
	movl	(%r12), %eax
	imull	%r14d, %eax
	addl	%r13d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdl	(%rax), %xmm0
	movsd	%xmm0, -88(%rbp)                ## 8-byte Spill
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_rint
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movsd	-96(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-88(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rax
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	imulq	%r15, %r12
	addq	%rax, %r12
	jns	LBB0_16
## %bb.15:
	testq	%r15, %r15
	jg	LBB0_18
LBB0_16:
	testq	%r12, %r12
	jle	LBB0_19
## %bb.17:
	cmpq	$-2, %r15
	jg	LBB0_19
LBB0_18:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_19:
	movq	%r12, %rdi
	callq	_IS_VALID_TIMESTAMP
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movb	$1, %al
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_21:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jne	LBB0_14
## %bb.11:
	testl	%r13d, %r13d
	jg	LBB0_13
## %bb.12:
	xorpd	%xmm1, %xmm1
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_14
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DTK_DATE_M,4,2                 ## @DTK_DATE_M
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATETIME_FIELD_OVERFLOW,4,2 ## @ERRCODE_DATETIME_FIELD_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"date field value out of range: %d-%02d-%02d"

	.comm	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_DATETIME_VALUE_OUT_OF_RANGE
L_.str.1:                               ## @.str.1
	.asciz	"date out of range: %d-%02d-%02d"

	.comm	_POSTGRES_EPOCH_JDATE,8,3       ## @POSTGRES_EPOCH_JDATE
	.comm	_MINS_PER_HOUR,4,2              ## @MINS_PER_HOUR
	.comm	_SECS_PER_MINUTE,8,3            ## @SECS_PER_MINUTE
	.comm	_HOURS_PER_DAY,4,2              ## @HOURS_PER_DAY
L_.str.2:                               ## @.str.2
	.asciz	"time field value out of range: %d:%02d:%02g"

	.comm	_USECS_PER_SEC,4,2              ## @USECS_PER_SEC
	.comm	_USECS_PER_DAY,8,3              ## @USECS_PER_DAY
L_.str.3:                               ## @.str.3
	.asciz	"timestamp out of range: %d-%02d-%02d %d:%02d:%02g"

	.no_dead_strip	_make_timestamp_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_timestamp_internal
_make_timestamp_internal:               ; @make_timestamp_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	fmov	d8, d0
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	w0, w1, [sp, #32]
	str	w2, [sp, #40]
Lloh0:
	adrp	x8, _DTK_DATE_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DTK_DATE_M@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x4, sp, #32
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_ValidateDate
Lloh3:
	adrp	x25, _ERROR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x8, _ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w24, [x25]
	ldr	w0, [x8]
	bl	_errcode
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
	ldp	w0, w1, [sp, #32]
	ldr	w2, [sp, #40]
	bl	_IS_VALID_JULIAN
Lloh9:
	adrp	x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w24, [x25]
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
	ldp	w0, w1, [sp, #32]
	ldr	w2, [sp, #40]
	bl	_date2j
Lloh13:
	adrp	x8, _POSTGRES_EPOCH_JDATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _POSTGRES_EPOCH_JDATE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	sub	x28, x0, x8
	orr	w8, w23, w22
Lloh16:
	adrp	x27, _MINS_PER_HOUR@GOTPAGE
Lloh17:
	ldr	x27, [x27, _MINS_PER_HOUR@GOTPAGEOFF]
Lloh18:
	adrp	x26, _SECS_PER_MINUTE@GOTPAGE
Lloh19:
	ldr	x26, [x26, _SECS_PER_MINUTE@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_10
; %bb.5:
	ldr	w8, [x27]
	cmp	w8, w23
	b.le	LBB0_10
; %bb.6:
	fmov	d0, d8
	bl	_isnan
	fcmp	d8, #0.0
	b.mi	LBB0_10
; %bb.7:
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	d0, [x26]
	fcmp	d0, d8
	b.mi	LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _HOURS_PER_DAY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOURS_PER_DAY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ge	LBB0_18
LBB0_10:
	ldr	w24, [x25]
Lloh23:
	adrp	x8, _ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DATETIME_FIELD_OVERFLOW@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	fcvtzs	w3, d8
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	ldr	d0, [x26]
LBB0_11:
	ldr	w8, [x27]
	madd	w8, w8, w22, w23
	scvtf	d1, w8
	fmul	d9, d0, d1
Lloh28:
	adrp	x8, _USECS_PER_SEC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _USECS_PER_SEC@GOTPAGEOFF]
Lloh30:
	ldr	s0, [x8]
	sshll.2d	v0, v0, #0
	scvtf	d10, d0
	fmul	d0, d10, d8
	bl	_rint
	scvtf	d0, x0
	fmadd	d0, d9, d10, d0
	fcvtzs	x8, d0
Lloh31:
	adrp	x9, _USECS_PER_DAY@GOTPAGE
Lloh32:
	ldr	x9, [x9, _USECS_PER_DAY@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	madd	x24, x9, x28, x8
	mov	x26, x25
Lloh34:
	adrp	x27, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh35:
	ldr	x27, [x27, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
	tbz	x24, #63, LBB0_13
; %bb.12:
	cmp	x28, #0
	b.gt	LBB0_14
LBB0_13:
	cmp	x24, #1
	ccmn	x28, #2, #0, ge
	b.gt	LBB0_15
LBB0_14:
	ldr	w25, [x26]
	ldr	w0, [x27]
	bl	_errcode
	str	d8, [sp, #16]
	stp	x22, x23, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_15:
	mov	x0, x24
	bl	_IS_VALID_TIMESTAMP
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	w25, [x26]
	ldr	w0, [x27]
	bl	_errcode
	str	d8, [sp, #16]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	stp	x22, x23, [sp]
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_17:
	mov	x0, x24
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	b.ne	LBB0_11
; %bb.19:
	cmp	w23, #0
	b.gt	LBB0_10
; %bb.20:
	fcmp	d8, #0.0
	b.le	LBB0_11
	b	LBB0_10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DTK_DATE_M,4,2                 ; @DTK_DATE_M
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATETIME_FIELD_OVERFLOW,4,2 ; @ERRCODE_DATETIME_FIELD_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"date field value out of range: %d-%02d-%02d"

	.comm	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_DATETIME_VALUE_OUT_OF_RANGE
l_.str.1:                               ; @.str.1
	.asciz	"date out of range: %d-%02d-%02d"

	.comm	_POSTGRES_EPOCH_JDATE,8,3       ; @POSTGRES_EPOCH_JDATE
	.comm	_MINS_PER_HOUR,4,2              ; @MINS_PER_HOUR
	.comm	_SECS_PER_MINUTE,8,3            ; @SECS_PER_MINUTE
	.comm	_HOURS_PER_DAY,4,2              ; @HOURS_PER_DAY
l_.str.2:                               ; @.str.2
	.asciz	"time field value out of range: %d:%02d:%02g"

	.comm	_USECS_PER_SEC,4,2              ; @USECS_PER_SEC
	.comm	_USECS_PER_DAY,8,3              ; @USECS_PER_DAY
l_.str.3:                               ; @.str.3
	.asciz	"timestamp out of range: %d-%02d-%02d %d:%02d:%02g"

	.no_dead_strip	_make_timestamp_internal
.subsections_via_symbols
