	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_date2timestamptz_opt_overflow  ## -- Begin function date2timestamptz_opt_overflow
	.p2align	4, 0x90
_date2timestamptz_opt_overflow:         ## @date2timestamptz_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_DATE_IS_NOBEGIN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_TIMESTAMP_NOBEGIN
                                        ## implicit-def: $r15d
	jmp	LBB0_14
LBB0_2:
	movl	%ebx, %edi
	callq	_DATE_IS_NOEND
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_TIMESTAMP_NOEND
                                        ## implicit-def: $r15d
	jmp	LBB0_14
LBB0_4:
	movq	_TIMESTAMP_END_JULIAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POSTGRES_EPOCH_JDATE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	subl	%edi, %eax
	cmpl	%ebx, %eax
	jg	LBB0_8
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	$1, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_7:
	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(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	(%r12), %edi
LBB0_8:
	addl	%ebx, %edi
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_j2date
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_session_timezone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	callq	_DetermineTimeZoneOffset
	movl	%eax, %r15d
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	addl	%ebx, %r15d
	movl	%r15d, %edi
	callq	_IS_VALID_TIMESTAMP
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	testq	%r14, %r14
	je	LBB0_13
## %bb.10:
	movq	_MIN_TIMESTAMP@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpl	(%rcx), %r15d
	jl	LBB0_12
## %bb.11:
	movq	_END_TIMESTAMP@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setge	%dil
	callq	_Assert
	movl	$1, %eax
LBB0_12:
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_13:
	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(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_session_timezone,4,2           ## @session_timezone
	.comm	_USECS_PER_DAY,4,2              ## @USECS_PER_DAY
	.comm	_USECS_PER_SEC,4,2              ## @USECS_PER_SEC
	.comm	_MIN_TIMESTAMP,4,2              ## @MIN_TIMESTAMP
	.comm	_END_TIMESTAMP,4,2              ## @END_TIMESTAMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_date2timestamptz_opt_overflow  ; -- Begin function date2timestamptz_opt_overflow
	.p2align	2
_date2timestamptz_opt_overflow:         ; @date2timestamptz_opt_overflow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
	bl	_DATE_IS_NOBEGIN
	cbz	x0, LBB0_2
; %bb.1:
	bl	_TIMESTAMP_NOBEGIN
                                        ; implicit-def: $w20
	b	LBB0_16
LBB0_2:
	mov	x0, x20
	bl	_DATE_IS_NOEND
	cbz	x0, LBB0_4
; %bb.3:
	bl	_TIMESTAMP_NOEND
                                        ; implicit-def: $w20
	b	LBB0_16
LBB0_4:
Lloh0:
	adrp	x8, _TIMESTAMP_END_JULIAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMESTAMP_END_JULIAN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x22, _POSTGRES_EPOCH_JDATE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _POSTGRES_EPOCH_JDATE@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w9, w9, w8
	cmp	w9, w20
	b.gt	LBB0_8
; %bb.5:
	cbz	x19, LBB0_7
; %bb.6:
	mov	w20, #0
	mov	w8, #1
	b	LBB0_15
LBB0_7:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	ldr	w8, [x22]
LBB0_8:
	add	w0, w8, w20
	add	x8, sp, #8
	add	x1, x8, #32
	add	x2, x8, #28
	add	x3, x8, #24
	bl	_j2date
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh13:
	adrp	x8, _session_timezone@GOTPAGE
Lloh14:
	ldr	x8, [x8, _session_timezone@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_DetermineTimeZoneOffset
Lloh16:
	adrp	x8, _USECS_PER_DAY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _USECS_PER_DAY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mul	w8, w8, w20
Lloh19:
	adrp	x9, _USECS_PER_SEC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _USECS_PER_SEC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	madd	w20, w9, w0, w8
	mov	x0, x20
	bl	_IS_VALID_TIMESTAMP
	cbnz	w0, LBB0_16
; %bb.9:
	cbz	x19, LBB0_12
; %bb.10:
Lloh22:
	adrp	x8, _MIN_TIMESTAMP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MIN_TIMESTAMP@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_13
; %bb.11:
	mov	w8, #-1
	b	LBB0_14
LBB0_12:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
Lloh28:
	adrp	x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_errcode
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_16
LBB0_13:
Lloh33:
	adrp	x8, _END_TIMESTAMP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _END_TIMESTAMP@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w0, ge
	bl	_Assert
	mov	w8, #1
LBB0_14:
	mov	w20, #0
LBB0_15:
	str	w8, [x19]
LBB0_16:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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	_session_timezone,4,2           ; @session_timezone
	.comm	_USECS_PER_DAY,4,2              ; @USECS_PER_DAY
	.comm	_USECS_PER_SEC,4,2              ; @USECS_PER_SEC
	.comm	_MIN_TIMESTAMP,4,2              ; @MIN_TIMESTAMP
	.comm	_END_TIMESTAMP,4,2              ; @END_TIMESTAMP
.subsections_via_symbols
