	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_rateset_filter         ## -- Begin function brcms_c_rateset_filter
	.p2align	4, 0x90
_brcms_c_rateset_filter:                ## @brcms_c_rateset_filter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	andq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%r12, (%rax,%r13,8)
	incq	%r13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpq	(%rbx), %r14
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %r12
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BRCMS_RATE_FLAG@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_BRCMS_RATES_CCK@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BRCMS_RATE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%r12, %rdi
	callq	_is_ofdm_rate
	testq	%rax, %rax
	jne	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_BRCMS_RATES_OFDM@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_BRCMS_RATE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%r12, %rdi
	callq	_is_cck_rate
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, (%rcx)
	movl	24(%rbx), %eax
	movl	%eax, 24(%rcx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:
	movq	_BRCMS_RATES_CCK@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	movq	16(%rbx), %rsi
	movq	_MCSSET_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_c_rateset_mcs_clear      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_RATE_FLAG,8,3            ## @BRCMS_RATE_FLAG
	.comm	_BRCMS_RATES_CCK,8,3            ## @BRCMS_RATES_CCK
	.comm	_BRCMS_RATE_MASK,8,3            ## @BRCMS_RATE_MASK
	.comm	_BRCMS_RATES_OFDM,8,3           ## @BRCMS_RATES_OFDM
	.comm	_MCSSET_LEN,4,2                 ## @MCSSET_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_rateset_filter         ; -- Begin function brcms_c_rateset_filter
	.p2align	2
_brcms_c_rateset_filter:                ; @brcms_c_rateset_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x25, _BRCMS_RATES_CCK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BRCMS_RATES_CCK@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x23, x4
	mov	x24, x2
	mov	x26, #0
	mov	x27, #0
Lloh2:
	adrp	x28, _BRCMS_RATE_MASK@GOTPAGE
Lloh3:
	ldr	x28, [x28, _BRCMS_RATE_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x22, x23
	ldr	x9, [x19, #8]
	str	x8, [x9, x26, lsl #3]
	add	x26, x26, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldr	x8, [x20]
	cmp	x27, x8
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x22, [x8, x27, lsl #3]
	cbz	w24, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x8, _BRCMS_RATE_FLAG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMS_RATE_FLAG@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	and	x0, x8, x22
	bl	_is_ofdm_rate
	cbnz	x0, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _BRCMS_RATES_OFDM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMS_RATES_OFDM@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	and	x0, x8, x22
	bl	_is_cck_rate
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_10:
	mov	x26, #0
LBB0_11:
	str	x26, [x19]
	ldr	w8, [x20, #24]
	str	w8, [x19, #24]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_14
; %bb.12:
	ldr	x8, [x25]
	cmp	x8, x21
	b.eq	LBB0_14
; %bb.13:
	ldr	x0, [x19, #16]
	ldr	x1, [x20, #16]
Lloh10:
	adrp	x8, _MCSSET_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCSSET_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_memcpy
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_brcms_c_rateset_mcs_clear
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_RATE_FLAG,8,3            ; @BRCMS_RATE_FLAG
	.comm	_BRCMS_RATES_CCK,8,3            ; @BRCMS_RATES_CCK
	.comm	_BRCMS_RATE_MASK,8,3            ; @BRCMS_RATE_MASK
	.comm	_BRCMS_RATES_OFDM,8,3           ; @BRCMS_RATES_OFDM
	.comm	_MCSSET_LEN,4,2                 ; @MCSSET_LEN
.subsections_via_symbols
