	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_timer_sync
_solo_timer_sync:                       ## @solo_timer_sync
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_SOLO_DEV_6110@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%rdi)
	cmpl	$59, %eax
	jl	LBB0_6
## %bb.2:
	movl	$0, 8(%rbx)
	movq	_SOLO_TIMER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_solo_reg_read
	movq	%rax, %r14
	movq	_SOLO_TIMER_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_solo_reg_read
	movq	%rax, %r15
	leaq	-40(%rbp), %rdi
	callq	_ktime_get_ts64
	movq	-32(%rbp), %rax
	subq	%r14, %rax
	imulq	$1000000, %rax, %rcx            ## imm = 0xF4240
	movl	-40(%rbp), %eax
	movq	_NSEC_PER_USEC@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	cltq
	subq	%r15, %rax
	leaq	(%rax,%rcx), %rdx
	addq	$-1001, %rdx                    ## imm = 0xFC17
	cmpq	$-2002, %rdx                    ## imm = 0xF82E
	ja	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_solo_set_time
	jmp	LBB0_6
LBB0_4:
	addq	%rcx, %rax
	je	LBB0_6
## %bb.5:
	leal	3(%rax), %ecx
	testw	%ax, %ax
	cmovnsl	%eax, %ecx
	movswl	%cx, %eax
	sarl	$2, %eax
	negl	%eax
	movswq	%ax, %rax
	addq	16(%rbx), %rax
	cmpq	$255, %rax
	movl	$255, %ecx
	cmovlq	%rax, %rcx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovgq	%rcx, %rdx
	movq	%rdx, 16(%rbx)
	movq	_SOLO_TIMER_USEC_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_solo_reg_write
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_DEV_6110,8,3              ## @SOLO_DEV_6110
	.comm	_SOLO_TIMER_SEC,4,2             ## @SOLO_TIMER_SEC
	.comm	_SOLO_TIMER_USEC,4,2            ## @SOLO_TIMER_USEC
	.comm	_NSEC_PER_USEC,4,2              ## @NSEC_PER_USEC
	.comm	_SOLO_TIMER_USEC_LSB,4,2        ## @SOLO_TIMER_USEC_LSB
	.no_dead_strip	_solo_timer_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_timer_sync
_solo_timer_sync:                       ; @solo_timer_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOLO_DEV_6110@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOLO_DEV_6110@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	add	w9, w8, #1
	str	w9, [x0, #8]
	cmp	w8, #59
	b.lt	LBB0_6
; %bb.2:
	str	wzr, [x19, #8]
Lloh3:
	adrp	x8, _SOLO_TIMER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_TIMER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_solo_reg_read
	mov	x20, x0
Lloh6:
	adrp	x8, _SOLO_TIMER_USEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOLO_TIMER_USEC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_solo_reg_read
	mov	x21, x0
	mov	x0, sp
	bl	_ktime_get_ts64
	ldr	x8, [sp, #8]
	sub	x8, x8, x20
	mov	w9, #16960
	movk	w9, #15, lsl #16
	ldr	w10, [sp]
Lloh9:
	adrp	x11, _NSEC_PER_USEC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NSEC_PER_USEC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	sdiv	w10, w10, w11
	sxtw	x10, w10
	sub	x10, x10, x21
	madd	x8, x8, x9, x10
	sub	x9, x8, #1001
	cmn	x9, #2002
	b.hi	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_solo_set_time
	b	LBB0_6
LBB0_4:
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x9, [x19, #16]
	sxth	w10, w8
	ubfx	w10, w10, #29, #2
	add	w8, w8, w10
	sxth	w8, w8
	neg	w8, w8, asr #2
	add	x8, x9, w8, sxtw
	mov	w9, #255
	cmp	x8, #255
	csel	x8, x8, x9, lt
	cmp	x8, #0
	csel	x2, x8, xzr, gt
	str	x2, [x19, #16]
Lloh12:
	adrp	x8, _SOLO_TIMER_USEC_LSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOLO_TIMER_USEC_LSB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_solo_reg_write
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_DEV_6110,8,3              ; @SOLO_DEV_6110
	.comm	_SOLO_TIMER_SEC,4,2             ; @SOLO_TIMER_SEC
	.comm	_SOLO_TIMER_USEC,4,2            ; @SOLO_TIMER_USEC
	.comm	_NSEC_PER_USEC,4,2              ; @NSEC_PER_USEC
	.comm	_SOLO_TIMER_USEC_LSB,4,2        ; @SOLO_TIMER_USEC_LSB
	.no_dead_strip	_solo_timer_sync
.subsections_via_symbols
