	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_rtc_alm_time
_get_rtc_alm_time:                      ## @get_rtc_alm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_rtc_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_RTC_SECONDS_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movq	%rax, 16(%rbx)
	movq	_RTC_MINUTES_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movq	%rax, 8(%rbx)
	movq	_RTC_HOURS_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movq	%rax, (%rbx)
	movq	_RTC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CMOS_READ
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	_RTC_DM_BINARY@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	movq	_RTC_ALWAYS_BCD@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_2:
	movq	16(%rbx), %rdi
	callq	_bcd2bin
	movq	%rax, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_bcd2bin
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rdi
	callq	_bcd2bin
	movq	%rax, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rtc_lock,4,2                   ## @rtc_lock
	.comm	_RTC_SECONDS_ALARM,4,2          ## @RTC_SECONDS_ALARM
	.comm	_RTC_MINUTES_ALARM,4,2          ## @RTC_MINUTES_ALARM
	.comm	_RTC_HOURS_ALARM,4,2            ## @RTC_HOURS_ALARM
	.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
	.no_dead_strip	_get_rtc_alm_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_rtc_alm_time
_get_rtc_alm_time:                      ; @get_rtc_alm_time
	.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	x19, x0
Lloh0:
	adrp	x20, _rtc_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rtc_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irq
Lloh2:
	adrp	x8, _RTC_SECONDS_ALARM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTC_SECONDS_ALARM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	x0, [x19, #16]
Lloh5:
	adrp	x8, _RTC_MINUTES_ALARM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTC_MINUTES_ALARM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	x0, [x19, #8]
Lloh8:
	adrp	x8, _RTC_HOURS_ALARM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTC_HOURS_ALARM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_CMOS_READ
	str	x0, [x19]
Lloh11:
	adrp	x8, _RTC_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTC_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_CMOS_READ
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh14:
	adrp	x8, _RTC_DM_BINARY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTC_DM_BINARY@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w21
Lloh16:
	adrp	x9, _RTC_ALWAYS_BCD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RTC_ALWAYS_BCD@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_bcd2bin
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_bcd2bin
	str	x0, [x19, #8]
	ldr	x0, [x19]
	bl	_bcd2bin
	str	x0, [x19]
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rtc_lock,4,2                   ; @rtc_lock
	.comm	_RTC_SECONDS_ALARM,4,2          ; @RTC_SECONDS_ALARM
	.comm	_RTC_MINUTES_ALARM,4,2          ; @RTC_MINUTES_ALARM
	.comm	_RTC_HOURS_ALARM,4,2            ; @RTC_HOURS_ALARM
	.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
	.no_dead_strip	_get_rtc_alm_time
.subsections_via_symbols
