	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vrtc_reset                     ## -- Begin function vrtc_reset
	.p2align	4, 0x90
_vrtc_reset:                            ## @vrtc_reset
	.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	_VRTC_LOCK
	movq	_RTCSB_ALL_INTRS@GOTPCREL(%rip), %rax
	movq	_RTCSB_SQWE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_vrtc_set_reg_b
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vrtc_set_reg_c
	movq	%rbx, %rdi
	callq	_callout_active
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_VRTC_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTCSB_ALL_INTRS,4,2            ## @RTCSB_ALL_INTRS
	.comm	_RTCSB_SQWE,4,2                 ## @RTCSB_SQWE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtc callout still active"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vrtc_reset                     ; -- Begin function vrtc_reset
	.p2align	2
_vrtc_reset:                            ; @vrtc_reset
	.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	_VRTC_LOCK
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _RTCSB_ALL_INTRS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTCSB_ALL_INTRS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RTCSB_SQWE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTCSB_SQWE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w1, w8, w9
	mov	x0, x19
	bl	_vrtc_set_reg_b
	mov	x0, x19
	mov	w1, #0
	bl	_vrtc_set_reg_c
	mov	x0, x19
	bl	_callout_active
	cmp	w0, #0
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_VRTC_UNLOCK
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTCSB_ALL_INTRS,4,2            ; @RTCSB_ALL_INTRS
	.comm	_RTCSB_SQWE,4,2                 ; @RTCSB_SQWE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtc callout still active"

.subsections_via_symbols
