	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_channel_reg_limits     ## -- Begin function brcms_c_channel_reg_limits
	.p2align	4, 0x90
_brcms_c_channel_reg_limits:            ## @brcms_c_channel_reg_limits
	.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	%rdx, %r12
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_BRCMS_TXPWR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_76:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	(%r14), %r14
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_CHSPEC_CHANNEL
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movl	%r15d, %edi
	callq	_chspec_bandunit
	movq	(%rbx,%rax,8), %r15
	movq	(%r15), %rax
	movq	_BRCM_BAND_5G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	callq	_brcms_c_get_mimo_5g
	jmp	LBB0_4
LBB0_3:
	movl	(%r14), %edi
	callq	_brcms_c_get_mimo_2g
LBB0_4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%r15), %r13d
	movq	(%r15), %rax
	movq	_BRCM_BAND_2G@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.5:
	movl	$22, %edi
	callq	_QDB
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movl	(%rbx), %edi
	callq	_QDB
	subl	%r13d, %eax
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_max
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movq	(%r15), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_14
## %bb.7:
	movq	_BRCMS_NUM_RATES_CCK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	movslq	%eax, %rcx
	leaq	-1(%rdi), %rsi
	movl	%edi, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %rbx
	movq	%rcx, (%rbx,%rsi,8)
	movq	104(%r12), %rbx
	movq	%rcx, 8(%rbx,%rsi,8)
	movq	104(%r12), %rbx
	movq	%rcx, 16(%rbx,%rsi,8)
	movq	104(%r12), %rbx
	movq	%rcx, 24(%rbx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %rdi
	movq	%rcx, (%rdi,%rsi,8)
	incq	%rsi
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	movq	_BRCMS_NUM_RATES_OFDM@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_17
## %bb.15:
	cltq
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r12), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r12), %rdx
	movq	$0, (%rdx,%rcx,8)
	movq	96(%r12), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	8(%r12), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	cmpq	(%r14), %rcx
	jb	LBB0_16
LBB0_17:
	movl	8(%r15), %ebx
	movl	$6, %edi
	callq	_QDB
	movq	%r15, %r13
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	jle	LBB0_19
## %bb.18:
	movl	8(%r13), %r15d
	movl	$6, %edi
	callq	_QDB
	subl	%eax, %r15d
LBB0_19:
	movq	(%r13), %rax
	movq	_BRCM_BAND_2G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	jmp	LBB0_22
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_CHANNEL_POWER_IDX_5G
LBB0_22:
	cltq
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movl	(%rcx,%rax,4), %edi
	movl	(%rdx,%rax,4), %r13d
	subl	%r15d, %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_max
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	subl	%r15d, %r13d
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_max
	movq	_BRCMS_NUM_RATES_MCS_1_STREAM@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.26:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	80(%r12), %rdx
	movq	88(%r12), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	%rsi, (%rdx,%rcx,8)
	movq	16(%r12), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	movq	(%r13), %rdx
	cmpq	%rdx, %rcx
	jb	LBB0_27
## %bb.24:
	testq	%rdx, %rdx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_25
## %bb.28:
	movslq	%r15d, %r8
	movq	24(%r12), %rdx
	movq	32(%r12), %rsi
	movslq	%eax, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r8, (%rdx,%rcx,8)
	movq	%rdi, (%rsi,%rcx,8)
	incq	%rcx
	movq	(%r13), %rbx
	cmpq	%rbx, %rcx
	jb	LBB0_29
	jmp	LBB0_30
LBB0_23:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_30
LBB0_25:
	xorl	%ebx, %ebx
LBB0_30:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	_locale_bn@GOTPCREL(%rip), %rcx
	jne	LBB0_36
## %bb.31:
	movl	$16, %edi
	callq	_QDB
	movl	%eax, %r15d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	$-3, %rcx
	xorl	%eax, %eax
	cmpq	$8, %rcx
	ja	LBB0_33
## %bb.32:
	movl	$16, %edi
	callq	_QDB
LBB0_33:
	cmpq	$0, (%r13)
	je	LBB0_37
## %bb.34:
	movslq	%r15d, %rcx
	movslq	%eax, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	80(%r12), %rdi
	movq	%rcx, (%rdi,%rsi,8)
	movq	16(%r12), %rdi
	movq	%rdx, (%rdi,%rsi,8)
	incq	%rsi
	movq	(%r13), %rbx
	cmpq	%rbx, %rsi
	jb	LBB0_35
LBB0_36:
	testq	%rbx, %rbx
	je	LBB0_37
## %bb.41:
	movq	40(%r12), %rdx
	movq	48(%r12), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rdx,%rdi,8)
	movq	$0, (%rsi,%rdi,8)
	incq	%rdi
	movq	(%r13), %rcx
	cmpq	%rcx, %rdi
	jb	LBB0_42
	jmp	LBB0_38
LBB0_37:
	xorl	%ecx, %ecx
LBB0_38:
	movq	_BRCMS_NUM_RATES_MCS_2_STREAM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cltq
	testq	%r8, %r8
	je	LBB0_47
## %bb.39:
	movslq	%r15d, %rdx
	cmpq	$1, %r8
	jne	LBB0_43
## %bb.40:
	xorl	%edi, %edi
	jmp	LBB0_45
LBB0_43:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rbx
	movq	%rdx, (%rbx,%rdi,8)
	movq	64(%r12), %rbx
	movq	%rax, (%rbx,%rdi,8)
	movq	72(%r12), %rbx
	movq	%rdx, 8(%rbx,%rdi,8)
	movq	64(%r12), %rbx
	movq	%rax, 8(%rbx,%rdi,8)
	addq	$2, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_44
LBB0_45:
	testb	$1, %r8b
	je	LBB0_47
## %bb.46:
	movq	72(%r12), %rsi
	movq	%rdx, (%rsi,%rdi,8)
	movq	64(%r12), %rdx
	movq	%rax, (%rdx,%rdi,8)
LBB0_47:
	movq	%rax, 56(%r12)
	cmpq	$0, (%r14)
	je	LBB0_48
## %bb.52:
	movq	8(%r12), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_58:                                ##   in Loop: Header=BB0_53 Depth=1
	incq	%rdx
	movq	(%r14), %rsi
	addq	$8, %rcx
	cmpq	%rsi, %rdx
	jae	LBB0_49
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_54
## %bb.55:                              ##   in Loop: Header=BB0_53 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_58
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	32(%r12), %rsi
	movq	(%rsi,%rcx), %rsi
	movq	%rsi, (%rax,%rdx,8)
	testq	%rdx, %rdx
	jne	LBB0_58
LBB0_56:                                ##   in Loop: Header=BB0_53 Depth=1
	movl	$1, %edx
	cmpq	$0, 8(%rax)
	jne	LBB0_58
## %bb.57:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	32(%r12), %rsi
	movq	(%rsi,%rcx), %rsi
	movq	%rsi, 8(%rax)
	jmp	LBB0_58
LBB0_49:
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_51
LBB0_77:
	movq	16(%r12), %rax
	xorl	%edx, %edx
	jmp	LBB0_78
	.p2align	4, 0x90
LBB0_80:                                ##   in Loop: Header=BB0_78 Depth=1
	incq	%rdx
	cmpq	%rcx, %rdx
	jae	LBB0_59
LBB0_78:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_80
## %bb.79:                              ##   in Loop: Header=BB0_78 Depth=1
	movq	32(%r12), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	(%r13), %rcx
	jmp	LBB0_80
LBB0_59:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jne	LBB0_61
	jmp	LBB0_69
LBB0_48:
	xorl	%esi, %esi
	testq	%rcx, %rcx
	jne	LBB0_77
LBB0_51:
	xorl	%ecx, %ecx
	testq	%rsi, %rsi
	je	LBB0_69
LBB0_61:
	movq	(%r12), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_62 Depth=1
	incq	%rdx
	addq	$8, %rcx
	cmpq	(%r14), %rdx
	jae	LBB0_68
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_63
## %bb.64:                              ##   in Loop: Header=BB0_62 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_67
	jmp	LBB0_65
	.p2align	4, 0x90
LBB0_63:                                ##   in Loop: Header=BB0_62 Depth=1
	movq	16(%r12), %rsi
	movq	(%rsi,%rcx), %rsi
	movq	%rsi, (%rax,%rdx,8)
	testq	%rdx, %rdx
	jne	LBB0_67
LBB0_65:                                ##   in Loop: Header=BB0_62 Depth=1
	movl	$1, %edx
	cmpq	$0, 8(%rax)
	jne	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_62 Depth=1
	movq	16(%r12), %rsi
	movq	(%rsi,%rcx), %rsi
	movq	%rsi, 8(%rax)
	jmp	LBB0_67
LBB0_68:
	movq	(%r13), %rcx
LBB0_69:
	testq	%rcx, %rcx
	je	LBB0_76
## %bb.70:
	movq	40(%r12), %rax
	movq	48(%r12), %rcx
	xorl	%edx, %edx
	jmp	LBB0_71
	.p2align	4, 0x90
LBB0_75:                                ##   in Loop: Header=BB0_71 Depth=1
	incq	%rdx
	cmpq	(%r13), %rdx
	jae	LBB0_76
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_72
## %bb.73:                              ##   in Loop: Header=BB0_71 Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_75
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_71 Depth=1
	movq	24(%r12), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	%rsi, (%rax,%rdx,8)
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_75
LBB0_74:                                ##   in Loop: Header=BB0_71 Depth=1
	movq	32(%r12), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	jmp	LBB0_75
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_TXPWR_MAX,4,2            ## @BRCMS_TXPWR_MAX
	.comm	_BRCM_BAND_5G,8,3               ## @BRCM_BAND_5G
	.comm	_BRCM_BAND_2G,8,3               ## @BRCM_BAND_2G
	.comm	_BRCMS_NUM_RATES_CCK,8,3        ## @BRCMS_NUM_RATES_CCK
	.comm	_BRCMS_NUM_RATES_OFDM,8,3       ## @BRCMS_NUM_RATES_OFDM
	.comm	_BRCMS_NUM_RATES_MCS_1_STREAM,8,3 ## @BRCMS_NUM_RATES_MCS_1_STREAM
	.comm	_locale_bn,16,3                 ## @locale_bn
	.comm	_BRCMS_NUM_RATES_MCS_2_STREAM,8,3 ## @BRCMS_NUM_RATES_MCS_2_STREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_channel_reg_limits     ; -- Begin function brcms_c_channel_reg_limits
	.p2align	2
_brcms_c_channel_reg_limits:            ; @brcms_c_channel_reg_limits
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x0, #8]
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _BRCMS_TXPWR_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMS_TXPWR_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x25, [x20]
	mov	x0, x21
	bl	_CHSPEC_CHANNEL
	mov	x20, x0
	ldr	x24, [x24]
	mov	x0, x21
	bl	_chspec_bandunit
	ldr	x24, [x24, x0, lsl #3]
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _BRCM_BAND_5G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCM_BAND_5G@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x25, #4]
	bl	_brcms_c_get_mimo_5g
	b	LBB0_5
LBB0_4:
	ldr	w0, [x25]
	bl	_brcms_c_get_mimo_2g
LBB0_5:
	mov	x21, x0
	ldr	w26, [x24, #8]
	ldr	x8, [x24]
Lloh6:
	adrp	x25, _BRCM_BAND_2G@GOTPAGE
Lloh7:
	ldr	x25, [x25, _BRCM_BAND_2G@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #22
	bl	_QDB
	mov	x22, x0
LBB0_7:
	ldr	w0, [x23]
	bl	_QDB
	sub	w0, w0, w26
	mov	w1, #0
	bl	_max
	mov	x1, x22
	bl	_min
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
Lloh8:
	adrp	x8, _BRCMS_NUM_RATES_CCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMS_NUM_RATES_CCK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x9, #0
	sxtw	x10, w0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #104]
	str	x10, [x11, x9, lsl #3]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_11:
Lloh11:
	adrp	x23, _BRCMS_NUM_RATES_OFDM@GOTPAGE
Lloh12:
	ldr	x23, [x23, _BRCMS_NUM_RATES_OFDM@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x8, #0
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x9, w0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #88]
	lsl	x11, x8, #3
	str	x9, [x10, x11]
	ldr	x10, [x19]
	str	xzr, [x10, x11]
	ldr	x10, [x19, #96]
	str	x9, [x10, x11]
	ldr	x10, [x19, #8]
	str	xzr, [x10, x11]
	add	x8, x8, #1
	ldr	x10, [x23]
	cmp	x8, x10
	b.lo	LBB0_13
LBB0_14:
	ldr	w22, [x24, #8]
	mov	w0, #6
	bl	_QDB
	cmp	w22, w0
	b.le	LBB0_16
; %bb.15:
	ldr	w22, [x24, #8]
	mov	w0, #6
	bl	_QDB
	sub	w26, w22, w0
	b	LBB0_17
LBB0_16:
	mov	w26, #0
LBB0_17:
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	sub	w0, w20, #1
	b	LBB0_20
LBB0_19:
	mov	x0, x20
	bl	_CHANNEL_POWER_IDX_5G
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_20:
	sbfiz	x8, x0, #2, #32
	ldp	x9, x10, [x21]
	ldr	w9, [x9, x8]
	ldr	w24, [x10, x8]
	sub	w0, w9, w26
	mov	w1, #0
	bl	_max
	mov	x22, x0
	sub	w0, w24, w26
	mov	w1, #0
	bl	_max
                                        ; kill: def $w0 killed $w0 def $x0
Lloh13:
	adrp	x24, _BRCMS_NUM_RATES_MCS_1_STREAM@GOTPAGE
Lloh14:
	ldr	x24, [x24, _BRCMS_NUM_RATES_MCS_1_STREAM@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_27
; %bb.21:
	mov	x8, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #3
	ldp	x11, x10, [x19, #80]
	ldr	x10, [x10, x9]
	str	x10, [x11, x9]
	ldr	x10, [x19, #16]
	str	xzr, [x10, x9]
	add	x8, x8, #1
	ldr	x9, [x24]
	cmp	x8, x9
	b.lo	LBB0_22
; %bb.23:
	cbz	x9, LBB0_26
; %bb.24:
	mov	x9, #0
	sxtw	x10, w22
	sxtw	x11, w0
	ldp	x12, x13, [x19, #24]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x9, #3
	str	x10, [x12, x8]
	str	x11, [x13, x8]
	add	x9, x9, #1
	ldr	x8, [x24]
	cmp	x9, x8
	b.lo	LBB0_25
	b	LBB0_27
LBB0_26:
	mov	x8, #0
LBB0_27:
Lloh15:
	adrp	x9, _locale_bn@GOTPAGE
Lloh16:
	ldr	x9, [x9, _locale_bn@GOTPAGEOFF]
	cmp	x21, x9
	b.ne	LBB0_33
; %bb.28:
	mov	w0, #16
	bl	_QDB
	mov	x22, x0
	sub	x8, x20, #3
	cmp	x8, #8
	b.hi	LBB0_30
; %bb.29:
	mov	w0, #16
	bl	_QDB
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x24]
	cbnz	x8, LBB0_31
	b	LBB0_36
LBB0_30:
	mov	w0, #0
	ldr	x8, [x24]
	cbz	x8, LBB0_36
LBB0_31:
	mov	x9, #0
	mov	x8, x22
	sxtw	x10, w8
	mov	x8, x0
	sxtw	x11, w8
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	lsl	x12, x9, #3
	str	x10, [x8, x12]
	ldr	x8, [x19, #16]
	str	x11, [x8, x12]
	add	x9, x9, #1
	ldr	x8, [x24]
	cmp	x9, x8
	b.lo	LBB0_32
LBB0_33:
	cbz	x8, LBB0_36
; %bb.34:
	mov	x9, #0
	ldp	x10, x11, [x19, #40]
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	lsl	x8, x9, #3
	str	xzr, [x10, x8]
	str	xzr, [x11, x8]
	add	x9, x9, #1
	ldr	x8, [x24]
	cmp	x9, x8
	b.lo	LBB0_35
LBB0_36:
Lloh17:
	adrp	x9, _BRCMS_NUM_RATES_MCS_2_STREAM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BRCMS_NUM_RATES_MCS_2_STREAM@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x9]
	cbz	x10, LBB0_39
; %bb.37:
	mov	x11, #0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x12, w22
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x9, w0
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x19, #72]
	lsl	x14, x11, #3
	str	x12, [x13, x14]
	ldr	x13, [x19, #64]
	str	x9, [x13, x14]
	add	x11, x11, #1
	cmp	x10, x11
	b.ne	LBB0_38
	b	LBB0_40
LBB0_39:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxtw	x9, w0
LBB0_40:
	str	x9, [x19, #56]
	ldr	x9, [x23]
	cbz	x9, LBB0_50
; %bb.41:
	mov	x8, #0
	mov	x10, #0
	ldr	x9, [x19, #8]
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	mov	w10, #1
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x10, x10, #1
	ldr	x11, [x23]
	add	x8, x8, #8
	cmp	x10, x11
	b.hs	LBB0_49
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	cbz	x11, LBB0_46
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	cbnz	x10, LBB0_43
	b	LBB0_47
LBB0_46:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	x11, [x19, #32]
	ldr	x11, [x11, x8]
	str	x11, [x9, x10, lsl #3]
	cbnz	x10, LBB0_43
LBB0_47:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_42
; %bb.48:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x10, [x19, #32]
	ldr	x10, [x10, x8]
	str	x10, [x9, #8]
	b	LBB0_42
LBB0_49:
	ldr	x8, [x24]
	cbnz	x8, LBB0_51
	b	LBB0_56
LBB0_50:
	mov	x11, #0
	cbz	x8, LBB0_56
LBB0_51:
	mov	x9, #0
	ldr	x10, [x19, #16]
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.hs	LBB0_55
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbnz	x11, LBB0_52
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=1
	ldr	x8, [x19, #32]
	lsl	x11, x9, #3
	ldr	x8, [x8, x11]
	str	x8, [x10, x11]
	ldr	x8, [x24]
	b	LBB0_52
LBB0_55:
	ldr	x11, [x23]
LBB0_56:
	cbz	x11, LBB0_66
; %bb.57:
	mov	x8, #0
	mov	x10, #0
	ldr	x9, [x19]
	b	LBB0_60
LBB0_58:                                ;   in Loop: Header=BB0_60 Depth=1
	mov	w10, #1
LBB0_59:                                ;   in Loop: Header=BB0_60 Depth=1
	add	x10, x10, #1
	ldr	x11, [x23]
	add	x8, x8, #8
	cmp	x10, x11
	b.hs	LBB0_65
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	cbz	x11, LBB0_62
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=1
	cbnz	x10, LBB0_59
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_60 Depth=1
	ldr	x11, [x19, #16]
	ldr	x11, [x11, x8]
	str	x11, [x9, x10, lsl #3]
	cbnz	x10, LBB0_59
LBB0_63:                                ;   in Loop: Header=BB0_60 Depth=1
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_58
; %bb.64:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x8]
	str	x10, [x9, #8]
	b	LBB0_58
LBB0_65:
	ldr	x8, [x24]
LBB0_66:
	cbz	x8, LBB0_1
; %bb.67:
	mov	x8, #0
	ldp	x9, x10, [x19, #40]
	b	LBB0_69
LBB0_68:                                ;   in Loop: Header=BB0_69 Depth=1
	add	x8, x8, #1
	ldr	x11, [x24]
	cmp	x8, x11
	b.hs	LBB0_1
LBB0_69:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	cbz	x11, LBB0_71
; %bb.70:                               ;   in Loop: Header=BB0_69 Depth=1
	ldr	x11, [x10, x8, lsl #3]
	cbnz	x11, LBB0_68
	b	LBB0_72
LBB0_71:                                ;   in Loop: Header=BB0_69 Depth=1
	ldr	x11, [x19, #24]
	lsl	x12, x8, #3
	ldr	x11, [x11, x12]
	str	x11, [x9, x12]
	ldr	x11, [x10, x8, lsl #3]
	cbnz	x11, LBB0_68
LBB0_72:                                ;   in Loop: Header=BB0_69 Depth=1
	ldr	x11, [x19, #32]
	lsl	x12, x8, #3
	ldr	x11, [x11, x12]
	str	x11, [x10, x12]
	b	LBB0_68
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_TXPWR_MAX,4,2            ; @BRCMS_TXPWR_MAX
	.comm	_BRCM_BAND_5G,8,3               ; @BRCM_BAND_5G
	.comm	_BRCM_BAND_2G,8,3               ; @BRCM_BAND_2G
	.comm	_BRCMS_NUM_RATES_CCK,8,3        ; @BRCMS_NUM_RATES_CCK
	.comm	_BRCMS_NUM_RATES_OFDM,8,3       ; @BRCMS_NUM_RATES_OFDM
	.comm	_BRCMS_NUM_RATES_MCS_1_STREAM,8,3 ; @BRCMS_NUM_RATES_MCS_1_STREAM
	.comm	_locale_bn,16,3                 ; @locale_bn
	.comm	_BRCMS_NUM_RATES_MCS_2_STREAM,8,3 ; @BRCMS_NUM_RATES_MCS_2_STREAM
.subsections_via_symbols
