	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chandef_to_chanspec
_chandef_to_chanspec:                   ## @chandef_to_chanspec
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_TRACE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	8(%rsi), %rax
	movl	(%rax), %edx
	movl	(%rsi), %ecx
	movl	4(%rsi), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	(%rbx), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, -32(%rbp)
	movl	$-129, %esi
	addl	4(%rbx), %esi
	cmpl	$5, %esi
	ja	LBB0_31
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_2:
	movq	_BRCMU_CHAN_BW_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	setne	%dil
	callq	_WARN_ON
	jmp	LBB0_32
LBB0_7:
	movq	_BRCMU_CHAN_BW_80@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$10, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$-10, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$-30, %eax
	jne	LBB0_13
## %bb.10:
	movq	_BRCMU_CHAN_SB_LL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_31:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	jmp	LBB0_32
LBB0_3:
	movq	_BRCMU_CHAN_BW_40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	_BRCMU_CHAN_SB_U@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_14:
	movq	_BRCMU_CHAN_BW_160@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$-11, %eax
	jle	LBB0_15
## %bb.19:
	cmpl	$29, %eax
	jg	LBB0_23
## %bb.20:
	cmpl	$-10, %eax
	je	LBB0_28
## %bb.21:
	cmpl	$10, %eax
	jne	LBB0_30
## %bb.22:
	movq	_BRCMU_CHAN_SB_ULL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	cmpl	$-70, %eax
	je	LBB0_26
## %bb.16:
	cmpl	$-50, %eax
	je	LBB0_27
## %bb.17:
	cmpl	$-30, %eax
	jne	LBB0_30
## %bb.18:
	movq	_BRCMU_CHAN_SB_LUL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_BRCMU_CHAN_SB_L@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_23:
	cmpl	$30, %eax
	je	LBB0_29
## %bb.24:
	cmpl	$50, %eax
	jne	LBB0_30
## %bb.25:
	movq	_BRCMU_CHAN_SB_UUL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_BRCMU_CHAN_SB_UL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_BRCMU_CHAN_SB_LU@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_BRCMU_CHAN_SB_UU@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_28:
	movq	_BRCMU_CHAN_SB_LUU@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_26:
	movq	_BRCMU_CHAN_SB_LLL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_27:
	movq	_BRCMU_CHAN_SB_LLU@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_29:
	movq	_BRCMU_CHAN_SB_ULU@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_30:
	movq	_BRCMU_CHAN_SB_UUU@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
LBB0_32:
	movq	8(%rbx), %rax
	movl	4(%rax), %eax
	cmpl	$137, %eax
	je	LBB0_36
## %bb.33:
	cmpl	$138, %eax
	jne	LBB0_37
## %bb.34:
	movq	_BRCMU_CHAN_BAND_2G@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_36:
	movq	_BRCMU_CHAN_BAND_5G@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_38
LBB0_37:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
LBB0_38:
	leaq	-48(%rbp), %rdi
	callq	*(%r14)
	movl	(%r15), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	-48(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_31
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chandef: control %d center %d width %d\n"

	.comm	_BRCMU_CHAN_BW_20,4,2           ## @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_BW_40,4,2           ## @BRCMU_CHAN_BW_40
	.comm	_BRCMU_CHAN_SB_U,4,2            ## @BRCMU_CHAN_SB_U
	.comm	_BRCMU_CHAN_SB_L,4,2            ## @BRCMU_CHAN_SB_L
	.comm	_BRCMU_CHAN_BW_80,4,2           ## @BRCMU_CHAN_BW_80
	.comm	_BRCMU_CHAN_SB_LL,4,2           ## @BRCMU_CHAN_SB_LL
	.comm	_BRCMU_CHAN_SB_LU,4,2           ## @BRCMU_CHAN_SB_LU
	.comm	_BRCMU_CHAN_SB_UL,4,2           ## @BRCMU_CHAN_SB_UL
	.comm	_BRCMU_CHAN_SB_UU,4,2           ## @BRCMU_CHAN_SB_UU
	.comm	_BRCMU_CHAN_BW_160,4,2          ## @BRCMU_CHAN_BW_160
	.comm	_BRCMU_CHAN_SB_LLL,4,2          ## @BRCMU_CHAN_SB_LLL
	.comm	_BRCMU_CHAN_SB_LLU,4,2          ## @BRCMU_CHAN_SB_LLU
	.comm	_BRCMU_CHAN_SB_LUL,4,2          ## @BRCMU_CHAN_SB_LUL
	.comm	_BRCMU_CHAN_SB_LUU,4,2          ## @BRCMU_CHAN_SB_LUU
	.comm	_BRCMU_CHAN_SB_ULL,4,2          ## @BRCMU_CHAN_SB_ULL
	.comm	_BRCMU_CHAN_SB_ULU,4,2          ## @BRCMU_CHAN_SB_ULU
	.comm	_BRCMU_CHAN_SB_UUL,4,2          ## @BRCMU_CHAN_SB_UUL
	.comm	_BRCMU_CHAN_SB_UUU,4,2          ## @BRCMU_CHAN_SB_UUU
	.comm	_BRCMU_CHAN_BAND_2G,4,2         ## @BRCMU_CHAN_BAND_2G
	.comm	_BRCMU_CHAN_BAND_5G,4,2         ## @BRCMU_CHAN_BAND_5G
L_.str.1:                               ## @.str.1
	.asciz	"chanspec: 0x%x\n"

	.no_dead_strip	_chandef_to_chanspec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chandef_to_chanspec
_chandef_to_chanspec:                   ; @chandef_to_chanspec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _TRACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRACE@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x1, #8]
	ldr	w2, [x8]
	ldp	w8, w9, [x1]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [x20]
	bl	_ieee80211_frequency_to_channel
	str	w0, [sp, #40]
	ldr	w8, [x20, #4]
	sub	w10, w8, #129
	cmp	w10, #5
	b.hi	LBB0_7
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	ldr	w11, [x20]
	sub	w8, w9, w11
Lloh4:
	adrp	x12, lJTI0_0@PAGE
Lloh5:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x10]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
Lloh6:
	adrp	x8, _BRCMU_CHAN_BW_20@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BRCMU_CHAN_BW_20@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	cmp	w9, w11
	cset	w0, ne
	bl	_WARN_ON
	b	LBB0_32
LBB0_3:
Lloh9:
	adrp	x9, _BRCMU_CHAN_BW_80@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCMU_CHAN_BW_80@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [sp, #36]
	cmp	w8, #10
	b.eq	LBB0_23
; %bb.4:
	cmn	w8, #10
	b.eq	LBB0_24
; %bb.5:
	cmn	w8, #30
	b.ne	LBB0_25
; %bb.6:
Lloh12:
	adrp	x8, _BRCMU_CHAN_SB_LL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BRCMU_CHAN_SB_LL@GOTPAGEOFF]
	b	LBB0_31
LBB0_7:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	b	LBB0_32
LBB0_8:
Lloh14:
	adrp	x9, _BRCMU_CHAN_BW_40@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BRCMU_CHAN_BW_40@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [sp, #36]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.9:
Lloh17:
	adrp	x8, _BRCMU_CHAN_SB_U@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BRCMU_CHAN_SB_U@GOTPAGEOFF]
	b	LBB0_31
LBB0_10:
Lloh19:
	adrp	x9, _BRCMU_CHAN_BW_160@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BRCMU_CHAN_BW_160@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	str	w9, [sp, #36]
	cmn	w8, #11
	b.le	LBB0_15
; %bb.11:
	cmp	w8, #29
	b.gt	LBB0_20
; %bb.12:
	cmn	w8, #10
	b.eq	LBB0_26
; %bb.13:
	cmp	w8, #10
	b.ne	LBB0_30
; %bb.14:
Lloh22:
	adrp	x8, _BRC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8, _BRCMU_CHAN_SB_LLL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BRCMU_CHAN_SB_LLL@GOTPAGEOFF]
	b	LBB0_31
LBB0_28:
Lloh40:
	adrp	x8, _BRCMU_CHAN_SB_LLU@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BRCMU_CHAN_SB_LLU@GOTPAGEOFF]
	b	LBB0_31
LBB0_29:
Lloh42:
	adrp	x8, _BRCMU_CHAN_SB_ULU@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BRCMU_CHAN_SB_ULU@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:
Lloh44:
	adrp	x8, _BRCMU_CHAN_SB_UUU@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BRCMU_CHAN_SB_UUU@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	str	w8, [sp, #32]
LBB0_32:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #137
	b.eq	LBB0_35
; %bb.33:
	cmp	w8, #138
	b.ne	LBB0_37
; %bb.34:
Lloh46:
	adrp	x8, _BRCMU_CHAN_BAND_2G@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BRCMU_CHAN_BAND_2G@GOTPAGEOFF]
	b	LBB0_36
LBB0_35:
Lloh48:
	adrp	x8, _BRCMU_CHAN_BAND_5G@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BRCMU_CHAN_BAND_5G@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	b	LBB0_38
LBB0_37:
	mov	w0, #1
	bl	_WARN_ON_ONCE
LBB0_38:
	ldr	x8, [x19]
	add	x0, sp, #24
	blr	x8
	ldr	w0, [x21]
	ldr	w2, [sp, #24]
Lloh50:
	adrp	x1, l_.str.1@PAGE
Lloh51:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	w0, [sp, #24]
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chandef: control %d center %d width %d\n"

	.comm	_BRCMU_CHAN_BW_20,4,2           ; @BRCMU_CHAN_BW_20
	.comm	_BRCMU_CHAN_BW_40,4,2           ; @BRCMU_CHAN_BW_40
	.comm	_BRCMU_CHAN_SB_U,4,2            ; @BRCMU_CHAN_SB_U
	.comm	_BRCMU_CHAN_SB_L,4,2            ; @BRCMU_CHAN_SB_L
	.comm	_BRCMU_CHAN_BW_80,4,2           ; @BRCMU_CHAN_BW_80
	.comm	_BRCMU_CHAN_SB_LL,4,2           ; @BRCMU_CHAN_SB_LL
	.comm	_BRCMU_CHAN_SB_LU,4,2           ; @BRCMU_CHAN_SB_LU
	.comm	_BRCMU_CHAN_SB_UL,4,2           ; @BRCMU_CHAN_SB_UL
	.comm	_BRCMU_CHAN_SB_UU,4,2           ; @BRCMU_CHAN_SB_UU
	.comm	_BRCMU_CHAN_BW_160,4,2          ; @BRCMU_CHAN_BW_160
	.comm	_BRCMU_CHAN_SB_LLL,4,2          ; @BRCMU_CHAN_SB_LLL
	.comm	_BRCMU_CHAN_SB_LLU,4,2          ; @BRCMU_CHAN_SB_LLU
	.comm	_BRCMU_CHAN_SB_LUL,4,2          ; @BRCMU_CHAN_SB_LUL
	.comm	_BRCMU_CHAN_SB_LUU,4,2          ; @BRCMU_CHAN_SB_LUU
	.comm	_BRCMU_CHAN_SB_ULL,4,2          ; @BRCMU_CHAN_SB_ULL
	.comm	_BRCMU_CHAN_SB_ULU,4,2          ; @BRCMU_CHAN_SB_ULU
	.comm	_BRCMU_CHAN_SB_UUL,4,2          ; @BRCMU_CHAN_SB_UUL
	.comm	_BRCMU_CHAN_SB_UUU,4,2          ; @BRCMU_CHAN_SB_UUU
	.comm	_BRCMU_CHAN_BAND_2G,4,2         ; @BRCMU_CHAN_BAND_2G
	.comm	_BRCMU_CHAN_BAND_5G,4,2         ; @BRCMU_CHAN_BAND_5G
l_.str.1:                               ; @.str.1
	.asciz	"chanspec: 0x%x\n"

	.no_dead_strip	_chandef_to_chanspec
.subsections_via_symbols
