	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmu_d11n_decchspec
_brcmu_d11n_decchspec:                  ## @brcmu_d11n_decchspec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movq	_BRCMU_CHSPEC_CH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cltq
	movq	%rax, 24(%rdi)
	movq	%rax, 8(%rdi)
	movq	_BRCMU_CHSPEC_D11N_BW_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_6
## %bb.2:
	movq	_BRCMU_CHAN_BW_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_BRCMU_CHAN_SB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	_BRCMU_CHAN_BW_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_BRCMU_CHSPEC_D11N_SB_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	movq	_BRCMU_CHSPEC_D11N_SB_L@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_5
## %bb.4:
	movq	_BRCMU_CHAN_SB_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_CH_10MHZ_APART@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rcx, %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	movl	(%rbx), %edx
	jmp	LBB0_7
LBB0_5:
	movq	_BRCMU_CHAN_SB_U@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	_CH_10MHZ_APART@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rbx)
LBB0_7:
	movq	_BRCMU_CHSPEC_D11N_BND_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmpl	$131, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.9:
	movq	_BRCMU_CHAN_BAND_5G@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_BRCMU_CHAN_BAND_2G@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMU_CHSPEC_CH_MASK,4,2       ## @BRCMU_CHSPEC_CH_MASK
	.comm	_BRCMU_CHSPEC_D11N_BW_MASK,4,2  ## @BRCMU_CHSPEC_D11N_BW_MASK
	.comm	_BRCMU_CHAN_BW_20,4,2           ## @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_SB_NONE,4,2         ## @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHAN_BW_40,4,2           ## @BRCMU_CHAN_BW_40
	.comm	_BRCMU_CHSPEC_D11N_SB_MASK,4,2  ## @BRCMU_CHSPEC_D11N_SB_MASK
	.comm	_BRCMU_CHSPEC_D11N_SB_L,4,2     ## @BRCMU_CHSPEC_D11N_SB_L
	.comm	_BRCMU_CHAN_SB_L,4,2            ## @BRCMU_CHAN_SB_L
	.comm	_CH_10MHZ_APART,4,2             ## @CH_10MHZ_APART
	.comm	_BRCMU_CHAN_SB_U,4,2            ## @BRCMU_CHAN_SB_U
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid chanspec 0x%04x\n"

	.comm	_BRCMU_CHSPEC_D11N_BND_MASK,4,2 ## @BRCMU_CHSPEC_D11N_BND_MASK
	.comm	_BRCMU_CHAN_BAND_5G,4,2         ## @BRCMU_CHAN_BAND_5G
	.comm	_BRCMU_CHAN_BAND_2G,4,2         ## @BRCMU_CHAN_BAND_2G
	.no_dead_strip	_brcmu_d11n_decchspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmu_d11n_decchspec
_brcmu_d11n_decchspec:                  ; @brcmu_d11n_decchspec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w2, [x0]
Lloh0:
	adrp	x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMU_CHSPEC_CH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w2
	sxtw	x8, w8
	str	x8, [x0, #24]
	str	x8, [x0, #8]
Lloh3:
	adrp	x9, _BRCMU_CHSPEC_D11N_BW_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMU_CHSPEC_D11N_BW_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w2
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _BRCMU_CHAN_BW_20@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMU_CHAN_BW_20@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BRCMU_CHAN_SB_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCMU_CHAN_SB_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	b	LBB0_8
LBB0_3:
Lloh12:
	adrp	x9, _BRCMU_CHAN_BW_40@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BRCMU_CHAN_BW_40@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x19, #20]
Lloh15:
	adrp	x9, _BRCMU_CHSPEC_D11N_SB_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BRCMU_CHSPEC_D11N_SB_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w2
Lloh18:
	adrp	x10, _BRCMU_CHSPEC_D11N_SB_L@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BRCMU_CHSPEC_D11N_SB_L@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.4:
Lloh21:
	adrp	x9, _BRCMU_CHAN_SB_L@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BRCMU_CHAN_SB_L@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19, #16]
Lloh24:
	adrp	x9, _CH_10MHZ_APART@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CH_10MHZ_APART@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	sub	x8, x8, x9
	b	LBB0_7
LBB0_5:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	ldr	w2, [x19]
	b	LBB0_8
LBB0_6:
Lloh29:
	adrp	x9, _BRCMU_CHAN_SB_U@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BRCMU_CHAN_SB_U@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	str	w9, [x19, #16]
Lloh32:
	adrp	x9, _CH_10MHZ_APART@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CH_10MHZ_APART@GOTPAGEOFF]
Lloh34:
	ldrsw	x9, [x9]
	add	x8, x9, x8
LBB0_7:
	str	x8, [x19, #8]
LBB0_8:
Lloh35:
	adrp	x8, _BRCMU_CHSPEC_D11N_BND_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BRCMU_CHSPEC_D11N_BND_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	and	w8, w8, w2
	cmp	w8, #131
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.10:
Lloh38:
	adrp	x8, _BRCMU_CHAN_BAND_5G@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BRCMU_CHAN_BAND_5G@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh40:
	adrp	x8, _BRCMU_CHAN_BAND_2G@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BRCMU_CHAN_BAND_2G@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh42:
	adrp	x1, l_.str@PAGE
Lloh43:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ONCE
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMU_CHSPEC_CH_MASK,4,2       ; @BRCMU_CHSPEC_CH_MASK
	.comm	_BRCMU_CHSPEC_D11N_BW_MASK,4,2  ; @BRCMU_CHSPEC_D11N_BW_MASK
	.comm	_BRCMU_CHAN_BW_20,4,2           ; @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_SB_NONE,4,2         ; @BRCMU_CHAN_SB_NONE
	.comm	_BRCMU_CHAN_BW_40,4,2           ; @BRCMU_CHAN_BW_40
	.comm	_BRCMU_CHSPEC_D11N_SB_MASK,4,2  ; @BRCMU_CHSPEC_D11N_SB_MASK
	.comm	_BRCMU_CHSPEC_D11N_SB_L,4,2     ; @BRCMU_CHSPEC_D11N_SB_L
	.comm	_BRCMU_CHAN_SB_L,4,2            ; @BRCMU_CHAN_SB_L
	.comm	_CH_10MHZ_APART,4,2             ; @CH_10MHZ_APART
	.comm	_BRCMU_CHAN_SB_U,4,2            ; @BRCMU_CHAN_SB_U
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid chanspec 0x%04x\n"

	.comm	_BRCMU_CHSPEC_D11N_BND_MASK,4,2 ; @BRCMU_CHSPEC_D11N_BND_MASK
	.comm	_BRCMU_CHAN_BAND_5G,4,2         ; @BRCMU_CHAN_BAND_5G
	.comm	_BRCMU_CHAN_BAND_2G,4,2         ; @BRCMU_CHAN_BAND_2G
	.no_dead_strip	_brcmu_d11n_decchspec
.subsections_via_symbols
