	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtc_init                       ## -- Begin function rtc_init
	.p2align	4, 0x90
_rtc_init:                              ## @rtc_init
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_vm_get_lowmem_size
	movq	_m_16MB@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	_m_64KB@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_3:
	movq	_RTC_LMEM_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vm_rtc_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_RTC_LMEM_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrq	$8, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vm_rtc_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	callq	_vm_get_highmem_size
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_6:
	movq	_RTC_HMEM_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vm_rtc_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_RTC_HMEM_SB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	shrq	$8, %rdx
	movq	%r15, %rdi
	callq	_vm_rtc_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_RTC_HMEM_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrq	$16, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_vm_rtc_write
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rtc_time
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_vm_rtc_settime
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_m_16MB,8,3                     ## @m_16MB
	.comm	_m_64KB,8,3                     ## @m_64KB
	.comm	_RTC_LMEM_LSB,4,2               ## @RTC_LMEM_LSB
	.comm	_RTC_LMEM_MSB,4,2               ## @RTC_LMEM_MSB
	.comm	_RTC_HMEM_LSB,4,2               ## @RTC_HMEM_LSB
	.comm	_RTC_HMEM_SB,4,2                ## @RTC_HMEM_SB
	.comm	_RTC_HMEM_MSB,4,2               ## @RTC_HMEM_MSB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtc_init                       ; -- Begin function rtc_init
	.p2align	2
_rtc_init:                              ; @rtc_init
	.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	x20, x1
	mov	x19, x0
	bl	_vm_get_lowmem_size
Lloh0:
	adrp	x8, _m_16MB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_16MB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _m_64KB@GOTPAGE
Lloh4:
	ldr	x22, [x22, _m_64KB@GOTPAGEOFF]
	sub	x8, x0, x8
	ldr	x9, [x22]
Lloh5:
	adrp	x10, _RTC_LMEM_LSB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RTC_LMEM_LSB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x10]
	udiv	x21, x8, x9
	mov	x0, x19
	mov	x2, x21
	bl	_vm_rtc_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh8:
	adrp	x8, _RTC_LMEM_MSB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTC_LMEM_MSB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	lsr	x2, x21, #8
	mov	x0, x19
	bl	_vm_rtc_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_vm_get_highmem_size
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _RTC_HMEM_LSB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTC_HMEM_LSB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	udiv	x21, x0, x8
	mov	x0, x19
	mov	x2, x21
	bl	_vm_rtc_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh14:
	adrp	x8, _RTC_HMEM_SB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTC_HMEM_SB@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	lsr	x2, x21, #8
	mov	x0, x19
	bl	_vm_rtc_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
Lloh17:
	adrp	x8, _RTC_HMEM_MSB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTC_HMEM_MSB@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	lsr	x2, x21, #16
	mov	x0, x19
	bl	_vm_rtc_write
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_rtc_time
	mov	x1, x0
	mov	x0, x19
	bl	_vm_rtc_settime
	cmp	w0, #0
	cset	w0, eq
	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	_assert
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_m_16MB,8,3                     ; @m_16MB
	.comm	_m_64KB,8,3                     ; @m_64KB
	.comm	_RTC_LMEM_LSB,4,2               ; @RTC_LMEM_LSB
	.comm	_RTC_LMEM_MSB,4,2               ; @RTC_LMEM_MSB
	.comm	_RTC_HMEM_LSB,4,2               ; @RTC_HMEM_LSB
	.comm	_RTC_HMEM_SB,4,2                ; @RTC_HMEM_SB
	.comm	_RTC_HMEM_MSB,4,2               ; @RTC_HMEM_MSB
.subsections_via_symbols
