	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_interrupt
_sh_cmt_interrupt:                      ## @sh_cmt_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_CMCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rsi, %rdi
	movl	%ebx, %esi
	callq	_sh_cmt_read
	andl	(%r14), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sh_cmt_write
	movl	4(%r14), %eax
	movq	_FLAG_CLOCKSOURCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %ecx
	addl	%ecx, 48(%r14)
LBB0_2:
	movq	_FLAG_REPROGRAM@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	movq	24(%r14), %rdx
	movq	%rdx, 16(%r14)
LBB0_4:
	movq	_FLAG_IRQCONTEXT@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	%eax, 4(%r14)
	movq	_FLAG_CLOCKEVENT@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.5:
	movq	_FLAG_SKIPEVENT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_9
## %bb.6:
	leaq	32(%r14), %rdi
	movq	32(%r14), %rdx
	movq	_CLOCK_EVT_MODE_ONESHOT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:
	movq	24(%r14), %rdx
	movq	%rdx, 16(%r14)
	orl	%ecx, %eax
	movl	%eax, 4(%r14)
LBB0_8:
	callq	*40(%r14)
	movl	4(%r14), %eax
	movl	(%r15), %ecx
LBB0_9:
	movq	_FLAG_SKIPEVENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%eax, %edx
	testl	%edx, %ecx
	je	LBB0_14
## %bb.10:
	notl	%ecx
	andl	%ecx, %edx
	movl	%edx, 4(%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_sh_cmt_clock_event_program_verify
	movl	4(%r14), %edx
	testl	%edx, (%rbx)
	je	LBB0_14
## %bb.11:
	movq	32(%r14), %rax
	movq	_CLOCK_EVT_MODE_SHUTDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_14
LBB0_13:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %edx
LBB0_14:
	movl	(%r12), %eax
	notl	%eax
	andl	%edx, %eax
	movl	%eax, 4(%r14)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMCSR,4,2                      ## @CMCSR
	.comm	_FLAG_CLOCKSOURCE,4,2           ## @FLAG_CLOCKSOURCE
	.comm	_FLAG_REPROGRAM,4,2             ## @FLAG_REPROGRAM
	.comm	_FLAG_IRQCONTEXT,4,2            ## @FLAG_IRQCONTEXT
	.comm	_FLAG_CLOCKEVENT,4,2            ## @FLAG_CLOCKEVENT
	.comm	_FLAG_SKIPEVENT,4,2             ## @FLAG_SKIPEVENT
	.comm	_CLOCK_EVT_MODE_ONESHOT,8,3     ## @CLOCK_EVT_MODE_ONESHOT
	.comm	_CLOCK_EVT_MODE_SHUTDOWN,8,3    ## @CLOCK_EVT_MODE_SHUTDOWN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sh_cmt_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_cmt_interrupt
_sh_cmt_interrupt:                      ; @sh_cmt_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, _CMCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMCSR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	mov	x1, x20
	bl	_sh_cmt_read
	ldr	w8, [x19]
	and	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_sh_cmt_write
	ldr	w9, [x19, #4]
Lloh3:
	adrp	x8, _FLAG_CLOCKSOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAG_CLOCKSOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	ldr	w10, [x19, #48]
	add	w8, w10, w8
	str	w8, [x19, #48]
LBB0_2:
Lloh6:
	adrp	x21, _FLAG_REPROGRAM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FLAG_REPROGRAM@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x19, #24]
	str	x10, [x19, #16]
LBB0_4:
Lloh8:
	adrp	x20, _FLAG_IRQCONTEXT@GOTPAGE
Lloh9:
	ldr	x20, [x20, _FLAG_IRQCONTEXT@GOTPAGEOFF]
	ldr	w10, [x20]
	orr	w9, w10, w9
	str	w9, [x19, #4]
Lloh10:
	adrp	x22, _FLAG_CLOCKEVENT@GOTPAGE
Lloh11:
	ldr	x22, [x22, _FLAG_CLOCKEVENT@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh12:
	adrp	x23, _FLAG_SKIPEVENT@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FLAG_SKIPEVENT@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.5:
	ldr	w10, [x23]
	tst	w10, w9
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	ldr	x10, [x0, #32]!
Lloh14:
	adrp	x11, _CLOCK_EVT_MODE_ONESHOT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CLOCK_EVT_MODE_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:
	ldr	x10, [x19, #24]
	str	x10, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_8:
	ldr	x8, [x19, #40]
	blr	x8
	ldr	w9, [x19, #4]
	ldr	w8, [x21]
LBB0_9:
	ldr	w10, [x23]
	bic	w9, w9, w10
	tst	w8, w9
	b.eq	LBB0_14
; %bb.10:
	bic	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_sh_cmt_clock_event_program_verify
	ldr	w9, [x19, #4]
	ldr	w8, [x22]
	tst	w8, w9
	b.eq	LBB0_14
; %bb.11:
	ldr	x8, [x19, #32]
Lloh17:
	adrp	x10, _CLOCK_EVT_MODE_SHUTDOWN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CLOCK_EVT_MODE_SHUTDOWN@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_13
; %bb.12:
	ldp	x8, x10, [x19, #8]
	cmp	x8, x10
	b.ne	LBB0_14
LBB0_13:
	ldr	w8, [x21]
	bic	w9, w9, w8
LBB0_14:
	ldr	w8, [x20]
	bic	w8, w9, w8
	str	w8, [x19, #4]
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_CMCSR,4,2                      ; @CMCSR
	.comm	_FLAG_CLOCKSOURCE,4,2           ; @FLAG_CLOCKSOURCE
	.comm	_FLAG_REPROGRAM,4,2             ; @FLAG_REPROGRAM
	.comm	_FLAG_IRQCONTEXT,4,2            ; @FLAG_IRQCONTEXT
	.comm	_FLAG_CLOCKEVENT,4,2            ; @FLAG_CLOCKEVENT
	.comm	_FLAG_SKIPEVENT,4,2             ; @FLAG_SKIPEVENT
	.comm	_CLOCK_EVT_MODE_ONESHOT,8,3     ; @CLOCK_EVT_MODE_ONESHOT
	.comm	_CLOCK_EVT_MODE_SHUTDOWN,8,3    ; @CLOCK_EVT_MODE_SHUTDOWN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sh_cmt_interrupt
.subsections_via_symbols
