	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm2timestamp                   ## -- Begin function tm2timestamp
	.p2align	4, 0x90
_tm2timestamp:                          ## @tm2timestamp
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	callq	_IS_VALID_JULIAN
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	callq	_date2j
	movl	%eax, %ebx
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$1, %esi
	movl	$1, %edx
	callq	_date2j
	subl	%eax, %ebx
	movl	20(%r14), %edi
	movl	12(%r14), %edx
	movl	16(%r14), %esi
	movl	%r13d, %ecx
	callq	_time2t
	movl	%eax, %edi
	movq	_USECS_PER_DAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	imull	%ebx, %eax
	addl	%eax, %edi
	movl	%edi, (%r15)
	cltd
	idivl	(%rcx)
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.2:
	testl	%edi, %edi
	jns	LBB0_4
## %bb.3:
	testl	%ebx, %ebx
	jg	LBB0_9
LBB0_4:
	testl	%edi, %edi
	jle	LBB0_6
## %bb.5:
	cmpl	$-1, %ebx
	jl	LBB0_9
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_dt2local
	movl	%eax, %edi
	movl	%eax, (%r15)
LBB0_8:
	callq	_IS_VALID_TIMESTAMP
	xorl	%r12d, %r12d
	cmpl	$1, %eax
	sbbl	%r12d, %r12d
LBB0_9:
	movl	%r12d, %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,4,2              ## @USECS_PER_DAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm2timestamp                   ; -- Begin function tm2timestamp
	.p2align	2
_tm2timestamp:                          ; @tm2timestamp
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	ldp	w1, w2, [x22, #4]
	bl	_IS_VALID_JULIAN
	cbz	w0, LBB0_8
; %bb.1:
	ldp	w0, w1, [x22]
	ldr	w2, [x22, #8]
	bl	_date2j
	mov	x23, x0
	mov	w0, #2000
	mov	w1, #1
	mov	w2, #1
	bl	_date2j
	sub	w23, w23, w0
	ldp	w1, w0, [x22, #16]
	ldr	w2, [x22, #12]
	mov	x3, x21
	bl	_time2t
Lloh0:
	adrp	x8, _USECS_PER_DAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USECS_PER_DAY@GOTPAGEOFF]
	ldr	w9, [x8]
	mul	w9, w9, w23
	add	w0, w9, w0
	str	w0, [x19]
	ldr	w8, [x8]
	sdiv	w8, w9, w8
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.2:
	tbz	w0, #31, LBB0_4
; %bb.3:
	cmp	w23, #0
	b.gt	LBB0_8
LBB0_4:
	cmp	w0, #1
	ccmn	w23, #1, #0, ge
	b.lt	LBB0_8
; %bb.5:
	cbz	x20, LBB0_7
; %bb.6:
	ldr	w8, [x20]
	neg	w1, w8
	bl	_dt2local
	str	w0, [x19]
LBB0_7:
	bl	_IS_VALID_TIMESTAMP
	cmp	w0, #0
	csetm	w0, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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,4,2              ; @USECS_PER_DAY
.subsections_via_symbols
