	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm2interval                    ## -- Begin function tm2interval
	.p2align	4, 0x90
_tm2interval:                           ## @tm2interval
	.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
	cvtsi2sdq	24(%rdi), %xmm0
	movq	_MONTHS_PER_YEAR@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	addsd	(%rdi), %xmm0
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	movl	$-1, %eax
	ja	LBB0_3
## %bb.1:
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_3
## %bb.2:
	movq	%rdi, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movsd	%xmm0, (%rdx)
	movl	20(%rdi), %eax
	movl	%eax, 16(%rdx)
	movl	8(%rdi), %r13d
	movl	$60, %edi
	callq	_INT64CONST
	movl	%eax, %ebx
	imull	%r13d, %ebx
	addl	12(%r12), %ebx
	movl	$60, %edi
	callq	_INT64CONST
	imull	%ebx, %eax
	movslq	16(%r12), %rcx
	cltq
	addq	%rcx, %rax
	movq	_USECS_PER_SEC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	addq	%r14, %rcx
	movq	%rcx, 8(%r15)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MONTHS_PER_YEAR,8,3            ## @MONTHS_PER_YEAR
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_USECS_PER_SEC,4,2              ## @USECS_PER_SEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tm2interval                    ; -- Begin function tm2interval
	.p2align	2
_tm2interval:                           ; @tm2interval
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	d0, [x0, #24]
Lloh0:
	adrp	x8, _MONTHS_PER_YEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MONTHS_PER_YEAR@GOTPAGEOFF]
	scvtf	d0, d0
Lloh2:
	ldr	d1, [x8]
	ldr	d2, [x0]
	fmadd	d0, d0, d1, d2
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
Lloh6:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	d2, [x8]
	fcmp	d0, d1
	fccmp	d0, d2, #8, le
	b.pl	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	d0, [x2]
	ldr	w8, [x0, #20]
	str	w8, [x2, #16]
	ldr	w22, [x0, #8]
	mov	w0, #60
	bl	_INT64CONST
	ldr	w8, [x21, #12]
	madd	w22, w0, w22, w8
	mov	w0, #60
	bl	_INT64CONST
	mov	x8, x0
	mov	w0, #0
	mul	w8, w22, w8
	ldrsw	x9, [x21, #16]
	add	x8, x9, w8, sxtw
Lloh9:
	adrp	x9, _USECS_PER_SEC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USECS_PER_SEC@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	madd	x8, x8, x9, x20
	str	x8, [x19, #8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MONTHS_PER_YEAR,8,3            ; @MONTHS_PER_YEAR
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_USECS_PER_SEC,4,2              ; @USECS_PER_SEC
.subsections_via_symbols
