	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_date2timestamp_opt_overflow    ## -- Begin function date2timestamp_opt_overflow
	.p2align	4, 0x90
_date2timestamp_opt_overflow:           ## @date2timestamp_opt_overflow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_DATE_IS_NOBEGIN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_TIMESTAMP_NOBEGIN
                                        ## implicit-def: $ebx
	jmp	LBB0_9
LBB0_2:
	movl	%ebx, %edi
	callq	_DATE_IS_NOEND
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_TIMESTAMP_NOEND
                                        ## implicit-def: $ebx
	jmp	LBB0_9
LBB0_4:
	movq	_TIMESTAMP_END_JULIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POSTGRES_EPOCH_JDATE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	cmpl	%ebx, %eax
	jg	LBB0_8
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMESTAMP_END_JULIAN,4,2       ## @TIMESTAMP_END_JULIAN
	.comm	_POSTGRES_EPOCH_JDATE,4,2       ## @POSTGRES_EPOCH_JDATE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE,4,2 ## @ERRCODE_DATETIME_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"date out of range for timestamp"

	.comm	_USECS_PER_DAY,4,2              ## @USECS_PER_DAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_date2timestamp_opt_overflow    ; -- Begin function date2timestamp_opt_overflow
	.p2align	2
_date2timestamp_opt_overflow:           ; @date2timestamp_opt_overflow
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_DATE_IS_NOBEGIN
	cbz	x0, LBB0_2
; %bb.1:
	bl	_TIMESTAMP_NOBEGIN
                                        ; implicit-def: $w0
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_DATE_IS_NOEND
	cbz	x0, LBB0_4
; %bb.3:
	bl	_TIMESTAMP_NOEND
                                        ; implicit-def: $w0
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _TIMESTAMP_END_JULIAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMESTAMP_END_JULIAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POSTGRES_EPOCH_JDATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POSTGRES_EPOCH_JDATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w8, w9
	cmp	w8, w19
	b.gt	LBB0_8
; %bb.5:
	cbz	x20, LBB0_7
; %bb.6:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_8:
Lloh14:
	adrp	x8, _USECS_PER_DAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USECS_PER_DAY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mul	w0, w8, w19
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMESTAMP_END_JULIAN,4,2       ; @TIMESTAMP_END_JULIAN
	.comm	_POSTGRES_EPOCH_JDATE,4,2       ; @POSTGRES_EPOCH_JDATE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATETIME_VALUE_OUT_OF_RANGE,4,2 ; @ERRCODE_DATETIME_VALUE_OUT_OF_RANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"date out of range for timestamp"

	.comm	_USECS_PER_DAY,4,2              ; @USECS_PER_DAY
.subsections_via_symbols
