	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_clock_event_mode
_sh_cmt_clock_event_mode:               ## @sh_cmt_clock_event_mode
	.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
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	%rsi, %rdi
	callq	_ced_to_sh_cmt
	movq	%rax, %r14
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	jne	LBB0_2
## %bb.1:
	movq	_FLAG_CLOCKEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sh_cmt_stop
LBB0_2:
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.3:
	cmpl	$131, %r15d
	je	LBB0_7
## %bb.4:
	cmpl	$130, %r15d
	jne	LBB0_9
## %bb.5:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_6
LBB0_8:
	movq	_FLAG_CLOCKEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_cmt_stop                    ## TAILCALL
LBB0_7:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sh_cmt_clock_event_start       ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_CLOCKEVENT,4,2            ## @FLAG_CLOCKEVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_cmt: %s used for periodic clock events\n"

L_.str.1:                               ## @.str.1
	.asciz	"sh_cmt: %s used for oneshot clock events\n"

	.no_dead_strip	_sh_cmt_clock_event_mode
.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_mode
_sh_cmt_clock_event_mode:               ; @sh_cmt_clock_event_mode
	.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	x21, x0
	mov	x0, x1
	bl	_ced_to_sh_cmt
	mov	x19, x0
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLAG_CLOCKEVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_CLOCKEVENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sh_cmt_stop
LBB0_2:
	sub	w8, w21, #128
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.3:
	cmp	w21, #131
	b.eq	LBB0_7
; %bb.4:
	cmp	w21, #130
	b.ne	LBB0_9
; %bb.5:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	mov	w1, #1
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _FLAG_CLOCKEVENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAG_CLOCKEVENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	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_stop
LBB0_7:
	ldr	w1, [x20, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	mov	w1, #0
LBB0_8:
	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_clock_event_start
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_CLOCKEVENT,4,2            ; @FLAG_CLOCKEVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_cmt: %s used for periodic clock events\n"

l_.str.1:                               ; @.str.1
	.asciz	"sh_cmt: %s used for oneshot clock events\n"

	.no_dead_strip	_sh_cmt_clock_event_mode
.subsections_via_symbols
