	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_get_rates        ## -- Begin function ieee80211_sta_get_rates
	.p2align	4, 0x90
_ieee80211_sta_get_rates:               ## @ieee80211_sta_get_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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	movq	(%rax,%rcx,8), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%rax, %rax
	je	LBB0_1
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	movl	%r8d, %edx
	addl	%r9d, %edx
	jle	LBB0_2
## %bb.3:
	movq	(%rbx), %r13
	movq	8(%rbx), %r12
	xorl	%eax, %eax
	movq	_BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPCREL(%rip), %r10
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	_BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPCREL(%rip), %r10
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	leal	(%r8,%r9), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movslq	%r9d, %rdx
	cmpq	%rdx, %rax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(,%rax,4), %rdx
	addq	8(%r14), %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %esi
	subl	%r9d, %esi
	movslq	%esi, %rsi
	leaq	(%rdx,%rsi,4), %rdx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rdx), %edx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %esi
	andl	$127, %esi
	movl	%edx, %ebx
	shrb	$7, %bl
	cmpl	(%r10), %esi
	sete	%cl
	testb	%cl, %bl
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testq	%r13, %r13
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%rsi,4), %r15d
	movzbl	%dl, %eax
	shrl	$7, %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	setne	%r14b
	andb	%al, %r14b
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r15d, (%r12,%rbx,4)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ebx, %edi
	callq	_BIT
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	%eax, %ecx
	movl	%ecx, %eax
	testb	%r14b, %r14b
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ebx, %edi
	callq	_BIT
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	jmp	LBB0_16
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_MEMBERSHIP_SELECTOR_HT_PHY,4,2 ## @BSS_MEMBERSHIP_SELECTOR_HT_PHY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_get_rates        ; -- Begin function ieee80211_sta_get_rates
	.p2align	2
_ieee80211_sta_get_rates:               ; @ieee80211_sta_get_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
	mov	x19, x3
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x22, [x8, w2, uxtw #3]
	cmp	x22, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
	mov	w21, #1
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	ldp	w8, w9, [x20]
	add	w10, w9, w8
	cmp	w10, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x23, #0
	mov	w21, #0
	ldp	x25, x24, [x22]
Lloh0:
	adrp	x26, _BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BSS_MEMBERSHIP_SELECTOR_HT_PHY@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldp	w8, w9, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	add	w10, w9, w8
	cmp	x23, w10, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x23, lsl #2
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w11, w23, w8
	add	x10, x10, w11, sxtw #2
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x10]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w11, w10, #0x7f
	ldr	w12, [x26]
	cmp	w11, w12
	cset	w12, eq
	and	w12, w12, w10, lsr #7
	tbnz	w12, #0, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	x25, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, #0
	add	w27, w11, w11, lsl #2
	and	w8, w10, #0x80
	cmp	x19, #0
	cset	w9, ne
	and	w28, w9, w8, lsr #7
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_5
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x24, x22, lsl #2]
	cmp	w8, w27
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x22
	bl	_BIT
	orr	w21, w0, w21
	cbz	w28, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x22
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	b	LBB0_15
LBB0_19:
	mov	w21, #0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_MEMBERSHIP_SELECTOR_HT_PHY,4,2 ; @BSS_MEMBERSHIP_SELECTOR_HT_PHY
.subsections_via_symbols
