	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmu_d11n_encchspec
_brcmu_d11n_encchspec:                  ## @brcmu_d11n_encchspec
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_BRCMU_CHAN_BW_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_BRCMU_CHAN_SB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_2:
	leaq	16(%rbx), %r14
	movl	$0, 16(%rbx)
	movq	_BRCMU_CHSPEC_CH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BRCMU_CHSPEC_CH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rcx
	movq	%r14, %rdi
	callq	_brcmu_maskset16
	movq	_BRCMU_CHSPEC_D11N_SB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	20(%rbx), %edi
	callq	_d11n_sb
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_brcmu_maskset16
	movq	_BRCMU_CHSPEC_D11N_BW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_d11n_bw
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_brcmu_maskset16
	movq	8(%rbx), %rax
	movq	_CH_MAX_2G_CHANNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.4:
	movq	_BRCMU_CHSPEC_D11N_BND_5G@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_BRCMU_CHSPEC_D11N_BND_2G@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMU_CHAN_BW_20,8,3           ## @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_SB_NONE,4,2         ## @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHSPEC_CH_MASK,4,2       ## @BRCMU_CHSPEC_CH_MASK
	.comm	_BRCMU_CHSPEC_CH_SHIFT,4,2      ## @BRCMU_CHSPEC_CH_SHIFT
	.comm	_BRCMU_CHSPEC_D11N_SB_MASK,4,2  ## @BRCMU_CHSPEC_D11N_SB_MASK
	.comm	_BRCMU_CHSPEC_D11N_BW_MASK,4,2  ## @BRCMU_CHSPEC_D11N_BW_MASK
	.comm	_CH_MAX_2G_CHANNEL,8,3          ## @CH_MAX_2G_CHANNEL
	.comm	_BRCMU_CHSPEC_D11N_BND_2G,4,2   ## @BRCMU_CHSPEC_D11N_BND_2G
	.comm	_BRCMU_CHSPEC_D11N_BND_5G,4,2   ## @BRCMU_CHSPEC_D11N_BND_5G
	.no_dead_strip	_brcmu_d11n_encchspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmu_d11n_encchspec
_brcmu_d11n_encchspec:                  ; @brcmu_d11n_encchspec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BRCMU_CHAN_BW_20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMU_CHAN_BW_20@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BRCMU_CHAN_SB_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMU_CHAN_SB_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_2:
	mov	x20, x19
	str	wzr, [x20, #16]!
Lloh6:
	adrp	x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _BRCMU_CHSPEC_CH_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMU_CHSPEC_CH_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	mov	x0, x20
	bl	_brcmu_maskset16
Lloh12:
	adrp	x8, _BRCMU_CHSPEC_D11N_SB_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11N_SB_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	ldr	w0, [x19, #20]
	bl	_d11n_sb
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_brcmu_maskset16
Lloh15:
	adrp	x8, _BRCMU_CHSPEC_D11N_BW_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11N_BW_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
	ldr	x0, [x19]
	bl	_d11n_bw
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_brcmu_maskset16
Lloh18:
	adrp	x8, _CH_MAX_2G_CHANNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CH_MAX_2G_CHANNEL@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x10, _BRCMU_CHSPEC_D11N_BND_5G@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BRCMU_CHSPEC_D11N_BND_5G@GOTPAGEOFF]
Lloh23:
	adrp	x11, _BRCMU_CHSPEC_D11N_BND_2G@GOTPAGE
Lloh24:
	ldr	x11, [x11, _BRCMU_CHSPEC_D11N_BND_2G@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, gt
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMU_CHAN_BW_20,8,3           ; @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_SB_NONE,4,2         ; @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHSPEC_CH_MASK,4,2       ; @BRCMU_CHSPEC_CH_MASK
	.comm	_BRCMU_CHSPEC_CH_SHIFT,4,2      ; @BRCMU_CHSPEC_CH_SHIFT
	.comm	_BRCMU_CHSPEC_D11N_SB_MASK,4,2  ; @BRCMU_CHSPEC_D11N_SB_MASK
	.comm	_BRCMU_CHSPEC_D11N_BW_MASK,4,2  ; @BRCMU_CHSPEC_D11N_BW_MASK
	.comm	_CH_MAX_2G_CHANNEL,8,3          ; @CH_MAX_2G_CHANNEL
	.comm	_BRCMU_CHSPEC_D11N_BND_2G,4,2   ; @BRCMU_CHSPEC_D11N_BND_2G
	.comm	_BRCMU_CHSPEC_D11N_BND_5G,4,2   ; @BRCMU_CHSPEC_D11N_BND_5G
	.no_dead_strip	_brcmu_d11n_encchspec
.subsections_via_symbols
