	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_update_basic_rates
_b43legacy_update_basic_rates:          ## @b43legacy_update_basic_rates
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_b43legacy_plcp_get_ratecode_ofdm
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax def $rax
	movq	_B43legacy_SHM_SHARED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	andl	$15, %eax
	leal	(%r15,%rax,2), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_b43legacy_shm_read16
	movl	(%r12), %esi
	andl	$15, %r13d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%r13,2), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_b43legacy_shm_write16
	incq	%r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r12
	movl	(%r12,%r14,8), %edi
	callq	_b43legacy_is_cck_rate
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_B43legacy_SHM_SH_CCKDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_B43legacy_SHM_SH_CCKBASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r14,8), %edi
	callq	_b43legacy_plcp_get_ratecode_cck
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_B43legacy_SHM_SH_OFDMDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_B43legacy_SHM_SH_OFDMBASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12,%r14,8), %edi
	callq	_b43legacy_plcp_get_ratecode_ofdm
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movl	4(%r12,%r14,8), %edx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ieee80211_get_response_rate
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_b43legacy_is_cck_rate
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_b43legacy_plcp_get_ratecode_cck
	jmp	LBB0_8
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_B43legacy_SHM_SH_CCKDIRECT,4,2 ## @B43legacy_SHM_SH_CCKDIRECT
	.comm	_B43legacy_SHM_SH_CCKBASIC,4,2  ## @B43legacy_SHM_SH_CCKBASIC
	.comm	_B43legacy_SHM_SH_OFDMDIRECT,4,2 ## @B43legacy_SHM_SH_OFDMDIRECT
	.comm	_B43legacy_SHM_SH_OFDMBASIC,4,2 ## @B43legacy_SHM_SH_OFDMBASIC
	.comm	_B43legacy_SHM_SHARED,4,2       ## @B43legacy_SHM_SHARED
	.no_dead_strip	_b43legacy_update_basic_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_update_basic_rates
_b43legacy_update_basic_rates:          ; @b43legacy_update_basic_rates
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
	mov	x25, #0
Lloh3:
	adrp	x28, _B43legacy_SHM_SHARED@GOTPAGE
Lloh4:
	ldr	x28, [x28, _B43legacy_SHM_SHARED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_b43legacy_plcp_get_ratecode_ofdm
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	ubfiz	w8, w0, #1, #4
	add	w2, w8, w27
	mov	x0, x20
	bl	_b43legacy_shm_read16
	mov	x3, x0
	ldr	w1, [x28]
	ubfiz	w8, w22, #1, #4
	add	w2, w8, w26
	mov	x0, x20
	bl	_b43legacy_shm_write16
	add	x25, x25, #1
	ldrsw	x8, [x21]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21, #8]
	ldr	w0, [x23, x24]
	bl	_b43legacy_is_cck_rate
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _B43legacy_SHM_SH_CCKDIRECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43legacy_SHM_SH_CCKDIRECT@GOTPAGEOFF]
Lloh7:
	ldr	w27, [x8]
Lloh8:
	adrp	x8, _B43legacy_SHM_SH_CCKBASIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43legacy_SHM_SH_CCKBASIC@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
	ldr	w0, [x23, x24]
	bl	_b43legacy_plcp_get_ratecode_cck
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _B43legacy_SHM_SH_OFDMDIRECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43legacy_SHM_SH_OFDMDIRECT@GOTPAGEOFF]
Lloh13:
	ldr	w27, [x8]
Lloh14:
	adrp	x8, _B43legacy_SHM_SH_OFDMBASIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43legacy_SHM_SH_OFDMBASIC@GOTPAGEOFF]
Lloh16:
	ldr	w26, [x8]
	ldr	w0, [x23, x24]
	bl	_b43legacy_plcp_get_ratecode_ofdm
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	add	x8, x23, x24
	ldr	w2, [x8, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_ieee80211_get_response_rate
	mov	x23, x0
	ldr	w0, [x0]
	bl	_b43legacy_is_cck_rate
	mov	x8, x0
	ldr	w0, [x23]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_b43legacy_plcp_get_ratecode_cck
	b	LBB0_3
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_B43legacy_SHM_SH_CCKDIRECT,4,2 ; @B43legacy_SHM_SH_CCKDIRECT
	.comm	_B43legacy_SHM_SH_CCKBASIC,4,2  ; @B43legacy_SHM_SH_CCKBASIC
	.comm	_B43legacy_SHM_SH_OFDMDIRECT,4,2 ; @B43legacy_SHM_SH_OFDMDIRECT
	.comm	_B43legacy_SHM_SH_OFDMBASIC,4,2 ; @B43legacy_SHM_SH_OFDMBASIC
	.comm	_B43legacy_SHM_SHARED,4,2       ; @B43legacy_SHM_SHARED
	.no_dead_strip	_b43legacy_update_basic_rates
.subsections_via_symbols
