	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timestamp2timestamptz_opt_overflow ## -- Begin function timestamp2timestamptz_opt_overflow
	.p2align	4, 0x90
_timestamp2timestamptz_opt_overflow:    ## @timestamp2timestamptz_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_TIMESTAMP_NOT_FINITE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_timestamp2tm
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	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_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_session_timezone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdi
	callq	_DetermineTimeZoneOffset
	negl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dt2local
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_VALID_TIMESTAMP
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movq	_MIN_TIMESTAMP@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpq	(%rcx), %rbx
	jl	LBB0_6
## %bb.5:
	movq	_END_TIMESTAMP@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setge	%dil
	callq	_Assert
	movl	$1, %eax
LBB0_6:
	movl	%eax, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_session_timezone,4,2           ## @session_timezone
	.comm	_MIN_TIMESTAMP,8,3              ## @MIN_TIMESTAMP
	.comm	_END_TIMESTAMP,8,3              ## @END_TIMESTAMP
	.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	"timestamp out of range"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timestamp2timestamptz_opt_overflow ; -- Begin function timestamp2timestamptz_opt_overflow
	.p2align	2
_timestamp2timestamptz_opt_overflow:    ; @timestamp2timestamptz_opt_overflow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_TIMESTAMP_NOT_FINITE
	cbnz	x0, LBB0_9
; %bb.1:
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, #0
	mov	x4, #0
	mov	x5, #0
	bl	_timestamp2tm
	cbz	w0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERRCODE_DATETIME_VALUE_OUT_OF_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_errcode
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	x20, #0
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x8, _session_timezone@GOTPAGE
Lloh9:
	ldr	x8, [x8, _session_timezone@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_DetermineTimeZoneOffset
	neg	w1, w0
	mov	x0, x20
	bl	_dt2local
	mov	x20, x0
	bl	_IS_VALID_TIMESTAMP
	cbnz	x0, LBB0_9
; %bb.4:
	cbz	x19, LBB0_2
; %bb.5:
Lloh11:
	adrp	x8, _MIN_TIMESTAMP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MIN_TIMESTAMP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.6:
	mov	w8, #-1
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _END_TIMESTAMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _END_TIMESTAMP@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w0, ge
	bl	_Assert
	mov	w8, #1
LBB0_8:
	mov	x20, #0
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_session_timezone,4,2           ; @session_timezone
	.comm	_MIN_TIMESTAMP,8,3              ; @MIN_TIMESTAMP
	.comm	_END_TIMESTAMP,8,3              ; @END_TIMESTAMP
	.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	"timestamp out of range"

.subsections_via_symbols
