	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_cmn_process_ht20_40_fft
_ath_cmn_process_ht20_40_fft:           ## @ath_cmn_process_ht20_40_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
	movl	%r9d, %r15d
	movl	%r8d, %r13d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rdi), %esi
	movq	(%rax), %rax
	movl	12(%rax), %edx
	callq	_ath9k_hw_getchan_noise
LBB0_2:
	pushq	$108
	popq	%rdi
	callq	___cpu_to_be16
	movl	%r13d, %edi
	callq	___cpu_to_be16
	movq	_NL80211_CHAN_HT40PLUS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_fix_rssi_inv_only
	addq	$8, %r12
	jmp	LBB0_5
LBB0_4:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_fix_rssi_inv_only
LBB0_5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_fix_rssi_inv_only
	movq	_SPECTRAL_HT20_40_NUM_BINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	8(%r14,%rbx,4), %edi
	callq	_spectral_max_magnitude
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	___cpu_to_be16
	movl	4(%r14,%rbx,4), %edi
	callq	_spectral_max_magnitude
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	___cpu_to_be16
	movl	8(%r14,%rbx,4), %edi
	callq	_spectral_max_index_ht40
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r14,%rbx,4), %edi
	callq	_spectral_max_index_ht40
	movl	%eax, %r15d
	movl	8(%r14,%rbx,4), %edi
	callq	_spectral_bitmap_weight
	movl	4(%r14,%rbx,4), %edi
	callq	_spectral_bitmap_weight
	movb	(%r14,%rbx,4), %bl
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	___cpu_to_be64
	movq	_SPECTRAL_HT20_40_NUM_BINS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	_SPECTRAL_SCAN@GOTPCREL(%rip), %rax
	andb	$15, %bl
	movl	%ebx, %ecx
	sarl	%cl, %r12d
	movl	(%rax), %esi
	sarl	%cl, %r13d
	movl	%r15d, (%rsp)
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_ath_dbg
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTRAL_HT20_40_NUM_BINS,4,2  ## @SPECTRAL_HT20_40_NUM_BINS
	.comm	_ATH_DEFAULT_NOISE_FLOOR,8,3    ## @ATH_DEFAULT_NOISE_FLOOR
	.comm	_ATH_FFT_SAMPLE_HT20_40,4,2     ## @ATH_FFT_SAMPLE_HT20_40
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ## @NL80211_CHAN_HT40PLUS
	.comm	_SPECTRAL_SCAN,4,2              ## @SPECTRAL_SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FFT HT20/40 frame: lower mag 0x%X,lower_mag_idx %i, upper mag 0x%X,upper_mag_idx %i\n"

	.no_dead_strip	_ath_cmn_process_ht20_40_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_40_fft
_ath_cmn_process_ht20_40_fft:           ; @ath_cmn_process_ht20_40_fft
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x25, x1
	mov	x22, x0
	ldr	x0, [x1]
	bl	_ath9k_hw_common
	mov	x19, x0
	ldr	x0, [x25]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x0, #8]
	ldr	x8, [x8]
	ldr	w2, [x8, #12]
	bl	_ath9k_hw_getchan_noise
LBB0_2:
	mov	w0, #108
	bl	___cpu_to_be16
	mov	x0, x24
	bl	___cpu_to_be16
Lloh0:
	adrp	x8, _NL80211_CHAN_HT40PLUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_CHAN_HT40PLUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x22], #8
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22, #8]
LBB0_5:
	ldr	w0, [x8]
	bl	_fix_rssi_inv_only
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_fix_rssi_inv_only
Lloh3:
	adrp	x26, _SPECTRAL_HT20_40_NUM_BINS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SPECTRAL_HT20_40_NUM_BINS@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x27, x20, x8, lsl #2
	ldr	w0, [x27, #8]
	bl	_spectral_max_magnitude
	mov	x22, x0
	bl	___cpu_to_be16
	ldr	w0, [x27, #4]
	bl	_spectral_max_magnitude
	mov	x23, x0
	bl	___cpu_to_be16
	ldr	w0, [x27, #8]
	bl	_spectral_max_index_ht40
	mov	x24, x0
	ldr	w0, [x27, #4]
	bl	_spectral_max_index_ht40
	mov	x25, x0
	ldr	w0, [x27, #8]
	bl	_spectral_bitmap_weight
	ldr	w0, [x27, #4]
	bl	_spectral_bitmap_weight
	ldr	w27, [x27]
	mov	x0, x21
	bl	___cpu_to_be64
	ldr	w2, [x26]
	mov	x1, x20
	bl	_memcpy
Lloh5:
	adrp	x8, _SPECTRAL_SCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPECTRAL_SCAN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	and	x8, x27, #0xf
	asr	w9, w22, w8
	asr	w8, w23, w8
	stp	x8, x25, [sp, #16]
	stp	x9, x24, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTRAL_HT20_40_NUM_BINS,4,2  ; @SPECTRAL_HT20_40_NUM_BINS
	.comm	_ATH_DEFAULT_NOISE_FLOOR,8,3    ; @ATH_DEFAULT_NOISE_FLOOR
	.comm	_ATH_FFT_SAMPLE_HT20_40,4,2     ; @ATH_FFT_SAMPLE_HT20_40
	.comm	_NL80211_CHAN_HT40PLUS,4,2      ; @NL80211_CHAN_HT40PLUS
	.comm	_SPECTRAL_SCAN,4,2              ; @SPECTRAL_SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FFT HT20/40 frame: lower mag 0x%X,lower_mag_idx %i, upper mag 0x%X,upper_mag_idx %i\n"

	.no_dead_strip	_ath_cmn_process_ht20_40_fft
.subsections_via_symbols
