	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_clock_event_program_verify
_sh_cmt_clock_event_program_verify:     ## @sh_cmt_clock_event_program_verify
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r12
	leaq	-44(%rbp), %rsi
	callq	_sh_cmt_get_counter
	movq	_FLAG_REPROGRAM@GOTPCREL(%rip), %rdx
	movl	24(%r14), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, 24(%r14)
	cmpl	$0, -44(%rbp)
	je	LBB0_3
## %bb.1:
	movq	_FLAG_SKIPEVENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%r14)
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	cmovneq	%r13, %rbx
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r13, %rbx
	addq	%r12, %rbx
	movq	8(%r14), %rax
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	movq	_CMCOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_sh_cmt_write
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sh_cmt_get_counter
	cmpl	$0, -44(%rbp)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rbx, %rax
	jb	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	leaq	(%r13,%r13), %rcx
	movl	$1, %edx
	cmoveq	%rdx, %rcx
	movq	%rcx, %r13
	movq	%rax, %rbx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warning
	jmp	LBB0_2
LBB0_8:
	cmpq	16(%r14), %rbx
	jbe	LBB0_11
## %bb.9:
	movq	_FLAG_SKIPEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	jmp	LBB0_2
LBB0_11:
	movq	%rbx, 16(%r14)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_REPROGRAM,4,2             ## @FLAG_REPROGRAM
	.comm	_FLAG_SKIPEVENT,4,2             ## @FLAG_SKIPEVENT
	.comm	_CMCOR,4,2                      ## @CMCOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_cmt: too long delay\n"

	.no_dead_strip	_sh_cmt_clock_event_program_verify
.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_program_verify
_sh_cmt_clock_event_program_verify:     ; @sh_cmt_clock_event_program_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	add	x1, sp, #12
	bl	_sh_cmt_get_counter
Lloh0:
	adrp	x8, _FLAG_REPROGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_REPROGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _FLAG_SKIPEVENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLAG_SKIPEVENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
LBB0_2:
	orr	w8, w9, w8
	str	w8, [x19, #24]
	b	LBB0_11
LBB0_3:
	mov	x22, #0
	cmp	w20, #0
	csel	x0, x0, xzr, eq
Lloh6:
	adrp	x23, _CMCOR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CMCOR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x21
	add	x8, x8, x0
	ldr	x9, [x19, #8]
	cmp	x8, x9
	csel	x20, x8, x9, lo
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_sh_cmt_write
	add	x1, sp, #12
	mov	x0, x19
	bl	_sh_cmt_get_counter
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x20
	b.lo	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x22, #1
	cmp	x22, #0
	csinc	x22, x8, xzr, ne
	cbnz	x22, LBB0_4
; %bb.7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warning
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19, #16]
	cmp	x20, x8
	b.ls	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _FLAG_SKIPEVENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLAG_SKIPEVENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	b	LBB0_2
LBB0_10:
	str	x20, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_REPROGRAM,4,2             ; @FLAG_REPROGRAM
	.comm	_FLAG_SKIPEVENT,4,2             ; @FLAG_SKIPEVENT
	.comm	_CMCOR,4,2                      ; @CMCOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_cmt: too long delay\n"

	.no_dead_strip	_sh_cmt_clock_event_program_verify
.subsections_via_symbols
