	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carl9170_ps_update
_carl9170_ps_update:                    ## @carl9170_ps_update
	.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, %rbx
	xorl	%eax, %eax
	cmpl	$0, 28(%rdi)
	movl	$0, %r14d
	je	LBB0_1
## %bb.2:
	cmpl	(%rbx), %r14d
	jne	LBB0_3
	jmp	LBB0_10
LBB0_1:
	movq	32(%rbx), %rcx
	movq	_IEEE80211_CONF_PS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	andl	(%rcx), %r14d
	cmpl	(%rbx), %r14d
	je	LBB0_10
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_carl9170_powersave
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	8(%rbx), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, 24(%rbx)
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.8:
	movq	%rax, 16(%rbx)
LBB0_9:
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ## @IEEE80211_CONF_PS
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_carl9170_ps_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carl9170_ps_update
_carl9170_ps_update:                    ; @carl9170_ps_update
	.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	w8, [x0, #28]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_CONF_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CONF_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w20, w9, w8
LBB0_3:
	ldr	w8, [x19]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_carl9170_powersave
	cbnz	w0, LBB0_12
; %bb.6:
	ldr	w8, [x19]
Lloh3:
	adrp	x21, _jiffies@GOTPAGE
Lloh4:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cbz	w8, LBB0_9
; %bb.7:
	cbnz	w20, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	str	w0, [x19, #24]
LBB0_9:
	ldr	x8, [x21]
	cbz	w20, LBB0_11
; %bb.10:
	str	x8, [x19, #16]
LBB0_11:
	mov	w0, #0
	str	x8, [x19, #8]
	str	w20, [x19]
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CONF_PS,4,2          ; @IEEE80211_CONF_PS
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_carl9170_ps_update
.subsections_via_symbols
