	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timestamp2tm
_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$1, %esi
	movl	$1, %edx
	callq	_date2j
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_TMODULO
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_INT64CONST
	cmpq	%r13, %rax
	jle	LBB0_2
## %bb.1:
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	addq	%r13, %r14
	leaq	48(%rbx), %rdx
	leaq	40(%rbx), %rcx
	movq	%rbx, %rsi
	callq	_j2date
	leaq	36(%rbx), %rsi
	leaq	32(%rbx), %rdx
	leaq	56(%rbx), %rcx
	movq	%r14, %rdi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_dt2time
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	48(%rbx), %rsi
	movl	(%rbx), %edi
	movl	40(%rbx), %edx
	callq	_IS_VALID_UTIME
	movl	$0, (%r12)
LBB0_4:
	movl	$-1, 4(%rbx)
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	$0, (%r15)
LBB0_6:
	movl	(%rbx), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_date2j
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USECS_PER_DAY,8,3              ## @USECS_PER_DAY
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_SECS_PER_HOUR,4,2              ## @SECS_PER_HOUR
	.comm	_TIMEZONE_GLOBAL,4,2            ## @TIMEZONE_GLOBAL
	.comm	_TZNAME_GLOBAL,8,3              ## @TZNAME_GLOBAL
	.comm	_USECS_PER_SEC,8,3              ## @USECS_PER_SEC
	.no_dead_strip	_timestamp2tm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timestamp2tm
_timestamp2tm:                          ; @timestamp2tm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	mov	w0, #2000
	mov	w1, #1
	mov	w2, #1
	bl	_date2j
Lloh0:
	adrp	x24, _USECS_PER_DAY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _USECS_PER_DAY@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x23
	bl	_TMODULO
	mov	w0, #0
	bl	_INT64CONST
	ldr	x8, [x24]
	cmp	x0, x23
	csel	x8, x8, xzr, gt
	add	x23, x8, x23
	add	x2, x19, #48
	add	x3, x19, #40
	mov	x1, x19
	bl	_j2date
	add	x1, x19, #36
	add	x2, x19, #32
	add	x3, x19, #56
	mov	x0, x23
	mov	x4, x22
	bl	_dt2time
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	x1, [x19, #48]
	ldr	w2, [x19, #40]
	bl	_IS_VALID_UTIME
	str	wzr, [x21]
LBB0_2:
	mov	w8, #-1
	str	w8, [x19, #4]
	cbz	x20, LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #1
	mov	w2, #1
	bl	_date2j
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USECS_PER_DAY,8,3              ; @USECS_PER_DAY
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_SECS_PER_HOUR,4,2              ; @SECS_PER_HOUR
	.comm	_TIMEZONE_GLOBAL,4,2            ; @TIMEZONE_GLOBAL
	.comm	_TZNAME_GLOBAL,8,3              ; @TZNAME_GLOBAL
	.comm	_USECS_PER_SEC,8,3              ; @USECS_PER_SEC
	.no_dead_strip	_timestamp2tm
.subsections_via_symbols
