	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_init_optimal_rate
_rs_init_optimal_rate:                  ## @rs_init_optimal_rate
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	64(%rdx), %r14
	movq	(%rdx), %rax
	movq	_IWL_RATE_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_5
## %bb.8:
	movq	16(%rbx), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_LQ_LEGACY_A@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	cmpq	$0, 56(%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_LQ_HT_MIMO2@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	cmpq	$0, 56(%rbx)
	jne	LBB0_6
## %bb.7:
	movq	_LQ_HT_SISO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_LQ_VHT_MIMO2@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_LQ_LEGACY_G@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	_LQ_VHT_SISO@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	%r15, %rdi
	callq	_rs_bw_from_sta_bw
	movq	%rax, 64(%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_rs_sgi_allow
	movl	%eax, 72(%rbx)
	movq	%r14, %rdi
	callq	_is_mimo
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	52(%rbx), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_19
LBB0_13:
	movq	%r14, %rdi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	48(%rbx), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_19
LBB0_15:
	movl	40(%rbx), %eax
	movl	%eax, 44(%rbx)
	movq	16(%rbx), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_rs_optimal_rates_5ghz_legacy@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_rs_optimal_rates_24ghz_legacy@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rdi
	movq	%rdi, 32(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%rbx)
LBB0_19:
	movq	%r14, %rdi
	callq	_is_vht
	testq	%rax, %rax
	je	LBB0_23
## %bb.20:
	movq	(%r14), %rax
	movq	_RATE_MCS_CHAN_WIDTH_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.22:
	movq	_rs_optimal_rates_vht_20mhz@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	%r14, %rdi
	callq	_is_ht
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	_rs_optimal_rates_ht@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_21:
	movq	_rs_optimal_rates_vht@GOTPCREL(%rip), %rax
LBB0_25:
	movq	(%rax), %rdi
	movq	%rdi, 32(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 24(%rbx)
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RATE_INVALID,8,3           ## @IWL_RATE_INVALID
	.comm	_LQ_VHT_MIMO2,4,2               ## @LQ_VHT_MIMO2
	.comm	_LQ_HT_MIMO2,4,2                ## @LQ_HT_MIMO2
	.comm	_LQ_VHT_SISO,4,2                ## @LQ_VHT_SISO
	.comm	_LQ_HT_SISO,4,2                 ## @LQ_HT_SISO
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_LQ_LEGACY_A,4,2                ## @LQ_LEGACY_A
	.comm	_LQ_LEGACY_G,4,2                ## @LQ_LEGACY_G
	.comm	_rs_optimal_rates_5ghz_legacy,8,3 ## @rs_optimal_rates_5ghz_legacy
	.comm	_rs_optimal_rates_24ghz_legacy,8,3 ## @rs_optimal_rates_24ghz_legacy
	.comm	_RATE_MCS_CHAN_WIDTH_20,8,3     ## @RATE_MCS_CHAN_WIDTH_20
	.comm	_rs_optimal_rates_vht_20mhz,8,3 ## @rs_optimal_rates_vht_20mhz
	.comm	_rs_optimal_rates_vht,8,3       ## @rs_optimal_rates_vht
	.comm	_rs_optimal_rates_ht,8,3        ## @rs_optimal_rates_ht
	.no_dead_strip	_rs_init_optimal_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_init_optimal_rate
_rs_init_optimal_rate:                  ; @rs_init_optimal_rate
	.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	x21, x1
	mov	x22, x0
	mov	x20, x2
	ldr	x8, [x20], #64
Lloh0:
	adrp	x9, _IWL_RATE_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_RATE_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
Lloh6:
	adrp	x8, _LQ_LEGACY_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LQ_LEGACY_A@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _LQ_VHT_MIMO2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LQ_VHT_MIMO2@GOTPAGEOFF]
	ldr	x9, [x19, #56]
Lloh10:
	adrp	x10, _LQ_HT_MIMO2@GOTPAGE
Lloh11:
	ldr	x10, [x10, _LQ_HT_MIMO2@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _LQ_VHT_SISO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LQ_VHT_SISO@GOTPAGEOFF]
	ldr	x9, [x19, #56]
Lloh14:
	adrp	x10, _LQ_HT_SISO@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LQ_HT_SISO@GOTPAGEOFF]
LBB0_6:
	cmp	x9, #0
	csel	x8, x10, x8, eq
LBB0_7:
	ldr	w8, [x8]
	str	w8, [x19, #76]
	mov	x0, x21
	bl	_rs_bw_from_sta_bw
	str	x0, [x19, #64]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	bl	_rs_sgi_allow
	str	w0, [x19, #72]
	mov	x0, x20
	bl	_is_mimo
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #52]
	str	w8, [x19, #44]
	b	LBB0_16
LBB0_9:
	mov	x0, x20
	bl	_is_siso
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x19, #48]
	str	w8, [x19, #44]
	b	LBB0_16
LBB0_11:
	ldr	w8, [x19, #40]
	str	w8, [x19, #44]
	ldr	x8, [x19, #16]
Lloh16:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
Lloh19:
	adrp	x8, _rs_optimal_rates_5ghz_legacy@GOTPAGE
Lloh20:
	ldr	x8, [x8, _rs_optimal_rates_5ghz_legacy@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh21:
	adrp	x8, _LQ_LEGACY_G@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LQ_LEGACY_G@GOTPAGEOFF]
	b	LBB0_7
LBB0_14:
Lloh23:
	adrp	x8, _rs_optimal_rates_24ghz_legacy@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rs_optimal_rates_24ghz_legacy@GOTPAGEOFF]
LBB0_15:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
LBB0_16:
	mov	x0, x20
	bl	_is_vht
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _RATE_MCS_CHAN_WIDTH_20@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RATE_MCS_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x10, _rs_optimal_rates_vht@GOTPAGE
Lloh29:
	ldr	x10, [x10, _rs_optimal_rates_vht@GOTPAGEOFF]
Lloh30:
	adrp	x11, _rs_optimal_rates_vht_20mhz@GOTPAGE
Lloh31:
	ldr	x11, [x11, _rs_optimal_rates_vht_20mhz@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_is_ht
	cbz	x0, LBB0_21
; %bb.19:
Lloh32:
	adrp	x8, _rs_optimal_rates_ht@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rs_optimal_rates_ht@GOTPAGEOFF]
LBB0_20:
	ldr	x0, [x8]
	str	x0, [x19, #32]
	bl	_ARRAY_SIZE
	str	x0, [x19, #24]
LBB0_21:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RATE_INVALID,8,3           ; @IWL_RATE_INVALID
	.comm	_LQ_VHT_MIMO2,4,2               ; @LQ_VHT_MIMO2
	.comm	_LQ_HT_MIMO2,4,2                ; @LQ_HT_MIMO2
	.comm	_LQ_VHT_SISO,4,2                ; @LQ_VHT_SISO
	.comm	_LQ_HT_SISO,4,2                 ; @LQ_HT_SISO
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_LQ_LEGACY_A,4,2                ; @LQ_LEGACY_A
	.comm	_LQ_LEGACY_G,4,2                ; @LQ_LEGACY_G
	.comm	_rs_optimal_rates_5ghz_legacy,8,3 ; @rs_optimal_rates_5ghz_legacy
	.comm	_rs_optimal_rates_24ghz_legacy,8,3 ; @rs_optimal_rates_24ghz_legacy
	.comm	_RATE_MCS_CHAN_WIDTH_20,8,3     ; @RATE_MCS_CHAN_WIDTH_20
	.comm	_rs_optimal_rates_vht_20mhz,8,3 ; @rs_optimal_rates_vht_20mhz
	.comm	_rs_optimal_rates_vht,8,3       ; @rs_optimal_rates_vht
	.comm	_rs_optimal_rates_ht,8,3        ; @rs_optimal_rates_ht
	.no_dead_strip	_rs_init_optimal_rate
.subsections_via_symbols
