	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_sta_modify_sleep_tx_count ## -- Begin function il4965_sta_modify_sleep_tx_count
	.p2align	4, 0x90
_il4965_sta_modify_sleep_tx_count:      ## @il4965_sta_modify_sleep_tx_count
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_spin_lock_irqsave
	movq	_STA_FLG_PWR_SAVE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%r12), %rdx
	movslq	%r15d, %rsi
	shlq	$2, %rsi
	leaq	(%rsi,%rsi,4), %rbx
	orl	%ecx, 16(%rdx,%rbx)
	movl	(%rax), %eax
	movl	%eax, 12(%rdx,%rbx)
	movq	_STA_MODIFY_SLEEP_TX_COUNT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx,%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	leaq	(%rcx,%rbx), %rsi
	movl	%eax, 4(%rcx,%rbx)
	movq	_STA_CONTROL_MODIFY_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx,%rbx)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_il_send_add_sta
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STA_FLG_PWR_SAVE_MSK,4,2       ## @STA_FLG_PWR_SAVE_MSK
	.comm	_STA_MODIFY_SLEEP_TX_COUNT_MSK,4,2 ## @STA_MODIFY_SLEEP_TX_COUNT_MSK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ## @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_sta_modify_sleep_tx_count ; -- Begin function il4965_sta_modify_sleep_tx_count
	.p2align	2
_il4965_sta_modify_sleep_tx_count:      ; @il4965_sta_modify_sleep_tx_count
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _STA_FLG_PWR_SAVE_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STA_FLG_PWR_SAVE_MSK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x21, #8]
	mov	w22, #20
	smaddl	x10, w20, w22, x10
	ldr	w11, [x10, #16]
	orr	w9, w11, w9
	str	w9, [x10, #16]
	ldr	w8, [x8]
	str	w8, [x10, #12]
Lloh2:
	adrp	x8, _STA_MODIFY_SLEEP_TX_COUNT_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STA_MODIFY_SLEEP_TX_COUNT_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x10, #8]
	mov	x0, x19
	bl	_cpu_to_le16
	ldr	x8, [x21, #8]
	smaddl	x1, w20, w22, x8
Lloh5:
	adrp	x8, _STA_CONTROL_MODIFY_MSK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STA_CONTROL_MODIFY_MSK@GOTPAGEOFF]
	str	w0, [x1, #4]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x1]
Lloh8:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_il_send_add_sta
	mov	x0, x21
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STA_FLG_PWR_SAVE_MSK,4,2       ; @STA_FLG_PWR_SAVE_MSK
	.comm	_STA_MODIFY_SLEEP_TX_COUNT_MSK,4,2 ; @STA_MODIFY_SLEEP_TX_COUNT_MSK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ; @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
.subsections_via_symbols
