	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_lcnphy_start_tx_tone       ## -- Begin function wlc_lcnphy_start_tx_tone
	.p2align	4, 0x90
_wlc_lcnphy_start_tx_tone:              ## @wlc_lcnphy_start_tx_tone
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r15
	movl	%esi, (%rdi)
	movl	$1, %esi
	callq	_wlc_lcnphy_deaf_mode
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$2370, %esi                     ## imm = 0x942
	movl	$2, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$2363, %esi                     ## imm = 0x93B
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$2364, %esi                     ## imm = 0x93C
	xorl	%edx, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wlc_lcnphy_txrx_spur_avoidance_mode
LBB0_2:
	movl	%r13d, %edi
	movq	%rbx, -320(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movl	%r14d, %esi
	negl	%esi
	cmovsl	%r14d, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addl	$40000, %ecx                    ## imm = 0x9C40
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
	imull	%esi, %eax
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.6:
	cmpl	%ecx, %esi
	ja	LBB0_11
## %bb.7:
	movl	%r12d, -308(%rbp)               ## 4-byte Spill
	shll	$2, %r14d
	leal	(%r14,%r14,8), %eax
	cltq
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$40, %rbx
	addl	%eax, %ebx
	jmp	LBB0_8
LBB0_3:
	movl	%r12d, -308(%rbp)               ## 4-byte Spill
	movl	$2, %r13d
	xorl	%ebx, %ebx
LBB0_8:
	movl	%r13d, %r13d
	xorl	%r12d, %r12d
	movl	%edi, -312(%rbp)                ## 4-byte Spill
	movq	%r13, -336(%rbp)                ## 8-byte Spill
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_cordic_calc_iq
	movq	%rax, %r14
	shrq	$32, %r14
	addl	%ebx, %r15d
	movl	-312(%rbp), %r13d               ## 4-byte Reload
	imull	%r13d, %eax
	movl	%eax, %edi
	callq	_CORDIC_FLOAT
	movl	%eax, %ebx
	imull	%r13d, %r14d
	movl	%r14d, %edi
	callq	_CORDIC_FLOAT
	andl	$1023, %eax                     ## imm = 0x3FF
	shll	$10, %ebx
	andl	$1047552, %ebx                  ## imm = 0xFFC00
	orl	%eax, %ebx
	movl	%ebx, -304(%rbp,%r12,4)
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movq	-336(%rbp), %r13                ## 8-byte Reload
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_9
## %bb.10:
	movl	-308(%rbp), %r12d               ## 4-byte Reload
LBB0_11:
	movq	-320(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1750, %esi                     ## imm = 0x6D6
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$8, %edx
	movl	$8, %ecx
	callq	_mod_phy_reg
	leaq	-304(%rbp), %rax
	movq	%rax, -368(%rbp)
	movl	%r13d, -360(%rbp)
	movq	_LCNPHY_TBL_ID_SAMPLEPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -344(%rbp)
	movq	$0, -352(%rbp)
	movl	$32, -356(%rbp)
	leaq	-368(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_write_table
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	callq	_wlc_lcnphy_run_samples
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LCNPHY_TBL_ID_SAMPLEPLAY,4,2   ## @LCNPHY_TBL_ID_SAMPLEPLAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_lcnphy_start_tx_tone       ; -- Begin function wlc_lcnphy_start_tx_tone
	.p2align	2
_wlc_lcnphy_start_tx_tone:              ; @wlc_lcnphy_start_tx_tone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x22, [x0, #8]
	str	w1, [x0]
	mov	w1, #1
	bl	_wlc_lcnphy_deaf_mode
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #2370
	mov	w2, #2
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #2363
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #2364
	mov	w2, #0
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #0
	bl	_wlc_lcnphy_txrx_spur_avoidance_mode
LBB0_2:
	cbz	w23, LBB0_7
; %bb.3:
	mov	w8, #0
	cmp	w23, #0
	cneg	w9, w23, mi
	mov	w10, #40000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, w10
	udiv	w22, w8, w9
	mul	w11, w22, w9
	cmp	w8, w11
	b.ne	LBB0_4
; %bb.5:
	cmp	w9, w8
	b.hi	LBB0_10
; %bb.6:
	add	w8, w23, w23, lsl #3
	lsl	w8, w8, #2
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #40
	add	w25, w8, w9
	b	LBB0_8
LBB0_7:
	mov	w25, #0
	mov	w22, #2
LBB0_8:
	mov	x26, #0
	mov	w23, #0
	add	x27, sp, #32
	mov	w22, w22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_cordic_calc_iq
	lsr	x28, x0, #32
	add	w23, w23, w25
	mul	w0, w0, w21
	bl	_CORDIC_FLOAT
	mov	x24, x0
	mul	w0, w28, w21
	bl	_CORDIC_FLOAT
	and	w8, w0, #0x3ff
	bfi	w8, w24, #10, #10
	str	w8, [x27, x26, lsl #2]
	add	x26, x26, #1
	cmp	x22, x26
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x20
	mov	w1, #1750
	mov	w2, #3
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1754
	mov	w2, #8
	mov	w3, #8
	bl	_mod_phy_reg
	add	x8, sp, #32
	str	x8, [sp]
Lloh3:
	adrp	x8, _LCNPHY_TBL_ID_SAMPLEPLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCNPHY_TBL_ID_SAMPLEPLAY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	w8, #32
	stp	w22, w8, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_wlc_lcnphy_write_table
	mov	x0, x20
	mov	x1, x22
	mov	w2, #65535
	mov	w3, #0
	mov	x4, x19
	bl	_wlc_lcnphy_run_samples
	ldur	x8, [x29, #-96]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LCNPHY_TBL_ID_SAMPLEPLAY,4,2   ; @LCNPHY_TBL_ID_SAMPLEPLAY
.subsections_via_symbols
