	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_sta_modify_ps_wake     ## -- Begin function iwl_mvm_sta_modify_ps_wake
	.p2align	4, 0x90
_iwl_mvm_sta_modify_ps_wake:            ## @iwl_mvm_sta_modify_ps_wake
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
	movq	_STA_FLG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -36(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_STA_MODE_MODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_ADD_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_iwl_mvm_add_sta_cmd_size
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STA_FLG_PS,4,2                 ## @STA_FLG_PS
	.comm	_STA_MODE_MODIFY,4,2            ## @STA_MODE_MODIFY
	.comm	_ADD_STA,4,2                    ## @ADD_STA
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send ADD_STA command (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_sta_modify_ps_wake     ; -- Begin function iwl_mvm_sta_modify_ps_wake
	.p2align	2
_iwl_mvm_sta_modify_ps_wake:            ; @iwl_mvm_sta_modify_ps_wake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x0, x1
	bl	_iwl_mvm_sta_from_mac80211
	mov	x20, x0
	ldr	w0, [x0]
	bl	_cpu_to_le32
	str	w0, [sp]
Lloh0:
	adrp	x8, _STA_FLG_PS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STA_FLG_PS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #4]
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _STA_MODE_MODIFY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STA_MODE_MODIFY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh6:
	adrp	x8, _ADD_STA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADD_STA@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_iwl_mvm_add_sta_cmd_size
	mov	x3, x0
	mov	x4, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_iwl_mvm_send_cmd_pdu
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STA_FLG_PS,4,2                 ; @STA_FLG_PS
	.comm	_STA_MODE_MODIFY,4,2            ; @STA_MODE_MODIFY
	.comm	_ADD_STA,4,2                    ; @ADD_STA
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send ADD_STA command (%d)\n"

.subsections_via_symbols
