	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_phyerr        ## -- Begin function ath10k_wmi_event_phyerr
	.p2align	4, 0x90
_ath10k_wmi_event_phyerr:               ## @ath10k_wmi_event_phyerr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_phy_errors@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATH10K_DFS_STAT_INC
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ath10k_wmi_pull_phyerr_hdr
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_2:
	movl	-96(%rbp), %ebx
	movl	-92(%rbp), %r13d
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_ath10k_dbg
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.3:
	xorl	%r12d, %r12d
	movq	-80(%rbp), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ath10k_wmi_event_dfs
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ath10k_wmi_event_spectral_scan
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	subl	%r14d, %r13d
	movslq	-56(%rbp), %rax
	addq	%rax, %rbx
	addq	%r14, %rbx
	incl	%r12d
	cmpl	%r12d, -60(%rbp)                ## 4-byte Folded Reload
	je	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	leaq	-56(%rbp), %rcx
	callq	_ath10k_wmi_pull_phyerr
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	subl	-56(%rbp), %r13d
	movslq	-52(%rbp), %r14
	cmpl	%r14d, %r13d
	jl	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %eax
	je	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_ath10k_wmi_event_dfs
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movq	%r15, %rdi
	movl	%r12d, %edx
LBB0_16:
	callq	_ath10k_warn
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_errors,4,2                 ## @phy_errors
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse phyerr event hdr: %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
L_.str.1:                               ## @.str.1
	.asciz	"wmi event phyerr count %d tsf64 0x%llX\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to parse phyerr event (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"single event (%d) wrong buf len\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_event_phyerr        ; -- Begin function ath10k_wmi_event_phyerr
	.p2align	2
_ath10k_wmi_event_phyerr:               ; @ath10k_wmi_event_phyerr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	str	wzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _phy_errors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_errors@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ATH10K_DFS_STAT_INC
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_wmi_pull_phyerr_hdr
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_16
LBB0_2:
	ldp	w20, w22, [sp, #24]
Lloh5:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_dbg
	cmp	w20, #1
	b.lt	LBB0_17
; %bb.3:
	mov	w21, #0
	ldr	x23, [sp, #40]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_wmi_event_dfs
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_wmi_event_spectral_scan
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x8, [sp, #8]
	add	x8, x23, x8
	add	x23, x8, x24
	add	w21, w21, #1
	cmp	w20, w21
	b.eq	LBB0_17
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_ath10k_wmi_pull_phyerr
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w8, w24, [sp, #8]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	sub	w9, w22, w8
	cmp	w9, w24
	b.lt	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #16]
	sub	w22, w9, w24
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #130
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_wmi_event_dfs
	b	LBB0_6
LBB0_13:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x0, x19
	mov	x2, x21
LBB0_16:
	bl	_ath10k_warn
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_errors,4,2                 ; @phy_errors
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse phyerr event hdr: %d\n"

	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
l_.str.1:                               ; @.str.1
	.asciz	"wmi event phyerr count %d tsf64 0x%llX\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to parse phyerr event (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"single event (%d) wrong buf len\n"

.subsections_via_symbols
