	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wakeref_auto             ## -- Begin function intel_wakeref_auto
	.p2align	4, 0x90
_intel_wakeref_auto:                    ## @intel_wakeref_auto
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movl	12(%r14), %edi
	callq	_assert_rpm_wakelock_held
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_refcount_inc_not_zero
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	4(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_refcount_inc_not_zero
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %edi
	callq	_INTEL_WAKEREF_BUG_ON
	movl	12(%r14), %edi
	callq	_intel_runtime_pm_get_if_in_use
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_refcount_set
LBB0_5:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wakeref_auto_timeout           ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_del_timer_sync
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wakeref_auto             ; -- Begin function intel_wakeref_auto
	.p2align	2
_intel_wakeref_auto:                    ; @intel_wakeref_auto
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x1
	ldr	w0, [x19, #12]
	bl	_assert_rpm_wakelock_held
	add	x21, x19, #8
	mov	x0, x21
	bl	_refcount_inc_not_zero
	cbnz	w0, LBB0_5
; %bb.2:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_refcount_inc_not_zero
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_INTEL_WAKEREF_BUG_ON
	ldr	w0, [x19, #12]
	bl	_intel_runtime_pm_get_if_in_use
	str	w0, [x19, #16]
	mov	x0, x21
	mov	w1, #1
	bl	_refcount_set
LBB0_4:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_5:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	bl	_mod_timer
	cbz	x0, LBB0_8
LBB0_6:
	mov	x0, x19
	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
	b	_wakeref_auto_timeout
LBB0_7:
	mov	x0, x19
	bl	_del_timer_sync
	cbnz	x0, LBB0_6
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
