	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_ofdm_weak_signal_detection ## -- Begin function ath5k_ani_set_ofdm_weak_signal_detection
	.p2align	4, 0x90
_ath5k_ani_set_ofdm_weak_signal_detection: ## @ath5k_ani_set_ofdm_weak_signal_detection
	.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	%esi, %r14d
	movq	%rdi, %r12
	movq	_AR5K_PHY_WEAK_OFDM_LOW_THR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR5K_PHY_WEAK_OFDM_LOW_THR_M1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movslq	%r14d, %rbx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m1l(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r15), %esi
	movq	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m2l(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movq	_AR5K_PHY_WEAK_OFDM_HIGH_THR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m1(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r13), %esi
	movq	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m2(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r13), %esi
	movq	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m2cnt(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r15), %esi
	movq	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt(%rip), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r15), %esi
	movq	_AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	callq	_AR5K_REG_ENABLE_BITS
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	callq	_AR5K_REG_DISABLE_BITS
	leaq	L_.str.2(%rip), %rcx
LBB0_3:
	movl	%r14d, (%r12)
	movq	_ATH5K_DEBUG_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_DBG_UNLIMIT              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m1l
_ath5k_ani_set_ofdm_weak_signal_detection.m1l:
	.long	127                             ## 0x7f
	.long	50                              ## 0x32

	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m2l
_ath5k_ani_set_ofdm_weak_signal_detection.m2l:
	.long	127                             ## 0x7f
	.long	40                              ## 0x28

	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m1
_ath5k_ani_set_ofdm_weak_signal_detection.m1:
	.long	127                             ## 0x7f
	.long	77                              ## 0x4d

	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m2
_ath5k_ani_set_ofdm_weak_signal_detection.m2:
	.long	127                             ## 0x7f
	.long	64                              ## 0x40

	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m2cnt
_ath5k_ani_set_ofdm_weak_signal_detection.m2cnt:
	.long	31                              ## 0x1f
	.long	16                              ## 0x10

	.p2align	2                               ## @ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt
_ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt:
	.long	63                              ## 0x3f
	.long	48                              ## 0x30

	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR,4,2 ## @AR5K_PHY_WEAK_OFDM_LOW_THR
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M1,4,2 ## @AR5K_PHY_WEAK_OFDM_LOW_THR_M1
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2,4,2 ## @AR5K_PHY_WEAK_OFDM_LOW_THR_M2
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR,4,2 ## @AR5K_PHY_WEAK_OFDM_HIGH_THR
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M1,4,2 ## @AR5K_PHY_WEAK_OFDM_HIGH_THR_M1
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2,4,2 ## @AR5K_PHY_WEAK_OFDM_HIGH_THR_M2
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT,4,2 ## @AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT,4,2 ## @AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN,4,2 ## @AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN
	.comm	_ATH5K_DEBUG_ANI,4,2            ## @ATH5K_DEBUG_ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"turned %s"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_ofdm_weak_signal_detection ; -- Begin function ath5k_ani_set_ofdm_weak_signal_detection
	.p2align	2
_ath5k_ani_set_ofdm_weak_signal_detection: ; @ath5k_ani_set_ofdm_weak_signal_detection
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _AR5K_PHY_WEAK_OFDM_LOW_THR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR5K_PHY_WEAK_OFDM_LOW_THR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M1@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	sbfiz	x22, x20, #2, #32
Lloh5:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m1l@PAGE
Lloh6:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m1l@PAGEOFF
	ldr	w3, [x8, x22]
	bl	_AR5K_REG_WRITE_BITS
Lloh7:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M2@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2l@PAGE
Lloh11:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2l@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
Lloh12:
	adrp	x23, _AR5K_PHY_WEAK_OFDM_HIGH_THR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _AR5K_PHY_WEAK_OFDM_HIGH_THR@GOTPAGEOFF]
Lloh14:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M1@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m1@PAGE
Lloh18:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m1@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
Lloh19:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M2@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2@PAGE
Lloh23:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
Lloh24:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2cnt@PAGE
Lloh28:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2cnt@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
Lloh29:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt@PAGE
Lloh33:
	add	x8, x8, _ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
	ldr	w1, [x21]
Lloh34:
	adrp	x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	cbz	w20, LBB0_2
; %bb.1:
	bl	_AR5K_REG_ENABLE_BITS
Lloh37:
	adrp	x3, l_.str.1@PAGE
Lloh38:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	bl	_AR5K_REG_DISABLE_BITS
Lloh39:
	adrp	x3, l_.str.2@PAGE
Lloh40:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_3:
	str	w20, [x19]
Lloh41:
	adrp	x8, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str@PAGE
Lloh45:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ATH5K_DBG_UNLIMIT
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m1l
_ath5k_ani_set_ofdm_weak_signal_detection.m1l:
	.long	127                             ; 0x7f
	.long	50                              ; 0x32

	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m2l
_ath5k_ani_set_ofdm_weak_signal_detection.m2l:
	.long	127                             ; 0x7f
	.long	40                              ; 0x28

	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m1
_ath5k_ani_set_ofdm_weak_signal_detection.m1:
	.long	127                             ; 0x7f
	.long	77                              ; 0x4d

	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m2
_ath5k_ani_set_ofdm_weak_signal_detection.m2:
	.long	127                             ; 0x7f
	.long	64                              ; 0x40

	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m2cnt
_ath5k_ani_set_ofdm_weak_signal_detection.m2cnt:
	.long	31                              ; 0x1f
	.long	16                              ; 0x10

	.p2align	2                               ; @ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt
_ath5k_ani_set_ofdm_weak_signal_detection.m2lcnt:
	.long	63                              ; 0x3f
	.long	48                              ; 0x30

	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR,4,2 ; @AR5K_PHY_WEAK_OFDM_LOW_THR
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M1,4,2 ; @AR5K_PHY_WEAK_OFDM_LOW_THR_M1
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2,4,2 ; @AR5K_PHY_WEAK_OFDM_LOW_THR_M2
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR,4,2 ; @AR5K_PHY_WEAK_OFDM_HIGH_THR
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M1,4,2 ; @AR5K_PHY_WEAK_OFDM_HIGH_THR_M1
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2,4,2 ; @AR5K_PHY_WEAK_OFDM_HIGH_THR_M2
	.comm	_AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT,4,2 ; @AR5K_PHY_WEAK_OFDM_HIGH_THR_M2_COUNT
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT,4,2 ; @AR5K_PHY_WEAK_OFDM_LOW_THR_M2_COUNT
	.comm	_AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN,4,2 ; @AR5K_PHY_WEAK_OFDM_LOW_THR_SELFCOR_EN
	.comm	_ATH5K_DEBUG_ANI,4,2            ; @ATH5K_DEBUG_ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"turned %s"

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

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

.subsections_via_symbols
