	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_setup_timers
_mv_setup_timers:                       ## @mv_setup_timers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_INITIAL_TIMECOUNTER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_mv_set_timer_rel
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_mv_set_timer
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mv_get_timer_control
	movq	_CPU_TIMER0_EN@GOTPCREL(%rip), %rcx
	movq	_CPU_TIMER0_AUTO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_CPU_TIMER1_EN@GOTPCREL(%rip), %rax
	movq	_CPU_TIMER1_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%edx, %ecx
	movq	_timer_softc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_MV_SOC_ARMADA_XP@GOTPCREL(%rip), %rdx
	movq	_CPU_TIMER0_25MHZ_EN@GOTPCREL(%rip), %rsi
	movq	_CPU_TIMER1_25MHZ_EN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rsi), %edi
	cmpq	(%rdx), %rax
	cmovnel	%ebx, %edi
	orl	%ecx, %edi
	callq	_mv_set_timer_control
	movq	_timers_initialized@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INITIAL_TIMECOUNTER,4,2        ## @INITIAL_TIMECOUNTER
	.comm	_CPU_TIMER0_EN,4,2              ## @CPU_TIMER0_EN
	.comm	_CPU_TIMER0_AUTO,4,2            ## @CPU_TIMER0_AUTO
	.comm	_CPU_TIMER1_EN,4,2              ## @CPU_TIMER1_EN
	.comm	_CPU_TIMER1_AUTO,4,2            ## @CPU_TIMER1_AUTO
	.comm	_timer_softc,8,3                ## @timer_softc
	.comm	_MV_SOC_ARMADA_XP,8,3           ## @MV_SOC_ARMADA_XP
	.comm	_CPU_TIMER0_25MHZ_EN,4,2        ## @CPU_TIMER0_25MHZ_EN
	.comm	_CPU_TIMER1_25MHZ_EN,4,2        ## @CPU_TIMER1_25MHZ_EN
	.comm	_timers_initialized,4,2         ## @timers_initialized
	.no_dead_strip	_mv_setup_timers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_setup_timers
_mv_setup_timers:                       ; @mv_setup_timers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _INITIAL_TIMECOUNTER@GOTPAGE
Lloh1:
	ldr	x19, [x19, _INITIAL_TIMECOUNTER@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w20, #1
	mov	w0, #1
	bl	_mv_set_timer_rel
	ldr	w1, [x19]
	mov	w0, #1
	bl	_mv_set_timer
	bl	_mv_get_timer_control
Lloh2:
	adrp	x8, _CPU_TIMER0_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPU_TIMER0_EN@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CPU_TIMER0_AUTO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CPU_TIMER0_AUTO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _CPU_TIMER1_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CPU_TIMER1_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _CPU_TIMER1_AUTO@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CPU_TIMER1_AUTO@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _timer_softc@GOTPAGE
Lloh15:
	ldr	x9, [x9, _timer_softc@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _MV_SOC_ARMADA_XP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MV_SOC_ARMADA_XP@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	adrp	x11, _CPU_TIMER0_25MHZ_EN@GOTPAGE
Lloh21:
	ldr	x11, [x11, _CPU_TIMER0_25MHZ_EN@GOTPAGEOFF]
Lloh22:
	adrp	x12, _CPU_TIMER1_25MHZ_EN@GOTPAGE
Lloh23:
	ldr	x12, [x12, _CPU_TIMER1_25MHZ_EN@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w0, w8, w9
	bl	_mv_set_timer_control
Lloh26:
	adrp	x8, _timers_initialized@GOTPAGE
Lloh27:
	ldr	x8, [x8, _timers_initialized@GOTPAGEOFF]
Lloh28:
	str	w20, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INITIAL_TIMECOUNTER,4,2        ; @INITIAL_TIMECOUNTER
	.comm	_CPU_TIMER0_EN,4,2              ; @CPU_TIMER0_EN
	.comm	_CPU_TIMER0_AUTO,4,2            ; @CPU_TIMER0_AUTO
	.comm	_CPU_TIMER1_EN,4,2              ; @CPU_TIMER1_EN
	.comm	_CPU_TIMER1_AUTO,4,2            ; @CPU_TIMER1_AUTO
	.comm	_timer_softc,8,3                ; @timer_softc
	.comm	_MV_SOC_ARMADA_XP,8,3           ; @MV_SOC_ARMADA_XP
	.comm	_CPU_TIMER0_25MHZ_EN,4,2        ; @CPU_TIMER0_25MHZ_EN
	.comm	_CPU_TIMER1_25MHZ_EN,4,2        ; @CPU_TIMER1_25MHZ_EN
	.comm	_timers_initialized,4,2         ; @timers_initialized
	.no_dead_strip	_mv_setup_timers
.subsections_via_symbols
