	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vrtc_init                      ## -- Begin function vrtc_init
	.p2align	4, 0x90
_vrtc_init:                             ## @vrtc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_M_VRTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$48, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	leaq	36(%rax), %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	leaq	32(%rbx), %rdi
	movl	$1, %esi
	callq	_callout_init
	movl	$32, 8(%rbx)
	movq	_RTCSB_24HR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	_RTCSD_PWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_RTC_STATUSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_VRTC_LOCK
	movq	_VRTC_BROKEN_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_sbinuptime
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_vrtc_time_update
	xorl	%edi, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_secs_to_rtc
	movq	%rbx, %rdi
	callq	_VRTC_UNLOCK
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VRTC,4,2                     ## @M_VRTC
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vrtc lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_RTCSB_24HR,4,2                 ## @RTCSB_24HR
	.comm	_RTCSD_PWR,4,2                  ## @RTCSD_PWR
	.comm	_RTC_STATUSD,4,2                ## @RTC_STATUSD
	.comm	_VRTC_BROKEN_TIME,4,2           ## @VRTC_BROKEN_TIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vrtc_init                      ; -- Begin function vrtc_init
	.p2align	2
_vrtc_init:                             ; @vrtc_init
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _M_VRTC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_VRTC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #48
	bl	_malloc
	mov	x19, x0
	str	x20, [x0, #40]
	add	x0, x0, #36
Lloh9:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	add	x0, x19, #32
	mov	w1, #1
	bl	_callout_init
	mov	w8, #32
Lloh14:
	adrp	x9, _RTCSB_24HR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RTCSB_24HR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x19, #24]
	str	xzr, [x19, #16]
Lloh17:
	adrp	x9, _RTCSD_PWR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RTCSD_PWR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x19, #12]
Lloh20:
	adrp	x9, _RTC_STATUSD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RTC_STATUSD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_VRTC_LOCK
Lloh23:
	adrp	x8, _VRTC_BROKEN_TIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VRTC_BROKEN_TIME@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_sbinuptime
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	bl	_vrtc_time_update
	mov	x0, #0
	mov	x1, x19
	mov	w2, #0
	bl	_secs_to_rtc
	mov	x0, x19
	bl	_VRTC_UNLOCK
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VRTC,4,2                     ; @M_VRTC
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vrtc lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_RTCSB_24HR,4,2                 ; @RTCSB_24HR
	.comm	_RTCSD_PWR,4,2                  ; @RTCSD_PWR
	.comm	_RTC_STATUSD,4,2                ; @RTC_STATUSD
	.comm	_VRTC_BROKEN_TIME,4,2           ; @VRTC_BROKEN_TIME
.subsections_via_symbols
