	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_cmn_process_ht20_fft
_ath_cmn_process_ht20_fft:              ## @ath_cmn_process_ht20_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	(%rsi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	pushq	$76
	popq	%rdi
	callq	___cpu_to_be16
	movq	%r12, %rdi
	callq	___cpu_to_be16
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_fix_rssi_inv_only
	movq	_SPECTRAL_HT20_NUM_BINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	4(%r14,%rbx,8), %edi
	callq	_spectral_max_magnitude
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	___cpu_to_be16
	movl	4(%r14,%rbx,8), %edi
	callq	_spectral_max_index_ht20
	movq	%rax, %r13
	movl	4(%r14,%rbx,8), %edi
	callq	_spectral_bitmap_weight
	movb	(%r14,%rbx,8), %r15b
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_be64
	movq	_SPECTRAL_HT20_NUM_BINS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	_SPECTRAL_SCAN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	andb	$15, %r15b
	movl	%r15d, %ecx
	shrq	%cl, %r12
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTRAL_HT20_NUM_BINS,4,2     ## @SPECTRAL_HT20_NUM_BINS
	.comm	_ATH_FFT_SAMPLE_HT20,4,2        ## @ATH_FFT_SAMPLE_HT20
	.comm	_SPECTRAL_SCAN,4,2              ## @SPECTRAL_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FFT HT20 frame: max mag 0x%X,max_mag_idx %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"Magnitude mismatch !\n"

	.no_dead_strip	_ath_cmn_process_ht20_fft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_cmn_process_ht20_fft
_ath_cmn_process_ht20_fft:              ; @ath_cmn_process_ht20_fft
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
	ldr	x0, [x1]
	bl	_ath9k_hw_common
	mov	x19, x0
	mov	w0, #76
	bl	___cpu_to_be16
	mov	x0, x20
	bl	___cpu_to_be16
	ldr	x8, [x23]
	ldr	w0, [x8]
	bl	_fix_rssi_inv_only
Lloh0:
	adrp	x24, _SPECTRAL_HT20_NUM_BINS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SPECTRAL_HT20_NUM_BINS@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x25, x22, x8, lsl #3
	ldr	w0, [x25, #4]
	bl	_spectral_max_magnitude
	mov	x20, x0
	bl	___cpu_to_be16
	ldr	w0, [x25, #4]
	bl	_spectral_max_index_ht20
	mov	x23, x0
	ldr	w0, [x25, #4]
	bl	_spectral_bitmap_weight
	ldr	w8, [x25]
	and	x25, x8, #0xf
	mov	x0, x21
	bl	___cpu_to_be64
	ldr	w2, [x24]
	mov	x1, x22
	bl	_memcpy
Lloh2:
	adrp	x21, _SPECTRAL_SCAN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SPECTRAL_SCAN@GOTPAGEOFF]
	ldr	w1, [x21]
	lsr	x8, x20, x25
	stp	x8, x23, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	ldr	w1, [x21]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	brk	#0x1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTRAL_HT20_NUM_BINS,4,2     ; @SPECTRAL_HT20_NUM_BINS
	.comm	_ATH_FFT_SAMPLE_HT20,4,2        ; @ATH_FFT_SAMPLE_HT20
	.comm	_SPECTRAL_SCAN,4,2              ; @SPECTRAL_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FFT HT20 frame: max mag 0x%X,max_mag_idx %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"Magnitude mismatch !\n"

	.no_dead_strip	_ath_cmn_process_ht20_fft
.subsections_via_symbols
