	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_tmu_register_clockevent
_sh_tmu_register_clockevent:            ## @sh_tmu_register_clockevent
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, 8(%rbx)
	movq	_CLOCK_EVT_FEAT_PERIODIC@GOTPCREL(%rip), %rax
	movq	_CLOCK_EVT_FEAT_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 36(%rbx)
	movq	%r15, 16(%rbx)
	xorl	%edi, %edi
	callq	_cpumask_of
	movl	%eax, 32(%rbx)
	movq	_sh_tmu_clock_event_next@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_sh_tmu_clock_event_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_setup_irq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_2:
	movq	(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clockevents_register_device    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_EVT_FEAT_PERIODIC,4,2    ## @CLOCK_EVT_FEAT_PERIODIC
	.comm	_CLOCK_EVT_FEAT_ONESHOT,4,2     ## @CLOCK_EVT_FEAT_ONESHOT
	.comm	_sh_tmu_clock_event_next,4,2    ## @sh_tmu_clock_event_next
	.comm	_sh_tmu_clock_event_mode,4,2    ## @sh_tmu_clock_event_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_tmu: failed to request irq %d\n"

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

	.no_dead_strip	_sh_tmu_register_clockevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_tmu_register_clockevent
_sh_tmu_register_clockevent:            ; @sh_tmu_register_clockevent
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _CLOCK_EVT_FEAT_PERIODIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_EVT_FEAT_PERIODIC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CLOCK_EVT_FEAT_ONESHOT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CLOCK_EVT_FEAT_ONESHOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #36]
	stp	x22, x21, [x20, #8]
	mov	w0, #0
	bl	_cpumask_of
	str	w0, [x20, #32]
Lloh6:
	adrp	x8, _sh_tmu_clock_event_next@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sh_tmu_clock_event_next@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _sh_tmu_clock_event_mode@GOTPAGE
Lloh10:
	ldr	x9, [x9, _sh_tmu_clock_event_mode@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	ldr	w0, [x20]
	mov	x1, x20
	bl	_setup_irq
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	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	_pr_err
LBB0_2:
	ldr	x1, [x19]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	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	_clockevents_register_device
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_EVT_FEAT_PERIODIC,4,2    ; @CLOCK_EVT_FEAT_PERIODIC
	.comm	_CLOCK_EVT_FEAT_ONESHOT,4,2     ; @CLOCK_EVT_FEAT_ONESHOT
	.comm	_sh_tmu_clock_event_next,4,2    ; @sh_tmu_clock_event_next
	.comm	_sh_tmu_clock_event_mode,4,2    ; @sh_tmu_clock_event_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_tmu: failed to request irq %d\n"

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

	.no_dead_strip	_sh_tmu_register_clockevent
.subsections_via_symbols
