	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_spectral_scan ## -- Begin function ath10k_wmi_event_spectral_scan
	.p2align	4, 0x90
_ath10k_wmi_event_spectral_scan:        ## @ath10k_wmi_event_spectral_scan
	.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	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.1:
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%ebx, %edx
	addl	$8, %edx
	cmpl	%esi, %edx
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %r12
	leaq	8(%r12), %r15
	cmpq	%rsi, %r15
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movl	4(%r14,%r12,4), %edi
	movq	%rsi, %r13
	callq	___le16_to_cpu
	movl	%eax, %ebx
	movslq	%eax, %rcx
	leaq	(%r15,%rcx), %rax
	cmpq	%r13, %rax
	ja	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rsi
	cmpl	$128, (%r14,%r12,4)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %ebx
	jbe	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	shlq	$2, %r15
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	addq	8(%rsi), %r15
	addq	$-4, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_ath10k_spectral_process_fft
	movq	%r13, %rsi
	testl	%eax, %eax
	jns	LBB0_12
## %bb.14:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_dbg                     ## TAILCALL
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse phyerr tlv header at byte %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to parse phyerr tlv payload at byte %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to parse fft report at byte %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
L_.str.3:                               ## @.str.3
	.asciz	"failed to process fft report: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_spectral_scan ; -- Begin function ath10k_wmi_event_spectral_scan
	.p2align	2
_ath10k_wmi_event_spectral_scan:        ; @ath10k_wmi_event_spectral_scan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w23, [x1]
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, w24
	add	w8, w8, #8
	cmp	w8, w23
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x22, w8
	add	x25, x22, #8
	cmp	x25, x23
	b.hi	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	add	x26, x8, x22, lsl #2
	ldr	w0, [x26, #4]
	bl	___le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	add	x8, x25, x24
	cmp	x8, x23
	b.hi	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, #3
	b.ls	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	add	x2, x8, x25, lsl #2
	sub	x3, x24, #4
	mov	x0, x19
	mov	x1, x21
	mov	x4, x20
	bl	_ath10k_spectral_process_fft
	tbz	w0, #31, LBB0_2
; %bb.8:
	mov	x3, x0
Lloh0:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.3@PAGE
Lloh4:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath10k_dbg
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ath10k_warn
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse phyerr tlv header at byte %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to parse phyerr tlv payload at byte %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to parse fft report at byte %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
l_.str.3:                               ; @.str.3
	.asciz	"failed to process fft report: %d\n"

.subsections_via_symbols
