	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_ani_raise_immunity
_ath5k_ani_raise_immunity:              ## @ath5k_ani_raise_immunity
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_ewma_beacon_rssi_read
	movl	%eax, %r12d
	movq	_ATH5K_DEBUG_ANI@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ATH5K_DBG_UNLIMIT
	movq	(%r14), %rsi
	movq	_ATH5K_ANI_MAX_NOISE_IMM_LVL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_1
## %bb.24:
	incq	%rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_noise_immunity_level ## TAILCALL
LBB0_1:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	movq	8(%r14), %rsi
	cmpq	16(%rbx), %rsi
	jge	LBB0_5
## %bb.3:
	incq	%rsi
	movq	%rbx, %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_spur_immunity_level ## TAILCALL
LBB0_5:
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_6:
	movq	16(%r14), %rsi
	movq	_ATH5K_ANI_MAX_FIRSTEP_LVL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_17
## %bb.7:
	incq	%rsi
	movq	%rbx, %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_firstep_level    ## TAILCALL
LBB0_9:
	movq	_ATH5K_ANI_RSSI_THR_HIGH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_13
## %bb.10:
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ATH5K_DBG_UNLIMIT
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.11:
	cmpq	$0, 24(%r14)
	je	LBB0_6
## %bb.12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath5k_ani_set_ofdm_weak_signal_detection
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_13:
	movq	_ATH5K_ANI_RSSI_THR_LOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_18
## %bb.14:
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ATH5K_DBG_UNLIMIT
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.15:
	cmpq	$0, 24(%r14)
	jne	LBB0_6
## %bb.16:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ath5k_ani_set_ofdm_weak_signal_detection
	jmp	LBB0_6
LBB0_18:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.19:
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ATH5K_DBG_UNLIMIT
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.20:
	cmpq	$0, 24(%r14)
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ath5k_ani_set_ofdm_weak_signal_detection
LBB0_22:
	cmpq	$0, 16(%r14)
	jle	LBB0_17
## %bb.23:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH5K_DEBUG_ANI,4,2            ## @ATH5K_DEBUG_ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raise immunity (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"ODFM"

L_.str.2:                               ## @.str.2
	.asciz	"CCK"

	.comm	_ATH5K_ANI_MAX_NOISE_IMM_LVL,8,3 ## @ATH5K_ANI_MAX_NOISE_IMM_LVL
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_ATH5K_ANI_MAX_FIRSTEP_LVL,8,3  ## @ATH5K_ANI_MAX_FIRSTEP_LVL
	.comm	_ATH5K_ANI_RSSI_THR_HIGH,4,2    ## @ATH5K_ANI_RSSI_THR_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"beacon RSSI high"

	.comm	_ATH5K_ANI_RSSI_THR_LOW,4,2     ## @ATH5K_ANI_RSSI_THR_LOW
L_.str.4:                               ## @.str.4
	.asciz	"beacon RSSI mid"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
L_.str.5:                               ## @.str.5
	.asciz	"beacon RSSI low, 2GHz"

	.no_dead_strip	_ath5k_ani_raise_immunity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_ani_raise_immunity
_ath5k_ani_raise_immunity:              ; @ath5k_ani_raise_immunity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #24
	bl	_ewma_beacon_rssi_read
	mov	x22, x0
Lloh0:
	adrp	x23, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG_UNLIMIT
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _ATH5K_ANI_MAX_NOISE_IMM_LVL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH5K_ANI_MAX_NOISE_IMM_LVL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	add	x1, x8, #1
	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
	add	sp, sp, #80
	b	_ath5k_ani_set_noise_immunity_level
LBB0_2:
	cbz	w21, LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	add	x1, x8, #1
	mov	x0, x19
LBB0_5:
	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
	add	sp, sp, #80
	b	_ath5k_ani_set_spur_immunity_level
LBB0_6:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_7:
	ldr	x8, [x20, #16]
Lloh14:
	adrp	x9, _ATH5K_ANI_MAX_FIRSTEP_LVL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATH5K_ANI_MAX_FIRSTEP_LVL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.8:
	add	x1, x8, #1
	mov	x0, x19
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
	add	sp, sp, #80
	b	_ath5k_ani_set_firstep_level
LBB0_10:
Lloh17:
	adrp	x8, _ATH5K_ANI_RSSI_THR_HIGH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH5K_ANI_RSSI_THR_HIGH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_14
; %bb.11:
	ldr	w1, [x23]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG_UNLIMIT
	cbz	w21, LBB0_7
; %bb.12:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_ani_set_ofdm_weak_signal_detection
	mov	x0, x19
	mov	x1, #0
	b	LBB0_5
LBB0_14:
Lloh22:
	adrp	x8, _ATH5K_ANI_RSSI_THR_LOW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATH5K_ANI_RSSI_THR_LOW@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_18
; %bb.15:
	ldr	w1, [x23]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG_UNLIMIT
	cbz	w21, LBB0_7
; %bb.16:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_7
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_ath5k_ani_set_ofdm_weak_signal_detection
	b	LBB0_7
LBB0_18:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.19:
	ldr	w1, [x23]
Lloh30:
	adrp	x2, l_.str.5@PAGE
Lloh31:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG_UNLIMIT
	cbz	w21, LBB0_22
; %bb.20:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #0
	bl	_ath5k_ani_set_ofdm_weak_signal_detection
LBB0_22:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, #0
	b	LBB0_9
LBB0_24:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH5K_DEBUG_ANI,4,2            ; @ATH5K_DEBUG_ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raise immunity (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"ODFM"

l_.str.2:                               ; @.str.2
	.asciz	"CCK"

	.comm	_ATH5K_ANI_MAX_NOISE_IMM_LVL,8,3 ; @ATH5K_ANI_MAX_NOISE_IMM_LVL
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_ATH5K_ANI_MAX_FIRSTEP_LVL,8,3  ; @ATH5K_ANI_MAX_FIRSTEP_LVL
	.comm	_ATH5K_ANI_RSSI_THR_HIGH,4,2    ; @ATH5K_ANI_RSSI_THR_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"beacon RSSI high"

	.comm	_ATH5K_ANI_RSSI_THR_LOW,4,2     ; @ATH5K_ANI_RSSI_THR_LOW
l_.str.4:                               ; @.str.4
	.asciz	"beacon RSSI mid"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
l_.str.5:                               ; @.str.5
	.asciz	"beacon RSSI low, 2GHz"

	.no_dead_strip	_ath5k_ani_raise_immunity
.subsections_via_symbols
