	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_sync_sta
_il3945_sync_sta:                       ## @il3945_sync_sta
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_IL_INVALID_STATION@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	8(%rbx), %r13
	movslq	%r15d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_STA_MODIFY_TX_RATE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%rcx,%rcx,2), %r12
	leaq	(%r13,%r12,4), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%r13,%r12,4)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r13,%r12,4)
	movq	_STA_CONTROL_MODIFY_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13,%r12,4)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_il_send_add_sta
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	callq	_D_RATE
LBB0_2:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IL_INVALID_STATION,4,2         ## @IL_INVALID_STATION
	.comm	_STA_MODIFY_TX_RATE_MSK,4,2     ## @STA_MODIFY_TX_RATE_MSK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ## @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCALE sync station %d to rate %d\n"

	.no_dead_strip	_il3945_sync_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_sync_sta
_il3945_sync_sta:                       ; @il3945_sync_sta
	.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, x1
Lloh0:
	adrp	x8, _IL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IL_INVALID_STATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _STA_MODIFY_TX_RATE_MSK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STA_MODIFY_TX_RATE_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #12
	smaddl	x22, w19, w10, x8
	str	w9, [x22, #8]
	mov	x0, x20
	bl	_cpu_to_le16
Lloh6:
	adrp	x8, _STA_CONTROL_MODIFY_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STA_CONTROL_MODIFY_MSK@GOTPAGEOFF]
	str	w0, [x22, #4]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh9:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_il_send_add_sta
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_D_RATE
LBB0_2:
	mov	x0, x19
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IL_INVALID_STATION,4,2         ; @IL_INVALID_STATION
	.comm	_STA_MODIFY_TX_RATE_MSK,4,2     ; @STA_MODIFY_TX_RATE_MSK
	.comm	_STA_CONTROL_MODIFY_MSK,4,2     ; @STA_CONTROL_MODIFY_MSK
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCALE sync station %d to rate %d\n"

	.no_dead_strip	_il3945_sync_sta
.subsections_via_symbols
