	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_ani_lower_immunity
_ath5k_ani_lower_immunity:              ## @ath5k_ani_lower_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_ewma_beacon_rssi_read
	movl	%eax, %r15d
	movq	_ATH5K_DEBUG_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ATH5K_DBG_UNLIMIT
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.2:
	decq	%rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_firstep_level    ## TAILCALL
LBB0_3:
	movq	_ATH5K_ANI_RSSI_THR_HIGH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_4
LBB0_7:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.10:
	decq	%rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_spur_immunity_level ## TAILCALL
LBB0_4:
	movq	_ATH5K_ANI_RSSI_THR_LOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jle	LBB0_1
## %bb.5:
	cmpl	$0, 24(%r14)
	jne	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_ofdm_weak_signal_detection ## TAILCALL
LBB0_8:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_9
## %bb.11:
	decq	%rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath5k_ani_set_noise_immunity_level ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	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	"lower immunity"

	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_ATH5K_ANI_RSSI_THR_HIGH,4,2    ## @ATH5K_ANI_RSSI_THR_HIGH
	.comm	_ATH5K_ANI_RSSI_THR_LOW,4,2     ## @ATH5K_ANI_RSSI_THR_LOW
	.no_dead_strip	_ath5k_ani_lower_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_lower_immunity
_ath5k_ani_lower_immunity:              ; @ath5k_ani_lower_immunity
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #8
	bl	_ewma_beacon_rssi_read
	mov	x21, x0
Lloh0:
	adrp	x8, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_DBG_UNLIMIT
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_1:
	ldr	x8, [x20]
	subs	x1, x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath5k_ani_set_firstep_level
LBB0_3:
Lloh8:
	adrp	x8, _ATH5K_ANI_RSSI_THR_HIGH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH5K_ANI_RSSI_THR_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	subs	x1, x8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath5k_ani_set_spur_immunity_level
LBB0_6:
Lloh11:
	adrp	x8, _ATH5K_ANI_RSSI_THR_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH5K_ANI_RSSI_THR_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_1
; %bb.7:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_1
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath5k_ani_set_ofdm_weak_signal_detection
LBB0_9:
	ldr	x8, [x20, #16]
	subs	x1, x8, #1
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath5k_ani_set_noise_immunity_level
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH5K_DEBUG_ANI,4,2            ; @ATH5K_DEBUG_ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lower immunity"

	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_ATH5K_ANI_RSSI_THR_HIGH,4,2    ; @ATH5K_ANI_RSSI_THR_HIGH
	.comm	_ATH5K_ANI_RSSI_THR_LOW,4,2     ; @ATH5K_ANI_RSSI_THR_LOW
	.no_dead_strip	_ath5k_ani_lower_immunity
.subsections_via_symbols
