	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_rs_tx_status
_il4965_rs_tx_status:                   ## @il4965_rs_tx_status
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%r8), %r13
	movq	%r8, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	cmpl	$0, 56(%r15)
	je	LBB0_6
## %bb.2:
	movl	(%r13), %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	movq	_IEEE80211_TX_CTL_NO_ACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_4:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_D_RATE                         ## TAILCALL
LBB0_8:
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_IEEE80211_TX_STAT_AMPDU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
LBB0_10:
	movq	48(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	(%r14), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	callq	_il4965_rs_get_tbl_info_from_mcs
	movq	(%r14), %rdx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.11:
	movq	_IL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, -44(%rbp)
LBB0_12:
	movq	24(%r12), %rcx
	movl	(%rcx), %r9d
	movl	4(%rcx), %esi
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r9d, %r8d
	je	LBB0_14
## %bb.13:
	movq	_RATE_MCS_CODE_MSK@GOTPCREL(%rip), %rdi
	andl	(%rdi), %esi
	movq	_RATE_9M_IDX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_IL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%ecx, %edi
	xorl	%eax, %eax
	cmpl	%edi, %esi
	setge	%al
	addl	%esi, %eax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	cmpq	(%rdi), %rdx
	cmovel	%ecx, %esi
	addl	%eax, %esi
LBB0_14:
	leaq	48(%r15), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testl	%esi, %esi
	js	LBB0_24
## %bb.15:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r9d, (%rax)
	setne	%cl
	cmpl	%ecx, -80(%rbp)
	jne	LBB0_24
## %bb.16:
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r9d, (%rax)
	setne	%cl
	cmpl	%ecx, -76(%rbp)
	jne	LBB0_24
## %bb.17:
	movq	_IEEE80211_TX_RC_DUP_DATA@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r9d, (%rax)
	setne	%cl
	cmpl	%ecx, -72(%rbp)
	jne	LBB0_24
## %bb.18:
	movl	-68(%rbp), %eax
	cmpl	8(%r12), %eax
	jne	LBB0_24
## %bb.19:
	movq	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	sete	%al
	testl	%r9d, %r8d
	setne	%cl
	cmpb	%al, %cl
	je	LBB0_24
## %bb.20:
	movq	_RATE_MCS_GF_MSK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	sete	%al
	movq	_IEEE80211_TX_RC_GREEN_FIELD@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	setne	%cl
	cmpb	%cl, %al
	je	LBB0_24
## %bb.21:
	cmpl	%esi, -44(%rbp)
	jne	LBB0_24
## %bb.22:
	movq	$0, (%r15)
	movq	8(%r15), %rax
	leaq	(%rax,%rax,4), %rsi
	shlq	$2, %rsi
	addq	40(%r15), %rsi
	leaq	-80(%rbp), %rdi
	callq	_il4965_table_type_matches
	movq	8(%r15), %rdx
	movq	40(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	leaq	(%rdx,%rdx,4), %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	subq	%rdx, %rax
	jmp	LBB0_28
LBB0_24:
	movl	-44(%rbp), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_D_RATE
	movq	(%r15), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movq	_IL_MISSED_RATE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.25:
	movq	$0, (%r15)
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_il_send_lq_cmd
	jmp	LBB0_4
LBB0_26:
	movl	$1, %eax
	subq	%rdx, %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,4), %rsi
	leaq	-80(%rbp), %rdi
	callq	_il4965_table_type_matches
	testq	%rax, %rax
	je	LBB0_45
## %bb.27:
	movq	8(%r15), %rax
	movq	40(%r15), %rcx
	movl	$1, %edx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rcx,%rdx,4), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
LBB0_28:
	leaq	(%rax,%rax,4), %rax
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_TX_STAT_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_31
## %bb.29:
	movq	48(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	(%r14), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	callq	_il4965_rs_get_tbl_info_from_mcs
	movl	-44(%rbp), %esi
	movl	12(%r12), %edx
	movl	16(%r12), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_il4965_rs_collect_tx_data
	cmpq	$0, 32(%r15)
	je	LBB0_37
## %bb.30:
	movl	16(%r12), %ecx
	addl	%ecx, 16(%r15)
	movl	12(%r12), %eax
	subl	%ecx, %eax
	jmp	LBB0_41
LBB0_31:
	movq	24(%r12), %rax
	movl	8(%rax), %edi
	decl	%edi
	movl	$15, %esi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%r12), %ecx
	setne	%dl
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_39
## %bb.32:
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movl	%eax, %ecx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	incl	%eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_35 Depth=1
	movl	-44(%rbp), %esi
	cmpq	-136(%rbp), %r12                ## 8-byte Folded Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	$0, %eax
	cmovbl	%eax, %ecx
	movl	$1, %edx
	callq	_il4965_rs_collect_tx_data
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=1
	incq	%r12
	cmpq	%r12, -144(%rbp)                ## 8-byte Folded Reload
	je	LBB0_38
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	(%r14), %rsi
	movl	%eax, %edi
	leaq	-80(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_il4965_rs_get_tbl_info_from_mcs
	leaq	-80(%rbp), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_il4965_table_type_matches
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	leaq	-80(%rbp), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_il4965_table_type_matches
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_33
	jmp	LBB0_34
LBB0_38:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	-100(%rbp), %ecx                ## 4-byte Reload
LBB0_39:
	cmpq	$0, 32(%r15)
	je	LBB0_37
## %bb.40:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, 16(%r15)
	cmpl	$1, %ecx
	adcl	$0, %eax
LBB0_41:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 20(%r15)
	jmp	LBB0_42
LBB0_37:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_42:
	movl	%r13d, 24(%r15)
LBB0_43:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.44:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_il4965_rs_rate_scale_perform
	jmp	LBB0_4
LBB0_45:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	movq	8(%r15), %rax
	movq	40(%r15), %rdx
	leaq	(%rax,%rax,4), %rax
	movl	16(%rdx,%rax,4), %esi
	movl	(%rdx,%rax,4), %ecx
	movl	12(%rdx,%rax,4), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	movq	40(%r15), %rax
	movl	$1, %ecx
	subq	8(%r15), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	movl	16(%rax,%rdx,4), %esi
	movl	(%rax,%rdx,4), %ecx
	movl	12(%rax,%rdx,4), %edx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	movl	-64(%rbp), %esi
	movl	-80(%rbp), %ecx
	movl	-68(%rbp), %edx
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_RATE
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_il4965_rs_stay_in_table
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get frame ack response, update rate scale win\n"

L_.str.1:                               ## @.str.1
	.asciz	"Station rate scaling not created yet.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Rate scaling not initialized yet.\n"

	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ## @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ## @IEEE80211_TX_STAT_AMPDU
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_IL_FIRST_OFDM_RATE,4,2         ## @IL_FIRST_OFDM_RATE
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_RATE_MCS_CODE_MSK,4,2          ## @RATE_MCS_CODE_MSK
	.comm	_RATE_9M_IDX,4,2                ## @RATE_9M_IDX
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ## @IEEE80211_TX_RC_DUP_DATA
	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
	.comm	_RATE_MCS_GF_MSK,4,2            ## @RATE_MCS_GF_MSK
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ## @IEEE80211_TX_RC_GREEN_FIELD
L_.str.3:                               ## @.str.3
	.asciz	"initial rate %d does not match %d (0x%x)\n"

	.comm	_IL_MISSED_RATE_MAX,8,3         ## @IL_MISSED_RATE_MAX
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
L_.str.4:                               ## @.str.4
	.asciz	"Neither active nor search matches tx rate\n"

L_.str.5:                               ## @.str.5
	.asciz	"active- lq:%x, ant:%x, SGI:%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"search- lq:%x, ant:%x, SGI:%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"actual- lq:%x, ant:%x, SGI:%d\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_il4965_rs_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_rs_tx_status
_il4965_rs_tx_status:                   ; @il4965_rs_tx_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x24, [x4]
	mov	x0, x4
	bl	_IEEE80211_SKB_CB
	mov	x26, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_RATE
	cbz	x19, LBB0_5
; %bb.1:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x24]
	bl	_ieee80211_is_data
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x26]
Lloh2:
	adrp	x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_ACK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_4:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_D_RATE
LBB0_8:
Lloh9:
	adrp	x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh12:
	adrp	x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_10:
	mov	x25, x19
	ldr	x8, [x25, #48]!
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x1, [x20]
	add	x2, sp, #72
	sub	x3, x29, #84
	bl	_il4965_rs_get_tbl_info_from_mcs
	ldr	x11, [x20]
Lloh15:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x12, _IL_FIRST_OFDM_RATE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _IL_FIRST_OFDM_RATE@GOTPAGEOFF]
	cmp	x11, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x12]
	ldur	w9, [x29, #-84]
	sub	w8, w9, w8
	stur	w8, [x29, #-84]
LBB0_12:
	ldr	x8, [x26, #24]
	ldp	w9, w8, [x8]
Lloh20:
	adrp	x10, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	ands	w10, w10, w9
	b.eq	LBB0_14
; %bb.13:
Lloh23:
	adrp	x13, _RATE_MCS_CODE_MSK@GOTPAGE
Lloh24:
	ldr	x13, [x13, _RATE_MCS_CODE_MSK@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
Lloh26:
	adrp	x14, _RATE_9M_IDX@GOTPAGE
Lloh27:
	ldr	x14, [x14, _RATE_9M_IDX@GOTPAGEOFF]
	and	w8, w13, w8
Lloh28:
	ldr	w13, [x14]
	ldr	w12, [x12]
	sub	w13, w13, w12
	cmp	w8, w13
	cinc	w8, w8, ge
Lloh29:
	adrp	x13, _NL80211_BAND_2GHZ@GOTPAGE
Lloh30:
	ldr	x13, [x13, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh31:
	ldr	x13, [x13]
	cmp	x11, x13
	csel	w11, w12, wzr, eq
	add	w8, w8, w11
LBB0_14:
	tbnz	w8, #31, LBB0_24
; %bb.15:
	ldr	w11, [sp, #72]
Lloh32:
	adrp	x12, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh33:
	ldr	x12, [x12, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh34:
	ldr	w12, [x12]
	tst	w12, w9
	cset	w12, ne
	cmp	w11, w12
	b.ne	LBB0_24
; %bb.16:
	ldr	w11, [sp, #76]
Lloh35:
	adrp	x12, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh36:
	ldr	x12, [x12, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh37:
	ldr	w12, [x12]
	tst	w12, w9
	cset	w12, ne
	cmp	w11, w12
	b.ne	LBB0_24
; %bb.17:
	ldr	w11, [sp, #80]
Lloh38:
	adrp	x12, _IEEE80211_TX_RC_DUP_DATA@GOTPAGE
Lloh39:
	ldr	x12, [x12, _IEEE80211_TX_RC_DUP_DATA@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	tst	w12, w9
	cset	w12, ne
	cmp	w11, w12
	b.ne	LBB0_24
; %bb.18:
	ldr	w11, [sp, #84]
	ldr	w12, [x26, #8]
	cmp	w11, w12
	b.ne	LBB0_24
; %bb.19:
Lloh41:
	adrp	x11, _RATE_MCS_HT_MSK@GOTPAGE
Lloh42:
	ldr	x11, [x11, _RATE_MCS_HT_MSK@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
	tst	w11, w24
	cset	w11, eq
	cmp	w10, #0
	cset	w10, ne
	cmp	w10, w11
	b.eq	LBB0_24
; %bb.20:
Lloh44:
	adrp	x10, _RATE_MCS_GF_MSK@GOTPAGE
Lloh45:
	ldr	x10, [x10, _RATE_MCS_GF_MSK@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w10, w24
	cset	w10, eq
Lloh47:
	adrp	x11, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGE
Lloh48:
	ldr	x11, [x11, _IEEE80211_TX_RC_GREEN_FIELD@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	tst	w11, w9
	cset	w9, ne
	cmp	w10, w9
	b.eq	LBB0_24
; %bb.21:
	ldur	w9, [x29, #-84]
	cmp	w9, w8
	b.ne	LBB0_24
; %bb.22:
	str	xzr, [x19]
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	mov	w10, #20
	madd	x1, x9, x10, x8
	add	x0, sp, #72
	bl	_il4965_table_type_matches
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	cbz	x0, LBB0_26
; %bb.23:
	add	x9, x9, x9, lsl #2
	lsl	x9, x9, #2
	add	x27, x8, x9
	sub	x8, x8, x9
	add	x8, x8, #20
	b	LBB0_28
LBB0_24:
	ldur	w9, [x29, #-84]
	stp	x9, x24, [sp, #8]
	str	x8, [sp]
Lloh50:
	adrp	x0, l_.str.3@PAGE
Lloh51:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D_RATE
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
Lloh52:
	adrp	x9, _IL_MISSED_RATE_MAX@GOTPAGE
Lloh53:
	ldr	x9, [x9, _IL_MISSED_RATE_MAX@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.25:
	str	xzr, [x19]
Lloh55:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x25
	mov	w3, #0
	bl	_il_send_lq_cmd
	b	LBB0_4
LBB0_26:
	mov	w10, #20
	msub	x8, x9, x10, x8
	add	x1, x8, #20
	add	x0, sp, #72
	bl	_il4965_table_type_matches
	cbz	x0, LBB0_44
; %bb.27:
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	add	x9, x9, x9, lsl #2
	lsl	x9, x9, #2
	sub	x10, x8, x9
	add	x27, x10, #20
	add	x8, x8, x9
LBB0_28:
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w8, [x26]
Lloh58:
	adrp	x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IEEE80211_TX_STAT_AMPDU@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.29:
	ldr	x8, [x19, #48]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x1, [x20]
	add	x2, sp, #72
	sub	x3, x29, #84
	bl	_il4965_rs_get_tbl_info_from_mcs
	ldur	w1, [x29, #-84]
	ldp	w2, w3, [x26, #12]
	mov	x0, x27
	bl	_il4965_rs_collect_tx_data
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_41
; %bb.30:
	ldr	w8, [x26, #16]
	ldr	w9, [x19, #16]
	add	w9, w9, w8
	str	w9, [x19, #16]
	ldr	w9, [x26, #12]
	sub	w8, w9, w8
	b	LBB0_40
LBB0_31:
	ldr	x8, [x26, #24]
	ldr	w8, [x8, #8]
	sub	w0, w8, #1
	mov	w1, #15
	bl	_min
	ldr	w8, [x26]
Lloh61:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh62:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	ands	w9, w9, w8
	cset	w26, ne
	tbnz	w0, #31, LBB0_38
; %bb.32:
	stp	w9, w0, [sp, #32]               ; 8-byte Folded Spill
	mov	x28, #0
	mov	w10, w0
	add	w8, w0, #1
	stp	x10, x8, [sp, #56]              ; 16-byte Folded Spill
	str	x27, [sp, #40]                  ; 8-byte Folded Spill
	b	LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_35 Depth=1
	ldur	w1, [x29, #-84]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x28, x8
	csel	w3, wzr, w26, lo
	mov	w2, #1
	bl	_il4965_rs_collect_tx_data
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x28, x28, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x8, x28
	b.eq	LBB0_37
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w0, [x8, x28, lsl #2]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	x1, [x20]
	add	x2, sp, #72
	sub	x3, x29, #84
	bl	_il4965_rs_get_tbl_info_from_mcs
	add	x0, sp, #72
	mov	x1, x27
	bl	_il4965_table_type_matches
	mov	x8, x0
	mov	x0, x27
	cbnz	x8, LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	add	x0, sp, #72
	mov	x27, x26
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	mov	x1, x26
	bl	_il4965_table_type_matches
	mov	x8, x0
	mov	x0, x26
	mov	x26, x27
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	cbnz	x8, LBB0_33
	b	LBB0_34
LBB0_37:
	ldp	w9, w0, [sp, #32]               ; 8-byte Folded Reload
LBB0_38:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_41
; %bb.39:
	cmp	w9, #0
	ldr	w8, [x19, #16]
	add	w8, w8, w26
	str	w8, [x19, #16]
	cinc	w8, w0, eq
LBB0_40:
	ldr	w9, [x19, #20]
	add	w8, w8, w9
	str	w8, [x19, #20]
LBB0_41:
	str	w24, [x19, #24]
LBB0_42:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.43:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_il4965_rs_rate_scale_perform
	b	LBB0_4
LBB0_44:
Lloh64:
	adrp	x0, l_.str.4@PAGE
Lloh65:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_RATE
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	mov	w24, #20
	madd	x8, x9, x24, x8
	ldp	w10, w9, [x8, #12]
	ldr	w8, [x8]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh66:
	adrp	x0, l_.str.5@PAGE
Lloh67:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_D_RATE
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	msub	x8, x9, x24, x8
	ldr	w9, [x8, #20]!
	ldp	w8, w10, [x8, #12]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh68:
	adrp	x0, l_.str.6@PAGE
Lloh69:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_D_RATE
	ldp	w9, w8, [sp, #84]
	ldr	w10, [sp, #72]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh70:
	adrp	x0, l_.str.7@PAGE
Lloh71:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_D_RATE
	mov	x0, x19
	mov	w1, #1
	bl	_il4965_rs_stay_in_table
	b	LBB0_42
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get frame ack response, update rate scale win\n"

l_.str.1:                               ; @.str.1
	.asciz	"Station rate scaling not created yet.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Rate scaling not initialized yet.\n"

	.comm	_IEEE80211_TX_CTL_NO_ACK,4,2    ; @IEEE80211_TX_CTL_NO_ACK
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_IEEE80211_TX_STAT_AMPDU,4,2    ; @IEEE80211_TX_STAT_AMPDU
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_IL_FIRST_OFDM_RATE,4,2         ; @IL_FIRST_OFDM_RATE
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_RATE_MCS_CODE_MSK,4,2          ; @RATE_MCS_CODE_MSK
	.comm	_RATE_9M_IDX,4,2                ; @RATE_9M_IDX
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_DUP_DATA,4,2   ; @IEEE80211_TX_RC_DUP_DATA
	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
	.comm	_RATE_MCS_GF_MSK,4,2            ; @RATE_MCS_GF_MSK
	.comm	_IEEE80211_TX_RC_GREEN_FIELD,4,2 ; @IEEE80211_TX_RC_GREEN_FIELD
l_.str.3:                               ; @.str.3
	.asciz	"initial rate %d does not match %d (0x%x)\n"

	.comm	_IL_MISSED_RATE_MAX,8,3         ; @IL_MISSED_RATE_MAX
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
l_.str.4:                               ; @.str.4
	.asciz	"Neither active nor search matches tx rate\n"

l_.str.5:                               ; @.str.5
	.asciz	"active- lq:%x, ant:%x, SGI:%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"search- lq:%x, ant:%x, SGI:%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"actual- lq:%x, ant:%x, SGI:%d\n"

	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
	.no_dead_strip	_il4965_rs_tx_status
.subsections_via_symbols
