	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_rtc_open
_gen_rtc_open:                          ## @gen_rtc_open
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lock_kernel
	movq	_gen_rtc_status@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RTC_IS_OPEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_unlock_kernel
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_gen_rtc_irq_data@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_irq_active@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_unlock_kernel
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gen_rtc_status,4,2             ## @gen_rtc_status
	.comm	_RTC_IS_OPEN,4,2                ## @RTC_IS_OPEN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_gen_rtc_irq_data,8,3           ## @gen_rtc_irq_data
	.comm	_irq_active,8,3                 ## @irq_active
	.no_dead_strip	_gen_rtc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_rtc_open
_gen_rtc_open:                          ; @gen_rtc_open
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_lock_kernel
Lloh0:
	adrp	x8, _gen_rtc_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gen_rtc_status@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _RTC_IS_OPEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RTC_IS_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	bl	_unlock_kernel
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	orr	w9, w10, w9
	str	w9, [x8]
Lloh8:
	adrp	x8, _gen_rtc_irq_data@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gen_rtc_irq_data@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x8, _irq_active@GOTPAGE
Lloh12:
	ldr	x8, [x8, _irq_active@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
	bl	_unlock_kernel
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_gen_rtc_status,4,2             ; @gen_rtc_status
	.comm	_RTC_IS_OPEN,4,2                ; @RTC_IS_OPEN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_gen_rtc_irq_data,8,3           ; @gen_rtc_irq_data
	.comm	_irq_active,8,3                 ; @irq_active
	.no_dead_strip	_gen_rtc_open
.subsections_via_symbols
