	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee_hw_rate_init
_ieee_hw_rate_init:                     ## @ieee_hw_rate_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	8(%r13), %r12
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	8(%r13), %rdi
	xorl	%esi, %esi
	callq	_brcms_c_get_phy_type
	movq	%rax, %rbx
	movq	_PHY_TYPE_N@GOTPCREL(%rip), %rdx
	movq	_PHY_TYPE_LCN@GOTPCREL(%rip), %r15
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%r15), %rbx
	je	LBB0_2
LBB0_8:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	_BAND_2G_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	_brcms_band_2GHz_nphy_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%r12)
	cmpq	(%r15), %rbx
	jne	LBB0_4
## %bb.3:
	movq	8(%r12), %rax
	movq	$0, 8(%rax)
	movl	$72, %edi
	callq	_cpu_to_le16
	movq	_PHY_TYPE_N@GOTPCREL(%rip), %rdx
	movl	%eax, (%r12)
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r12, (%rax,%rcx,8)
	movq	(%r13), %rcx
	xorl	%eax, %eax
	cmpl	$1, (%rcx)
	jle	LBB0_9
## %bb.5:
	cmpq	(%rdx), %rbx
	je	LBB0_7
## %bb.6:
	cmpq	(%r15), %rbx
	jne	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_BAND_5G_INDEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	_brcms_band_5GHz_nphy_template@GOTPCREL(%rip), %rdx
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rcx)
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rcx, (%rdx,%rsi,8)
LBB0_9:
	addq	$8, %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	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_PHY_TYPE_N,8,3                 ## @PHY_TYPE_N
	.comm	_PHY_TYPE_LCN,8,3               ## @PHY_TYPE_LCN
	.comm	_BAND_2G_INDEX,8,3              ## @BAND_2G_INDEX
	.comm	_brcms_band_2GHz_nphy_template,16,3 ## @brcms_band_2GHz_nphy_template
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_BAND_5G_INDEX,8,3              ## @BAND_5G_INDEX
	.comm	_brcms_band_5GHz_nphy_template,16,3 ## @brcms_band_5GHz_nphy_template
	.no_dead_strip	_ieee_hw_rate_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee_hw_rate_init
_ieee_hw_rate_init:                     ; @ieee_hw_rate_init
	.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, x0
	ldp	x8, x23, [x0]
	ldr	x22, [x23, #8]
Lloh0:
	adrp	x24, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x9, [x24]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh2:
	adrp	x21, _NL80211_BAND_5GHZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
	ldr	x0, [x23, #8]
	mov	w1, #0
	bl	_brcms_c_get_phy_type
Lloh4:
	adrp	x26, _PHY_TYPE_N@GOTPAGE
Lloh5:
	ldr	x26, [x26, _PHY_TYPE_N@GOTPAGEOFF]
	ldr	x8, [x26]
Lloh6:
	adrp	x25, _PHY_TYPE_LCN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PHY_TYPE_LCN@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _BAND_2G_INDEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BAND_2G_INDEX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x27, [x8, x9, lsl #3]
Lloh11:
	adrp	x8, _brcms_band_2GHz_nphy_template@GOTPAGE
Lloh12:
	ldr	x8, [x8, _brcms_band_2GHz_nphy_template@GOTPAGEOFF]
Lloh13:
	ldr	q0, [x8]
	str	q0, [x27]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x27, #8]
	str	xzr, [x8, #8]
	mov	w0, #72
	bl	_cpu_to_le16
	str	w0, [x27]
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x24]
	str	x27, [x8, x9, lsl #3]
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_7
; %bb.4:
	ldr	x8, [x26]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _EPERM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	ldr	x8, [x22]
Lloh17:
	adrp	x9, _BAND_5G_INDEX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BAND_5G_INDEX@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh20:
	adrp	x9, _brcms_band_5GHz_nphy_template@GOTPAGE
Lloh21:
	ldr	x9, [x9, _brcms_band_5GHz_nphy_template@GOTPAGEOFF]
Lloh22:
	ldr	q0, [x9]
	str	q0, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	x10, [x21]
	str	x8, [x9, x10, lsl #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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_PHY_TYPE_N,8,3                 ; @PHY_TYPE_N
	.comm	_PHY_TYPE_LCN,8,3               ; @PHY_TYPE_LCN
	.comm	_BAND_2G_INDEX,8,3              ; @BAND_2G_INDEX
	.comm	_brcms_band_2GHz_nphy_template,16,3 ; @brcms_band_2GHz_nphy_template
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_BAND_5G_INDEX,8,3              ; @BAND_5G_INDEX
	.comm	_brcms_band_5GHz_nphy_template,16,3 ; @brcms_band_5GHz_nphy_template
	.no_dead_strip	_ieee_hw_rate_init
.subsections_via_symbols
