	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_start_tx_tone
_lpphy_start_tx_tone:                   ## @lpphy_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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movl	%esi, (%rax)
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%ebx, -312(%rbp)                ## 4-byte Spill
	movl	%r12d, %r14d
	negl	%r14d
	cmovsl	%r12d, %r14d
	movl	$20000, %ebx                    ## imm = 0x4E20
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$64, %eax
	setae	%dil
	callq	_B43_WARN_ON
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %eax
	imull	%r14d, %eax
	addl	$20000, %ebx                    ## imm = 0x4E20
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.5:
	testl	%r13d, %r13d
	movl	-312(%rbp), %ebx                ## 4-byte Reload
	jg	LBB0_6
	jmp	LBB0_9
LBB0_1:
	movl	$2, %r13d
LBB0_6:
	movq	%r15, -320(%rbp)                ## 8-byte Spill
	shll	$2, %r12d
	leal	(%r12,%r12,8), %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$35, %rax
	addl	%ecx, %eax
	shll	$16, %eax
	cltq
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	movq	%rcx, -328(%rbp)                ## 8-byte Spill
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -312(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	_CORDIC_FIXED
	movl	%eax, %edi
	callq	_cordic_calc_iq
	movq	%rax, %r14
	shrq	$32, %r14
	addl	-328(%rbp), %r12d               ## 4-byte Folded Reload
	imull	%ebx, %eax
	movzbl	%al, %edi
	callq	_CORDIC_FLOAT
	movl	%ebx, %r13d
	movl	%eax, %ebx
	shll	$8, %ebx
	imull	%r13d, %r14d
	movzbl	%r14b, %edi
	callq	_CORDIC_FLOAT
	orl	%ebx, %eax
	movl	%r13d, %ebx
	movq	-312(%rbp), %r13                ## 8-byte Reload
	movl	%eax, -304(%rbp,%r15,4)
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_7
## %bb.8:
	movq	-320(%rbp), %r15                ## 8-byte Reload
LBB0_9:
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_B43_LPTAB16
	leaq	-304(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_b43_lptab_write_bulk
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	callq	_lpphy_run_samples
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lpphy_start_tx_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_start_tx_tone
_lpphy_start_tx_tone:                   ; @lpphy_start_tx_tone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0]
	str	w1, [x8]
	cbz	w1, LBB0_5
; %bb.1:
	cmp	w23, #0
	cneg	w22, w23, mi
	mov	w24, #20000
	mov	w25, #20000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w20, w25, w22
	cmp	w20, #63
	cset	w0, hi
	bl	_B43_WARN_ON
	cbnz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w8, w20, w22
	add	w25, w25, w24
	cmp	w25, w8
	b.ne	LBB0_2
; %bb.4:
	cmp	w20, #1
	b.ge	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w20, #2
LBB0_6:
	mov	x24, #0
	mov	w22, #0
	add	w8, w23, w23, lsl #3
	lsl	w8, w8, #2
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #35
	add	w8, w8, w9
	lsl	w8, w8, #16
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w25, w8, w9
	mov	w20, w20
	add	x26, sp, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_CORDIC_FIXED
	bl	_cordic_calc_iq
	lsr	x27, x0, #32
	add	w22, w22, w25
	mul	w8, w0, w21
	and	w0, w8, #0xff
	bl	_CORDIC_FLOAT
	mov	x23, x0
	mul	w8, w27, w21
	and	w0, w8, #0xff
	bl	_CORDIC_FLOAT
	orr	w8, w0, w23, lsl #8
	str	w8, [x26, x24, lsl #2]
	add	x24, x24, #1
	cmp	x20, x24
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #5
	mov	w1, #0
	bl	_B43_LPTAB16
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_b43_lptab_write_bulk
	mov	x0, x19
	mov	x1, x20
	mov	w2, #65535
	mov	w3, #0
	bl	_lpphy_run_samples
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lpphy_start_tx_tone
.subsections_via_symbols
