	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtc_get_rtc_time
_rtc_get_rtc_time:                      ## @rtc_get_rtc_time
	.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	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_rtc_is_updating
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_HZ@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movslq	(%r15), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$36, %rax
	addl	%ecx, %eax
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	xorl	%eax, %eax
	callq	_rtc_is_updating
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movq	_rtc_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_RTC_SECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, (%r12)
	movq	_RTC_MINUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 4(%r12)
	movq	_RTC_HOURS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 8(%r12)
	movq	_RTC_DAY_OF_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 12(%r12)
	movq	_RTC_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 16(%r12)
	movq	_RTC_YEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 20(%r12)
	movq	_RTC_DAY_OF_WEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 24(%r12)
	movq	_RTC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_RTC_DM_BINARY@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_6
## %bb.5:
	movq	_RTC_ALWAYS_BCD@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
LBB0_6:
	movl	(%r12), %edi
	callq	_bcd2bin
	movl	%eax, (%r12)
	movl	4(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 8(%r12)
	movl	12(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 12(%r12)
	movl	16(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 16(%r12)
	movl	20(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 20(%r12)
	movl	24(%r12), %edi
	callq	_bcd2bin
	movl	%eax, 24(%r12)
LBB0_7:
	movq	_epoch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	20(%r12), %ecx
	leal	(%rax,%rcx), %edx
	addl	$-1900, %edx                    ## imm = 0xF894
	cmpl	$70, %edx
	leal	-1800(%rax,%rcx), %eax
	cmovael	%edx, %eax
	movl	%eax, 20(%r12)
	decl	16(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_rtc_lock,4,2                   ## @rtc_lock
	.comm	_RTC_SECONDS,4,2                ## @RTC_SECONDS
	.comm	_RTC_MINUTES,4,2                ## @RTC_MINUTES
	.comm	_RTC_HOURS,4,2                  ## @RTC_HOURS
	.comm	_RTC_DAY_OF_MONTH,4,2           ## @RTC_DAY_OF_MONTH
	.comm	_RTC_MONTH,4,2                  ## @RTC_MONTH
	.comm	_RTC_YEAR,4,2                   ## @RTC_YEAR
	.comm	_RTC_DAY_OF_WEEK,4,2            ## @RTC_DAY_OF_WEEK
	.comm	_RTC_CONTROL,4,2                ## @RTC_CONTROL
	.comm	_RTC_DM_BINARY,1,0              ## @RTC_DM_BINARY
	.comm	_RTC_ALWAYS_BCD,8,3             ## @RTC_ALWAYS_BCD
	.comm	_epoch,4,2                      ## @epoch
	.comm	_RTC_DEC_YEAR,4,2               ## @RTC_DEC_YEAR
	.no_dead_strip	_rtc_get_rtc_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtc_get_rtc_time
_rtc_get_rtc_time:                      ; @rtc_get_rtc_time
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _jiffies@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x21, [x20]
	bl	_rtc_is_updating
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x22, _HZ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	mov	w23, #34079
	movk	w23, #20971, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldrsw	x8, [x22]
	mul	x8, x8, x23
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w9
	add	x1, x21, w8, sxtw
	bl	_time_before
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_relax
	bl	_rtc_is_updating
	cbnz	x0, LBB0_2
LBB0_4:
Lloh4:
	adrp	x20, _rtc_lock@GOTPAGE
Lloh5:
	ldr	x20, [x20, _rtc_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _RTC_SECONDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTC_SECONDS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19]
Lloh9:
	adrp	x8, _RTC_MINUTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTC_MINUTES@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #4]
Lloh12:
	adrp	x8, _RTC_HOURS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTC_HOURS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #8]
Lloh15:
	adrp	x8, _RTC_DAY_OF_MONTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTC_DAY_OF_MONTH@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #12]
Lloh18:
	adrp	x8, _RTC_MONTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RTC_MONTH@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #16]
Lloh21:
	adrp	x8, _RTC_YEAR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RTC_YEAR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #20]
Lloh24:
	adrp	x8, _RTC_DAY_OF_WEEK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RTC_DAY_OF_WEEK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #24]
Lloh27:
	adrp	x8, _RTC_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTC_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_CMOS_READ
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh30:
	adrp	x8, _RTC_DM_BINARY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RTC_DM_BINARY@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh32:
	adrp	x8, _RTC_ALWAYS_BCD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RTC_ALWAYS_BCD@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w0, [x19]
	bl	_bcd2bin
	str	w0, [x19]
	ldr	w0, [x19, #4]
	bl	_bcd2bin
	str	w0, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_bcd2bin
	str	w0, [x19, #8]
	ldr	w0, [x19, #12]
	bl	_bcd2bin
	str	w0, [x19, #12]
	ldr	w0, [x19, #16]
	bl	_bcd2bin
	str	w0, [x19, #16]
	ldr	w0, [x19, #20]
	bl	_bcd2bin
	str	w0, [x19, #20]
	ldr	w0, [x19, #24]
	bl	_bcd2bin
	str	w0, [x19, #24]
LBB0_7:
Lloh35:
	adrp	x8, _epoch@GOTPAGE
Lloh36:
	ldr	x8, [x8, _epoch@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldp	w10, w9, [x19, #16]
	add	w8, w8, w9
	sub	w9, w8, #1900
	sub	w8, w8, #1800
	cmp	w9, #70
	csel	w8, w8, w9, lo
	sub	w9, w10, #1
	stp	w9, w8, [x19, #16]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_rtc_lock,4,2                   ; @rtc_lock
	.comm	_RTC_SECONDS,4,2                ; @RTC_SECONDS
	.comm	_RTC_MINUTES,4,2                ; @RTC_MINUTES
	.comm	_RTC_HOURS,4,2                  ; @RTC_HOURS
	.comm	_RTC_DAY_OF_MONTH,4,2           ; @RTC_DAY_OF_MONTH
	.comm	_RTC_MONTH,4,2                  ; @RTC_MONTH
	.comm	_RTC_YEAR,4,2                   ; @RTC_YEAR
	.comm	_RTC_DAY_OF_WEEK,4,2            ; @RTC_DAY_OF_WEEK
	.comm	_RTC_CONTROL,4,2                ; @RTC_CONTROL
	.comm	_RTC_DM_BINARY,1,0              ; @RTC_DM_BINARY
	.comm	_RTC_ALWAYS_BCD,8,3             ; @RTC_ALWAYS_BCD
	.comm	_epoch,4,2                      ; @epoch
	.comm	_RTC_DEC_YEAR,4,2               ; @RTC_DEC_YEAR
	.no_dead_strip	_rtc_get_rtc_time
.subsections_via_symbols
