	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_rtc_time                   ## -- Begin function get_rtc_time
	.p2align	4, 0x90
_get_rtc_time:                          ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_local_irq_save
	movq	_RTC_SECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, (%rbx)
	movq	_RTC_MINUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 4(%rbx)
	movq	_RTC_HOURS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 8(%rbx)
	movq	_RTC_DAY_OF_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 12(%rbx)
	movq	_RTC_MONTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 16(%rbx)
	movq	_RTC_YEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movl	%eax, 20(%rbx)
	callq	_local_irq_restore
	movl	(%rbx), %edi
	callq	_bcd2bin
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	callq	_bcd2bin
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	callq	_bcd2bin
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	callq	_bcd2bin
	movl	%eax, 12(%rbx)
	movl	16(%rbx), %edi
	callq	_bcd2bin
	movl	%eax, 16(%rbx)
	movl	20(%rbx), %edi
	callq	_bcd2bin
	leal	100(%rax), %ecx
	cmpl	$70, %eax
	cmovgel	%eax, %ecx
	movl	%ecx, 20(%rbx)
	decl	16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_rtc_time                   ; -- Begin function get_rtc_time
	.p2align	2
_get_rtc_time:                          ; @get_rtc_time
	.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	x19, x0
	bl	_local_irq_save
Lloh0:
	adrp	x8, _RTC_SECONDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTC_SECONDS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19]
Lloh3:
	adrp	x8, _RTC_MINUTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTC_MINUTES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #4]
Lloh6:
	adrp	x8, _RTC_HOURS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTC_HOURS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #8]
Lloh9:
	adrp	x8, _RTC_DAY_OF_MONTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTC_DAY_OF_MONTH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #12]
Lloh12:
	adrp	x8, _RTC_MONTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTC_MONTH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #16]
Lloh15:
	adrp	x8, _RTC_YEAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTC_YEAR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	w0, [x19, #20]
	bl	_local_irq_restore
	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
	add	w8, w0, #100
	cmp	w0, #70
	csel	w8, w8, w0, lt
	ldr	w9, [x19, #16]
	sub	w9, w9, #1
	stp	w9, w8, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
.subsections_via_symbols
