	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_init_lcnphy            ## -- Begin function wlc_phy_init_lcnphy
	.p2align	4, 0x90
_wlc_phy_init_lcnphy:                   ## @wlc_phy_init_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	$0, 16(%r14)
	movl	4(%r14), %eax
	movl	%eax, 8(%r14)
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$128, %edx
	callq	_or_phy_reg
	movq	%rbx, %rdi
	movl	$1098, %esi                     ## imm = 0x44A
	movl	$127, %edx
	callq	_and_phy_reg
	movq	_AFE_CLK_INIT_MODE_TXRX2X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_afe_clk_init
	movq	%rbx, %rdi
	movl	$1546, %esi                     ## imm = 0x60A
	movl	$160, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$1130, %esi                     ## imm = 0x46A
	movl	$25, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_baseband_init
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_radio_init
	movl	16(%rbx), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_tx_pwr_ctrl_init
LBB0_2:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_wlc_phy_chanspec_set
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movl	$-16, %edx
	movl	$9, %ecx
	callq	_bcma_chipco_regctl_maskset
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$63823325, %ecx                 ## imm = 0x3CDDDDD
	callq	_bcma_chipco_chipctl_maskset
	movq	(%rbx), %rax
	movq	_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_tempsense_based_pwr_ctrl_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FIXED_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_set_tx_pwr_by_index
LBB0_5:
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_agc_temp_init
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_temp_adj
	movq	%rbx, %rdi
	movl	$1096, %esi                     ## imm = 0x448
	movl	$16384, %edx                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_mod_phy_reg
	movl	$100, %edi
	callq	_udelay
	movq	%rbx, %rdi
	movl	$1096, %esi                     ## imm = 0x448
	movl	$16384, %edx                    ## imm = 0x4000
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	_LCNPHY_TX_PWR_CTRL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	_LCNPHY_NOISE_SAMPLES_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_PHY_PERICAL_PHYINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wlc_lcnphy_calib_modes         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AFE_CLK_INIT_MODE_TXRX2X,4,2   ## @AFE_CLK_INIT_MODE_TXRX2X
	.comm	_BFL_FEM,4,2                    ## @BFL_FEM
	.comm	_FIXED_TXPWR,4,2                ## @FIXED_TXPWR
	.comm	_LCNPHY_TX_PWR_CTRL_HW,4,2      ## @LCNPHY_TX_PWR_CTRL_HW
	.comm	_LCNPHY_NOISE_SAMPLES_DEFAULT,4,2 ## @LCNPHY_NOISE_SAMPLES_DEFAULT
	.comm	_PHY_PERICAL_PHYINIT,4,2        ## @PHY_PERICAL_PHYINIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_init_lcnphy            ; -- Begin function wlc_phy_init_lcnphy
	.p2align	2
_wlc_phy_init_lcnphy:                   ; @wlc_phy_init_lcnphy
	.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	x20, [x0, #24]
	str	xzr, [x20, #16]
	ldr	w8, [x20, #4]
	str	w8, [x20, #8]
	mov	w1, #1098
	mov	w2, #128
	bl	_or_phy_reg
	mov	x0, x19
	mov	w1, #1098
	mov	w2, #127
	bl	_and_phy_reg
Lloh0:
	adrp	x8, _AFE_CLK_INIT_MODE_TXRX2X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFE_CLK_INIT_MODE_TXRX2X@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_lcnphy_afe_clk_init
	mov	x0, x19
	mov	w1, #1546
	mov	w2, #160
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1130
	mov	w2, #25
	bl	_write_phy_reg
	mov	x0, x19
	bl	_wlc_lcnphy_baseband_init
	mov	x0, x19
	bl	_wlc_lcnphy_radio_init
	ldr	w0, [x19, #16]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_wlc_lcnphy_tx_pwr_ctrl_init
LBB0_2:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_chanspec_set
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #-16
	mov	w3, #9
	bl	_bcma_chipco_regctl_maskset
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #56797
	movk	w3, #973, lsl #16
	bl	_bcma_chipco_chipctl_maskset
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BFL_FEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFL_FEM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_wlc_lcnphy_tempsense_based_pwr_ctrl_enabled
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _FIXED_TXPWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIXED_TXPWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_pwr_by_index
LBB0_5:
	mov	x0, x19
	bl	_wlc_lcnphy_agc_temp_init
	mov	x0, x19
	bl	_wlc_lcnphy_temp_adj
	mov	x0, x19
	mov	w1, #1096
	mov	w2, #16384
	mov	w3, #16384
	bl	_mod_phy_reg
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #1096
	mov	w2, #16384
	mov	w3, #0
	bl	_mod_phy_reg
Lloh9:
	adrp	x8, _LCNPHY_TX_PWR_CTRL_HW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LCNPHY_TX_PWR_CTRL_HW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
Lloh12:
	adrp	x8, _LCNPHY_NOISE_SAMPLES_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LCNPHY_NOISE_SAMPLES_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh15:
	adrp	x8, _PHY_PERICAL_PHYINIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_PERICAL_PHYINIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_lcnphy_calib_modes
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AFE_CLK_INIT_MODE_TXRX2X,4,2   ; @AFE_CLK_INIT_MODE_TXRX2X
	.comm	_BFL_FEM,4,2                    ; @BFL_FEM
	.comm	_FIXED_TXPWR,4,2                ; @FIXED_TXPWR
	.comm	_LCNPHY_TX_PWR_CTRL_HW,4,2      ; @LCNPHY_TX_PWR_CTRL_HW
	.comm	_LCNPHY_NOISE_SAMPLES_DEFAULT,4,2 ; @LCNPHY_NOISE_SAMPLES_DEFAULT
	.comm	_PHY_PERICAL_PHYINIT,4,2        ; @PHY_PERICAL_PHYINIT
.subsections_via_symbols
