	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_cck_nil
_ath9k_hw_set_cck_nil:                  ## @ath9k_hw_set_cck_nil
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BEACON_RSSI
	movq	_ATH9K_ANI_RSSI_THR_LOW@GOTPCREL(%rip), %rsi
	movq	_ATH9K_ANI_RSSI_THR_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%rsi, %r12
	movl	%r13d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	movq	%rax, %r9
	pushq	%rbx
	pushq	(%r12)
	callq	_ath_dbg
	addq	$16, %rsp
	movq	%r15, %rdi
	callq	_AR_SREV_9100
	movq	_ATH9K_ANI_CCK_DEF_LEVEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%r14, %rbx
	cmovbeq	%r14, %rbx
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_BEACON_RSSI
	cmpq	(%r12), %rax
	jg	LBB0_3
## %bb.2:
	movq	_ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	8(%r15), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, 8(%r15)
LBB0_6:
	movq	_cck_level_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %rbx
	movq	(%r14,%rbx), %rdx
	cmpq	%rdx, 24(%r15)
	je	LBB0_9
## %bb.7:
	movq	_ofdm_level_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	cmpq	(%rax,%rcx,8), %rdx
	jl	LBB0_9
## %bb.8:
	movq	_ATH9K_ANI_FIRSTEP_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ath9k_hw_ani_control
LBB0_9:
	movq	%r15, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	callq	_AR_SREV_9485
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	callq	_AR_SREV_9561
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	8(%r14,%rbx), %rdx
	cmpq	%rdx, 32(%r15)
	jne	LBB0_15
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_ATH9K_ANI_MRC_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath9k_hw_ani_control           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ANI,4,2                        ## @ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"**** ccklevel %d=>%d, rssi=%d[lo=%d hi=%d]\n"

	.comm	_ATH9K_ANI_RSSI_THR_LOW,8,3     ## @ATH9K_ANI_RSSI_THR_LOW
	.comm	_ATH9K_ANI_RSSI_THR_HIGH,4,2    ## @ATH9K_ANI_RSSI_THR_HIGH
	.comm	_ATH9K_ANI_CCK_DEF_LEVEL,8,3    ## @ATH9K_ANI_CCK_DEF_LEVEL
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI,8,3 ## @ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI
	.comm	_ofdm_level_table,8,3           ## @ofdm_level_table
	.comm	_cck_level_table,8,3            ## @cck_level_table
	.comm	_ATH9K_ANI_FIRSTEP_LEVEL,4,2    ## @ATH9K_ANI_FIRSTEP_LEVEL
	.comm	_ATH9K_ANI_MRC_CCK,4,2          ## @ATH9K_ANI_MRC_CCK
	.no_dead_strip	_ath9k_hw_set_cck_nil
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_set_cck_nil
_ath9k_hw_set_cck_nil:                  ; @ath9k_hw_set_cck_nil
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ath9k_hw_common
	mov	x22, x0
Lloh0:
	adrp	x8, _ANI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x24, [x19, #8]
	mov	x0, x19
	bl	_BEACON_RSSI
	mov	x5, x0
Lloh3:
	adrp	x25, _ATH9K_ANI_RSSI_THR_LOW@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ATH9K_ANI_RSSI_THR_LOW@GOTPAGEOFF]
	ldr	x6, [x25]
Lloh5:
	adrp	x8, _ATH9K_ANI_RSSI_THR_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH9K_ANI_RSSI_THR_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w7, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x3, x24
	mov	x4, x21
	bl	_ath_dbg
	mov	x0, x19
	bl	_AR_SREV_9100
Lloh10:
	adrp	x8, _ATH9K_ANI_CCK_DEF_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_ANI_CCK_DEF_LEVEL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x21
	csel	x8, x8, x21, hi
	cmp	x0, #0
	csel	x21, x21, x8, eq
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_BEACON_RSSI
	ldr	x8, [x25]
	cmp	x0, x8
	b.gt	LBB0_3
; %bb.2:
Lloh16:
	adrp	x8, _ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x21, x8
	csel	x21, x21, x8, lo
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	ldr	x21, [x19, #8]
	b	LBB0_6
LBB0_5:
	str	x21, [x19, #8]
LBB0_6:
Lloh19:
	adrp	x8, _cck_level_table@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cck_level_table@GOTPAGEOFF]
Lloh21:
	ldr	x20, [x8]
	ldr	x8, [x19, #24]
	lsl	x9, x21, #4
	ldr	x2, [x20, x9]
	cmp	x8, x2
	b.eq	LBB0_9
; %bb.7:
Lloh22:
	adrp	x8, _ofdm_level_table@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ofdm_level_table@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x2, x8
	b.lt	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _ATH9K_ANI_FIRSTEP_LEVEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATH9K_ANI_FIRSTEP_LEVEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath9k_hw_ani_control
LBB0_9:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	w0, LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_AR_SREV_9485
	cbnz	x0, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_AR_SREV_9561
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #32]
	add	x9, x20, x21, lsl #4
	ldr	x2, [x9, #8]
	cmp	x8, x2
	b.ne	LBB0_15
LBB0_14:
	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_15:
Lloh28:
	adrp	x8, _ATH9K_ANI_MRC_CCK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATH9K_ANI_MRC_CCK@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	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	_ath9k_hw_ani_control
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ANI,4,2                        ; @ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"**** ccklevel %d=>%d, rssi=%d[lo=%d hi=%d]\n"

	.comm	_ATH9K_ANI_RSSI_THR_LOW,8,3     ; @ATH9K_ANI_RSSI_THR_LOW
	.comm	_ATH9K_ANI_RSSI_THR_HIGH,4,2    ; @ATH9K_ANI_RSSI_THR_HIGH
	.comm	_ATH9K_ANI_CCK_DEF_LEVEL,8,3    ; @ATH9K_ANI_CCK_DEF_LEVEL
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI,8,3 ; @ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI
	.comm	_ofdm_level_table,8,3           ; @ofdm_level_table
	.comm	_cck_level_table,8,3            ; @cck_level_table
	.comm	_ATH9K_ANI_FIRSTEP_LEVEL,4,2    ; @ATH9K_ANI_FIRSTEP_LEVEL
	.comm	_ATH9K_ANI_MRC_CCK,4,2          ; @ATH9K_ANI_MRC_CCK
	.no_dead_strip	_ath9k_hw_set_cck_nil
.subsections_via_symbols
