	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_chanspec_set_lcnphy    ## -- Begin function wlc_phy_chanspec_set_lcnphy
	.p2align	4, 0x90
_wlc_phy_chanspec_set_lcnphy:           ## @wlc_phy_chanspec_set_lcnphy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_CHSPEC_CHANNEL
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wlc_phy_chanspec_radio_set
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_chanspec_tweaks
	movq	%r12, %rdi
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$68, %edx
	callq	_or_phy_reg
	movq	%r12, %rdi
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$128, %edx
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wlc_lcnphy_radio_2064_channel_tune_4313
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	%r12, %rdi
	callq	_wlc_lcnphy_toggle_afe_pwdn
	movq	_lcnphy_sfo_cfg@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%r14d, %rbx
	movl	-8(%rax,%rbx,8), %edx
	movq	%r12, %rdi
	movl	$1623, %esi                     ## imm = 0x657
	callq	_write_phy_reg
	movq	(%r15), %rax
	movl	-4(%rax,%rbx,8), %edx
	movq	%r12, %rdi
	movl	$1624, %esi                     ## imm = 0x658
	callq	_write_phy_reg
	movl	8(%r12), %edi
	callq	_CHSPEC_CHANNEL
	xorl	%ebx, %ebx
	cmpl	$14, %eax
	sete	%bl
	movl	%ebx, %ecx
	shll	$8, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	orl	$2, %ebx
	movq	%r12, %rdi
	movl	$1096, %esi                     ## imm = 0x448
	movl	$768, %edx                      ## imm = 0x300
	callq	_mod_phy_reg
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_wlc_lcnphy_load_tx_iir_filter
	movq	(%r12), %rax
	movq	_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	sete	%dl
	leal	(%rdx,%rdx,2), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wlc_lcnphy_load_tx_iir_filter
	movq	%r12, %rdi
	movl	$1259, %esi                     ## imm = 0x4EB
	movl	$56, %edx
	movl	$8, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	callq	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_lcnphy_tssi_setup          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lcnphy_sfo_cfg,8,3             ## @lcnphy_sfo_cfg
	.comm	_BFL_FEM,4,2                    ## @BFL_FEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_chanspec_set_lcnphy    ; -- Begin function wlc_phy_chanspec_set_lcnphy
	.p2align	2
_wlc_phy_chanspec_set_lcnphy:           ; @wlc_phy_chanspec_set_lcnphy
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_CHSPEC_CHANNEL
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_wlc_phy_chanspec_radio_set
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_wlc_lcnphy_set_chanspec_tweaks
	mov	x0, x19
	mov	w1, #1098
	mov	w2, #68
	bl	_or_phy_reg
	mov	x0, x19
	mov	w1, #1098
	mov	w2, #128
	bl	_write_phy_reg
	mov	x0, x19
	mov	x1, x21
	bl	_wlc_lcnphy_radio_2064_channel_tune_4313
	mov	w0, #1000
	bl	_udelay
	mov	x0, x19
	bl	_wlc_lcnphy_toggle_afe_pwdn
Lloh0:
	adrp	x20, _lcnphy_sfo_cfg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lcnphy_sfo_cfg@GOTPAGEOFF]
	ldr	x8, [x20]
	sbfiz	x9, x21, #3, #32
	sub	x21, x9, #8
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w1, #1623
	bl	_write_phy_reg
	ldr	x8, [x20]
	add	x8, x8, x21
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #1624
	bl	_write_phy_reg
	ldr	w0, [x19, #8]
	bl	_CHSPEC_CHANNEL
	mov	w8, #256
	mov	w9, #512
	cmp	w0, #14
	csel	w3, w9, w8, eq
	mov	w8, #2
	cinc	w20, w8, eq
	mov	x0, x19
	mov	w1, #1096
	mov	w2, #768
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_wlc_lcnphy_load_tx_iir_filter
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _BFL_FEM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BFL_FEM@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #3
	csel	w2, w8, wzr, eq
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_lcnphy_load_tx_iir_filter
	mov	x0, x19
	mov	w1, #1259
	mov	w2, #56
	mov	w3, #8
	bl	_mod_phy_reg
	mov	x0, x19
	bl	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_wlc_lcnphy_tssi_setup
LBB0_2:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_lcnphy_sfo_cfg,8,3             ; @lcnphy_sfo_cfg
	.comm	_BFL_FEM,4,2                    ; @BFL_FEM
.subsections_via_symbols
