	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_rate_scale_init         ## -- Begin function il3945_rate_scale_init
	.p2align	4, 0x90
_il3945_rate_scale_init:                ## @il3945_rate_scale_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	32(%r14), %edi
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_ieee80211_find_sta
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r15
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%r15)
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.4:
	movq	_RXON_FLG_TGG_PROTECT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_6
## %bb.5:
	movl	$1, (%r15)
	movq	_il3945_expected_tpt_g_prot@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	jmp	LBB0_13
LBB0_8:
	movq	_il3945_expected_tpt_a@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_10
LBB0_6:
	movq	_il3945_expected_tpt_g@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.11:
	movq	_IL_MIN_RSSI_VAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_D_RATE
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_il3945_get_rate_idx_by_rssi
	movq	%rax, 8(%r15)
	movq	_il3945_rates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_D_RATE
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to find station to initialize rate scaling.\n"

	.comm	_RXON_FLG_TGG_PROTECT_MSK,4,2   ## @RXON_FLG_TGG_PROTECT_MSK
	.comm	_il3945_expected_tpt_g_prot,4,2 ## @il3945_expected_tpt_g_prot
	.comm	_il3945_expected_tpt_g,4,2      ## @il3945_expected_tpt_g
	.comm	_il3945_expected_tpt_a,4,2      ## @il3945_expected_tpt_a
	.comm	_IL_MIN_RSSI_VAL,8,3            ## @IL_MIN_RSSI_VAL
L_.str.2:                               ## @.str.2
	.asciz	"Network RSSI: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"leave: rssi %d assign rate idx: %d (plcp 0x%x)\n"

	.comm	_il3945_rates,8,3               ## @il3945_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_rate_scale_init         ; -- Begin function il3945_rate_scale_init
	.p2align	2
_il3945_rate_scale_init:                ; @il3945_rate_scale_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_RATE
	bl	_rcu_read_lock
	ldr	w0, [x20, #32]
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x19, lsl #2]
	bl	_ieee80211_find_sta
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x21, [x0]
	add	x19, x21, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	wzr, [x21]
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x20, #16]
Lloh2:
	adrp	x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RXON_FLG_TGG_PROTECT_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	mov	w8, #1
	str	w8, [x21]
Lloh5:
	adrp	x8, _il3945_expected_tpt_g_prot@GOTPAGE
Lloh6:
	ldr	x8, [x8, _il3945_expected_tpt_g_prot@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh9:
	adrp	x8, _il3945_expected_tpt_a@GOTPAGE
Lloh10:
	ldr	x8, [x8, _il3945_expected_tpt_a@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	bl	_BUG
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _il3945_expected_tpt_g@GOTPAGE
Lloh12:
	ldr	x8, [x8, _il3945_expected_tpt_g@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x21, #20]
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _IL_MIN_RSSI_VAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IL_MIN_RSSI_VAL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x19, x9, x8, eq
	str	x19, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_RATE
	ldr	w1, [x20]
	mov	x0, x19
	bl	_il3945_get_rate_idx_by_rssi
	str	x0, [x21, #8]
Lloh18:
	adrp	x8, _il3945_rates@GOTPAGE
Lloh19:
	ldr	x8, [x8, _il3945_rates@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w8, [x8, x0, lsl #2]
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_D_RATE
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_rcu_read_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to find station to initialize rate scaling.\n"

	.comm	_RXON_FLG_TGG_PROTECT_MSK,4,2   ; @RXON_FLG_TGG_PROTECT_MSK
	.comm	_il3945_expected_tpt_g_prot,4,2 ; @il3945_expected_tpt_g_prot
	.comm	_il3945_expected_tpt_g,4,2      ; @il3945_expected_tpt_g
	.comm	_il3945_expected_tpt_a,4,2      ; @il3945_expected_tpt_a
	.comm	_IL_MIN_RSSI_VAL,8,3            ; @IL_MIN_RSSI_VAL
l_.str.2:                               ; @.str.2
	.asciz	"Network RSSI: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"leave: rssi %d assign rate idx: %d (plcp 0x%x)\n"

	.comm	_il3945_rates,8,3               ; @il3945_rates
.subsections_via_symbols
