	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_cck_packet_detection_thresh
_rtl8821ae_dm_cck_packet_detection_thresh: ## @rtl8821ae_dm_cck_packet_detection_thresh
	.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
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movl	16(%rbx), %eax
	movl	$205, %r14d
	cmpl	$25, %eax
	jg	LBB0_4
## %bb.2:
	movl	$131, %r14d
	cmpl	$10, %eax
	jg	LBB0_4
LBB0_3:
	cmpl	$1001, (%rbx)                   ## imm = 0x3E9
	movl	$131, %eax
	movl	$64, %r14d
	cmovgel	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	cmpl	%r14d, 20(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_ODM_REG_CCK_CCA_11AC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rtl_write_byte
	movl	20(%rbx), %eax
LBB0_6:
	movl	%eax, 24(%rbx)
	movl	%r14d, 20(%rbx)
	movq	_COMP_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_ODM_REG_CCK_CCA_11AC,4,2       ## @ODM_REG_CCK_CCA_11AC
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCK cca thresh hold =%x\n"

	.no_dead_strip	_rtl8821ae_dm_cck_packet_detection_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_dm_cck_packet_detection_thresh
_rtl8821ae_dm_cck_packet_detection_thresh: ; @rtl8821ae_dm_cck_packet_detection_thresh
	.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
	bl	_rtl_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.1:
	ldr	w8, [x19, #16]
	cmp	w8, #25
	b.le	LBB0_3
; %bb.2:
	mov	w20, #205
	b	LBB0_6
LBB0_3:
	cmp	w8, #10
	b.le	LBB0_5
; %bb.4:
	mov	w20, #131
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19]
	mov	w9, #64
	mov	w10, #131
	cmp	w8, #1000
	csel	w20, w10, w9, gt
LBB0_6:
	ldr	w9, [x19, #20]
	mov	x8, x20
	cmp	w9, w20
	b.eq	LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _ODM_REG_CCK_CCA_11AC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ODM_REG_CCK_CCA_11AC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_rtl_write_byte
	ldr	w8, [x19, #20]
LBB0_8:
Lloh6:
	adrp	x9, _COMP_DIG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COMP_DIG@GOTPAGEOFF]
	stp	w20, w8, [x19, #20]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x4, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_ODM_REG_CCK_CCA_11AC,4,2       ; @ODM_REG_CCK_CCA_11AC
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCK cca thresh hold =%x\n"

	.no_dead_strip	_rtl8821ae_dm_cck_packet_detection_thresh
.subsections_via_symbols
