	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_chanspec_set_nphy      ## -- Begin function wlc_phy_chanspec_set_nphy
	.p2align	4, 0x90
_wlc_phy_chanspec_set_nphy:             ## @wlc_phy_chanspec_set_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	movl	%esi, %edi
	callq	_CHSPEC_CHANNEL
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %r15
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	movq	%r12, %r9
	callq	_wlc_phy_chan2freq_nphy
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_wlc_phy_chanspec_radio_set
	movl	%r14d, %edi
	callq	_CHSPEC_BW
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_CHSPEC_BW
	movl	%r13d, %edi
	movq	%rax, %rsi
	callq	_wlapi_bmac_bw_set
LBB0_3:
	movl	%r14d, %edi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	%r14d, %edi
	callq	_CHSPEC_SB_UPPER
	movq	_BPHY_BAND_SEL_UP20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	$160, %esi
	callq	_or_phy_reg
	movl	12(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_PRIM_SEL_UP20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$784, %esi                      ## imm = 0x310
	callq	_or_phy_reg
	jmp	LBB0_9
LBB0_7:
	notl	%edx
	movq	%rbx, %rdi
	movl	$160, %esi
	callq	_and_phy_reg
	movl	12(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_PRIM_SEL_UP20@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	xorl	$65535, %edx                    ## imm = 0xFFFF
	movq	%rbx, %rdi
	movl	$784, %esi                      ## imm = 0x310
	callq	_and_phy_reg
LBB0_9:
	movl	12(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movl	12(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movl	8(%rbx), %eax
	cmpl	$5, %eax
	jl	LBB0_13
## %bb.12:
	cmpl	$6, %eax
	jne	LBB0_14
LBB0_13:
	movq	_RADIO_2057_TIA_CONFIG_CORE0@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	addl	%ecx, %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$2, %edx
	callq	_mod_radio_reg
	movq	_RADIO_2057_TIA_CONFIG_CORE1@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	addl	%ecx, %ecx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$2, %edx
	callq	_mod_radio_reg
LBB0_14:
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_wlc_phy_chanspec_radio2057_setup
	cmpl	$5, 8(%rbx)
	cmoveq	%r12, %r15
	movq	(%r15), %rdx
	jmp	LBB0_17
LBB0_16:
	movq	_RADIO_2055_MASTER_CNTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_CHSPEC_IS5G
	testq	%rax, %rax
	movl	$80, %eax
	movl	$32, %ecx
	cmovel	%eax, %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$112, %edx
	callq	_mod_radio_reg
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wlc_phy_chanspec_radio2055_setup
	movq	-48(%rbp), %rdx
	jmp	LBB0_17
LBB0_15:
	movq	_RADIO_2056_SYN_COM_CTRL@GOTPCREL(%rip), %rax
	movq	_RADIO_2056_SYN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_CHSPEC_IS5G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$2, %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_mod_radio_reg
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wlc_phy_chanspec_radio2056_setup
	movq	-56(%rbp), %rdx
LBB0_17:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_wlc_phy_chanspec_nphy_setup
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BPHY_BAND_SEL_UP20,4,2         ## @BPHY_BAND_SEL_UP20
	.comm	_PRIM_SEL_UP20,4,2              ## @PRIM_SEL_UP20
	.comm	_RADIO_2057_TIA_CONFIG_CORE0,4,2 ## @RADIO_2057_TIA_CONFIG_CORE0
	.comm	_RADIO_2057_TIA_CONFIG_CORE1,4,2 ## @RADIO_2057_TIA_CONFIG_CORE1
	.comm	_RADIO_2056_SYN_COM_CTRL,4,2    ## @RADIO_2056_SYN_COM_CTRL
	.comm	_RADIO_2056_SYN,4,2             ## @RADIO_2056_SYN
	.comm	_RADIO_2055_MASTER_CNTRL1,4,2   ## @RADIO_2055_MASTER_CNTRL1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_chanspec_set_nphy      ; -- Begin function wlc_phy_chanspec_set_nphy
	.p2align	2
_wlc_phy_chanspec_set_nphy:             ; @wlc_phy_chanspec_set_nphy
	.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	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	mov	x0, x1
	bl	_CHSPEC_CHANNEL
	mov	x1, x0
	sub	x2, x29, #36
	add	x3, sp, #32
	add	x4, sp, #24
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x20
	bl	_wlc_phy_chan2freq_nphy
	cbz	w0, LBB0_18
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_wlc_phy_chanspec_radio_set
	mov	x0, x19
	bl	_CHSPEC_BW
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w21, [x8]
	mov	x0, x19
	bl	_CHSPEC_BW
	mov	x1, x0
	mov	x0, x21
	bl	_wlapi_bmac_bw_set
LBB0_3:
	mov	x0, x19
	bl	_CHSPEC_IS40
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_CHSPEC_SB_UPPER
Lloh0:
	adrp	x8, _BPHY_BAND_SEL_UP20@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BPHY_BAND_SEL_UP20@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	w1, #160
	bl	_or_phy_reg
	ldr	w0, [x20, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_9
; %bb.6:
Lloh3:
	adrp	x8, _PRIM_SEL_UP20@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRIM_SEL_UP20@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #784
	bl	_or_phy_reg
	b	LBB0_9
LBB0_7:
	mvn	w2, w2
	mov	x0, x20
	mov	w1, #160
	bl	_and_phy_reg
	ldr	w0, [x20, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _PRIM_SEL_UP20@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRIM_SEL_UP20@GOTPAGEOFF]
	ldrh	w8, [x8]
	eor	w2, w8, #0xffff
	mov	x0, x20
	mov	w1, #784
	bl	_and_phy_reg
LBB0_9:
	ldr	w0, [x20, #12]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_15
; %bb.10:
	ldr	w0, [x20, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_16
; %bb.11:
	ldr	w8, [x20, #8]
	cmp	w8, #5
	b.lt	LBB0_13
; %bb.12:
	cmp	w8, #6
	b.ne	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _RADIO_2057_TIA_CONFIG_CORE0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADIO_2057_TIA_CONFIG_CORE0@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cset	w8, ne
	lsl	w3, w8, #1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_mod_radio_reg
Lloh11:
	adrp	x8, _RADIO_2057_TIA_CONFIG_CORE1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADIO_2057_TIA_CONFIG_CORE1@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cset	w8, ne
	lsl	w3, w8, #1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_mod_radio_reg
LBB0_14:
	ldr	x1, [sp, #32]
	ldr	x2, [sp, #16]
	mov	x0, x20
	bl	_wlc_phy_chanspec_radio2057_setup
	ldr	w8, [x20, #8]
	cmp	w8, #5
	add	x8, sp, #32
	add	x9, sp, #16
	csel	x8, x9, x8, eq
	ldr	x2, [x8]
	b	LBB0_17
LBB0_15:
Lloh14:
	adrp	x8, _RADIO_2055_MASTER_CNTRL1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RADIO_2055_MASTER_CNTRL1@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	mov	w8, #32
	mov	w9, #80
	csel	w3, w9, w8, eq
	mov	x0, x20
	mov	x1, x21
	mov	w2, #112
	bl	_mod_radio_reg
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_wlc_phy_chanspec_radio2055_setup
	ldr	x2, [sp, #8]
	b	LBB0_17
LBB0_16:
Lloh17:
	adrp	x8, _RADIO_2056_SYN_COM_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RADIO_2056_SYN_COM_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _RADIO_2056_SYN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RADIO_2056_SYN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cset	w8, ne
	lsl	w3, w8, #2
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_mod_radio_reg
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_wlc_phy_chanspec_radio2056_setup
	ldr	x2, [sp, #24]
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_wlc_phy_chanspec_nphy_setup
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BPHY_BAND_SEL_UP20,4,2         ; @BPHY_BAND_SEL_UP20
	.comm	_PRIM_SEL_UP20,4,2              ; @PRIM_SEL_UP20
	.comm	_RADIO_2057_TIA_CONFIG_CORE0,4,2 ; @RADIO_2057_TIA_CONFIG_CORE0
	.comm	_RADIO_2057_TIA_CONFIG_CORE1,4,2 ; @RADIO_2057_TIA_CONFIG_CORE1
	.comm	_RADIO_2056_SYN_COM_CTRL,4,2    ; @RADIO_2056_SYN_COM_CTRL
	.comm	_RADIO_2056_SYN,4,2             ; @RADIO_2056_SYN
	.comm	_RADIO_2055_MASTER_CNTRL1,4,2   ; @RADIO_2055_MASTER_CNTRL1
.subsections_via_symbols
