	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_nf_sanitize
_ath9k_hw_nf_sanitize:                  ## @ath9k_hw_nf_sanitize
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movl	24(%r15), %edi
	callq	_IS_CHAN_2GHZ
	movq	_NUM_NF_READINGS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_9
## %bb.1:
	leaq	12(%r15), %rcx
	testq	%rax, %rax
	cmoveq	%r15, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rcx), %r15
	movq	_CALIBRATE@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	%r15, %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	movl	%eax, (%rbx,%r13,4)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_NUM_NF_READINGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r13,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
	shrq	$33, %rax
	leal	(%rax,%rax,2), %r8d
	negl	%r8d
	movl	(%r12), %esi
	cmpq	$3, %r13
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %rax
	cmovaeq	%rax, %rcx
	addl	%r13d, %r8d
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	(%rbx,%r13,4), %r8d
	movl	(%r15), %r9d
	cmpl	%r9d, %r8d
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r9d
	cmpl	%r9d, %r8d
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_NF_READINGS,4,2            ## @NUM_NF_READINGS
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NF calibrated [%s] [chain %d] is %d\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"NF[%d] (%d) > MAX (%d), correcting to MAX\n"

L_.str.4:                               ## @.str.4
	.asciz	"NF[%d] (%d) < MIN (%d), correcting to NOM\n"

	.no_dead_strip	_ath9k_hw_nf_sanitize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_nf_sanitize
_ath9k_hw_nf_sanitize:                  ; @ath9k_hw_nf_sanitize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	w0, [x21, #24]
	bl	_IS_CHAN_2GHZ
Lloh0:
	adrp	x24, _NUM_NF_READINGS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_NF_READINGS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x25, #0
	add	x8, x21, #12
	cmp	x0, #0
	csel	x26, x21, x8, eq
	add	x27, x26, #8
Lloh2:
	adrp	x23, _CALIBRATE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CALIBRATE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x28, l_.str.1@PAGE
Lloh7:
	add	x28, x28, l_.str.1@PAGEOFF
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	stp	x8, x9, [sp, #8]
	str	x25, [sp]
	mov	x0, x20
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_ath_dbg
	mov	x8, x27
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	str	w8, [x19, x25, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x25, lsl #2]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x9, x25, #0xffffffff
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	mul	x9, x9, x10
	lsr	x9, x9, #33
	sub	w9, w9, w9, lsl #2
	ldr	w1, [x23]
	cmp	x25, #2
	csel	x10, x28, x22, hi
	add	x9, x25, x9
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
	mov	x0, x20
	mov	x2, x21
	bl	_ath_dbg
	ldr	w8, [x19, x25, lsl #2]
	ldr	w9, [x27]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26, #4]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp, #8]
	str	x25, [sp]
	mov	x0, x20
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_ath_dbg
	mov	x8, x26
	b	LBB0_3
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_NF_READINGS,4,2            ; @NUM_NF_READINGS
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NF calibrated [%s] [chain %d] is %d\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"NF[%d] (%d) > MAX (%d), correcting to MAX\n"

l_.str.4:                               ; @.str.4
	.asciz	"NF[%d] (%d) < MIN (%d), correcting to NOM\n"

	.no_dead_strip	_ath9k_hw_nf_sanitize
.subsections_via_symbols
