	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8723e_dm_cck_packet_detection_thresh
_rtl8723e_dm_cck_packet_detection_thresh: ## @rtl8723e_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
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_rtl8723e_dm_initial_gain_min_pwdb
	movl	%eax, 16(%rbx)
	movq	24(%rbx), %r8
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r8
	jne	LBB0_5
## %bb.2:
	cmpl	$25, %eax
	jg	LBB0_10
## %bb.3:
	movq	%r8, 32(%rbx)
	jmp	LBB0_18
LBB0_4:
	movq	_CCK_PD_STAGE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movq	24(%rbx), %r8
	cmpq	%rcx, %r8
	jne	LBB0_7
LBB0_11:
	movq	%rcx, %r8
	jmp	LBB0_18
LBB0_5:
	cmpl	$20, %eax
	jle	LBB0_6
LBB0_10:
	movq	_CCK_PD_STAGE_HIGHRSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_6:
	movq	%rcx, 32(%rbx)
	cmpq	%rcx, %r8
	je	LBB0_11
LBB0_7:
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.8:
	cmpl	$801, (%rbx)                    ## imm = 0x321
	jl	LBB0_13
## %bb.9:
	movq	_CCK_FA_STAGE_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_RCCK0_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$205, %ecx
	callq	_rtl_set_bbreg
	movq	_RCCK0_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$71, %ecx
	callq	_rtl_set_bbreg
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	jmp	LBB0_17
LBB0_13:
	movq	_CCK_FA_STAGE_LOW@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	cmpq	%rax, 48(%rbx)
	je	LBB0_16
## %bb.15:
	movq	_CCK_FA_STAGE_LOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_RCCK0_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$131, %eax
	movl	$205, %ecx
	cmovel	%eax, %ecx
	movq	%r14, %rdi
	callq	_rtl_set_bbreg
	movq	40(%rbx), %rax
	movq	%rax, 48(%rbx)
LBB0_16:
	movq	_RCCK0_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %ecx
	callq	_rtl_set_bbreg
LBB0_17:
	movq	32(%rbx), %r8
	movq	%r8, 24(%rbx)
LBB0_18:
	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
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIG_STA_CONNECT,8,3            ## @DIG_STA_CONNECT
	.comm	_CCK_PD_STAGE_LOWRSSI,8,3       ## @CCK_PD_STAGE_LOWRSSI
	.comm	_CCK_PD_STAGE_HIGHRSSI,8,3      ## @CCK_PD_STAGE_HIGHRSSI
	.comm	_CCK_PD_STAGE_MAX,8,3           ## @CCK_PD_STAGE_MAX
	.comm	_CCK_FA_STAGE_HIGH,8,3          ## @CCK_FA_STAGE_HIGH
	.comm	_CCK_FA_STAGE_LOW,8,3           ## @CCK_FA_STAGE_LOW
	.comm	_RCCK0_CCA,4,2                  ## @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ## @MASKBYTE2
	.comm	_RCCK0_SYSTEM,4,2               ## @RCCK0_SYSTEM
	.comm	_MASKBYTE1,4,2                  ## @MASKBYTE1
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCKPDStage=%x\n"

	.no_dead_strip	_rtl8723e_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 rtl8723e_dm_cck_packet_detection_thresh
_rtl8723e_dm_cck_packet_detection_thresh: ; @rtl8723e_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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DIG_STA_CONNECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIG_STA_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_rtl8723e_dm_initial_gain_min_pwdb
	str	w0, [x19, #16]
	ldr	x4, [x19, #24]
Lloh3:
	adrp	x8, _CCK_PD_STAGE_LOWRSSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCK_PD_STAGE_LOWRSSI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x4, x8
	b.ne	LBB0_6
; %bb.2:
	cmp	w0, #25
	b.gt	LBB0_7
; %bb.3:
	str	x4, [x19, #32]
	b	LBB0_15
LBB0_4:
Lloh6:
	adrp	x8, _CCK_PD_STAGE_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCK_PD_STAGE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	x4, [x19, #24]
	cmp	x4, x8
	b.ne	LBB0_9
LBB0_5:
	mov	x4, x8
	b	LBB0_15
LBB0_6:
	cmp	w0, #20
	b.le	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _CCK_PD_STAGE_HIGHRSSI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CCK_PD_STAGE_HIGHRSSI@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
LBB0_8:
	str	x8, [x19, #32]
	cmp	x4, x8
	b.eq	LBB0_5
LBB0_9:
Lloh12:
	adrp	x9, _CCK_PD_STAGE_LOWRSSI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CCK_PD_STAGE_LOWRSSI@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x19]
Lloh15:
	adrp	x10, _CCK_FA_STAGE_HIGH@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CCK_FA_STAGE_HIGH@GOTPAGEOFF]
Lloh17:
	adrp	x9, _CCK_FA_STAGE_LOW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CCK_FA_STAGE_LOW@GOTPAGEOFF]
	cmp	w8, #800
	csel	x8, x10, x9, gt
	ldr	x8, [x8]
	str	x8, [x19, #40]
	ldr	x10, [x19, #48]
	cmp	x10, x8
	b.eq	LBB0_12
; %bb.11:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _RCCK0_CCA@GOTPAGE
Lloh20:
	ldr	x10, [x10, _RCCK0_CCA@GOTPAGEOFF]
Lloh21:
	adrp	x11, _MASKBYTE2@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MASKBYTE2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x10]
Lloh24:
	ldr	w2, [x11]
	cmp	x8, x9
	mov	w8, #205
	mov	w9, #131
	csel	w3, w9, w8, eq
	mov	x0, x20
	bl	_rtl_set_bbreg
	ldr	x8, [x19, #40]
	str	x8, [x19, #48]
LBB0_12:
Lloh25:
	adrp	x8, _RCCK0_SYSTEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RCCK0_SYSTEM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _MASKBYTE1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MASKBYTE1@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #64
	bl	_rtl_set_bbreg
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x8, _RCCK0_CCA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RCCK0_CCA@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _MASKBYTE2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MASKBYTE2@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #205
	bl	_rtl_set_bbreg
Lloh37:
	adrp	x8, _RCCK0_SYSTEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RCCK0_SYSTEM@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _MASKBYTE1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MASKBYTE1@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #71
	bl	_rtl_set_bbreg
	stp	xzr, xzr, [x19, #40]
LBB0_14:
	ldr	x4, [x19, #32]
	str	x4, [x19, #24]
LBB0_15:
Lloh43:
	adrp	x8, _COMP_DIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _COMP_DIG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh48:
	adrp	x3, l_.str@PAGE
Lloh49:
	add	x3, x3, l_.str@PAGEOFF
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_DIG_STA_CONNECT,8,3            ; @DIG_STA_CONNECT
	.comm	_CCK_PD_STAGE_LOWRSSI,8,3       ; @CCK_PD_STAGE_LOWRSSI
	.comm	_CCK_PD_STAGE_HIGHRSSI,8,3      ; @CCK_PD_STAGE_HIGHRSSI
	.comm	_CCK_PD_STAGE_MAX,8,3           ; @CCK_PD_STAGE_MAX
	.comm	_CCK_FA_STAGE_HIGH,8,3          ; @CCK_FA_STAGE_HIGH
	.comm	_CCK_FA_STAGE_LOW,8,3           ; @CCK_FA_STAGE_LOW
	.comm	_RCCK0_CCA,4,2                  ; @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ; @MASKBYTE2
	.comm	_RCCK0_SYSTEM,4,2               ; @RCCK0_SYSTEM
	.comm	_MASKBYTE1,4,2                  ; @MASKBYTE1
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCKPDStage=%x\n"

	.no_dead_strip	_rtl8723e_dm_cck_packet_detection_thresh
.subsections_via_symbols
