	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_dfs_process_phyerr       ## -- Begin function ath9k_dfs_process_phyerr
	.p2align	4, 0x90
_ath9k_dfs_process_phyerr:              ## @ath9k_dfs_process_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	movq	%rdi, %r15
	callq	_ath9k_hw_common
	movq	%rax, %rbx
	movq	_pulses_total@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_DFS_STAT_INC
	movq	(%r14), %rcx
	movq	_ATH9K_PHYERR_RADAR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.1:
	movq	_ATH9K_PHYERR_FALSE_RADAR_EXT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.2:
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_pulses_no_dfs@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movslq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.6:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	testb	$-128, %cl
	je	LBB0_8
## %bb.7:
	movl	$0, -56(%rbp)
LBB0_8:
	testb	$-128, %al
	je	LBB0_10
## %bb.9:
	movl	$0, -52(%rbp)
LBB0_10:
	movb	-1(%r12,%rbx), %al
	movb	%al, -48(%rbp)
	movb	-2(%r12,%rbx), %al
	movb	%al, -47(%rbp)
	movb	-3(%r12,%rbx), %al
	movb	%al, -46(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -72(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r13, %rdi
	callq	_ath9k_postprocess_radar_event
	testl	%eax, %eax
	je	LBB0_19
## %bb.11:
	movq	-88(%rbp), %r10
	movq	_MIN_CHIRP_PULSE_WIDTH@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %r10
	jle	LBB0_14
## %bb.12:
	movq	_MAX_CHIRP_PULSE_WIDTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r10
	jge	LBB0_14
## %bb.13:
	movsbl	-48(%rbp), %eax
	movq	_PRI_CH_RADAR_FOUND@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	(%rdx), %edx
	andl	%eax, %edx
	setne	%cl
	movq	_EXT_CH_RADAR_FOUND@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	andl	(%rdx), %eax
	setne	%r8b
	addl	$-3, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ath9k_check_chirping
	movq	-88(%rbp), %r10
LBB0_14:
	movl	%eax, -80(%rbp)
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	-48(%rbp), %ecx
	movl	-96(%rbp), %r8d
	movq	-72(%rbp), %r9
	movl	-64(%rbp), %r11d
	movq	%r9, %rbx
	subq	(%r13), %rbx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_ath_dbg
	addq	$32, %rsp
	movq	-72(%rbp), %rax
	movq	%rax, (%r13)
	movsbl	-48(%rbp), %eax
	movq	_PRI_CH_RADAR_FOUND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ath9k_dfs_process_radar_pulse
LBB0_16:
	movq	(%r15), %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movsbl	-48(%rbp), %eax
	movq	_EXT_CH_RADAR_FOUND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	(%r15), %rdi
	callq	_IS_CHAN_HT40PLUS
	testq	%rax, %rax
	movl	$-20, %eax
	movl	$20, %ecx
	cmovel	%eax, %ecx
	addl	%ecx, -96(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ath9k_dfs_process_radar_pulse
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_datalen_discards@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DFS_STAT_INC                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pulses_total,4,2               ## @pulses_total
	.comm	_ATH9K_PHYERR_RADAR,8,3         ## @ATH9K_PHYERR_RADAR
	.comm	_ATH9K_PHYERR_FALSE_RADAR_EXT,8,3 ## @ATH9K_PHYERR_FALSE_RADAR_EXT
	.comm	_DFS,4,2                        ## @DFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: rs_phyer=0x%x not a radar error\n"

	.comm	_pulses_no_dfs,4,2              ## @pulses_no_dfs
	.comm	_datalen_discards,4,2           ## @datalen_discards
	.comm	_MIN_CHIRP_PULSE_WIDTH,8,3      ## @MIN_CHIRP_PULSE_WIDTH
	.comm	_MAX_CHIRP_PULSE_WIDTH,8,3      ## @MAX_CHIRP_PULSE_WIDTH
	.comm	_PRI_CH_RADAR_FOUND,4,2         ## @PRI_CH_RADAR_FOUND
	.comm	_EXT_CH_RADAR_FOUND,4,2         ## @EXT_CH_RADAR_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"ath9k_dfs_process_phyerr: type=%d, freq=%d, ts=%llu, width=%d, rssi=%d, delta_ts=%llu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_dfs_process_phyerr       ; -- Begin function ath9k_dfs_process_phyerr
	.p2align	2
_ath9k_dfs_process_phyerr:              ; @ath9k_dfs_process_phyerr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_ath9k_hw_common
	mov	x21, x0
Lloh0:
	adrp	x8, _pulses_total@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pulses_total@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DFS_STAT_INC
	ldr	x3, [x24]
Lloh3:
	adrp	x8, _ATH9K_PHYERR_RADAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_PHYERR_RADAR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ATH9K_PHYERR_FALSE_RADAR_EXT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH9K_PHYERR_FALSE_RADAR_EXT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x3, x8
	ccmp	x3, x9, #4, ne
	b.ne	LBB0_16
; %bb.1:
	ldrsw	x25, [x24, #8]
	cbz	w25, LBB0_17
; %bb.2:
	ldp	x8, x9, [x24, #16]
	ldr	w10, [x8]
	str	w10, [sp, #80]
	ldr	w8, [x9]
	str	w8, [sp, #84]
	tbz	w10, #7, LBB0_4
; %bb.3:
	str	wzr, [sp, #80]
LBB0_4:
	tbz	w8, #7, LBB0_6
; %bb.5:
	str	wzr, [sp, #84]
LBB0_6:
	add	x8, x22, x25
	ldurb	w9, [x8, #-1]
	strb	w9, [sp, #88]
	ldurb	w9, [x8, #-2]
	strb	w9, [sp, #89]
	ldurb	w8, [x8, #-3]
	strb	w8, [sp, #90]
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x23, [sp, #64]
	add	x1, sp, #80
	add	x2, sp, #40
	mov	x0, x19
	bl	_ath9k_postprocess_radar_event
	cbz	w0, LBB0_15
; %bb.7:
	mov	w0, #0
	ldr	x8, [sp, #48]
Lloh9:
	adrp	x9, _MIN_CHIRP_PULSE_WIDTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIN_CHIRP_PULSE_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x24, _PRI_CH_RADAR_FOUND@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PRI_CH_RADAR_FOUND@GOTPAGEOFF]
Lloh14:
	adrp	x23, _EXT_CH_RADAR_FOUND@GOTPAGE
Lloh15:
	ldr	x23, [x23, _EXT_CH_RADAR_FOUND@GOTPAGEOFF]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.8:
Lloh16:
	adrp	x9, _MAX_CHIRP_PULSE_WIDTH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_CHIRP_PULSE_WIDTH@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
	ldrsb	w8, [sp, #88]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w3, ne
	ldr	w9, [x23]
	tst	w9, w8
	cset	w4, ne
	sub	w2, w25, #3
	mov	x0, x19
	mov	x1, x22
	bl	_ath9k_check_chirping
	ldr	x8, [sp, #48]
LBB0_10:
	str	w0, [sp, #56]
Lloh19:
	adrp	x9, _DFS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DFS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
	ldrsb	w3, [sp, #88]
	ldr	x9, [sp, #64]
	ldr	x10, [x19]
	sub	x10, x9, x10
	ldr	w11, [sp, #40]
	ldr	w12, [sp, #72]
	stp	x12, x10, [sp, #24]
	stp	x9, x8, [sp, #8]
	str	x11, [sp]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ath_dbg
	ldr	x8, [sp, #64]
	str	x8, [x19]
	ldrsb	w8, [sp, #88]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	add	x1, sp, #40
	mov	x0, x19
	bl	_ath9k_dfs_process_radar_pulse
LBB0_12:
	ldr	x0, [x20]
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_15
; %bb.13:
	ldrsb	w8, [sp, #88]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	x0, [x20]
	bl	_IS_CHAN_HT40PLUS
	cmp	x0, #0
	mov	w8, #-20
	cneg	w8, w8, ne
	ldr	w9, [sp, #40]
	add	w8, w8, w9
	str	w8, [sp, #40]
	add	x1, sp, #40
	mov	x0, x19
	bl	_ath9k_dfs_process_radar_pulse
LBB0_15:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
Lloh24:
	adrp	x8, _DFS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DFS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ath_dbg
Lloh29:
	adrp	x8, _pulses_no_dfs@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pulses_no_dfs@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh31:
	adrp	x8, _datalen_discards@GOTPAGE
Lloh32:
	ldr	x8, [x8, _datalen_discards@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_DFS_STAT_INC
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_pulses_total,4,2               ; @pulses_total
	.comm	_ATH9K_PHYERR_RADAR,8,3         ; @ATH9K_PHYERR_RADAR
	.comm	_ATH9K_PHYERR_FALSE_RADAR_EXT,8,3 ; @ATH9K_PHYERR_FALSE_RADAR_EXT
	.comm	_DFS,4,2                        ; @DFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: rs_phyer=0x%x not a radar error\n"

	.comm	_pulses_no_dfs,4,2              ; @pulses_no_dfs
	.comm	_datalen_discards,4,2           ; @datalen_discards
	.comm	_MIN_CHIRP_PULSE_WIDTH,8,3      ; @MIN_CHIRP_PULSE_WIDTH
	.comm	_MAX_CHIRP_PULSE_WIDTH,8,3      ; @MAX_CHIRP_PULSE_WIDTH
	.comm	_PRI_CH_RADAR_FOUND,4,2         ; @PRI_CH_RADAR_FOUND
	.comm	_EXT_CH_RADAR_FOUND,4,2         ; @EXT_CH_RADAR_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"ath9k_dfs_process_phyerr: type=%d, freq=%d, ts=%llu, width=%d, rssi=%d, delta_ts=%llu\n"

.subsections_via_symbols
