	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_clock_event_start
_sh_cmt_clock_event_start:              ## @sh_cmt_clock_event_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	_FLAG_CLOCKEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sh_cmt_start
	movl	$32, 8(%rbx)
	movl	(%rbx), %edi
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edx
	callq	_div_sc
	movl	%eax, 32(%rbx)
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	callq	_clockevent_delta2ns
	movq	%rax, 24(%rbx)
	movl	$31, %edi
	movq	%r15, %rsi
	callq	_clockevent_delta2ns
	movq	%rax, 16(%rbx)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %esi
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_cmt_set_next                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_CLOCKEVENT,4,2            ## @FLAG_CLOCKEVENT
	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_sh_cmt_clock_event_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_cmt_clock_event_start
_sh_cmt_clock_event_start:              ; @sh_cmt_clock_event_start
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FLAG_CLOCKEVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_CLOCKEVENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sh_cmt_start
	mov	w8, #32
	mov	x21, x19
	str	w8, [x21, #8]!
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _NSEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #32
	bl	_div_sc
	str	w0, [x19, #32]
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_clockevent_delta2ns
	str	x0, [x19, #24]
	mov	w0, #31
	mov	x1, x21
	bl	_clockevent_delta2ns
	str	x0, [x19, #16]
	cbz	w20, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w10, w8, lt
	add	w9, w9, w10, asr #1
	sdiv	w1, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #4]
LBB0_3:
	mov	x0, x19
	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
	b	_sh_cmt_set_next
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_CLOCKEVENT,4,2            ; @FLAG_CLOCKEVENT
	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_sh_cmt_clock_event_start
.subsections_via_symbols
