	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_rateset_default        ## -- Begin function brcms_c_rateset_default
	.p2align	4, 0x90
_brcms_c_rateset_default:               ## @brcms_c_rateset_default
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rbp), %r14
	movq	_PHY_TYPE_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_PHY_TYPE_N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_PHY_TYPE_LCN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_PHY_TYPE_SSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movq	24(%rbp), %rax
	movq	_BRCM_BAND_5G@GOTPCREL(%rip), %rdx
	movq	_BRCMS_20_MHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%r13d, (%rdx)
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %r13
	cmpq	%rax, %rcx
	jne	LBB0_6
## %bb.7:
	movq	_ofdm_mimo_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_8:
	movq	%rbx, %r13
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.10:
	movq	_cck_ofdm_mimo_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_6:
	movq	_ofdm_40bw_mimo_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_9:
	movq	_cck_ofdm_40bw_mimo_rates@GOTPCREL(%rip), %rdi
LBB0_20:
	movl	16(%rbp), %r12d
	testq	%r15, %r15
	cmoveq	%rdi, %r15
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_brcms_c_rateset_copy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_brcms_c_rateset_mcs_upd
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.22:
	movq	_BRCMS_RATES_CCK_OFDM@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_BRCMS_RATES_CCK@GOTPCREL(%rip), %rax
LBB0_23:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r12d, %r9d
	callq	_brcms_c_rateset_filter
	testl	%r12d, %r12d
	movl	$1, %eax
	cmoveq	%rax, %r14
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_brcms_c_rate_hwrs_filter_sort_validate
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_PHY_TYPE_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_BRCM_BAND_5G@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_15
## %bb.13:
	movq	%rbx, %r13
	movq	_cck_ofdm_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_14:
	movq	_PHY_TYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	%rbx, %r13
	movq	_ofdm_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_20
LBB0_16:
	movq	_PHY_TYPE_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PHYTYPE_IS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:
	movq	_cck_rates@GOTPCREL(%rip), %rdi
	jmp	LBB0_19
LBB0_17:
	movq	_cck_ofdm_rates@GOTPCREL(%rip), %rdi
LBB0_19:
	movq	%rbx, %r13
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_HT,4,2                ## @PHY_TYPE_HT
	.comm	_PHY_TYPE_N,4,2                 ## @PHY_TYPE_N
	.comm	_PHY_TYPE_LCN,4,2               ## @PHY_TYPE_LCN
	.comm	_PHY_TYPE_SSN,4,2               ## @PHY_TYPE_SSN
	.comm	_BRCM_BAND_5G,4,2               ## @BRCM_BAND_5G
	.comm	_BRCMS_20_MHZ,8,3               ## @BRCMS_20_MHZ
	.comm	_ofdm_mimo_rates,4,2            ## @ofdm_mimo_rates
	.comm	_ofdm_40bw_mimo_rates,4,2       ## @ofdm_40bw_mimo_rates
	.comm	_cck_ofdm_mimo_rates,4,2        ## @cck_ofdm_mimo_rates
	.comm	_cck_ofdm_40bw_mimo_rates,4,2   ## @cck_ofdm_40bw_mimo_rates
	.comm	_PHY_TYPE_LP,4,2                ## @PHY_TYPE_LP
	.comm	_ofdm_rates,4,2                 ## @ofdm_rates
	.comm	_cck_ofdm_rates,4,2             ## @cck_ofdm_rates
	.comm	_PHY_TYPE_A,4,2                 ## @PHY_TYPE_A
	.comm	_PHY_TYPE_G,4,2                 ## @PHY_TYPE_G
	.comm	_cck_rates,4,2                  ## @cck_rates
	.comm	_BRCMS_RATES_CCK,4,2            ## @BRCMS_RATES_CCK
	.comm	_BRCMS_RATES_CCK_OFDM,4,2       ## @BRCMS_RATES_CCK_OFDM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_rateset_default        ; -- Begin function brcms_c_rateset_default
	.p2align	2
_brcms_c_rateset_default:               ; @brcms_c_rateset_default
	.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
	mov	x27, x7
	mov	x19, x6
	mov	x21, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x22, [x29, #16]
Lloh0:
	adrp	x8, _PHY_TYPE_HT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_TYPE_HT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_PHYTYPE_IS
	cbnz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PHY_TYPE_N@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_TYPE_N@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
	cbnz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _PHY_TYPE_LCN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_TYPE_LCN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _PHY_TYPE_SSN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_TYPE_SSN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
	cbz	x0, LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _BRCM_BAND_5G@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCM_BAND_5G@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BRCMS_20_MHZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRCMS_20_MHZ@GOTPAGEOFF]
Lloh17:
	adrp	x10, _cck_ofdm_40bw_mimo_rates@GOTPAGE
Lloh18:
	ldr	x10, [x10, _cck_ofdm_40bw_mimo_rates@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x11, _cck_ofdm_mimo_rates@GOTPAGE
Lloh21:
	ldr	x11, [x11, _cck_ofdm_mimo_rates@GOTPAGEOFF]
Lloh22:
	adrp	x12, _ofdm_40bw_mimo_rates@GOTPAGE
Lloh23:
	ldr	x12, [x12, _ofdm_40bw_mimo_rates@GOTPAGEOFF]
	cmp	x9, x27
	csel	x9, x11, x10, eq
Lloh24:
	adrp	x10, _ofdm_mimo_rates@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ofdm_mimo_rates@GOTPAGEOFF]
	csel	x10, x10, x12, eq
	cmp	w8, w25
	csel	x0, x9, x10, ne
LBB0_5:
	cmp	x24, #0
	csel	x24, x0, x24, eq
	add	x1, sp, #8
	bl	_brcms_c_rateset_copy
	add	x0, sp, #8
	mov	x1, x22
	bl	_brcms_c_rateset_mcs_upd
Lloh26:
	adrp	x8, _BRCMS_RATES_CCK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BRCMS_RATES_CCK@GOTPAGEOFF]
Lloh28:
	adrp	x9, _BRCMS_RATES_CCK_OFDM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BRCMS_RATES_CCK_OFDM@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	mov	x4, x21
	mov	x5, x19
	bl	_brcms_c_rateset_filter
	cmp	w19, #0
	csinc	x3, x22, xzr, ne
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_brcms_c_rate_hwrs_filter_sort_validate
	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
	ret
LBB0_6:
Lloh30:
	adrp	x8, _PHY_TYPE_LP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PHY_TYPE_LP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
	cbz	x0, LBB0_8
; %bb.7:
Lloh33:
	adrp	x8, _BRCM_BAND_5G@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BRCM_BAND_5G@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _cck_ofdm_rates@GOTPAGE
Lloh37:
	ldr	x9, [x9, _cck_ofdm_rates@GOTPAGEOFF]
Lloh38:
	adrp	x10, _ofdm_rates@GOTPAGE
Lloh39:
	ldr	x10, [x10, _ofdm_rates@GOTPAGEOFF]
	cmp	w8, w25
	csel	x0, x10, x9, eq
	b	LBB0_5
LBB0_8:
Lloh40:
	adrp	x8, _PHY_TYPE_A@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PHY_TYPE_A@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
	cbz	x0, LBB0_10
; %bb.9:
Lloh43:
	adrp	x0, _ofdm_rates@GOTPAGE
Lloh44:
	ldr	x0, [x0, _ofdm_rates@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
Lloh45:
	adrp	x8, _PHY_TYPE_G@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PHY_TYPE_G@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_PHYTYPE_IS
Lloh48:
	adrp	x8, _cck_ofdm_rates@GOTPAGE
Lloh49:
	ldr	x8, [x8, _cck_ofdm_rates@GOTPAGEOFF]
Lloh50:
	adrp	x9, _cck_rates@GOTPAGE
Lloh51:
	ldr	x9, [x9, _cck_rates@GOTPAGEOFF]
	cmp	x0, #0
	csel	x0, x9, x8, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_HT,4,2                ; @PHY_TYPE_HT
	.comm	_PHY_TYPE_N,4,2                 ; @PHY_TYPE_N
	.comm	_PHY_TYPE_LCN,4,2               ; @PHY_TYPE_LCN
	.comm	_PHY_TYPE_SSN,4,2               ; @PHY_TYPE_SSN
	.comm	_BRCM_BAND_5G,4,2               ; @BRCM_BAND_5G
	.comm	_BRCMS_20_MHZ,8,3               ; @BRCMS_20_MHZ
	.comm	_ofdm_mimo_rates,4,2            ; @ofdm_mimo_rates
	.comm	_ofdm_40bw_mimo_rates,4,2       ; @ofdm_40bw_mimo_rates
	.comm	_cck_ofdm_mimo_rates,4,2        ; @cck_ofdm_mimo_rates
	.comm	_cck_ofdm_40bw_mimo_rates,4,2   ; @cck_ofdm_40bw_mimo_rates
	.comm	_PHY_TYPE_LP,4,2                ; @PHY_TYPE_LP
	.comm	_ofdm_rates,4,2                 ; @ofdm_rates
	.comm	_cck_ofdm_rates,4,2             ; @cck_ofdm_rates
	.comm	_PHY_TYPE_A,4,2                 ; @PHY_TYPE_A
	.comm	_PHY_TYPE_G,4,2                 ; @PHY_TYPE_G
	.comm	_cck_rates,4,2                  ; @cck_rates
	.comm	_BRCMS_RATES_CCK,4,2            ; @BRCMS_RATES_CCK
	.comm	_BRCMS_RATES_CCK_OFDM,4,2       ; @BRCMS_RATES_CCK_OFDM
.subsections_via_symbols
