	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_ofdm_nil
_ath9k_hw_set_ofdm_nil:                 ## @ath9k_hw_set_ofdm_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
	pushq	%rax
	.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, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %r15
	movq	%rbx, %rdi
	callq	_BEACON_RSSI
	movq	_ATH9K_ANI_RSSI_THR_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_ATH9K_ANI_RSSI_THR_HIGH@GOTPCREL(%rip), %r11
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rcx
	movq	%r14, %r8
	movq	%rax, %r9
	pushq	(%r11)
	pushq	%r10
	callq	_ath_dbg
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_ATH9K_ANI_OFDM_DEF_LEVEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%r14, %rcx
	cmovbeq	%r14, %rcx
	testq	%rax, %rax
	cmoveq	%r14, %rcx
	movq	%rcx, 16(%rbx)
LBB0_3:
	movq	_ofdm_level_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_cck_level_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	24(%rbx), %r13
	leaq	(%rcx,%rcx,2), %r15
	movq	(%r14,%r15,8), %rdx
	cmpq	%rdx, 32(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_ATH9K_ANI_SPUR_IMMUNITY_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath9k_hw_ani_control
LBB0_5:
	movq	8(%r14,%r15,8), %rdx
	cmpq	%rdx, 40(%rbx)
	je	LBB0_8
## %bb.6:
	cmpq	(%r12,%r13,8), %rdx
	jl	LBB0_8
## %bb.7:
	movq	_ATH9K_ANI_FIRSTEP_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath9k_hw_ani_control
LBB0_8:
	movl	16(%r14,%r15,8), %r14d
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_BEACON_RSSI
	movl	$1, %edx
	movq	_ATH9K_ANI_RSSI_THR_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_15
LBB0_10:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rax
	movl	$1, %edx
	cmpq	(%r15), %rax
	jne	LBB0_15
LBB0_12:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	cmpq	$8, 16(%rbx)
	cmovael	%eax, %r14d
LBB0_14:
	movl	%r14d, %edx
LBB0_15:
	cmpl	%edx, 48(%rbx)
	je	LBB0_17
## %bb.16:
	movq	_ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ath9k_hw_ani_control
LBB0_17:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	16(%rbx), %rax
	movq	_ATH9K_ANI_OFDM_DEF_LEVEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_ATH9K_ANI_OFDM_TRIG_HIGH@GOTPCREL(%rip), %rax
	cmovbq	_ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI@GOTPCREL(%rip), %rax
	movq	_ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI@GOTPCREL(%rip), %rcx
	cmovbq	_ATH9K_ANI_OFDM_TRIG_LOW@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	(%rcx), %eax
	movl	%eax, 8(%rbx)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANI,4,2                        ## @ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"**** ofdmlevel %d=>%d, rssi=%d[lo=%d hi=%d]\n"

	.comm	_ATH9K_ANI_RSSI_THR_LOW,4,2     ## @ATH9K_ANI_RSSI_THR_LOW
	.comm	_ATH9K_ANI_RSSI_THR_HIGH,8,3    ## @ATH9K_ANI_RSSI_THR_HIGH
	.comm	_ATH9K_ANI_OFDM_DEF_LEVEL,8,3   ## @ATH9K_ANI_OFDM_DEF_LEVEL
	.comm	_ofdm_level_table,8,3           ## @ofdm_level_table
	.comm	_cck_level_table,8,3            ## @cck_level_table
	.comm	_ATH9K_ANI_SPUR_IMMUNITY_LEVEL,4,2 ## @ATH9K_ANI_SPUR_IMMUNITY_LEVEL
	.comm	_ATH9K_ANI_FIRSTEP_LEVEL,4,2    ## @ATH9K_ANI_FIRSTEP_LEVEL
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION,4,2 ## @ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH,4,2   ## @ATH9K_ANI_OFDM_TRIG_HIGH
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI,4,2 ## @ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI,4,2 ## @ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW,4,2    ## @ATH9K_ANI_OFDM_TRIG_LOW
	.no_dead_strip	_ath9k_hw_set_ofdm_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_ofdm_nil
_ath9k_hw_set_ofdm_nil:                 ; @ath9k_hw_set_ofdm_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	x21, x2
	mov	x20, 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, #16]
	mov	x0, x19
	bl	_BEACON_RSSI
	mov	x5, x0
Lloh3:
	adrp	x8, _ATH9K_ANI_RSSI_THR_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_ANI_RSSI_THR_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x25, _ATH9K_ANI_RSSI_THR_HIGH@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ATH9K_ANI_RSSI_THR_HIGH@GOTPAGEOFF]
	ldr	x7, [x25]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x3, x24
	mov	x4, x20
	bl	_ath_dbg
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	w21, LBB0_2
; %bb.1:
	ldr	x20, [x19, #16]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x20
	csel	x8, x8, x20, hi
	cmp	x0, #0
	csel	x20, x20, x8, eq
	str	x20, [x19, #16]
LBB0_3:
Lloh13:
	adrp	x8, _ofdm_level_table@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ofdm_level_table@GOTPAGEOFF]
Lloh15:
	ldr	x21, [x8]
Lloh16:
	adrp	x8, _cck_level_table@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cck_level_table@GOTPAGEOFF]
Lloh18:
	ldr	x22, [x8]
	ldp	x23, x8, [x19, #24]
	mov	w9, #24
	mul	x9, x20, x9
	ldr	x2, [x21, x9]
	cmp	x8, x2
	b.eq	LBB0_5
; %bb.4:
Lloh19:
	adrp	x8, _ATH9K_ANI_SPUR_IMMUNITY_LEVEL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATH9K_ANI_SPUR_IMMUNITY_LEVEL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ath9k_hw_ani_control
LBB0_5:
	ldr	x8, [x19, #40]
	mov	w9, #24
	madd	x9, x20, x9, x21
	ldr	x2, [x9, #8]
	cmp	x8, x2
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x22, x23, lsl #3]
	cmp	x2, x8
	b.lt	LBB0_8
; %bb.7:
Lloh22:
	adrp	x8, _ATH9K_ANI_FIRSTEP_LEVEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATH9K_ANI_FIRSTEP_LEVEL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ath9k_hw_ani_control
LBB0_8:
	mov	w8, #24
	madd	x8, x20, x8, x21
	ldr	w20, [x8, #16]
	ldr	x8, [x19]
Lloh25:
	adrp	x21, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh26:
	ldr	x21, [x21, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_BEACON_RSSI
	ldr	x8, [x25]
	cmp	x0, x8
	b.le	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x19, #16]
	cmp	x8, #7
	csel	w20, wzr, w20, hi
	b	LBB0_15
LBB0_14:
	mov	w20, #1
LBB0_15:
	ldr	w8, [x19, #48]
	cmp	w8, w20
	b.eq	LBB0_17
; %bb.16:
Lloh27:
	adrp	x8, _ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ath9k_hw_ani_control
LBB0_17:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x19, #16]
Lloh30:
	adrp	x9, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ATH9K_ANI_OFDM_DEF_LEVEL@GOTPAGEOFF]
Lloh32:
	adrp	x10, _ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI@GOTPAGE
Lloh33:
	ldr	x10, [x10, _ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI@GOTPAGEOFF]
Lloh34:
	adrp	x11, _ATH9K_ANI_OFDM_TRIG_HIGH@GOTPAGE
Lloh35:
	ldr	x11, [x11, _ATH9K_ANI_OFDM_TRIG_HIGH@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, lo
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _ATH9K_ANI_OFDM_TRIG_LOW@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ATH9K_ANI_OFDM_TRIG_LOW@GOTPAGEOFF]
	str	w8, [x19, #12]
Lloh39:
	adrp	x8, _ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI@GOTPAGEOFF]
	csel	x8, x9, x8, lo
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_19:
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ANI,4,2                        ; @ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"**** ofdmlevel %d=>%d, rssi=%d[lo=%d hi=%d]\n"

	.comm	_ATH9K_ANI_RSSI_THR_LOW,4,2     ; @ATH9K_ANI_RSSI_THR_LOW
	.comm	_ATH9K_ANI_RSSI_THR_HIGH,8,3    ; @ATH9K_ANI_RSSI_THR_HIGH
	.comm	_ATH9K_ANI_OFDM_DEF_LEVEL,8,3   ; @ATH9K_ANI_OFDM_DEF_LEVEL
	.comm	_ofdm_level_table,8,3           ; @ofdm_level_table
	.comm	_cck_level_table,8,3            ; @cck_level_table
	.comm	_ATH9K_ANI_SPUR_IMMUNITY_LEVEL,4,2 ; @ATH9K_ANI_SPUR_IMMUNITY_LEVEL
	.comm	_ATH9K_ANI_FIRSTEP_LEVEL,4,2    ; @ATH9K_ANI_FIRSTEP_LEVEL
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION,4,2 ; @ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH,4,2   ; @ATH9K_ANI_OFDM_TRIG_HIGH
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI,4,2 ; @ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI
	.comm	_ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI,4,2 ; @ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI
	.comm	_ATH9K_ANI_OFDM_TRIG_LOW,4,2    ; @ATH9K_ANI_OFDM_TRIG_LOW
	.no_dead_strip	_ath9k_hw_set_ofdm_nil
.subsections_via_symbols
