	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_rtc_reset
_mv_rtc_reset:                          ## @mv_rtc_reset
	.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
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	_RTC_TEST_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movl	$500000, %edi                   ## imm = 0x7A120
	callq	_DELAY
	movq	_RTC_TIME@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movl	$62, %edi
	callq	_DELAY
	movq	_RTC_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RTC_STATUS_ALARM1_MASK@GOTPCREL(%rip), %r15
	movq	_RTC_STATUS_ALARM2_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mv_rtc_reg_write
	movl	$62, %edi
	callq	_DELAY
	movq	_RTC_IRQ_1_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movq	_RTC_IRQ_2_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movq	_RTC_ALARM_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movq	_RTC_ALARM_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movq	_RTC_CLOCK_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTC_NOMINAL_TIMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mv_rtc_reg_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mv_rtc_reg_write
	movl	$10, %edi
	callq	_DELAY
	movl	(%r12), %esi
	movl	(%r13), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mv_rtc_reg_write
	movl	$50, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DELAY                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTC_TEST_CONFIG,4,2            ## @RTC_TEST_CONFIG
	.comm	_RTC_TIME,4,2                   ## @RTC_TIME
	.comm	_RTC_STATUS,4,2                 ## @RTC_STATUS
	.comm	_RTC_STATUS_ALARM1_MASK,4,2     ## @RTC_STATUS_ALARM1_MASK
	.comm	_RTC_STATUS_ALARM2_MASK,4,2     ## @RTC_STATUS_ALARM2_MASK
	.comm	_RTC_IRQ_1_CONFIG,4,2           ## @RTC_IRQ_1_CONFIG
	.comm	_RTC_IRQ_2_CONFIG,4,2           ## @RTC_IRQ_2_CONFIG
	.comm	_RTC_ALARM_1,4,2                ## @RTC_ALARM_1
	.comm	_RTC_ALARM_2,4,2                ## @RTC_ALARM_2
	.comm	_RTC_CLOCK_CORR,4,2             ## @RTC_CLOCK_CORR
	.comm	_RTC_NOMINAL_TIMING,4,2         ## @RTC_NOMINAL_TIMING
	.no_dead_strip	_mv_rtc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_rtc_reset
_mv_rtc_reset:                          ; @mv_rtc_reset
	.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
	bl	_device_get_softc
	mov	x19, x0
Lloh0:
	adrp	x8, _RTC_TEST_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTC_TEST_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_mv_rtc_reg_write
	mov	w0, #41248
	movk	w0, #7, lsl #16
	bl	_DELAY
Lloh3:
	adrp	x20, _RTC_TIME@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RTC_TIME@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
	mov	w0, #62
	bl	_DELAY
Lloh5:
	adrp	x21, _RTC_STATUS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RTC_STATUS@GOTPAGEOFF]
Lloh7:
	adrp	x22, _RTC_STATUS_ALARM1_MASK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RTC_STATUS_ALARM1_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x22]
Lloh9:
	adrp	x23, _RTC_STATUS_ALARM2_MASK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _RTC_STATUS_ALARM2_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mv_rtc_reg_write
	mov	w0, #62
	bl	_DELAY
Lloh11:
	adrp	x8, _RTC_IRQ_1_CONFIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTC_IRQ_1_CONFIG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
Lloh14:
	adrp	x8, _RTC_IRQ_2_CONFIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTC_IRQ_2_CONFIG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
Lloh17:
	adrp	x8, _RTC_ALARM_1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTC_ALARM_1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
Lloh20:
	adrp	x8, _RTC_ALARM_2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTC_ALARM_2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
Lloh23:
	adrp	x8, _RTC_CLOCK_CORR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RTC_CLOCK_CORR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _RTC_NOMINAL_TIMING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RTC_NOMINAL_TIMING@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mv_rtc_reg_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_mv_rtc_reg_write
	mov	w0, #10
	bl	_DELAY
	ldr	w1, [x21]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mv_rtc_reg_write
	mov	w0, #50
	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
	b	_DELAY
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTC_TEST_CONFIG,4,2            ; @RTC_TEST_CONFIG
	.comm	_RTC_TIME,4,2                   ; @RTC_TIME
	.comm	_RTC_STATUS,4,2                 ; @RTC_STATUS
	.comm	_RTC_STATUS_ALARM1_MASK,4,2     ; @RTC_STATUS_ALARM1_MASK
	.comm	_RTC_STATUS_ALARM2_MASK,4,2     ; @RTC_STATUS_ALARM2_MASK
	.comm	_RTC_IRQ_1_CONFIG,4,2           ; @RTC_IRQ_1_CONFIG
	.comm	_RTC_IRQ_2_CONFIG,4,2           ; @RTC_IRQ_2_CONFIG
	.comm	_RTC_ALARM_1,4,2                ; @RTC_ALARM_1
	.comm	_RTC_ALARM_2,4,2                ; @RTC_ALARM_2
	.comm	_RTC_CLOCK_CORR,4,2             ; @RTC_CLOCK_CORR
	.comm	_RTC_NOMINAL_TIMING,4,2         ; @RTC_NOMINAL_TIMING
	.no_dead_strip	_mv_rtc_reset
.subsections_via_symbols
