	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_vif_recalc_ps_wake_threshold
_ath10k_mac_vif_recalc_ps_wake_threshold: ## @ath10k_mac_vif_recalc_ps_wake_threshold
	.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, %r12
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 8(%r12)
	jne	LBB0_1
## %bb.2:
	movq	_WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	movq	_WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_ath10k_wmi_set_sta_ps_param
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %r8d
	callq	_ath10k_warn
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER,4,2 ## @WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER
	.comm	_WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS,4,2 ## @WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS
	.comm	_WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD,4,2 ## @WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to submit ps wake threshold %u on vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_vif_recalc_ps_wake_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_vif_recalc_ps_wake_threshold
_ath10k_mac_vif_recalc_ps_wake_threshold: ; @ath10k_mac_vif_recalc_ps_wake_threshold
	.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	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_lockdep_assert_held
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w21, [x8]
Lloh4:
	adrp	x8, _WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldr	w1, [x20]
	mov	x0, x19
	mov	x3, x21
	bl	_ath10k_wmi_set_sta_ps_param
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w3, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x4, x22
	bl	_ath10k_warn
LBB0_2:
	mov	x0, x22
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER,4,2 ; @WMI_STA_PS_TX_WAKE_THRESHOLD_NEVER
	.comm	_WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS,4,2 ; @WMI_STA_PS_TX_WAKE_THRESHOLD_ALWAYS
	.comm	_WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD,4,2 ; @WMI_STA_PS_PARAM_TX_WAKE_THRESHOLD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to submit ps wake threshold %u on vdev %i: %d\n"

	.no_dead_strip	_ath10k_mac_vif_recalc_ps_wake_threshold
.subsections_via_symbols
