	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_rtc_gettime
_aw_rtc_gettime:                        ## @aw_rtc_gettime
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RTC_READ
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_RTC_READ
	movl	%eax, %r12d
	movq	_TIME_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RTC_READ
	movl	%eax, %r15d
LBB0_2:
	movl	%r12d, %edi
	callq	_GET_SEC_VALUE
	movl	%eax, -40(%rbp)
	movl	%r12d, %edi
	callq	_GET_MIN_VALUE
	movl	%eax, -44(%rbp)
	movl	%r12d, %edi
	callq	_GET_HOUR_VALUE
	movl	%eax, -48(%rbp)
	movl	%r15d, %edi
	callq	_GET_DAY_VALUE
	movl	%eax, -52(%rbp)
	movl	%r15d, %edi
	callq	_GET_MON_VALUE
	movl	%eax, -56(%rbp)
	movl	%r15d, %edi
	callq	_GET_YEAR_VALUE
	movq	_YEAR_OFFSET@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, -64(%rbp)
	movl	$-1, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_clock_ct_to_ts
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIME_MASK,4,2                  ## @TIME_MASK
	.comm	_YEAR_OFFSET,8,3                ## @YEAR_OFFSET
	.no_dead_strip	_aw_rtc_gettime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_rtc_gettime
_aw_rtc_gettime:                        ; @aw_rtc_gettime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	bl	_device_get_softc
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w1, [x8]
	bl	_RTC_READ
	mov	x20, x0
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_RTC_READ
	mov	x21, x0
Lloh0:
	adrp	x8, _TIME_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIME_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_RTC_READ
	mov	x20, x0
LBB0_2:
	mov	x0, x21
	bl	_GET_SEC_VALUE
	str	w0, [sp, #40]
	mov	x0, x21
	bl	_GET_MIN_VALUE
	str	w0, [sp, #36]
	mov	x0, x21
	bl	_GET_HOUR_VALUE
	str	w0, [sp, #32]
	mov	x0, x20
	bl	_GET_DAY_VALUE
	str	w0, [sp, #28]
	mov	x0, x20
	bl	_GET_MON_VALUE
	str	w0, [sp, #24]
	mov	x0, x20
	bl	_GET_YEAR_VALUE
Lloh3:
	adrp	x8, _YEAR_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YEAR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, x0
	mov	w9, #-1
	str	w9, [sp]
	stp	xzr, x8, [sp, #8]
	mov	x0, sp
	mov	x1, x19
	bl	_clock_ct_to_ts
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TIME_MASK,4,2                  ; @TIME_MASK
	.comm	_YEAR_OFFSET,8,3                ; @YEAR_OFFSET
	.no_dead_strip	_aw_rtc_gettime
.subsections_via_symbols
