	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function timestamp2tm
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1900                            ## 0x76c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_timestamp2tm
	.p2align	4, 0x90
_timestamp2tm:                          ## @timestamp2tm
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_session_timezone@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	callq	_TMODULO
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_INT64CONST
	cmpq	%r13, %rax
	jle	LBB0_2
## %bb.1:
	movq	(%r15), %r12
LBB0_2:
	addq	%r13, %r12
	leaq	40(%rbx), %rsi
	leaq	32(%rbx), %rdx
	leaq	28(%rbx), %rcx
	callq	_j2date
	leaq	24(%rbx), %rsi
	leaq	20(%rbx), %rdx
	leaq	16(%rbx), %rcx
	movq	%r12, %rdi
	movq	%r14, %r8
	callq	_dt2time
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_3
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmovneq	%rax, %rsi
	subq	(%r14), %r13
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_8
LBB0_3:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%rbx)
	movq	$0, 8(%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	movq	_POSTGRES_EPOCH_JDATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_UNIX_EPOCH_JDATE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	movq	_SECS_PER_DAY@GOTPCREL(%rip), %rdx
	imulq	(%rdx), %rcx
	addq	%rax, %rcx
	movq	%rcx, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_pg_localtime
	movdqu	32(%rax), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 32(%rbx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	8(%rax), %rax
	movq	%rax, 8(%rbx)
	negl	%ecx
	movl	%ecx, (%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
LBB0_9:
	movq	%rax, (%rcx)
LBB0_10:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_session_timezone,8,3           ## @session_timezone
	.comm	_USECS_PER_DAY,8,3              ## @USECS_PER_DAY
	.comm	_POSTGRES_EPOCH_JDATE,8,3       ## @POSTGRES_EPOCH_JDATE
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_USECS_PER_SEC,8,3              ## @USECS_PER_SEC
	.comm	_UNIX_EPOCH_JDATE,8,3           ## @UNIX_EPOCH_JDATE
	.comm	_SECS_PER_DAY,8,3               ## @SECS_PER_DAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function timestamp2tm
lCPI0_0:
	.quad	1                               ; 0x1
	.quad	1900                            ; 0x76c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_timestamp2tm
	.p2align	2
_timestamp2tm:                          ; @timestamp2tm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _session_timezone@GOTPAGE
Lloh1:
	ldr	x8, [x8, _session_timezone@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x25, _USECS_PER_DAY@GOTPAGE
Lloh4:
	ldr	x25, [x25, _USECS_PER_DAY@GOTPAGEOFF]
	ldr	x2, [x25]
	bl	_TMODULO
	mov	w0, #0
	bl	_INT64CONST
	ldr	x8, [x25]
	cmp	x0, x24
	csel	x8, x8, xzr, gt
	add	x25, x8, x24
	add	x1, x20, #40
	add	x2, x20, #32
	add	x3, x20, #28
	bl	_j2date
	add	x1, x20, #24
	add	x2, x20, #20
	add	x3, x20, #16
	mov	x0, x25
	mov	x4, x23
	bl	_dt2time
	cbz	x21, LBB0_4
; %bb.1:
	cmp	x22, #0
	csel	x1, x26, x22, eq
	ldr	x8, [x23]
	sub	x8, x24, x8
Lloh5:
	adrp	x9, _USECS_PER_SEC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USECS_PER_SEC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sdiv	x8, x8, x9
Lloh8:
	adrp	x9, _POSTGRES_EPOCH_JDATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _POSTGRES_EPOCH_JDATE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _UNIX_EPOCH_JDATE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _UNIX_EPOCH_JDATE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	sub	x9, x9, x10
Lloh14:
	adrp	x10, _SECS_PER_DAY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SECS_PER_DAY@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	madd	x8, x9, x10, x8
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_pg_localtime
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	ldp	q2, q1, [x0, #16]
	add.2d	v0, v1, v0
	stp	q2, q0, [x20, #16]
	ldp	w8, w9, [x0]
	stp	w8, w9, [x20]
	ldr	x8, [x0, #8]
	str	x8, [x20, #8]
	neg	w9, w9
	str	w9, [x21]
	cbz	x19, LBB0_3
LBB0_2:
	str	x8, [x19]
LBB0_3:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x8, #0
	movi	d0, #0x000000ffffffff
	str	d0, [x20]
	str	xzr, [x20, #8]
	cbnz	x19, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_session_timezone,8,3           ; @session_timezone
	.comm	_USECS_PER_DAY,8,3              ; @USECS_PER_DAY
	.comm	_POSTGRES_EPOCH_JDATE,8,3       ; @POSTGRES_EPOCH_JDATE
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_USECS_PER_SEC,8,3              ; @USECS_PER_SEC
	.comm	_UNIX_EPOCH_JDATE,8,3           ; @UNIX_EPOCH_JDATE
	.comm	_SECS_PER_DAY,8,3               ; @SECS_PER_DAY
.subsections_via_symbols
