	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_cck_weak_signal_detection ## -- Begin function ath5k_ani_set_cck_weak_signal_detection
	.p2align	4, 0x90
_ath5k_ani_set_cck_weak_signal_detection: ## @ath5k_ani_set_cck_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_AR5K_PHY_CCK_CROSSCORR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movslq	%esi, %rbx
	leaq	_ath5k_ani_set_cck_weak_signal_detection.val(%rip), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%eax, %esi
	callq	_AR5K_REG_WRITE_BITS
	movl	%ebx, (%r14)
	movq	_ATH5K_DEBUG_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ATH5K_DBG_UNLIMIT              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ath5k_ani_set_cck_weak_signal_detection.val
_ath5k_ani_set_cck_weak_signal_detection.val:
	.long	8                               ## 0x8
	.long	6                               ## 0x6

	.comm	_AR5K_PHY_CCK_CROSSCORR,4,2     ## @AR5K_PHY_CCK_CROSSCORR
	.comm	_AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR,4,2 ## @AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR
	.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_cck_weak_signal_detection ; -- Begin function ath5k_ani_set_cck_weak_signal_detection
	.p2align	2
_ath5k_ani_set_cck_weak_signal_detection: ; @ath5k_ani_set_cck_weak_signal_detection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AR5K_PHY_CCK_CROSSCORR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_PHY_CCK_CROSSCORR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x8, _ath5k_ani_set_cck_weak_signal_detection.val@PAGE
Lloh7:
	add	x8, x8, _ath5k_ani_set_cck_weak_signal_detection.val@PAGEOFF
	ldr	w3, [x8, w19, sxtw #2]
	bl	_AR5K_REG_WRITE_BITS
	str	w19, [x20]
Lloh8:
	adrp	x8, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x3, x9, x8, eq
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ATH5K_DBG_UNLIMIT
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath5k_ani_set_cck_weak_signal_detection.val
_ath5k_ani_set_cck_weak_signal_detection.val:
	.long	8                               ; 0x8
	.long	6                               ; 0x6

	.comm	_AR5K_PHY_CCK_CROSSCORR,4,2     ; @AR5K_PHY_CCK_CROSSCORR
	.comm	_AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR,4,2 ; @AR5K_PHY_CCK_CROSSCORR_WEAK_SIG_THR
	.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
