	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_get_chan_freq_range_nphy ## -- Begin function wlc_phy_get_chan_freq_range_nphy
	.p2align	4, 0x90
_wlc_phy_get_chan_freq_range_nphy:      ## @wlc_phy_get_chan_freq_range_nphy
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_CHSPEC_CHANNEL
	movq	%rax, %rsi
LBB0_2:
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-12(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	leaq	-32(%rbp), %r9
	movq	%rbx, %rdi
	callq	_wlc_phy_chan2freq_nphy
	movl	(%rbx), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_WL_CHAN_FREQ_RANGE_2G@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	movl	-12(%rbp), %eax
	movq	_BASE_LOW_5G_CHAN@GOTPCREL(%rip), %rcx
	movq	_BASE_MID_5G_CHAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	(%rcx), %eax
	jl	LBB0_7
## %bb.5:
	cmpl	%edx, %eax
	jge	LBB0_7
## %bb.6:
	movq	_WL_CHAN_FREQ_RANGE_5GL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_BASE_HIGH_5G_CHAN@GOTPCREL(%rip), %rdi
	movq	_WL_CHAN_FREQ_RANGE_5GH@GOTPCREL(%rip), %rcx
	movq	%rcx, %rsi
	cmpl	(%rdi), %eax
	jge	LBB0_9
## %bb.8:
	movq	_WL_CHAN_FREQ_RANGE_5GM@GOTPCREL(%rip), %rsi
LBB0_9:
	cmpl	%edx, %eax
	cmovgeq	%rsi, %rcx
LBB0_10:
	movl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_CHAN_FREQ_RANGE_2G,4,2      ## @WL_CHAN_FREQ_RANGE_2G
	.comm	_BASE_LOW_5G_CHAN,4,2           ## @BASE_LOW_5G_CHAN
	.comm	_BASE_MID_5G_CHAN,4,2           ## @BASE_MID_5G_CHAN
	.comm	_WL_CHAN_FREQ_RANGE_5GL,4,2     ## @WL_CHAN_FREQ_RANGE_5GL
	.comm	_BASE_HIGH_5G_CHAN,4,2          ## @BASE_HIGH_5G_CHAN
	.comm	_WL_CHAN_FREQ_RANGE_5GM,4,2     ## @WL_CHAN_FREQ_RANGE_5GM
	.comm	_WL_CHAN_FREQ_RANGE_5GH,4,2     ## @WL_CHAN_FREQ_RANGE_5GH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_get_chan_freq_range_nphy ; -- Begin function wlc_phy_get_chan_freq_range_nphy
	.p2align	2
_wlc_phy_get_chan_freq_range_nphy:      ; @wlc_phy_get_chan_freq_range_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_CHSPEC_CHANNEL
	mov	x1, x0
LBB0_2:
	sub	x2, x29, #20
	add	x3, sp, #32
	add	x4, sp, #24
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x19
	bl	_wlc_phy_chan2freq_nphy
	ldr	w0, [x19]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _WL_CHAN_FREQ_RANGE_2G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL_CHAN_FREQ_RANGE_2G@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldur	w8, [x29, #-20]
Lloh2:
	adrp	x9, _BASE_LOW_5G_CHAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BASE_LOW_5G_CHAN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
Lloh5:
	adrp	x9, _BASE_MID_5G_CHAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BASE_MID_5G_CHAN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w10
	ccmp	w8, w9, #0, ge
	b.lt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x10, _BASE_HIGH_5G_CHAN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BASE_HIGH_5G_CHAN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w10
	ccmp	w8, w9, #8, lt
Lloh11:
	adrp	x8, _WL_CHAN_FREQ_RANGE_5GH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WL_CHAN_FREQ_RANGE_5GH@GOTPAGEOFF]
Lloh13:
	adrp	x9, _WL_CHAN_FREQ_RANGE_5GM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WL_CHAN_FREQ_RANGE_5GM@GOTPAGEOFF]
	csel	x8, x9, x8, ge
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _WL_CHAN_FREQ_RANGE_5GL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WL_CHAN_FREQ_RANGE_5GL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_CHAN_FREQ_RANGE_2G,4,2      ; @WL_CHAN_FREQ_RANGE_2G
	.comm	_BASE_LOW_5G_CHAN,4,2           ; @BASE_LOW_5G_CHAN
	.comm	_BASE_MID_5G_CHAN,4,2           ; @BASE_MID_5G_CHAN
	.comm	_WL_CHAN_FREQ_RANGE_5GL,4,2     ; @WL_CHAN_FREQ_RANGE_5GL
	.comm	_BASE_HIGH_5G_CHAN,4,2          ; @BASE_HIGH_5G_CHAN
	.comm	_WL_CHAN_FREQ_RANGE_5GM,4,2     ; @WL_CHAN_FREQ_RANGE_5GM
	.comm	_WL_CHAN_FREQ_RANGE_5GH,4,2     ; @WL_CHAN_FREQ_RANGE_5GH
.subsections_via_symbols
