	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_handle_ps
_carl9170_handle_ps:                    ## @carl9170_handle_ps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movq	_CARL9170_PSM_COUNTER@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CARL9170_PSM_WAKE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	setne	%bl
	cmpl	%ebx, (%r14)
	je	LBB0_4
## %bb.1:
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	8(%r14), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, 16(%r14)
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	%ebx, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_PSM_COUNTER,4,2       ## @CARL9170_PSM_COUNTER
	.comm	_CARL9170_PSM_WAKE,4,2          ## @CARL9170_PSM_WAKE
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_carl9170_handle_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_handle_ps
_carl9170_handle_ps:                    ; @carl9170_handle_ps
	.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
	ldr	w0, [x1]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _CARL9170_PSM_COUNTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170_PSM_COUNTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CARL9170_PSM_WAKE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CARL9170_PSM_WAKE@GOTPAGEOFF]
	and	w8, w8, w0
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w20, ne
	ldr	w10, [x19]
	cmp	w10, w20
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x21, _jiffies@GOTPAGE
Lloh7:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	str	w0, [x19, #16]
LBB0_3:
	ldr	x8, [x21]
	str	x8, [x19, #8]
	str	w20, [x19]
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_PSM_COUNTER,4,2       ; @CARL9170_PSM_COUNTER
	.comm	_CARL9170_PSM_WAKE,4,2          ; @CARL9170_PSM_WAKE
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_carl9170_handle_ps
.subsections_via_symbols
