	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmu_d11ac_encchspec
_brcmu_d11ac_encchspec:                 ## @brcmu_d11ac_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
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_BRCMU_CHAN_SB_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_BRCMU_CHAN_SB_L@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_3:
	leaq	24(%rbx), %r14
	movq	_BRCMU_CHSPEC_CH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BRCMU_CHSPEC_CH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbx), %rcx
	movq	%r14, %rdi
	callq	_brcmu_maskset16
	movq	_BRCMU_CHSPEC_D11AC_SB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BRCMU_CHSPEC_D11AC_SB_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rcx
	movq	%r14, %rdi
	callq	_brcmu_maskset16
	movq	_BRCMU_CHSPEC_D11AC_BW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_d11ac_bw
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_brcmu_maskset16
	movq	_BRCMU_CHSPEC_D11AC_BND_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	24(%rbx), %eax
	movq	16(%rbx), %rcx
	movq	_CH_MAX_2G_CHANNEL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_4
## %bb.5:
	movq	_BRCMU_CHSPEC_D11AC_BND_5G@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_BRCMU_CHSPEC_D11AC_BND_2G@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
	movl	%eax, 24(%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,8,3         ## @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHAN_SB_L,8,3            ## @BRCMU_CHAN_SB_L
	.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_D11AC_SB_MASK,4,2 ## @BRCMU_CHSPEC_D11AC_SB_MASK
	.comm	_BRCMU_CHSPEC_D11AC_SB_SHIFT,4,2 ## @BRCMU_CHSPEC_D11AC_SB_SHIFT
	.comm	_BRCMU_CHSPEC_D11AC_BW_MASK,4,2 ## @BRCMU_CHSPEC_D11AC_BW_MASK
	.comm	_BRCMU_CHSPEC_D11AC_BND_MASK,4,2 ## @BRCMU_CHSPEC_D11AC_BND_MASK
	.comm	_CH_MAX_2G_CHANNEL,8,3          ## @CH_MAX_2G_CHANNEL
	.comm	_BRCMU_CHSPEC_D11AC_BND_2G,4,2  ## @BRCMU_CHSPEC_D11AC_BND_2G
	.comm	_BRCMU_CHSPEC_D11AC_BND_5G,4,2  ## @BRCMU_CHSPEC_D11AC_BND_5G
	.no_dead_strip	_brcmu_d11ac_encchspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmu_d11ac_encchspec
_brcmu_d11ac_encchspec:                 ; @brcmu_d11ac_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.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _BRCMU_CHAN_SB_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMU_CHAN_SB_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _BRCMU_CHAN_SB_L@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMU_CHAN_SB_L@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_3:
Lloh9:
	adrp	x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGEOFF]
	add	x20, x19, #24
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BRCMU_CHSPEC_CH_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMU_CHSPEC_CH_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	x3, [x19, #16]
	mov	x0, x20
	bl	_brcmu_maskset16
Lloh15:
	adrp	x8, _BRCMU_CHSPEC_D11AC_SB_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11AC_SB_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _BRCMU_CHSPEC_D11AC_SB_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11AC_SB_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	mov	x0, x20
	bl	_brcmu_maskset16
Lloh21:
	adrp	x8, _BRCMU_CHSPEC_D11AC_BW_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11AC_BW_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	ldr	x0, [x19]
	bl	_d11ac_bw
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_brcmu_maskset16
Lloh24:
	adrp	x8, _BRCMU_CHSPEC_D11AC_BND_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11AC_BND_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	ldr	x9, [x19, #16]
Lloh27:
	adrp	x10, _CH_MAX_2G_CHANNEL@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CH_MAX_2G_CHANNEL@GOTPAGEOFF]
Lloh29:
	adrp	x11, _BRCMU_CHSPEC_D11AC_BND_5G@GOTPAGE
Lloh30:
	ldr	x11, [x11, _BRCMU_CHSPEC_D11AC_BND_5G@GOTPAGEOFF]
Lloh31:
	adrp	x12, _BRCMU_CHSPEC_D11AC_BND_2G@GOTPAGE
Lloh32:
	ldr	x12, [x12, _BRCMU_CHSPEC_D11AC_BND_2G@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x11, x12, gt
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh33
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMU_CHAN_BW_20,8,3           ; @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_SB_NONE,8,3         ; @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHAN_SB_L,8,3            ; @BRCMU_CHAN_SB_L
	.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_D11AC_SB_MASK,4,2 ; @BRCMU_CHSPEC_D11AC_SB_MASK
	.comm	_BRCMU_CHSPEC_D11AC_SB_SHIFT,4,2 ; @BRCMU_CHSPEC_D11AC_SB_SHIFT
	.comm	_BRCMU_CHSPEC_D11AC_BW_MASK,4,2 ; @BRCMU_CHSPEC_D11AC_BW_MASK
	.comm	_BRCMU_CHSPEC_D11AC_BND_MASK,4,2 ; @BRCMU_CHSPEC_D11AC_BND_MASK
	.comm	_CH_MAX_2G_CHANNEL,8,3          ; @CH_MAX_2G_CHANNEL
	.comm	_BRCMU_CHSPEC_D11AC_BND_2G,4,2  ; @BRCMU_CHSPEC_D11AC_BND_2G
	.comm	_BRCMU_CHSPEC_D11AC_BND_5G,4,2  ; @BRCMU_CHSPEC_D11AC_BND_5G
	.no_dead_strip	_brcmu_d11ac_encchspec
.subsections_via_symbols
