	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_spectral_process_fft    ## -- Begin function ath10k_spectral_process_fft
	.p2align	4, 0x90
_ath10k_spectral_process_fft:           ## @ath10k_spectral_process_fft
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rcx, %rsi
	callq	_ath10k_spectral_fix_bin_size
	cmpq	$64, %rax
	jb	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_SPECTRAL_ATH10K_MAX_NUM_BINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	ja	LBB0_5
## %bb.2:
	movl	4(%r15), %edi
	callq	___le32_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	___le32_to_cpu
	movl	%eax, %r14d
	leal	116(%rbx), %edi
	callq	___cpu_to_be16
	cmpl	$80, (%r13)
	jne	LBB0_4
## %bb.3:
	cmpq	$64, %rbx
	jne	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SEARCH_FFT_REPORT_REG1_RELPWR_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	_SEARCH_FFT_REPORT_REG1_AVGPWR_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	_SEARCH_FFT_REPORT_REG1_PEAK_MAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	callq	___cpu_to_be16
	movq	_SEARCH_FFT_REPORT_REG0_PEAK_SIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_MS
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SEARCH_FFT_REPORT_REG0_BASE_PWR_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	___cpu_to_be16
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	___cpu_to_be16
	movl	4(%r13), %edi
	movl	8(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	___cpu_to_be16
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_be16
	movq	_SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movq	16(%r13), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	___cpu_to_be16
	movq	(%r12), %rax
	leaq	(%r15,%rax,8), %r14
	addq	$64, %r14
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_be64
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_get_max_exp
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTRAL_ATH10K_MAX_NUM_BINS,4,2 ## @SPECTRAL_ATH10K_MAX_NUM_BINS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH_FFT_SAMPLE_ATH10K,4,2      ## @ATH_FFT_SAMPLE_ATH10K
	.comm	_SEARCH_FFT_REPORT_REG1_RELPWR_DB,4,2 ## @SEARCH_FFT_REPORT_REG1_RELPWR_DB
	.comm	_SEARCH_FFT_REPORT_REG1_AVGPWR_DB,4,2 ## @SEARCH_FFT_REPORT_REG1_AVGPWR_DB
	.comm	_SEARCH_FFT_REPORT_REG1_PEAK_MAG,4,2 ## @SEARCH_FFT_REPORT_REG1_PEAK_MAG
	.comm	_SEARCH_FFT_REPORT_REG0_PEAK_SIDX,4,2 ## @SEARCH_FFT_REPORT_REG0_PEAK_SIDX
	.comm	_SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB,4,2 ## @SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB
	.comm	_SEARCH_FFT_REPORT_REG0_BASE_PWR_DB,4,2 ## @SEARCH_FFT_REPORT_REG0_BASE_PWR_DB
	.comm	_SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX,4,2 ## @SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_spectral_process_fft    ; -- Begin function ath10k_spectral_process_fft
	.p2align	2
_ath10k_spectral_process_fft:           ; @ath10k_spectral_process_fft
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x20, x4
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	x1, x3
	bl	_ath10k_spectral_fix_bin_size
	cmp	x0, #64
	b.lo	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _SPECTRAL_ATH10K_MAX_NUM_BINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPECTRAL_ATH10K_MAX_NUM_BINS@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	x0, x8
	b.hi	LBB0_4
; %bb.2:
	ldr	w0, [x21, #4]
	bl	___le32_to_cpu
	mov	x24, x0
	ldr	w0, [x21]
	bl	___le32_to_cpu
	mov	x25, x0
	add	w0, w19, #116
	bl	___cpu_to_be16
	ldr	w8, [x23]
	cmp	w8, #80
	b.ne	LBB0_5
; %bb.3:
	cmp	x19, #64
	b.ne	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _SEARCH_FFT_REPORT_REG1_RELPWR_DB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG1_RELPWR_DB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_MS
Lloh9:
	adrp	x8, _SEARCH_FFT_REPORT_REG1_AVGPWR_DB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG1_AVGPWR_DB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_MS
Lloh12:
	adrp	x8, _SEARCH_FFT_REPORT_REG1_PEAK_MAG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG1_PEAK_MAG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_MS
	mov	x25, x0
	bl	___cpu_to_be16
Lloh15:
	adrp	x8, _SEARCH_FFT_REPORT_REG0_PEAK_SIDX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG0_PEAK_SIDX@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_MS
	mov	x26, x0
Lloh18:
	adrp	x8, _SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_MS
	mov	x27, x0
Lloh21:
	adrp	x8, _SEARCH_FFT_REPORT_REG0_BASE_PWR_DB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG0_BASE_PWR_DB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_MS
	mov	x28, x0
	mov	x0, x27
	bl	___cpu_to_be16
	mov	x0, x28
	bl	___cpu_to_be16
	ldp	w0, w27, [x23, #4]
	bl	___cpu_to_be16
	mov	x0, x27
	bl	___cpu_to_be16
Lloh24:
	adrp	x8, _SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_MS
	ldr	x8, [x23, #16]
	ldr	w0, [x8, x0, lsl #2]
	bl	___cpu_to_be16
	ldr	x8, [x22]
	add	x8, x21, x8, lsl #3
	add	x21, x8, #64
	mov	x0, x20
	bl	___cpu_to_be64
	mov	x0, x26
	mov	x1, x25
	mov	x2, x19
	mov	x3, x21
	bl	_get_max_exp
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTRAL_ATH10K_MAX_NUM_BINS,4,2 ; @SPECTRAL_ATH10K_MAX_NUM_BINS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH_FFT_SAMPLE_ATH10K,4,2      ; @ATH_FFT_SAMPLE_ATH10K
	.comm	_SEARCH_FFT_REPORT_REG1_RELPWR_DB,4,2 ; @SEARCH_FFT_REPORT_REG1_RELPWR_DB
	.comm	_SEARCH_FFT_REPORT_REG1_AVGPWR_DB,4,2 ; @SEARCH_FFT_REPORT_REG1_AVGPWR_DB
	.comm	_SEARCH_FFT_REPORT_REG1_PEAK_MAG,4,2 ; @SEARCH_FFT_REPORT_REG1_PEAK_MAG
	.comm	_SEARCH_FFT_REPORT_REG0_PEAK_SIDX,4,2 ; @SEARCH_FFT_REPORT_REG0_PEAK_SIDX
	.comm	_SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB,4,2 ; @SEARCH_FFT_REPORT_REG0_TOTAL_GAIN_DB
	.comm	_SEARCH_FFT_REPORT_REG0_BASE_PWR_DB,4,2 ; @SEARCH_FFT_REPORT_REG0_BASE_PWR_DB
	.comm	_SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX,4,2 ; @SEARCH_FFT_REPORT_REG0_FFT_CHN_IDX
.subsections_via_symbols
