	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timelib_diff                   ## -- Begin function timelib_diff
	.p2align	4, 0x90
_timelib_diff:                          ## @timelib_diff
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_timelib_rel_time_ctor
	movq	%rax, %r14
	movl	$0, (%rax)
	movl	(%r12), %eax
	cmpl	%eax, (%rbx)
	jle	LBB0_1
LBB0_4:
	movl	$1, (%r14)
	movq	%rbx, %r15
	jmp	LBB0_5
LBB0_1:
	jne	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	cmpq	8(%r12), %rax
	jg	LBB0_4
LBB0_2:
	movq	%r12, %r15
	movq	%rbx, %r12
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$3, 16(%r12)
	jne	LBB0_6
## %bb.7:
	cmpl	$3, 16(%r15)
	jne	LBB0_6
## %bb.8:
	movq	80(%r12), %rax
	movl	(%rax), %edi
	movq	80(%r15), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
LBB0_11:
	leaq	-224(%rbp), %rdi
	movq	%r12, %rsi
	movl	$88, %edx
	callq	_memcpy
	leaq	-136(%rbp), %rdi
	movq	%r15, %rsi
	movl	$88, %edx
	callq	_memcpy
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_timelib_apply_localtime
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_timelib_apply_localtime
	movdqu	64(%r15), %xmm0
	movdqu	64(%r12), %xmm1
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, 48(%r14)
	movq	56(%r15), %rax
	subq	56(%r12), %rax
	movq	%rax, 24(%r14)
	movl	32(%r15), %ecx
	subl	32(%r12), %ecx
	movl	%ecx, 4(%r14)
	movq	48(%r15), %rdx
	subq	48(%r12), %rdx
	movq	%rdx, 16(%r14)
	movq	40(%r15), %rax
	subq	40(%r12), %rax
	movq	%rax, 40(%r14)
	movq	8(%r15), %rax
	subq	8(%r12), %rax
	movq	%rax, 8(%r14)
	cmpl	$0, -188(%rbp)
	jne	LBB0_13
## %bb.12:
	cmpl	$1, -100(%rbp)
	jne	LBB0_13
## %bb.14:
	movl	(%r15), %eax
	movl	(%r12), %esi
	movl	%esi, %edi
	subl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	addl	$86400, %edi                    ## imm = 0x15180
	cmpl	%edi, %eax
	jl	LBB0_16
## %bb.15:
	addl	%ebx, %ecx
	movl	%ecx, 4(%r14)
	movslq	%r13d, %rcx
	addq	%rcx, %rdx
	movq	%rdx, 16(%r14)
	jmp	LBB0_16
LBB0_13:
	movl	(%r12), %esi
	movl	(%r15), %eax
LBB0_16:
	imull	$-3600, %ebx, %ecx              ## imm = 0xF1F0
	imull	$-60, %r13d, %edx
	addl	%ecx, %edx
	addl	%esi, %edx
	subl	%eax, %edx
	movslq	%edx, %rdi
	imulq	$-1037155065, %rdi, %rax        ## imm = 0xC22E4507
	shrq	$32, %rax
	addl	%eax, %edi
	movl	%edi, %eax
	shrl	$31, %eax
	sarl	$16, %edi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_floor
	movl	%eax, %edi
	callq	_fabs
	movl	%eax, 32(%r14)
	cmpl	$0, (%r14)
	movq	%r12, %rdi
	cmoveq	%r15, %rdi
	movq	%r14, %rsi
	callq	_timelib_do_rel_normalize
	cmpl	$1, -188(%rbp)
	jne	LBB0_22
## %bb.17:
	cmpl	$0, -100(%rbp)
	jne	LBB0_22
## %bb.18:
	movl	(%r15), %eax
	movl	$86400, %ecx                    ## imm = 0x15180
	addl	(%r12), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_22
## %bb.19:
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	%ecx, %eax
	jge	LBB0_21
## %bb.20:
	decq	24(%r14)
	movl	$24, 4(%r14)
	jmp	LBB0_22
LBB0_21:
	addl	%ebx, 4(%r14)
	movslq	%r13d, %rax
	addq	%rax, 16(%r14)
LBB0_22:
	leaq	-224(%rbp), %rsi
	movq	%r12, %rdi
	movl	$88, %edx
	callq	_memcpy
	leaq	-136(%rbp), %rsi
	movq	%r15, %rdi
	movl	$88, %edx
	callq	_memcpy
	movq	%r14, %rax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	24(%r15), %rax
	movl	$0, %ebx
	movl	$0, %r13d
	subq	24(%r12), %rax
	je	LBB0_11
## %bb.10:
	movslq	%eax, %rcx
	imulq	$-1851608123, %rcx, %rbx        ## imm = 0x91A2B3C5
	shrq	$32, %rbx
	addl	%ecx, %ebx
	movl	%ebx, %edx
	shrl	$31, %edx
	sarl	$11, %ebx
	addl	%edx, %ebx
	imull	$3600, %ebx, %edx               ## imm = 0xE10
	subl	%edx, %ecx
	movswl	%cx, %edx
	imull	$-30583, %edx, %edx             ## imm = 0x8889
	shrl	$16, %edx
	addl	%ecx, %edx
	movzwl	%dx, %ecx
	movswl	%cx, %edx
	shrl	$15, %ecx
	sarl	$5, %edx
	addl	%ecx, %edx
	movswl	%dx, %r13d
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timelib_diff                   ; -- Begin function timelib_diff
	.p2align	2
_timelib_diff:                          ; @timelib_diff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x20, x1
	mov	x22, x0
	bl	_timelib_rel_time_ctor
	mov	x19, x0
	str	wzr, [x0]
	ldr	w8, [x22]
	ldr	w9, [x20]
	cmp	w8, w9
	b.le	LBB0_2
LBB0_1:
	mov	w8, #1
	str	w8, [x19]
	mov	x21, x22
	b	LBB0_5
LBB0_2:
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_1
LBB0_4:
	mov	x21, x20
	mov	x20, x22
LBB0_5:
	ldr	w8, [x20, #16]
	cmp	w8, #3
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x21, #16]
	cmp	w8, #3
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x20, #80]
	ldr	w0, [x8]
	ldr	x8, [x21, #80]
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #24]
	ldr	x9, [x21, #24]
	cmp	x9, x8
	b.ne	LBB0_22
LBB0_9:
	mov	w22, #0
	mov	w23, #0
	mov	w24, #0
LBB0_10:
	mov	w25, #20864
	movk	w25, #1, lsl #16
	add	x0, sp, #88
	mov	x1, x20
	mov	w2, #88
	bl	_memcpy
	mov	x0, sp
	mov	x1, x21
	mov	w2, #88
	bl	_memcpy
	mov	x0, x20
	mov	w1, #0
	bl	_timelib_apply_localtime
	mov	x0, x21
	mov	w1, #0
	bl	_timelib_apply_localtime
	ldr	q0, [x21, #64]
	ldr	q1, [x20, #64]
	sub.2d	v0, v0, v1
	str	q0, [x19, #48]
	ldr	x8, [x21, #56]
	ldr	x9, [x20, #56]
	sub	x8, x8, x9
	str	x8, [x19, #24]
	ldr	w8, [x21, #32]
	ldr	w9, [x20, #32]
	sub	w8, w8, w9
	str	w8, [x19, #4]
	ldr	x9, [x21, #48]
	ldr	x10, [x20, #48]
	sub	x11, x9, x10
	str	x11, [x19, #16]
	ldr	x9, [x21, #40]
	ldr	x10, [x20, #40]
	sub	x9, x9, x10
	str	x9, [x19, #40]
	ldr	x9, [x21, #8]
	ldr	x10, [x20, #8]
	sub	x9, x9, x10
	str	x9, [x19, #8]
	ldr	w9, [sp, #124]
	cbnz	w9, LBB0_14
; %bb.11:
	ldr	w9, [sp, #36]
	cmp	w9, #1
	b.ne	LBB0_14
; %bb.12:
	ldr	w9, [x21]
	ldr	w10, [x20]
	sub	w12, w25, w22
	add	w12, w12, w10
	cmp	w9, w12
	b.lt	LBB0_15
; %bb.13:
	add	w8, w8, w23
	str	w8, [x19, #4]
	add	x8, x11, w24, sxtw
	str	x8, [x19, #16]
	b	LBB0_15
LBB0_14:
	ldr	w10, [x20]
	ldr	w9, [x21]
LBB0_15:
	mov	w8, #-3600
	mul	w8, w23, w8
	mov	w11, #-60
	madd	w8, w24, w11, w8
	add	w8, w8, w10
	sub	w8, w8, w9
	sdiv	w0, w8, w25
	bl	_floor
	bl	_fabs
	str	w0, [x19, #32]
	ldr	w8, [x19]
	cmp	w8, #0
	csel	x0, x21, x20, eq
	mov	x1, x19
	bl	_timelib_do_rel_normalize
	ldr	w8, [sp, #124]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.16:
	ldr	w8, [sp, #36]
	cbnz	w8, LBB0_21
; %bb.17:
	ldr	w8, [x21]
	ldr	w9, [x20]
	add	w9, w9, w25
	cmp	w8, w9
	b.lt	LBB0_21
; %bb.18:
	sub	w9, w9, w22
	cmp	w8, w9
	b.ge	LBB0_20
; %bb.19:
	ldr	x8, [x19, #24]
	sub	x8, x8, #1
	str	x8, [x19, #24]
	mov	w8, #24
	str	w8, [x19, #4]
	b	LBB0_21
LBB0_20:
	ldr	w8, [x19, #4]
	add	w8, w8, w23
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	add	x8, x8, w24, sxtw
	str	x8, [x19, #16]
LBB0_21:
	add	x1, sp, #88
	mov	x0, x20
	mov	w2, #88
	bl	_memcpy
	mov	x1, sp
	mov	x0, x21
	mov	w2, #88
	bl	_memcpy
	mov	x0, x19
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_22:
	mov	w10, #46021
	movk	w10, #37282, lsl #16
	sub	w22, w9, w8
	smull	x8, w22, w10
	lsr	x8, x8, #32
	add	w8, w8, w22
	asr	w9, w8, #11
	add	w23, w9, w8, lsr #31
	mov	w8, #3600
	msub	w8, w23, w8, w22
	sxth	w9, w8
	mov	w10, #-30583
	mul	w9, w9, w10
	add	w8, w8, w9, lsr #16
	and	w9, w8, #0x8000
	sbfx	w8, w8, #5, #11
	add	w24, w8, w9, lsr #15
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
